Integral of $$$x - \frac{1}{\left(x - 1\right)^{2}}$$$
Related calculator: Definite and Improper Integral Calculator
Your Input
Find $$$\int \left(x - \frac{1}{\left(x - 1\right)^{2}}\right)\, dx$$$.
Solution
Integrate term by term:
$${\color{red}{\int{\left(x - \frac{1}{\left(x - 1\right)^{2}}\right)d x}}} = {\color{red}{\left(\int{x d x} - \int{\frac{1}{\left(x - 1\right)^{2}} d x}\right)}}$$
Apply the power rule $$$\int x^{n}\, dx = \frac{x^{n + 1}}{n + 1}$$$ $$$\left(n \neq -1 \right)$$$ with $$$n=1$$$:
$$- \int{\frac{1}{\left(x - 1\right)^{2}} d x} + {\color{red}{\int{x d x}}}=- \int{\frac{1}{\left(x - 1\right)^{2}} d x} + {\color{red}{\frac{x^{1 + 1}}{1 + 1}}}=- \int{\frac{1}{\left(x - 1\right)^{2}} d x} + {\color{red}{\left(\frac{x^{2}}{2}\right)}}$$
Let $$$u=x - 1$$$.
Then $$$du=\left(x - 1\right)^{\prime }dx = 1 dx$$$ (steps can be seen »), and we have that $$$dx = du$$$.
Therefore,
$$\frac{x^{2}}{2} - {\color{red}{\int{\frac{1}{\left(x - 1\right)^{2}} d x}}} = \frac{x^{2}}{2} - {\color{red}{\int{\frac{1}{u^{2}} d u}}}$$
Apply the power rule $$$\int u^{n}\, du = \frac{u^{n + 1}}{n + 1}$$$ $$$\left(n \neq -1 \right)$$$ with $$$n=-2$$$:
$$\frac{x^{2}}{2} - {\color{red}{\int{\frac{1}{u^{2}} d u}}}=\frac{x^{2}}{2} - {\color{red}{\int{u^{-2} d u}}}=\frac{x^{2}}{2} - {\color{red}{\frac{u^{-2 + 1}}{-2 + 1}}}=\frac{x^{2}}{2} - {\color{red}{\left(- u^{-1}\right)}}=\frac{x^{2}}{2} - {\color{red}{\left(- \frac{1}{u}\right)}}$$
Recall that $$$u=x - 1$$$:
$$\frac{x^{2}}{2} + {\color{red}{u}}^{-1} = \frac{x^{2}}{2} + {\color{red}{\left(x - 1\right)}}^{-1}$$
Therefore,
$$\int{\left(x - \frac{1}{\left(x - 1\right)^{2}}\right)d x} = \frac{x^{2}}{2} + \frac{1}{x - 1}$$
Simplify:
$$\int{\left(x - \frac{1}{\left(x - 1\right)^{2}}\right)d x} = \frac{x^{2} \left(x - 1\right) + 2}{2 \left(x - 1\right)}$$
Add the constant of integration:
$$\int{\left(x - \frac{1}{\left(x - 1\right)^{2}}\right)d x} = \frac{x^{2} \left(x - 1\right) + 2}{2 \left(x - 1\right)}+C$$
Answer
$$$\int \left(x - \frac{1}{\left(x - 1\right)^{2}}\right)\, dx = \frac{x^{2} \left(x - 1\right) + 2}{2 \left(x - 1\right)} + C$$$A