\[\int \tan^{3}x \, dx\]

1
Use Pythagorean Identities: tan2x=sec2x1\tan^{2}x=\sec^{2}x-1.
(sec2x1)tanxdx\int (\sec^{2}x-1)\tan{x} \, dx

2
Expand.
tanxsec2xtanxdx\int \tan{x}\sec^{2}x-\tan{x} \, dx

3
Use Sum Rule: f(x)+g(x)dx=f(x)dx+g(x)dx\int f(x)+g(x) \, dx=\int f(x) \, dx+\int g(x) \, dx.
tanxsec2xdxtanxdx\int \tan{x}\sec^{2}x \, dx-\int \tan{x} \, dx

4
Use Integration by Substitution on tanxsec2xdx\int \tan{x}\sec^{2}x \, dx.
Let u=tanxu=\tan{x}, du=sec2xdxdu=\sec^{2}x \, dx

5
Using uu and dudu above, rewrite tanxsec2xdx\int \tan{x}\sec^{2}x \, dx.
udu\int u \, du

6
Use Power Rule: xndx=xn+1n+1+C\int {x}^{n} \, dx=\frac{{x}^{n+1}}{n+1}+C.
u22\frac{{u}^{2}}{2}

7
Substitute u=tanxu=\tan{x} back into the original integral.
tan2x2\frac{\tan^{2}x}{2}

8
Rewrite the integral with the completed substitution.
tan2x2tanxdx\frac{\tan^{2}x}{2}-\int \tan{x} \, dx

9
Use Trigonometric Integration: the integral of tanx\tan{x} is ln(secx)\ln{(\sec{x})}.
tan2x2ln(secx)\frac{\tan^{2}x}{2}-\ln{(\sec{x})}

10
Add constant.
tan2x2ln(secx)+C\frac{\tan^{2}x}{2}-\ln{(\sec{x})}+C

Done

How can we make this solution more helpful?