Integral of $$$\frac{\tan{\left(\ln\left(x\right) \right)}}{x}$$$

The calculator will find the integral/antiderivative of $$$\frac{\tan{\left(\ln\left(x\right) \right)}}{x}$$$, 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{\tan{\left(\ln\left(x\right) \right)}}{x}\, dx$$$.

Solution

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

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

The integral becomes

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

Rewrite the tangent as $$$\tan\left( u \right)=\frac{\sin\left( u \right)}{\cos\left( u \right)}$$$:

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

Let $$$v=\cos{\left(u \right)}$$$.

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

Therefore,

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

Apply the constant multiple rule $$$\int c f{\left(v \right)}\, dv = c \int f{\left(v \right)}\, dv$$$ with $$$c=-1$$$ and $$$f{\left(v \right)} = \frac{1}{v}$$$:

$${\color{red}{\int{\left(- \frac{1}{v}\right)d v}}} = {\color{red}{\left(- \int{\frac{1}{v} d v}\right)}}$$

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

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

Recall that $$$v=\cos{\left(u \right)}$$$:

$$- \ln{\left(\left|{{\color{red}{v}}}\right| \right)} = - \ln{\left(\left|{{\color{red}{\cos{\left(u \right)}}}}\right| \right)}$$

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

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

Therefore,

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

Add the constant of integration:

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

Answer

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


Please try a new game Rotatly