Integral of $$$\ln\left(\frac{1}{1 - x}\right)$$$
Related calculator: Definite and Improper Integral Calculator
Your Input
Find $$$\int \left(- \ln\left(1 - x\right)\right)\, dx$$$.
Solution
The input is rewritten: $$$\int{\ln{\left(\frac{1}{1 - x} \right)} d x}=\int{\left(- \ln{\left(1 - x \right)}\right)d x}$$$.
Apply the constant multiple rule $$$\int c f{\left(x \right)}\, dx = c \int f{\left(x \right)}\, dx$$$ with $$$c=-1$$$ and $$$f{\left(x \right)} = \ln{\left(1 - x \right)}$$$:
$${\color{red}{\int{\left(- \ln{\left(1 - x \right)}\right)d x}}} = {\color{red}{\left(- \int{\ln{\left(1 - x \right)} 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$$$.
The integral can be rewritten as
$$- {\color{red}{\int{\ln{\left(1 - x \right)} d x}}} = - {\color{red}{\int{\left(- \ln{\left(u \right)}\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)} = \ln{\left(u \right)}$$$:
$$- {\color{red}{\int{\left(- \ln{\left(u \right)}\right)d u}}} = - {\color{red}{\left(- \int{\ln{\left(u \right)} d u}\right)}}$$
For the integral $$$\int{\ln{\left(u \right)} d u}$$$, use integration by parts $$$\int \operatorname{g} \operatorname{dv} = \operatorname{g}\operatorname{v} - \int \operatorname{v} \operatorname{dg}$$$.
Let $$$\operatorname{g}=\ln{\left(u \right)}$$$ and $$$\operatorname{dv}=du$$$.
Then $$$\operatorname{dg}=\left(\ln{\left(u \right)}\right)^{\prime }du=\frac{du}{u}$$$ (steps can be seen ») and $$$\operatorname{v}=\int{1 d u}=u$$$ (steps can be seen »).
The integral can be rewritten as
$${\color{red}{\int{\ln{\left(u \right)} d u}}}={\color{red}{\left(\ln{\left(u \right)} \cdot u-\int{u \cdot \frac{1}{u} d u}\right)}}={\color{red}{\left(u \ln{\left(u \right)} - \int{1 d u}\right)}}$$
Apply the constant rule $$$\int c\, du = c u$$$ with $$$c=1$$$:
$$u \ln{\left(u \right)} - {\color{red}{\int{1 d u}}} = u \ln{\left(u \right)} - {\color{red}{u}}$$
Recall that $$$u=1 - x$$$:
$$- {\color{red}{u}} + {\color{red}{u}} \ln{\left({\color{red}{u}} \right)} = - {\color{red}{\left(1 - x\right)}} + {\color{red}{\left(1 - x\right)}} \ln{\left({\color{red}{\left(1 - x\right)}} \right)}$$
Therefore,
$$\int{\left(- \ln{\left(1 - x \right)}\right)d x} = x + \left(1 - x\right) \ln{\left(1 - x \right)} - 1$$
Simplify:
$$\int{\left(- \ln{\left(1 - x \right)}\right)d x} = x - \left(x - 1\right) \ln{\left(1 - x \right)} - 1$$
Add the constant of integration (and remove the constant from the expression):
$$\int{\left(- \ln{\left(1 - x \right)}\right)d x} = x - \left(x - 1\right) \ln{\left(1 - x \right)}+C$$
Answer
$$$\int \left(- \ln\left(1 - x\right)\right)\, dx = \left(x - \left(x - 1\right) \ln\left(1 - x\right)\right) + C$$$A