Is this Tricky Definite Integral Solvable?

Join the discussion
Registration is free. Ask a follow-up in this thread, or start your own.
22 replies · 3K views
pierce15
Messages
313
Reaction score
2
1. The problem, the whole problem, and nothing but the problem

[tex]\int_0^\pi \frac{x \cdot sin(x)}{1+cos^2(x)} \, dx[/tex]

Homework Equations



Integration by parts
trig substitution

The Attempt at a Solution



My first idea was to break up the integral by letting [itex]u=x[/itex] and [itex]dv=sin(x)/(1+cos^2 x)[/itex]. I will omit the work, but it got me here:

[tex]\int_0^\pi \frac{x \cdot sin(x)}{1+cos^2(x)} \, dx = (x \cdot tan^{-1} (cos(x)) \big|_0^\pi - \int_0^\pi tan^{-1}(cos(x)) \, dx[/tex]

I am fairly sure that I arrived at the second integral correctly. Is it integrateable, if that's a word?
 
Last edited:
Physics news on Phys.org
piercebeatz said:
1. The problem, the whole problem, and nothing but the problem

[tex]\int_0^\pi \frac{x \cdot sin(x)}{1+cos^2(x)} \, dx[/tex]

Homework Equations



Integration by parts
trig substitution

The Attempt at a Solution



My first idea was to break up the integral by letting [inline]u=x[/inline] and [inline]dv=sin(x)/(1+cos^2 x)[/inline]. I will omit the work, but it got me here:

[tex]\int_0^\pi \frac{x \cdot sin(x)}{1+cos^2(x)} \, dx = (x \cdot tan^{-1} (cos(x)) \big|_0^\pi - \int_0^\pi tan^{-1}(cos(x)) \, dx[/tex]

I am fairly sure that I arrived at the second integral correctly. Is it integrateable, if that's a word?

Also, what is the inline command? I forget it every time I go on this sight.

[itex]works for inline. For the integral, it is a trick. Try substituting u=pi-x. Finding an indefinite integral is really pretty hopeless.[/itex]
 
Last edited:
[tex]- \int_0^\pi tan^{-1} cos(x) \, dx[/tex]
[tex]u= \pi-x, du=- dx[/tex]
[tex]\int_\pi^0 tan^{-1} cos(\pi-u) \, du[/tex]
[tex]- \int_0^\pi tan^{-1}(cos(\pi)cos(u) + sin(\pi)sin(u)) \, du[/tex]
[tex]- \int_0^\pi tan^{-1}(-cos(u)) \, du[/tex]
[tex]\int_0^\pi tan^{-1}cos(u) \, du[/tex]

Hmm... does that mean that since the top equation is equal to the bottom, and they are negatives, the integral must be 0?
 
Last edited:
piercebeatz said:
[tex]- \int_0^\pi tan^{-1} cos(x) \, dx[/tex]
[tex]u= \pi-x, du=-x \, dx[/tex]
[tex]\int_\pi^0 tan^{-1} sin(u) \, du[/tex]
[tex]-\int_0^\pi tan^{-1} sin(u) \, du[/tex]

OK, what now? Maybe:

[tex]\int_0^\pi tan^{-1} sin(u) \, du = \int_0^\pi tan^{-1} cos(x) \, dx[/tex]

Is that what you had in mind?

I meant you to use that substitution in the original integral. You should get the original integral back with a different sign plus something you can integrate. Equate it to the original integral.
 
[tex]\int_0^\pi \frac{x \cdot sin(x)}{1+cos^2x} \, dx[/tex]
[tex]u=\pi-x, du=-1[/tex]
[tex]- \int_\pi^0 \frac{(\pi-u)(sin(\pi-u))}{1+cos^2(\pi-u)} \, du[/tex]
[tex]\int_0^\pi \frac{(\pi-u)(-sin(u))}{1+ cos^2(\pi-u)} \, du[/tex]
[tex]-\int_0^\pi \frac{sin(u)(\pi-u)}{1+ cos^2(\pi-u)} \, du[/tex]
[tex]-\int_0^\pi \frac{sin(u)(\pi-u)}{1+ (-cos(u))^2} \, du[/tex]
[tex]-\int_0^\pi \frac{sin(u)(\pi-u)}{1+ cos^2u} \, du[/tex]
[tex]-\pi \int_0^\pi \frac{sin(u)}{1+ cos^2u} \, du + \int_0^\pi \frac{u \cdot sin(u)}{1+ cos^2u}[/tex]
[tex]v=cos(u), dv=-sin(u) \, du[/tex]
[tex]\pi \int_1^{-1} \frac{dv}{1+v^2} + \int_0^\pi \frac{u \cdot sin(u)}{1+ cos^2u}[/tex]
Going back to the beginning:

[tex]\int_0^\pi \frac{x \cdot sin(x)}{1+cos^2x} \, dx = -\pi \int_{-1}^1 \frac{dv}{1+v^2} + \int_0^\pi \frac{u \cdot sin(u)}{1+ cos^2u}[/tex]

[tex]0=\int_{-1}^1 \frac{dv}{1+v^2}[/tex]

Am I on the right track?
 
Last edited:
piercebeatz said:
[tex]\int_0^\pi \frac{x \cdot sin(x)}{1+cos^2x} \, dx[/tex]
[tex]u=\pi-x, du=-1[/tex]
[tex]- \int_\pi^0 \frac{(\pi-u)(sin(\pi-u))}{1+cos^2(\pi-u)} \, du[/tex]
[tex]\int_0^\pi \frac{(\pi-u)(-sin(u))}{1+ cos^2(\pi-u)} \, du[/tex]
[tex]-\int_0^\pi \frac{sin(u)(\pi-u)}{1+ cos^2(\pi-u)} \, du[/tex]
[tex]-\int_0^\pi \frac{sin(u)(\pi-u)}{1+ (-cos(u))^2} \, du[/tex]
[tex]-\int_0^\pi \frac{sin(u)(\pi-u)}{1+ cos^2u} \, du[/tex]

What now?

First fix an error. sin(pi-u)=sin(u). Then break it into two integrals.
 
[tex]\int_0^\pi \frac{x \cdot sin(x)}{1+cos^2x} \, dx[/tex]
[tex]u=\pi-x, du=-1[/tex]
[tex]- \int_\pi^0 \frac{(\pi-u)(sin(\pi-u))}{1+cos^2(\pi-u)} \, du[/tex]
[tex]\int_0^\pi \frac{(\pi-u)(sin(u))}{1+ cos^2(\pi-u)} \, du[/tex]
[tex]\int_0^\pi \frac{sin(u)(\pi-u)}{1+ cos^2(\pi-u)} \, du[/tex]
[tex]\int_0^\pi \frac{sin(u)(\pi-u)}{1+ (-cos(u))^2} \, du[/tex]
[tex]\int_0^\pi \frac{sin(u)(\pi-u)}{1+ cos^2u} \, du[/tex]
[tex]\pi \int_0^\pi \frac{sin(u)}{1+ cos^2u} \, du - \int_0^\pi \frac{u \cdot sin(u)}{1+ cos^2u}[/tex]
[tex]v=cos(u), dv=-sin(u) \, du[/tex]
[tex]\pi \int_1^{-1} \frac{dv}{1+v^2} - \int_0^\pi \frac{u \cdot sin(u)}{1+ cos^2u} \, du[/tex]

Is the following OK:

[tex]I = \int_0^\pi \frac{x \cdot sin(x)}{1+cos^2x} \, dx = \pi \int_{-1}^1 \frac{dv}{1+v^2} - \int_0^\pi \frac{u \cdot sin(u)}{1+ cos^2u}[/tex]

[tex]2I = \pi \int_{-1}^1 \frac{dv}{1+v^2}[/tex]

If so, how can I evaluate this integral?
 
piercebeatz said:
Am I on the right track?

You know, having to constantly go back and check whether you have reedited a past post really sucks. Use preview to see whether you have what you want, then just LEAVE IT. If you change your mind, just post the correction. Don't go back and change the past. And yes, your result is fine.
 
Dick said:
You know, having to constantly go back and check whether you have reedited a past post really sucks. Use preview to see whether you have what you want, then just LEAVE IT. If you change your mind, just post the correct. Don't go back and change the past.

Sorry
 
Dick said:
S'ok. Just advice for the future. But you got the right answer.

So the answer is just 0?
 
piercebeatz said:
[tex]2I = \pi \int_{-1}^1 \frac{dv}{1+v^2}[/tex]

If so, how can I evaluate this integral?

Now I forgot to quote the integral. Doesn't look like zero to me.
 
Dick said:
It's an arctan, isn't it? Why do you think it's zero?

Oh, right. I'm pretty tired right now. Just did out the trig substitution and verified that it's 0. How did you know to make the substitution u=pi-x?
 
[itex]1/(1+v^2)[/itex] is also an even function which is probably enough to show that the answer is 0, considering that the upper limit is equal to the lower limit
 
piercebeatz said:
Oh, right. I'm pretty tired right now. Just did out the trig substitution and verified that it's 0. How did you know to make the substitution u=pi-x?

Tired, ok. But it's NOT zero. Check it in the morning if that works better. I guessed to do the substitution because I've seen problems like this before. Just experience.
 
piercebeatz said:
[itex]1/(1+v^2)[/itex] is also an even function which is probably enough to show that the answer is 0, considering that the upper limit is equal to the lower limit

Wrong. Get some sleep if you need to.
 
Dick said:
Tired, ok. But it's NOT zero. Check it in the morning if that works better. I guessed to do the substitution because I've seen problems like this before. Just experience.

[tex]\int_{-1}^1 \frac{dv}{v^2+1}[/tex]
[tex]v= tan\theta, dv=sec^2\theta d\theta[/tex]
[tex]\int_{-\pi/4}^{\pi/4} \frac{sec^2 \theta}{sec^2 \theta} d\theta[/tex]
[tex]\int_{-\pi/4}^{\pi/4} \theta d\theta[/tex]
[tex]\frac{\theta^2}{2} \big|_{-\pi/4}^{\pi/4}[/tex]
[tex](\pi/4)^2/2 - (-\pi/4)^2/2[/tex]

Alright, I see that I'm wrong by looking at the graph. What's the problem here?
 
piercebeatz said:
[tex]\int_{-1}^1 \frac{dv}{v^2+1}[/tex]
[tex]v= tan\theta, dv=sec^2\theta d\theta[/tex]
[tex]\int_{-\pi/4}^{\pi/4} \frac{sec^2 \theta}{sec^2 \theta} d\theta[/tex]
[tex]\int_{-\pi/4}^{\pi/4} \theta d\theta[/tex]
[tex]\frac{\theta^2}{2} \big|_{-\pi/4}^{\pi/4}[/tex]
[tex](\pi/4)^2/2 - (-\pi/4)^2/2[/tex]

Alright, I see that I'm wrong by looking at the graph. What's the problem here?

Now you are making me sleepy. sec(θ)^2/sec(θ)^2 isn't θ. It's 1.
 
[tex]\theta \big|_{-\pi/4}^{\pi/4} = \pi/2[/tex]
[tex]2I= \pi/2[/tex]
[tex]I = \pi/4[/tex]

Were there any arithmetic errors in there? haha
 
piercebeatz said:
[tex]\theta \big|_{-\pi/4}^{\pi/4} = \pi/2[/tex]
[tex]2I= \pi/2[/tex]
[tex]I = \pi/4[/tex]

Were there any arithmetic errors in there? haha

Sadly, yes. You dropped the factor of pi you had correct in post 7. You would do it easily with the hint I gave you if you were less tired.
 
Alright, so [itex]I = \pi^2/4[/itex]. Thank you very much for the help, now I'm going to get some beauty sleep