Integral of $$$\frac{1}{x^{2} - 5 x + 6}$$$
Related calculator: Definite and Improper Integral Calculator
Your Input
Find $$$\int \frac{1}{x^{2} - 5 x + 6}\, dx$$$.
Solution
Perform partial fraction decomposition (steps can be seen »):
$${\color{red}{\int{\frac{1}{x^{2} - 5 x + 6} d x}}} = {\color{red}{\int{\left(- \frac{1}{x - 2} + \frac{1}{x - 3}\right)d x}}}$$
Integrate term by term:
$${\color{red}{\int{\left(- \frac{1}{x - 2} + \frac{1}{x - 3}\right)d x}}} = {\color{red}{\left(\int{\frac{1}{x - 3} d x} - \int{\frac{1}{x - 2} d x}\right)}}$$
Let $$$u=x - 3$$$.
Then $$$du=\left(x - 3\right)^{\prime }dx = 1 dx$$$ (steps can be seen »), and we have that $$$dx = du$$$.
Therefore,
$$- \int{\frac{1}{x - 2} d x} + {\color{red}{\int{\frac{1}{x - 3} d x}}} = - \int{\frac{1}{x - 2} 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)}$$$:
$$- \int{\frac{1}{x - 2} d x} + {\color{red}{\int{\frac{1}{u} d u}}} = - \int{\frac{1}{x - 2} d x} + {\color{red}{\ln{\left(\left|{u}\right| \right)}}}$$
Recall that $$$u=x - 3$$$:
$$\ln{\left(\left|{{\color{red}{u}}}\right| \right)} - \int{\frac{1}{x - 2} d x} = \ln{\left(\left|{{\color{red}{\left(x - 3\right)}}}\right| \right)} - \int{\frac{1}{x - 2} d x}$$
Let $$$u=x - 2$$$.
Then $$$du=\left(x - 2\right)^{\prime }dx = 1 dx$$$ (steps can be seen »), and we have that $$$dx = du$$$.
So,
$$\ln{\left(\left|{x - 3}\right| \right)} - {\color{red}{\int{\frac{1}{x - 2} d x}}} = \ln{\left(\left|{x - 3}\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 - 3}\right| \right)} - {\color{red}{\int{\frac{1}{u} d u}}} = \ln{\left(\left|{x - 3}\right| \right)} - {\color{red}{\ln{\left(\left|{u}\right| \right)}}}$$
Recall that $$$u=x - 2$$$:
$$\ln{\left(\left|{x - 3}\right| \right)} - \ln{\left(\left|{{\color{red}{u}}}\right| \right)} = \ln{\left(\left|{x - 3}\right| \right)} - \ln{\left(\left|{{\color{red}{\left(x - 2\right)}}}\right| \right)}$$
Therefore,
$$\int{\frac{1}{x^{2} - 5 x + 6} d x} = \ln{\left(\left|{x - 3}\right| \right)} - \ln{\left(\left|{x - 2}\right| \right)}$$
Add the constant of integration:
$$\int{\frac{1}{x^{2} - 5 x + 6} d x} = \ln{\left(\left|{x - 3}\right| \right)} - \ln{\left(\left|{x - 2}\right| \right)}+C$$
Answer
$$$\int \frac{1}{x^{2} - 5 x + 6}\, dx = \left(\ln\left(\left|{x - 3}\right|\right) - \ln\left(\left|{x - 2}\right|\right)\right) + C$$$A