Skip to content
Worked Examples · Example 11

Q.Find ∫dx(x+1)(x+2)\int \dfrac{dx}{(x+1)(x+2)}

Yanam BieapTextbookSubjective· 3mImportance★★★★★
Appeared in past exams:KCET 2025· Set A-1· 1mexact
32% · 121/373 Questions
✓ Free question

We decompose the integrand into simpler fractions using Partial Fraction Decomposition, then integrate each term separately. The result is log⁡∣x+1x+2∣+C\boxed{\log\left|\frac{x+1}{x+2}\right| + C}.

The key idea here is that the integrand 1(x+1)(x+2)\frac{1}{(x+1)(x+2)} is a rational function whose denominator factors into two distinct linear factors. When you have such a product in the denominator, you can break the fraction into a sum of two simpler fractions — each with one of the linear factors in the denominator. This is called Partial Fraction Decomposition.

Why does this help? Because integrating 1x+1\frac{1}{x+1} or 1x+2\frac{1}{x+2} is immediate — each gives a natural logarithm. But integrating the original product form directly is not obvious. So we rewrite the problem into something we already know how to handle.

Let’s work through it step by step.

  1. Set up the decomposition. We want constants AA and BB such that:

1(x+1)(x+2)=Ax+1+Bx+2\frac{1}{(x+1)(x+2)} = \frac{A}{x+1} + \frac{B}{x+2}

This equality must hold for all xx (except where denominators vanish).

  1. Clear the denominators. Multiply both sides by (x+1)(x+2)(x+1)(x+2):

1=A(x+2)+B(x+1)1 = A(x+2) + B(x+1)

This is an identity in xx.

  1. Solve for AA and BB. Expand the right-hand side:

1=Ax+2A+Bx+B=(A+B)x+(2A+B)1 = A x + 2A + B x + B = (A+B)x + (2A + B)

For this to hold for all xx, the coefficients of xx and the constant term must match on both sides. So:

{A+B=0(coefficient of x)2A+B=1(constant term)\begin{cases} A + B = 0 \quad \text{(coefficient of }x\text{)} \\ 2A + B = 1 \quad \text{(constant term)} \end{cases}

From the first equation, B=−AB = -A. Substitute into the second:

2A−A=1  ⟹  A=12A - A = 1 \implies A = 1

Then B=−1B = -1.

Tip

A faster method: substitute convenient xx values.

Put x=−1x = -1: then 1=A(−1+2)+B(0)  ⟹  A=11 = A(-1+2) + B(0) \implies A = 1.

Put x=−2x = -2: then 1=A(0)+B(−2+1)  ⟹  B=−11 = A(0) + B(-2+1) \implies B = -1.

This avoids solving a system — handy in exams.

  1. Rewrite the integral. Now we have:

∫dx(x+1)(x+2)=∫(1x+1−1x+2)dx\int \frac{dx}{(x+1)(x+2)} = \int \left( \frac{1}{x+1} - \frac{1}{x+2} \right) dx

  1. Integrate term by term. Each integral is a standard form:

∫1x+1 dx=log⁡∣x+1∣+C1,∫1x+2 dx=log⁡∣x+2∣+C2\int \frac{1}{x+1} \, dx = \log|x+1| + C_1, \quad \int \frac{1}{x+2} \, dx = \log|x+2| + C_2

Combining constants:

∫dx(x+1)(x+2)=log⁡∣x+1∣−log⁡∣x+2∣+C\int \frac{dx}{(x+1)(x+2)} = \log|x+1| - \log|x+2| + C

  1. Simplify using logarithm properties. The difference of logs is the log of a quotient:

log⁡∣x+1∣−log⁡∣x+2∣=log⁡∣x+1x+2∣\log|x+1| - \log|x+2| = \log\left|\frac{x+1}{x+2}\right|

So the final antiderivative is:

log⁡∣x+1x+2∣+C\log\left|\frac{x+1}{x+2}\right| + C

Watch out

A common mistake is to forget the absolute values inside the logarithms. Since the argument of a log must be positive, we use ∣⋅∣| \cdot | to ensure the expression is defined for all xx except the poles at x=−1x = -1 and x=−2x = -2. Also, don’t forget the constant of integration CC — it’s part of every indefinite integral.

✓Final answer

The integral evaluates to log⁡∣x+1x+2∣+C\boxed{\log\left|\frac{x+1}{x+2}\right| + C}.

Unlock everything free for 14 days

  • Full step-by-step solutions
  • Concept-first explanations
  • Methods, shortcuts & mistakes
  • PYQ mapping + timed mock tests

Full access for 14 days. No credit card required.