1. ## tan reduction formula

So the proof for the reduction formula for [tan(x)]^n I found here, and it makes sense

But I did this and it is very close, but not the same formula, what's wrong?

$\int tan^nx dx = \int tan^n^-^2x *tan^2x dx$
$=\int tan^n^-^2x(sec^2x -1) dx$
$= \int tan^n^-^2x*sec^2x dx - \int tan^n^-^2x dx$

here I did an integration by parts of the first integral above:

$u= tan^n^-^2x,,,,,,,,,,,,,,,dv=sec^2xdx$
$du=(n-2)tan^n^-^3xdx,,,,,,v=tanx$

$uv-\int vdu$

$tan^n^-^1x-(n-2)\int tan^n^-^2xdx - \int tan^n^-^2xdx$

so I get
$\int tan^nx = tan^n^-^1x-(n-1)\int tan^n^-^2xdx$ Where's did I go wrong?

2. The derivative of $\tan^{n-2} x$ is not $(n-2) \tan^{n-3} x$. Do you see why?

3. ## Oh yeah!

Yeah, the Chain Rule. Thanks for the backup