Integrating Trig Functions: How to Solve for the Integral of tan x sec2x?

Click For Summary
The integral of tan x sec²x can be approached using substitution methods. By letting u = tan x, the integral simplifies to ∫u du, leading to the result of (1/2)tan²x + c. Alternatively, using u = cos x results in a different expression, (1/2)sec²x + c, but both answers differ only by a constant due to the identity tan²x + 1 = sec²x. The discussion clarifies that variations in substitution methods yield equivalent results in indefinite integrals, differing only by a constant. Understanding these relationships is crucial for solving integrals effectively.
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: tanxsec^2xdx=\frac{sinxdx}{cos^3x}
 
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
\int \frac{sin x}{cos^3 x} dx
Let u= cos(x).
 
Even more direct: If u = tanx, du = sec2x dx. The indefinite integral has the form \int u du.
 
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.

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

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

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

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

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

<br /> \frac{1}{2}\sec^{2} x + c \\<br /> &amp; = \frac{1}{2}\tan^{2} x + \frac{1}{2} + c \\<br />

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?
 
  • #12
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.
 

Similar threads

  • · Replies 3 ·
Replies
3
Views
2K
Replies
3
Views
2K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 22 ·
Replies
22
Views
2K
  • · Replies 18 ·
Replies
18
Views
3K
Replies
19
Views
2K
  • · Replies 22 ·
Replies
22
Views
3K
  • · Replies 8 ·
Replies
8
Views
2K
Replies
3
Views
2K
  • · Replies 5 ·
Replies
5
Views
1K