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

  • Thread starter yew_kuan
  • Start date
  • Tags
    Integral
In summary, the conversation discusses a complicated integral and various methods for solving it. The individual seeking help initially provides information about the integral and asks for assistance. Another person offers a solution using a well-known identity and a substitution, but later realizes a mistake and corrects it. Another person suggests a slightly different approach. Eventually, someone else provides a link with the correct solution.
  • #1
yew_kuan
3
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
  • #2
Wow. I put it into mathematica, and the answer is like 12 terms long. I would also like to see if someone can solve this is a straight-forward enough manner.
 
  • #3
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.
 
  • #4
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.
 
  • #5
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]
 
  • #6
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
 
  • #7
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
 
  • #8
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]
 
  • #10
Please don't post complete solutions to homework problems. :-p

(If you want the text of your posts back, I can send them to you)
 
  • #11
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.
 
  • #12
Don't worry I got it already :P
 
  • #13
Okay, I'll restore the posts, since others might want to see!
 
  • #14
yew_kuan said:
Don't worry I got it already :P
how did you solve it?

i want to compare methods
 
  • #15
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.
 
  • #16
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.
 

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

What is an integral?

An integral is a mathematical concept that represents the area under a curve in a graph. It is used to find the total value or quantity of a continuously changing function.

Why do I need help with solving an integral?

Solving integrals can be a complex and time-consuming task, especially for beginners. Having step-by-step guidance can make the process easier and more efficient.

How does "Integral Help" provide step-by-step guidance?

"Integral Help" is a tool that uses algorithms and pre-programmed steps to guide you through the process of solving an integral. It breaks down each step and provides explanations along the way.

Can "Integral Help" solve any type of integral?

Yes, "Integral Help" is designed to solve a wide range of integrals, including basic integrals, definite integrals, improper integrals, and multivariable integrals.

Is "Integral Help" a substitute for understanding the concept of integrals?

No, "Integral Help" is meant to assist in solving integrals, but it is not a substitute for understanding the concept itself. It is important to have a basic understanding of integrals in order to use the tool effectively.

Back
Top