How can I evaluate this definite integral with conflicting results?

In summary: Okay so I split the integral into two parts:2I=\pi \left(\int_0^{\pi/2} \frac{\sec^2 dx}{9+\tan^2 x}+\int_{\pi/2}^{\pi} \frac{\sec^2 dx}{9+\tan^2 x}\right)Using the substitution ##\tan x=t##, the integrals cancel but one thing I have noticed that if I separately evaluate the left integral, it turns out to be ##\pi^2/12##... is this a problem?
  • #1
Saitama
4,243
93

Homework Statement


[tex]I=\int_0^{\pi} \frac{xdx}{9\cos^2 x+\sin^2 x}[/tex]


Homework Equations





The Attempt at a Solution


The given integral can be written as
[tex]I=\int_0^{\pi} \frac{(\pi-x)dx}{9\cos^2 x+\sin^2 x}[/tex]
The denominator remains unchanged because ##\cos^2(\pi-x)=-\cos x## and square of it is positive.
Hence
[tex]2I=\int_0^{\pi} \frac{\pi dx}{9\cos^2 x+\sin^2 x}[/tex]
Factoring out ##\cos^2 x## from denominator
[tex]2I=\pi \int_0^{\pi} \frac{\sec^2 x dx}{9+\tan^2 x}[/tex]
Substituting ##\tan x=t##, both the upper and lower limits of the integrand equals zero and hence I=0 but this is wrong. I don't see where I went wrong. :confused:

Any help is appreciated. Thanks!
 
Physics news on Phys.org
  • #2
When you "factor out a cosine" you are dividing other terms by the cosine which introduces a singularity at ##x=\pi/2##.
 
  • #3
Pranav-Arora said:

Homework Statement


[tex]I=\int_0^{\pi} \frac{xdx}{9\cos^2 x+\sin^2 x}[/tex]

Homework Equations



The Attempt at a Solution


The given integral can be written as
[tex]I=\int_0^{\pi} \frac{(\pi-x)dx}{9\cos^2 x+\sin^2 x}[/tex]
The denominator remains unchanged because ##\cos^2(\pi-x)=-\cos x## and square of it is positive.
Hence
[tex]2I=\int_0^{\pi} \frac{\pi dx}{9\cos^2 x+\sin^2 x}[/tex]
Factoring out ##\cos^2 x## from denominator
[tex]2I=\pi \int_0^{\pi} \frac{\sec^2 x dx}{9+\tan^2 x}[/tex]
Substituting ##\tan x=t##, both the upper and lower limits of the integrand equals zero and hence I=0 but this is wrong. I don't see where I went wrong. :confused:

Any help is appreciated. Thanks!
If the anti-derivative was zero at the upper and lower limits, then the integral would be zero.

Here the integrand is positive for all x, so the definite integral cannot possibly be zero.

BTW: How do you figure that the integrand is zero anywhere?
 
  • #4
SammyS said:
BTW: How do you figure that the integrand is zero anywhere?
##\tan x=t##, hence ##\sec^2 xdx=dt##
The lower and upper limits are both equal to zero. Since both the final and initial points are same, the area should be zero and hence, the integrand is zero. This is what I think but this is definitely wrong.

LCKurtz said:
When you "factor out a cosine" you are dividing other terms by the cosine which introduces a singularity at ##x=\pi/2##.

I have no idea about what you said. :(
 
  • #5
Pranav-Arora said:
##\tan x=t##, hence ##\sec^2 xdx=dt##
The lower and upper limits are both equal to zero. Since both the final and initial points are same, the area should be zero and hence, the integrand is zero. This is what I think but this is definitely wrong.

I have no idea about what you said. :(
Graph the integrand.

Sec is in the numerator, and sec(θ) is never zero.
 
  • #6
SammyS said:
Graph the integrand.

Sec is in the numerator, and sec(θ) is never zero.

Yes, I know it is never zero but see the expression I get after substitution.
[tex]2I=\pi \int_0^0 \frac{dt}{9+t^2}[/tex]
How it can turn out to be a non zero value when both the upper and lower limits are same?
 
  • #7
LCKurtz said:
When you "factor out a cosine" you are dividing other terms by the cosine which introduces a singularity at ##x=\pi/2##.


I have no idea about what you said. :(

Then look at your substitution ##\tan x = t##. What happens when ##x = \pi/2##, which is in the middle of your interval? Your integrand may in fact have a removable singularity there, but I would expect problems with the substitution because tangent changes sign passing through a vertical asymptote there.
 
  • #8
LCKurtz said:
Then look at your substitution ##\tan x = t##. What happens when ##x = \pi/2##, which is in the middle of your interval? Your integrand may in fact have a removable singularity there, but I would expect problems with the substitution because tangent changes sign passing through a vertical asymptote there.

##\tan x## shoots upto infinity but why does that pose a problem here? If not substitution, how should I proceed with the problem? Should I split the integral for different intervals (just a wild guess) ?
 
  • #9
Pranav-Arora said:
##\tan x## shoots upto infinity but why does that pose a problem here? If not substitution, how should I proceed with the problem? Should I split the integral for different intervals (just a wild guess) ?

You can't ignore things like that. Otherwise, for example, if you calculate$$
\int_{-1}^1\frac 1 x \, dx = \ln|x|\left. \right|_{-1}^1 = 0 - 0 = 0$$when in fact the integral diverges. I would at least try breaking the integral into two parts working both parts carefully. You will probably find that by overlooking that you have allowed two things to cancel that shouldn't which is why you are getting 0.

Disclaimer: I haven't worked it myself but, hey, that's your job.
 
  • #10
LCKurtz said:
You can't ignore things like that. Otherwise, for example, if you calculate$$
\int_{-1}^1\frac 1 x \, dx = \ln|x|\left. \right|_{-1}^1 = 0 - 0 = 0$$when in fact the integral diverges. I would at least try breaking the integral into two parts working both parts carefully. You will probably find that by overlooking that you have allowed two things to cancel that shouldn't which is why you are getting 0.

Disclaimer: I haven't worked it myself but, hey, that's your job.

Okay so I split the integral into two parts:
[tex]2I=\pi \left(\int_0^{\pi/2} \frac{\sec^2 dx}{9+\tan^2 x}+\int_{\pi/2}^{\pi} \frac{\sec^2 dx}{9+\tan^2 x}\right)[/tex]
Using the substitution ##\tan x=t##, the integrals cancel but one thing I have noticed that if I separately evaluate the left integral, it turns out to be ##\pi^2/12## and the answer given is just the double of this term. I still don't understand what's happening here. :(
 
  • #11
Pranav-Arora said:
Okay so I split the integral into two parts:
[tex]2I=\pi \left(\int_0^{\pi/2} \frac{\sec^2 dx}{9+\tan^2 x}+\int_{\pi/2}^{\pi} \frac{\sec^2 dx}{9+\tan^2 x}\right)[/tex]
Using the substitution ##\tan x=t##, the integrals cancel but one thing I have noticed that if I separately evaluate the left integral, it turns out to be ##\pi^2/12## and the answer given is just the double of this term. I still don't understand what's happening here. :(

What is undoubtedly happening is you are letting the two integrals cancel when they should add. You haven't shown us what the ##t## limits are. These are improper integrals. What are the ##t## limits when you change to$$
2I=\pi \left(\int_{?}^{?} \frac{ dt}{9+t^2}+\int_{?}^{?} \frac{dt}{9+t^2}\right)$$Be careful noting the limits when ##x=\pi/2## are improper and one-sided.
 
  • #12
LCKurtz said:
What is undoubtedly happening is you are letting the two integrals cancel when they should add. You haven't shown us what the ##t## limits are. These are improper integrals. What are the ##t## limits when you change to$$
2I=\pi \left(\int_{?}^{?} \frac{ dt}{9+t^2}+\int_{?}^{?} \frac{dt}{9+t^2}\right)$$Be careful noting the limits when ##x=\pi/2## are improper and one-sided.

So it is infinity on one side and minus infinity on the other?
If it is so, are the limits for first integral 0 to ∞ and for the other its -∞ to 0?
 
  • #13
Pranav-Arora said:
So it is infinity on one side and minus infinity on the other?
If it is so, are the limits for first integral 0 to ∞ and for the other its -∞ to 0?
Yes.
 
  • #14
SammyS said:
Yes.

Thanks a lot both of you. If I use these limits, I get the right answer. :)
 

FAQ: How can I evaluate this definite integral with conflicting results?

What is a definite integral?

A definite integral is a mathematical concept used to calculate the area under a curve in a specific interval. It is represented by the symbol ∫ and has a lower and upper bound, indicating the start and end points of the interval.

How do you evaluate a definite integral?

To evaluate a definite integral, you must first find the anti-derivative of the function inside the integral. Then, you substitute the upper and lower bounds into the anti-derivative and subtract the result. This gives you the value of the definite integral.

What is the significance of a definite integral in real life?

Definite integrals have various applications in real life, such as calculating the area under a velocity-time graph to determine the total distance traveled, finding the net displacement of an object from its velocity-time graph, and determining the total amount of material needed for a construction project based on its shape.

Can definite integrals be used to solve differential equations?

Yes, definite integrals can be used to solve differential equations by finding the anti-derivative of both sides of the equation. This leads to the solution of the differential equation in the form of a definite integral with boundaries.

Are there any limitations to evaluating definite integrals?

Yes, there are some limitations to evaluating definite integrals. Some functions may not have an anti-derivative that can be expressed in terms of elementary functions, making it impossible to evaluate the definite integral analytically. In such cases, numerical methods can be used to approximate the value of the integral.

Similar threads

Back
Top