How Do You Solve the Integral of Sin^2008(x) from 0 to Infinity?

  • Thread starter siaosi
  • Start date
  • Tags
    Stuck
In summary, this person is trying to find the probability of getting a heads on a coin toss every 2008 times, but they are still confused. They have found that the equation is P2n = ∫0π sin2nx dx and that it works out to be P2(n-1) (2n-1)/2n.
  • #1
siaosi
4
0
Completely stuck with this:

[tex]\int_0^\infty sin^{2008} x dx[/tex]


Any help on how to tackle this please?
 
Physics news on Phys.org
  • #2
What have you tried? (And are you sure you wrote it correctly?)
 
  • #3
Thanks for you prompt reply,

Yes it's written correctly. I've tried a formula that I found in a book, that says it is:

1*3*5*...*(n-1)/2*4*6*...*(n) * pi

But it just can't be as simple as that... I'm sure this is a tricky question.
 
  • #4
Hmm, I have to say that doesn't seem particular plausible. Think of the area under the graph of [tex]\sin^{2008} x[/tex] from 0 to [tex]\infty[/tex]. Did you mistype the integral limits?
 
  • #5
Ok, I have re-checked it, I had it wrong, it is from 0 to pi. Sorry guys.
[tex]\int_0^\pi sin^{2008} x dx[/tex]Still buffed though!
 
  • #6
Hmm well you could apply the usual methods for starting these integrals. Consider breaking down the integral into two (one with limits of integration of 0 to pi/2 and another of pi/2 to pi). Then consider the symmetry of sin(x) to realize that these two integrals are equal. Then try a substitution involving the identity cos(x) = sin(pi/2 - x).

But then again in this case it might complicate the problem. Is there an easy way to factor sin2008(x) + cos2008(x)
 
  • #7
I would suggest you try integration by parts to derive a recursion formula for

[tex]
I_n=\int_0^\pi{dx \sin^nx}
[/tex]Then you can solve this recursion formula and plug in n=2008.
 
  • #8
Pere Callahan said:
I would suggest you try integration by parts to derive a recursion formula for

[tex]
I_n=\int_0^\pi{dx \sin^nx}
[/tex]


Then you can solve this recursion formula and plug in n=2008.

I have seen that recursion formula before and I can tell you without remembering the specifics that 2008 is a high enough number that this approach will probably be not very pleasant.
 
  • #9
snipez90 said:
I have seen that recursion formula before and I can tell you without remembering the specifics that 2008 is a high enough number that this approach will probably be not very pleasant.



I can tell you that the result is not very pleasant:smile:
 
  • #10
Haha, well I didn't mean to be rude, since my approach seemed to get no where. I forgot that [tex]a^n + b^n[/tex] cannot really be factored readily.
 
  • #11
[tex](2n-1)\int_0^{\pi}\,sin^{2n}x\,dx[/tex]

[tex]=\ (2n-1)\int_0^{\pi}\,sin^{2n-2}x\,dx\ -\ \int_0^{\pi}\,(2n-1)\,sin^{2n-2}x\,cos^2xdx[/tex]

[tex]=\ (2n-1)\int_0^{\pi}\,sin^{2n-2}x\,dx\ -\ [sin^{2n-1}x\,cosx]_0^{\pi}\ -\ \int_0^{\pi}\,sin^{2n}x\,dx[/tex]

So [tex]\int_0^{\pi}\,sin^{2n}x\,dx\ =\ \frac{2n-1}{2n}\,\int_0^{\pi}\,sin^{2n-2}x\,dx[/tex] :smile:
 
  • #12
Yes, and the same works if you take n instead of 2n.:smile:
 
  • #13
probability …

Is [tex]\frac{1}{\pi}\,\int_0^\pi sin^{2008} x dx[/tex]

the probability of tossing a coin 2008 times :rolleyes: and getting exactly 1004 heads?

If so, why … ? :confused:

([tex]\int_0^\pi sin^m x dx[/tex] is rational for odd m, and a rational multiple of π for even m)
 
  • #14
How can it be? Tossing a coin is a discrete even -> discrete probability distribution function but integrals are analagous to continuous ones. Or am I misunderstanding your question tiny-tim?
 
  • #15
Well, maybe, Tiny-Tim just observed that the two quantities - the integral on the one hand, and the describes probability - are the same.

The probability of having k heads in 2k tosses is

[tex]
p_{2k}=\left(\stackrel{2k}{k}\right)\left(\frac{1}{2}\right)^{2k}=\frac{(2k!)}{k!k!}\left(\frac{1}{2}\right)^{2k}
[/tex]

On the other hand, from the recursion formula described above one finds (using [itex]I_0=\pi[/itex])

[tex]
\frac{1}{\pi}I_{2k}=\frac{(2k-1)!}{(2k)!}
[/tex]

Now one can use the identites [itex](2k)!=2^k k![/itex] and [itex](2k-1)!=\frac{(2k)!}{2^k k!}[/itex] to find

[tex]
\frac{1}{\pi}I_{2k} = \frac{(2k)!}{2^kk!2^kk!}=p_{2k}
[/tex]

If the question were not about 2008 but some odd number, something similar would probably be true.
 
  • #16
Pere Callahan said:
[tex]\frac{1}{\pi}I_{2k} = \frac{(2k)!}{2^kk!2^kk!}=p_{2k}[/tex]

Yes … but why?

:cry: what does it all mean? :cry:
 
  • #17
I don't know ...
 
  • #18
Wow, thanks for all the answers!

tiny-tim said:
[tex](2n-1)\int_0^{\pi}\,sin^{2n}x\,dx[/tex]

[tex]=\ (2n-1)\int_0^{\pi}\,sin^{2n-2}x\,dx\ -\ \int_0^{\pi}\,(2n-1)\,sin^{2n-2}x\,cos^2xdx[/tex]

[tex]=\ (2n-1)\int_0^{\pi}\,sin^{2n-2}x\,dx\ -\ [sin^{2n-1}x\,cosx]_0^{\pi}\ -\ \int_0^{\pi}\,sin^{2n}x\,dx[/tex]

So [tex]\int_0^{\pi}\,sin^{2n}x\,dx\ =\ \frac{2n-1}{2n}\,\int_0^{\pi}\,sin^{2n-2}x\,dx[/tex] :smile:

I have done my research and from various books I have found the same answer as this. This is all fine, but I have a loooooooong way to reach the number 2008... So I am still confused.
 
  • #19
See posts #7 and #15.
 
  • #20
siaosi said:
I have done my research and from various books I have found the same answer as this. This is all fine, but I have a loooooooong way to reach the number 2008... So I am still confused.

Hi siaosi! :smile:

The best thing to do, if you're confused by complicated equations, is to give things short names so that equatins look really simple.

In this case, define P2n = ∫0π sin2nx dx.

Then that equation was P2n =
P2(n-1) (2n-1)/2n,​

which you can then see is
P2(n-2) (2n-1)(2n-3)/2n(2n-2),​

and so on … until you reach P0, which you can easily work out! :smile:

Now can you see that there's a pattern … so you don't have to worry about making thousands of calculations! :wink:
 

FAQ: How Do You Solve the Integral of Sin^2008(x) from 0 to Infinity?

Why is it important to ask for help when I'm stuck on a supposedly easy task?

Asking for help can save you time and effort in the long run. It allows you to gain a fresh perspective and potentially learn new techniques or approaches that can help you solve the problem. It also prevents frustration and burnout, which can hinder your progress.

How do I determine if the task is actually easy or if I'm just struggling with it?

One way to determine the difficulty of a task is to break it down into smaller, more manageable steps. If you find yourself struggling with each step, then the task may not be as easy as you initially thought. Additionally, seeking feedback from others can also help gauge the difficulty of a task.

What should I do when I feel stuck on a task that should be easy?

Take a step back and give yourself a break. Sometimes, a change in environment or a break from the task can help clear your mind and allow you to approach it with a fresh perspective. You can also try talking through the problem with a colleague or writing down your thoughts to help identify any potential roadblocks.

How can I prevent getting stuck on easy tasks in the future?

One way to prevent getting stuck on easy tasks is to always approach them with a plan or strategy in mind. This can help you stay organized and focused, as well as anticipate any potential challenges. It's also important to continuously learn and stay updated on new techniques and technologies that can make tasks easier.

Is it normal to get stuck on tasks that are supposedly easy?

Yes, it is completely normal to get stuck on tasks that are supposedly easy. Every person has their own strengths and weaknesses, and what may be easy for one person may not be for another. It's important to remember that getting stuck is a part of the learning process and seeking help or finding alternative approaches is perfectly acceptable.

Back
Top