According to the standard integral results, it is known that $\int \csc^2 x \, dx = -\cot x$ since $\frac{d}{dx} \cot x = - \csc^2 x$. However, supposing that this is not known, is there a better method of evaluating $\int \csc^2 x\, dx$ ? I'm still a little new to integration.
Thanks!
$$\csc^2x=1+\cos x\cdot\dfrac{\cos x}{\sin^2x}$$
Integrate both sides, $$\int\csc^2x\ dx=\int\ dx+\int\cos x\cdot\dfrac{\cos x}{\sin^2x}\ dx$$
Now integrating by parts,
$$\int\cos x\cdot\dfrac{\cos x}{\sin^2x}\ dx=\cos x\int\dfrac{\cos x}{\sin^2x}\ dx-\int\left(\dfrac{d(\cos x)}{dx}\int\dfrac{\cos x}{\sin^2x}\ dx\right)dx$$
$$=\cos x\cdot\dfrac1{-\sin x}-\int\dfrac{\sin x}{\sin x}dx=?$$