∫ 0 π sin 2 0 x d x
The integral above has a closed form. Find this closed form.
Give your answer to 3 decimal places.
Bonus : Compute ∫ 0 π sin 8 0 x d x .
Try a harder version here: Calculus and Computer Science Again?
This section requires Javascript.
You are seeing this because something didn't load right. We suggest you, (a) try
refreshing the page, (b) enabling javascript if it is disabled on your browser and,
finally, (c)
loading the
non-javascript version of this page
. We're sorry about the hassle.
Adding to your solution, the recursive function to evaluate I n in C++:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 |
|
Output :
0 . 5 5 3 5 2 3 and 0 . 2 7 9 3 6 7 respectively for I 2 0 and I 8 0 in 0.686s.
Bonus : Calculate I 8 0
Log in to reply
I 8 0 ≈ 0 . 2 7 9 3 7 5 ( = 8 0 ! ! 7 9 ! ! π ) .
Shall I delete it ... ?? (As it does not involve programming obviously)..
Log in to reply
No. Programming is appreciated but not necessary. You gave a valid solution and that's what matters I think.
about the generalised form is that I n is not true when n is odd.
I = ∫ 0 π sin 2 0 x d x = ∫ 0 π ( 2 sin ( 2 x ) cos ( 2 x ) ) 2 0 d x Let θ = 2 x ⟹ d θ = 2 1 d x = 2 2 1 ∫ 0 2 π sin 2 0 θ cos 2 0 θ d θ = 2 2 0 B ( 2 2 1 , 2 2 1 ) B ( m , n ) is Beta function = Γ ( 2 1 ) 2 2 0 Γ 2 ( 2 2 1 ) Γ ( n ) is Gamma function = 2 0 ! 2 2 0 ⋅ ( 2 1 0 1 9 ! ! ) 2 π = 2 0 ! ( 1 9 ! ! ) 2 π = 2 1 0 1 0 ! 1 9 ! ! π ≈ 0 . 5 5 4
General form: I n = ∫ 0 1 sin n ( x ) d x = n ! ! ( n − 1 ) ! ! π
Firstly, for the general form, the upper limit is pi and the generalised form is not true when n is odd.
Since you wanted a Computer Science solution:
1 2 3 4 5 6 7 8 9 |
|
Bonus:
1 2 3 4 5 6 7 8 9 |
|
Problem Loading...
Note Loading...
Set Loading...
I n = ∫ 0 π sin n x d x = ∫ 0 π sin n − 1 x sin x d x Using Integration by Parts:- I n = 0 − sin n − 1 x cos x ∣ 0 π + ( n − 1 ) ∫ 0 π sin n − 2 x 1 − sin 2 x cos 2 x d x
⟹ I n = ( n − 1 ) ( I n − 2 − I n ) ⟹ I n = n n − 1 ( I n − 2 )
Hence,
I 2 0 = ( 2 0 1 9 ) × ( 1 8 1 7 ) × ( 1 6 1 5 ) × ⋯ × ( 2 1 ) × π I 0
= 2 6 2 1 4 4 4 6 1 8 9 π ≈ 0 . 5 5 3 5 4
Generalised form:- I n = n ! ! ( n − 1 ) ! ! π
(where ! ! is double factorial notation).