My task is: $\int\frac{\log(|\cot x|)}{\sin^2x}\,dx$
If i try using the formula: $\int f(x)*g'(x) dx = f(x)*g(x) - \int f'(x)*g(x)dx$
At some point it throws out
$\int \tan(x)\,dx$
which even Wolfram says is incalculable on my basic university level.
I can't come up with any good substitution method. Any ideas? Thanks.
Are you sure Wolfram says $\displaystyle\tan x\,\mathrm d x$ is incalculable? It is simply, by the substitution $u=\cos x$, $\color{red}{-\ln(\cos x)}$.
Here, again the substitution $$u=\cot x,\quad\mathrm d u=-\frac1{\sin^2x}\,\mathrm dx,$$ (dropping the absolute value, since the logarithm requires the argument be positive) leads to to a well-known integral $$\int\frac{\ln(\cot x)}{\sin^2x}\,\mathrm dx =-\int\ln u\,\mathrm du= -(u\ln u-u).$$