Integral of 1/((x − 1)(x + 2))

∫1(x−1)(x+2) dx\int \frac{1}{\left(x - 1\right) \left(x + 2\right)}\,dx = ln⁡∣x−1∣3−ln⁡∣x+2∣3+C\frac{\ln\left|x - 1\right|}{3} - \frac{\ln\left|x + 2\right|}{3} + C

Answer

Indefinite integral
ln⁡∣x−1∣3−ln⁡∣x+2∣3+C\frac{\ln\left|x - 1\right|}{3} - \frac{\ln\left|x + 2\right|}{3} + C

Checked numerically before it is shown

Step-by-step solution

  1. Partial fractions

    Split into partial fractions:

    1(x−1)(x+2)=−13x+6+13x−3\frac{1}{\left(x - 1\right) \left(x + 2\right)} = - \frac{1}{3 x + 6} + \frac{1}{3 x - 3}
  2. Sum rule

    Integrate term by term:

    ∫(−13(x+2)+13(x−1)) dx=∫−13(x+2) dx+∫13(x−1) dx\int \left(- \frac{1}{3 \left(x + 2\right)} + \frac{1}{3 \left(x - 1\right)}\right)\,dx = \int - \frac{1}{3 \left(x + 2\right)}\,dx + \int \frac{1}{3 \left(x - 1\right)}\,dx
  3. Constant multiple rule

    Take the constant factor out of the integral:

    ∫−13(x+2) dx=−13∫1x+2 dx\int - \frac{1}{3 \left(x + 2\right)}\,dx = - \frac{1}{3} \int \frac{1}{x + 2}\,dx
  4. Substitution

    Substitute u=x+2u = x + 2, so du=1 dxdu = 1\,dx.

  5. Change the variable

    Rewrite the integral in the new variable:

    ∫1x+2 dx=∫1u du\int \frac{1}{x + 2}\,dx = \int \frac{1}{u}\,du
  6. Reciprocal rule

    The integral of 1/u is the natural logarithm:

    ∫1u du=ln⁡∣u∣\int \frac{1}{u}\,du = \ln\left|u\right|
  7. Substitute back

    Substitute back u=x+2u = x + 2.

  8. Constant multiple rule

    Take the constant factor out of the integral:

    ∫13(x−1) dx=13∫1x−1 dx\int \frac{1}{3 \left(x - 1\right)}\,dx = \frac{1}{3} \int \frac{1}{x - 1}\,dx
  9. Substitution

    Substitute w=x−1w = x - 1, so dw=1 dxdw = 1\,dx.

  10. Change the variable

    Rewrite the integral in the new variable:

    ∫1x−1 dx=∫1w dw\int \frac{1}{x - 1}\,dx = \int \frac{1}{w}\,dw
  11. Reciprocal rule

    The integral of 1/u is the natural logarithm:

    ∫1w dw=ln⁡∣w∣\int \frac{1}{w}\,dw = \ln\left|w\right|
  12. Substitute back

    Substitute back w=x−1w = x - 1.

  13. Constant of integration

    Add the constant of integration:

    ∫1(x−1)(x+2) dx=ln⁡∣x−1∣3−ln⁡∣x+2∣3+C\int \frac{1}{\left(x - 1\right) \left(x + 2\right)}\,dx = \frac{\ln\left|x - 1\right|}{3} - \frac{\ln\left|x + 2\right|}{3} + C

Change the problem in the solver Integral calculator

Related solved examples