Integral of tan x sec²x

Join the discussion
Registration is free. Ask a follow-up in this thread, or start your own.
11 replies · 2K views
hasan_researc
Messages
166
Reaction score
0

Homework Statement



What is the integral of tan x sec2x with respect to x?

Homework Equations





The Attempt at a Solution



I have no idea as to how I should proceed!
 
Physics news on Phys.org
Hint: [tex]tanxsec^2xdx=\frac{sinxdx}{cos^3x}[/tex]
 
How can that help? I have no idea!

Also, if we let u = tan x, then we get the limit of sin x as x tends to infinity, which is nonsense.
 
Another hint: sinxdx = d( ... )?
 
hasan_researc said:
How can that help? I have no idea!

Also, if we let u = tan x, then we get the limit of sin x as x tends to infinity, which is nonsense.
As you were told in another thread, the "indefinite" integral is just the anti-derivative. It has nothing to do with a limit at infinity.
To integrate
[tex]\int \frac{sin x}{cos^3 x} dx[/tex]
Let u= cos(x).
 
Even more direct: If u = tanx, du = sec2x dx. The indefinite integral has the form [itex]\int u du[/itex].
 
I don't understand what d(...) actually means. I guess it's a clever way of using calculus that I'm not familiar with. But I have used the substitution u = cos x as follows.

[tex] u = \cos x & \Rightarrow du = - sin x dx \\<br /> \int \frac{\sin x dx}{cos^{3} x} & = - \int\frac{1}{u^3} du \\<br /> & = \frac{1}{2} u^{-2} + c \\<br /> & = \frac{1}{2\cos^{2}x} + c[/tex]

But if I use u = tanx I get the following.

[tex] u = \tan x & \Rightarrow du = sec^{2} x dx \\<br /> \int tan x sec^{2} x dx & = - \intu du \\<br /> & = \frac{1}{2} u^{2} + c \\<br /> & = \frac{tan^{2} x}{2} + c<br /> [/tex]

The two answers are contradictory. Where's the problem?
 
Sorry I made a silly mistake in my Latex code. The correction is:

[tex] \int tan x sec^{2} x dx & = \int u du \\[/tex]
 
And I don't know how to break lines in my Latex code. Sorry for that!
 
hasan_researc said:
The two answers are contradictory. Where's the problem?
They're not contradictory. Use the identity tan2 x + 1 = sec2 x.
 
Ok, so

[tex] \frac{1}{2}\sec^{2} x + c \\<br /> & = \frac{1}{2}\tan^{2} x + \frac{1}{2} + c \\[/tex]

Therefore, the constant of integration resulting from my math is 1/2 + c, whereas the constant of integration in the other result is c. Should we not be worried abt that? Or is it simply an effect of the use of different substitutions at the start of the problem?
 
If you get two different answers from an indefinite integral, they can differ by only a constant. (1/2)sec^2(x) and (1/2)tan^2(x) differ by a constant, which is what vela was saying.