How do I use trigonometric substitution to rewrite and evaluate
$$\int{\dfrac{x^3}{x^2-1}dx}?$$
I have no trouble using long division of $x^3$ by $x^2-1$ which is $x+\dfrac{x}{x^2-1}$ to get the answer $$\int \left(x+\dfrac{x}{x^2-1}\right)dx=\int x\ dx +\frac12\int \dfrac{2x}{x^2-1}dx$$$$=\frac{x^2}{2}+\frac12\ln|x^2-1|+c$$
but I'm stuck on figuring out an appropriate trigonometric substitution to rewrite this integral.
Any help would be appreciated!
Well, I guess you can put $\;x=\sin u\implies dx=\cos u\,du\;$ , so
$$\int\frac{x^3}{x^2-1}dx=\int\frac{\sin^3u}{\sin^2u-1}\cos u\,du=-\int\frac{\sin^3u}{\cos u}du=-\int\frac{\sin u(1-\cos^2)}{\cos u}du=$$
$$=-\int\frac{\sin u}{\cos u}du+\int \sin u\cos u\,du=\log|\cos u|=\frac12\sin^2u+C$$
You can now go back to $\;x\;$ if you want