Integral Help: Solving an Integral with Step-by-Step Guidance

  • Thread starter Thread starter yew_kuan
  • Start date Start date
  • Tags Tags
    Integral
Join the discussion
Ask a follow-up here, or get your own question answered by working scientists, mathematicians and engineers — people, not an autocomplete.
Real named experts · corrections over time · the nuance an AI answer skips
15 replies · 3K views
yew_kuan
Messages
3
Reaction score
0
I need help with the following integral - any help would be appreciated.

[tex]\int_{0}^{\pi}\frac{x dx}{1+cos^2x}[/tex]
 
Physics news on Phys.org
I have an excellent solution, I will post it soon but It will take some time to type up, give me about 15 minutes. It is quite straight forward.
 
Gib Z said:
I have an excellent solution, I will post it soon but It will take some time to type up, give me about 15 minutes. It is quite straight forward.
hurry up! i want to see what you did.
 
You should all be familiar with the identity [tex]\int^a_0 f(x) dx = \int^a_0 f(a-x) dx[/tex].
If you are not, it is equivalent to the substitution u= a-x. Using that:

Let [tex]I = \int^{\pi}_0 \frac{x}{1+\cos^2 x} dx[/tex].
Using the identity : [tex]I = \int^{\pi}_0 \frac{ \pi - x}{1+\cos^2 (\pi-x)} dx[/tex]

It is well known that [itex]cos ( \pi-x) = -\cos x[/itex]. So after splitting the numerator to get 2 separate integrals, it can be easily seen that [tex]I= \int^{\pi}_0 \frac{\pi-x}{1+\cos^2 x} dx[/tex], which can be simplified to:

[tex]\frac{2I}{\pi} = \int^{\pi}_0 \frac{1}{1+\cos^2 x} dx[/tex].

Now we shall create our focus on the remaining integral without the limits:
Let [tex]K= \int \frac{1}{1+\cos^2 x} dx[/tex].

To find K, let [itex]t=\tan (x/2)[/itex]. The details of my working are simple to do on your own (or just trust me, its just simple algebra) or if you are not familiar with the substitution, the following link provides some information on it and you can check my working for yourself: http://www.ucl.ac.uk/Mathematics/geomath/level2/fint/fisub4.html.

Now we find that [tex]K = \int \frac{1+t^2}{1+t^4} dt[/tex]

We now split the denominator into irreducible quadratic factors and apply partial fractions.
Then we have:
[tex]K = \frac{1}{2} \int \left(\frac{1}{t^2+\sqrt{2}t+1} - \frac{1}{-t^2+\sqrt{2}t-1}\right) dx[/tex]

From there you complete the square on the denominators and use the well known integral [itex]\int 1/(x^2+a^2) dx = 1/a \cdot \arctan (x/a)[/itex].

If you want, fill in the gaps of working on your own, otherwise just trust me:
[tex]K = \frac{\sqrt{2}}{2} \left( \arctan (\sqrt{2}t+1) + \arctan (1-\sqrt{2}t)\right)[/tex].

Now that I have the anti derivative, I have to change the bounds of the original integral to suit that now one. I let t= tan(x/2), the bounds being x= pi and x=0.

So new bounds are t= 1 and t=0. Substituting accordingly into the anti derivative:
[tex]\frac{\sqrt{2}}{2} \left( \arctan (\sqrt{2}+1) + \arctan (1-\sqrt{2}) - 2\arctan 1\right)[/tex].

After some simplifications: [tex]I= \frac{\sqrt{2}\pi^2}{8}[/tex]
 
Hold on, I changed the bounds incorrectly, I am so stupid...

O JESUS: I USED A TAN (x/2) SUBSTITUTION WHERE A BOUND IS PI, SHOOT ME, SHOOT ME! ARGH
 
Gib Z said:
Hold on, I changed the bounds incorrectly, I am so stupid...

O JESUS: I USED A TAN (x/2) SUBSTITUTION WHERE A BOUND IS PI, SHOOT ME, SHOOT ME! ARGH
bang :D
 
Ok Continuing from my post from here:
[tex]\frac{2I}{\pi} = \int^{\pi}_0 \frac{1}{1+\cos^2 x} dx[/tex]

What I SHOULD have done, the easiest way, is the use double angle formula for the cos^2, and then use the t= tan (x/2) substitution.

Hence [tex]K = \frac{1}{\sqrt{2}} \arctan \left( \frac{ \tan (x/2) }{\sqrt{2}} \right) + C[/tex].

Now the problem is substituting in the bounds, because of the obvious tan (pi/2) hassles.

So the best possible answer I can give is :

[tex]I = \frac{\pi}{2\sqrt{2}} \lim_{x\to \pi/2} \left( \arctan \left( \frac{ \tan {\pi/2}}{\sqrt{2}} \right ) \right)[/tex]
 
haha its ok I got so caught up with doing it myself, thought it was too hard to be a homework problem >.<"

Well seeing as we only guide, yew_kuan, try splitting the integral into two pieces over the interval in a clever way.
 
Don't worry I got it already :P
 
yew_kuan said:
Don't worry I got it already :P
how did you solve it?

i want to compare methods
 
Pretty much the same as GibZ's - though I used the following observation instead:

[tex]\int^{\pi/2}_0 \frac{1}{1+\cos^2 x} dx = \int^{\pi}_{\pi/2} \frac{1}{1+\cos^2 x} dx[/tex]

I don't think you can do this by parts - or even if you could the integral doesn't seem very amenable to it.
 
no you can't, i made a mistake on that. i was so frustrated that i forgot.

is this Calc 2? i just finished Partial Fractions, I'm not sure if I'm far enough along to solve this type of prob.