Integrating tan^3 x: Tips and Tricks for Solving ∫tan3x dx

In summary: I'll let you do this one by yourself. I've given you enough hints to make this an easy problem.<IPython.core.display.Latex object>∫tan3x dx = ∫tan x + ∫tan2xI've given you enough hints to make this an easy problem.If it were me, I'd go back and re-think the second step after the "attempt at a solution" part. You're on the right track, but you don't need the ##u## substitution, and your second integral is a bit off.
  • #1
Cali920
17
0

Homework Statement



∫tan3x dx


2. The attempt at a solution
∫tan x + ∫tan2x

∫tan x (sec2x - 1) dx

∫(tan x (sec2x - tan x) dx

∫tan x sec2x dx - ∫tan x dx

u = sec x
du = sec x tan x dx

∫tan x sec x sec x - ∫tan x dx

Now I'm stuck..

∫ du * u - ∫ tan x dx ?
 
Last edited:
Physics news on Phys.org
  • #2
For the second part, tan(x) = sin(x)/cos(x), and a simple u substitution should be fine for that.
 
  • #3
Panphobia said:
For the second part, tan(x) = sin(x)/cos(x), and a simple u substitution should be fine for that.

so ∫ du * u - (sin x /cos x)? What do I do with the du * u? I'm confused...

Thanks for the response! I appreciate it!
 
  • #4
it is ∫ u * du- ∫(sin x /cos x)dx and maybe you should learn the basics of integration before you even use substitution. The integral of x is (x^2)/2, so ∫ u * du = (u^2)/2.
 
  • #5
I presume it was a typo, but of course, "[itex]\int tan^3(x) dx[/itex]" is NOT "[itex]\int tan(x) dx+ \int tan(x) dx[/itex]".

Personally, I would have written this integral as [itex]\int \frac{sin^3(x)}{cos^3(x)} dx[/itex] and used the standard "odd power of sine or cosine" technique: factor out one of the sines to use with the dx:
[tex]\int \frac{sin^2(x)}{cos^3(x)} sin(x)dx= \int \frac{1- cos^2(x)}{cos^3(x)} (sin(x)dx)[/tex]
and let u= cos(x), du= - sin(x)dx, to get
[tex]\int \frac{1- u^2}{u^3} (- du)= -\int (u^{-3}- u^{-1})du= \int (u^{-1}- u^{-3})du[/tex]
 
  • #6
missn525 said:

Homework Statement



∫tan3x dx2. The attempt at a solution
∫tan x + ∫tan2x

HallsofIvy said:
I presume it was a typo, but of course, "[itex]\int tan^3(x) dx[/itex]" is NOT "[itex]\int tan(x) dx+ \int tan(x) dx[/itex]".
Just to set the record straight, ∫tan3x dx ≠ ∫tan x dx + ∫tan2x dx
I think that's what HallsOfIvy was attempting to say, but omitted the exponent on the second integral.
 
  • #7
If you prefer:

##\int tan^3(x) dx = \int (sec^2(x) - 1) tanx dx = \int sec^2(x) tan(x) dx - \int tan(x) dx##

Both the latter integrals can be integrated quite easily. For the integral on the left, set ##u = sec(x) \Rightarrow du = sec(x)tan(x)dx##.
 
  • #8
Yea, I assumed that was a typo since the rest of the work was correct.
 
  • #9
AH! I didn't even realize I did that.

= ∫ tan x * ∫ tan2x
= ∫ tan x (sec2x - 1) dx
= ∫ (tan x sec2x) dx - ∫ (tan x) dx
u = tan x
du = sec2x dx

= ∫ u * du - ∫ u

Is this correct so far?Or can you do two u substitutions?:
AH! I didn't even realize I did that.

= ∫ tan x * ∫ tan2x
= ∫ tan x (sec2x - 1) dx
= ∫ (tan x sec2x) dx - ∫ (tan x) dx
u = tan x & u = cos x
du = sec2x dx & du = -sin x dx?
 
Last edited:
  • #10
missn525 said:
AH! I didn't even realize I did that.

= ∫ tan x * ∫ tan2x
Right off the bat you have a mistake. ∫tan3(x)dx ≠ ∫ tan x dx * ∫ tan2x dx

missn525 said:
= ∫ tan x (sec2x - 1) dx
= ∫ (tan x sec2x) dx - ∫ (tan x) dx
u = tan x
du = sec2x dx

= ∫ u * du - ∫ u

Is this correct so far?
The first integral looks OK, but not the second. It's missing the du factor. In addition, the same substitution you're using in the first integral won't work in the second.
 
  • #11
I believe the OP is confused about the integral operation commuting over multiplication.

Please note:

##\int f(x) g(x) dx ≠ \int f(x) dx \int g(x) dx##

So for example ##\int tan^3(x) dx = \int tan^2(x)tan(x) dx ≠ \int tan^2(x) dx \int tan(x) dx##
 
  • #12
you need sec(x)^2 as a factor

$$\tan^3(x)=\frac{\tan^3(x)}{\tan^2(x)+1}\sec^2(x)=\left( \tan(x) - \frac{\tan(x)}{\tan^2(x)+1} \right) \sec^2(x)$$
 
  • #13
Zondrina said:
I believe the OP is confused about the integral operation commuting over multiplication.

Please note:

##\int f(x) g(x) dx ≠ \int f(x) dx \int g(x) dx##

So for example ##\int tan^3(x) dx = \int tan^2(x)tan(x) dx ≠ \int tan^2(x) dx \int tan(x) dx##

Oh okay. So then what can I do if I can't do ∫ tan x dx * ∫ tan2x dx?
 
  • #14
missn525 said:
Oh okay. So then what can I do if I can't do ∫ tan x dx * ∫ tan2x dx?

Look at post #7, I already gave you most of the work really.

Just note that ##sec^2(x) - tan^2(x) = 1##. Much like ##sin^2(x) + cos^2(x) = 1##. If you want to get your hands dirty, ##csc^2(x) - cot^2(x) = 1## can also be useful for these trig integrals.
 
  • #15
Zondrina said:
If you prefer:

##\int tan^3(x) dx = \int (sec^2(x) - 1) tanx dx = \int sec^2(x) tan(x) dx - \int tan(x) dx##

Both the latter integrals can be integrated quite easily. For the integral on the left, set ##u = sec(x) \Rightarrow du = sec(x)tan(x)dx##.

Zondrina said:
Look at post #7, I already gave you most of the work really.

Just note that ##sec^2(x) - tan^2(x) = 1##. Much like ##sin^2(x) + cos^2(x) = 1##. If you want to get your hands dirty, ##csc^2(x) - cot^2(x) = 1## can also be useful for these trig integrals.

I think I started off doing that originally then got stuck which is why I tried a different u substitution but ->(from my first post):

=∫tan x (sec2x - 1) dx

∫(tan x (sec2x - tan x) dx

∫tan x sec2x dx - ∫tan x dx

u = sec x
du = sec x tan x dx

∫tan x sec x sec x - ∫tan x dx

∫udu - ∫tan x dx ?
 
  • #16
missn525 said:
I think I started off doing that originally then got stuck (from my first post):

=∫tan x (sec2x - 1) dx

∫(tan x (sec2x - tan x) dx

∫tan x sec2x dx - ∫tan x dx

u = sec x
du = sec x tan x dx

∫tan x sec x sec x - ∫tan x dx

∫udu - ∫tan x dx ?

Watch the second line there. You have an extra bracket you don't need.

So far that looks fine. I'm sure you can integrate udu, the second integral can be easily solved by letting ##tan(x) = \frac{sin(x)}{cos(x)}## and making a simple substitution.
 
  • Like
Likes 1 person
  • #17
missn525 said:
Oh okay. So then what can I do if I can't do ∫ tan x dx * ∫ tan2x dx?
Continue what you were doing earlier.
missn525 said:
AH! I didn't even realize I did that.
∫ tan3 x dx
[STRIKE]= ∫ tan x * ∫ tan2x
[/STRIKE]= ∫ tan x (sec2x - 1) dx
= ∫ (tan x sec2x) dx - ∫ (tan x) dx
u = tan x
du = sec2x dx

= ∫ u * du - ∫ u
I've already replied about the first integral being OK, but the second one is not OK.
 
  • #18
Zondrina said:
Watch the second line there. You have an extra bracket you don't need.

So far that looks fine. I'm sure you can integrate udu, the second integral can be easily solved by letting ##tan(x) = \frac{sin(x)}{cos(x)}## and making a simple substitution.

whoops! THANK YOU!

=∫tan x (sec2x - 1) dx

∫(tan x sec2x - tan x) dx

∫tan x sec2x dx - ∫tan x dx

u = sec x
du = sec x tan x dx

∫tan x sec x sec x - ∫tan x dx

∫udu - ∫tan x dx ?

= 1/2 u^2 + C -∫ (sin x / cos x) dx?

so u = cos x?
 
  • #19
missn525 said:
whoops! THANK YOU!

=∫tan x (sec2x - 1) dx

∫(tan x sec2x - tan x) dx

∫tan x sec2x dx - ∫tan x dx


u = sec x
du = sec x tan x dx

∫tan x sec x sec x - ∫tan x dx

∫udu - ∫tan x dx ?

= 1/2 u^2 + C -∫ sin x / cos x dx?

so u = cos x?

While I'm sure you meant ##sec^2(x)## on those lines, you should make it explicit or someone might confuse it for ##sec(2x)##.

Yes ##u = cos(x)## so that ##-du = sin(x) dx##.
 
  • Like
Likes 1 person
  • #20
Zondrina said:
While I'm sure you meant ##sec^2(x)## on those lines, you should make it explicit or someone might confuse it for ##sec(2x)##.

Yes ##u = cos(x)## so that ##-du = sin(x) dx##.

Just didn't copy and paste right. But thanks again! I really appreciate it.

=∫tan x (sec2x - 1) dx

∫(tan x sec2x - tan x) dx

∫tan x sec2x dx - ∫tan x dx

u = sec x
du = sec x tan x dx

∫tan x sec x sec x - ∫tan x dx

∫udu - ∫tan x dx ?

= u2/2 + C -∫ (sin x / cos x) dx

u = cos x
du = - sin x dx → - du = sin x dx

so then u2/2 + C + du/u?
 
Last edited:
  • #21
missn525 said:
Just didn't copy and paste right. But thanks again! I really appreciate it.

=∫tan x (sec2x - 1) dx

∫(tan x sec2x - tan x) dx

∫tan x sec2x dx - ∫tan x dx

u = sec x
du = sec x tan x dx

∫tan x sec x sec x - ∫tan x dx

∫udu - ∫tan x dx ?

= u2/2 + C -∫ (sin x / cos x) dx

u = cos x
du = - sin x dx → - du = sin x dx

so then u2/2 + C + du/u?

Close, but watch your negative sign, it doesn't just 'disappear' because you integrated. The integrand itself looks fine though.
 
  • #22
Zondrina said:
Close, but watch your negative sign, it doesn't just 'disappear' because you integrated. The integrand itself looks fine though.

I made it positive I thought? because it was - - du/u?
 
  • #23
missn525 said:
so then u2/2 + C + du/u?
How did ∫du/u become just du/u?

The integral sign shouldn't just disappear.
 
  • Like
Likes 1 person
  • #24
missn525 said:
I made it positive I thought? because it was - - du/u?

Looks like you knew the answer already then, I should've read that more carefully. I just knew that ##\int tan(x) dx = - ln|cos(x)| + c = ln|sec(x)| + c##. So I jumped a bit there by accident and forgot the negative myself.
 
  • #25
Mark44 said:
How did ∫du/u become just du/u?

The integral sign shouldn't just disappear.

Zondrina said:
Looks like you knew the answer already then, I should've read that more carefully. I just knew that ##\int tan(x) dx = - ln|cos(x)| + c = ln|sec(x)| + c##. So I jumped a bit there by accident and forgot the negative myself.

That's okay! Thank you! & I forgot to put the sign in there! THANK YOU Mark44!

u = cos x
du = - sin x dx → - du = sin x dx

so then u2/2 + C + ∫ du/u

Okay, but I'm not sure where to go from here or how to integrate du/u?
 
  • #26
$$\int \! \frac{\mathrm{d}u}{u}=\log(|u|)+\mathrm{Constant}$$
 
  • Like
Likes 1 person
  • #27
lurflurf said:
$$\int \! \frac{\mathrm{d}u}{u}=\log(|u|)+\mathrm{Constant}$$

Thank you! Is that a rule?

u = cos x
du = - sin x dx → - du = sin x dx

= u2/2 + C + ∫ du/u
= u2/2 + C + log (|u|) + C

then plug back in u?

= u2/2 + C + log (|cos x|) + C?
 
  • #28
wait I think there is a sign mishap somewhere if we put the integral sign back in...oh no.
 
  • #29
u = cos x
du = - sin x dx → -du = sin x dx

= u2/2 + C - ∫ -du/u
= u2/2 + C - (- [log (|u|) + C])?
 
  • #30
missn525 said:
wait I think there is a sign mishap somewhere if we put the integral sign back in...oh no.

No that looks fine. Except you have another ##u## sitting around that you need to sub back in for. You can also combine both constant terms into one constant term. Call it ##C##.

Yes it is also a rule that ##\int \frac{1}{x} dx = ln|x|##.

##\int x^n dx =##

##\frac{x^{n+1}}{n+1}## if ##n ≠ -1##

##\ln|x|## if ##n = -1##
 
  • Like
Likes 1 person
  • #31
Zondrina said:
No that looks fine. Except you have another ##u## sitting around that you need to sub back in for. You can also combine both constant terms into one constant term. Call it ##C##.

Yes it is also a rule that ##\int \frac{1}{x} dx = ln|x|##.

##\int \frac{1}{x^n} =##

##\frac{x^{n+1}}{n+1}## if ##n ≠ 1##

##ln|x|## if ##n = 1##


So then
= u2/2 + C + ∫ du/u
= u2/2 + ln (|u|) + C
= u2/2 + ln (|cos x|) + C?
= (sec x)2/2 + ln (|cos x|) + C?
 
  • #32
missn525 said:
So then
= u2/2 + C + ∫ du/u
= u2/2 + ln (|u|) + C
= u2/2 + ln (|cos x|) + C?
= (sec x)2/2 + ln (|cos x|) + C?

Yes that looks good now.
 
  • #33
Zondrina said:
Yes that looks good now.

Is there anything left?
 
  • #34
Thanks for all the help!
 
Last edited:

1. What is the general strategy for integrating tan^3 x?

The general strategy for integrating tan^3 x is to rewrite the integral in terms of sine and cosine using the trigonometric identity tan x = sin x / cos x. Then, use u-substitution or integration by parts to solve for the integral.

2. What is the trigonometric identity used to rewrite tan^3 x?

The trigonometric identity used to rewrite tan^3 x is tan^3 x = (sin^3 x) / (cos^3 x).

3. Can integration by parts be used to solve the integral of tan^3 x?

Yes, integration by parts can be used to solve the integral of tan^3 x. However, it may require multiple iterations of the integration by parts formula.

4. Are there any special cases or exceptions when integrating tan^3 x?

Yes, there are special cases and exceptions when integrating tan^3 x. For example, if the integral is in the form of ∫tan^3 x sec^2 x dx, it can be solved using the substitution u = tan x. Additionally, if the integral is in the form of ∫tan^3 x cos^2 x dx, it can be solved using the substitution u = cos x.

5. Are there any tips or tricks for solving the integral of tan^3 x?

One tip for solving the integral of tan^3 x is to always check for any trigonometric identities that can be used to rewrite the integral. Additionally, using the substitution u = tan x or u = cos x can often simplify the integral and make it easier to solve.

Similar threads

  • Calculus and Beyond Homework Help
Replies
8
Views
752
  • Calculus and Beyond Homework Help
Replies
5
Views
1K
  • Calculus and Beyond Homework Help
Replies
3
Views
333
  • Calculus and Beyond Homework Help
Replies
15
Views
1K
  • Calculus and Beyond Homework Help
Replies
2
Views
863
  • Calculus and Beyond Homework Help
Replies
22
Views
1K
  • Calculus and Beyond Homework Help
Replies
6
Views
746
  • Calculus and Beyond Homework Help
Replies
2
Views
236
  • Calculus and Beyond Homework Help
Replies
3
Views
1K
  • Calculus and Beyond Homework Help
Replies
19
Views
1K
Back
Top