Compute the indefinite integral
$$\displaystyle \int\tan^{8}{x}dx$$
My Attempt:(proposed solution)
$$\displaystyle \tan{x}=z\Rightarrow dz=(1+\tan^{2}{x})dx$$
$$\displaystyle dx=\frac{dz}{1+z^{2}}$$
$$\displaystyle z^{8}=(1+z^{2})(z^{6}-z^{4}+z^{2}-1)+1$$
$$\displaystyle \int\tan^{8}{x}dx=\int((z^{6}-z^{4}+z^{2}-1))dz+\int dx$$
$$\displaystyle =\frac{\tan^{7}{x}}{7}-\frac{\tan^{5}{x}}{5}+\frac{\tan^{3}{x}}{3}-\tan{x}+x+c$$
Thank you (I learned a lot thanks to you, thank you)
Notice that : $$\int \tan^n x \mathrm{d}x + \int \tan^{n - 2} x \mathrm{d} x = \int (1 + \tan^2 x) \tan^{n - 2} x \mathrm{d} x = \int \tan' x \tan^{n - 2} x \mathrm{d} x = \dfrac{\tan^{n - 1} x}{n - 1}$$