Integral of $$$\frac{1}{1 - x} + \frac{1}{x \ln\left(x\right)}$$$

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

Solution

Integrate term by term:

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

Let $$$u=1 - x$$$.

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

So,

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

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

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

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

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

Recall that $$$u=1 - x$$$:

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

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$$$.

So,

$$- \ln{\left(\left|{x - 1}\right| \right)} + {\color{red}{\int{\frac{1}{x \ln{\left(x \right)}} d x}}} = - \ln{\left(\left|{x - 1}\right| \right)} + {\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)}$$$:

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

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

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

Therefore,

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

Add the constant of integration:

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

Answer

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