Integral of $$$\frac{\cos{\left(x \right)}}{\sin{\left(x \right)}}$$$

The calculator will find the integral/antiderivative of $$$\frac{\cos{\left(x \right)}}{\sin{\left(x \right)}}$$$, with steps shown.

Related calculator: Definite and Improper Integral Calculator

Please write without any differentials such as $$$dx$$$, $$$dy$$$ etc.
Leave empty for autodetection.

If the calculator did not compute something or you have identified an error, or you have a suggestion/feedback, please contact us.

Your Input

Find $$$\int \frac{\cos{\left(x \right)}}{\sin{\left(x \right)}}\, dx$$$.

Solution

Let $$$u=\sin{\left(x \right)}$$$.

Then $$$du=\left(\sin{\left(x \right)}\right)^{\prime }dx = \cos{\left(x \right)} dx$$$ (steps can be seen »), and we have that $$$\cos{\left(x \right)} dx = du$$$.

Therefore,

$${\color{red}{\int{\frac{\cos{\left(x \right)}}{\sin{\left(x \right)}} d x}}} = {\color{red}{\int{\frac{1}{u} d u}}}$$

The integral of $$$\frac{1}{u}$$$ is $$$\int{\frac{1}{u} d u} = \ln{\left(\left|{u}\right| \right)}$$$:

$${\color{red}{\int{\frac{1}{u} d u}}} = {\color{red}{\ln{\left(\left|{u}\right| \right)}}}$$

Recall that $$$u=\sin{\left(x \right)}$$$:

$$\ln{\left(\left|{{\color{red}{u}}}\right| \right)} = \ln{\left(\left|{{\color{red}{\sin{\left(x \right)}}}}\right| \right)}$$

Therefore,

$$\int{\frac{\cos{\left(x \right)}}{\sin{\left(x \right)}} d x} = \ln{\left(\left|{\sin{\left(x \right)}}\right| \right)}$$

Add the constant of integration:

$$\int{\frac{\cos{\left(x \right)}}{\sin{\left(x \right)}} d x} = \ln{\left(\left|{\sin{\left(x \right)}}\right| \right)}+C$$

Answer

$$$\int \frac{\cos{\left(x \right)}}{\sin{\left(x \right)}}\, dx = \ln\left(\left|{\sin{\left(x \right)}}\right|\right) + C$$$A


Please try a new game Rotatly