# How do you find the indefinite integral of int ( (sin(x))^2 - (cos(x))^2 ) / (sin(x))?

$- \cos x + \cot x + c$
$\int \frac{{\sin}^{2} x - {\cos}^{2} x}{\sin} x \mathrm{dx} = \int \left(\sin x - \cos \frac{x}{\sin x \cdot \sin x}\right) \mathrm{dx}$
$\int \sin x \mathrm{dx} - \int \cot x \cos e c x \mathrm{dx} = - \cos x + \cot x + c$