Question:medium

Find the value of \(\displaystyle\int \dfrac{x\,dx}{(x+1)(x+2)}\).

Show Hint

Split into partial fractions: \(\dfrac{x}{(x+1)(x+2)} = -\dfrac{1}{x+1} + \dfrac{2}{x+2}\), then integrate each term.
Updated On: Nov 19, 2026
Show Solution

Solution and Explanation

Step 1: Split the numerator without unknown constants.
The numerator $x$ can be written using the factor $(x+1)$ from the denominator: $x = (x+2) - 2$. This is an alternative to solving for $A$ and $B$.

Step 2: Divide.
\[ \frac{x}{(x+1)(x+2)} = \frac{(x+2) - 2}{(x+1)(x+2)} = \frac{1}{x+1} - \frac{2}{(x+1)(x+2)} \]

Step 3: Split the remaining fraction.
We know that $\dfrac{1}{(x+1)(x+2)} = \dfrac{(x+2)-(x+1)}{(x+1)(x+2)} = \dfrac{1}{x+1} - \dfrac{1}{x+2}$. So
\[ \frac{x}{(x+1)(x+2)} = \frac{1}{x+1} - 2\left(\frac{1}{x+1} - \frac{1}{x+2}\right) = -\frac{1}{x+1} + \frac{2}{x+2} \]

Step 4: Integrate.
Each term is of the form $\int \dfrac{dx}{x+k} = \log|x+k|$.
\[ I = -\log|x+1| + 2\log|x+2| + C \]

Step 5: Check by differentiating.
\[ \frac{d}{dx}\left[2\log|x+2| - \log|x+1|\right] = \frac{2}{x+2} - \frac{1}{x+1} = \frac{2(x+1) - (x+2)}{(x+1)(x+2)} = \frac{x}{(x+1)(x+2)} \]
This is the original integrand, so the answer is right.

Final Answer:
\[ \boxed{\log\left|\frac{(x+2)^2}{x+1}\right| + C} \]
Was this answer helpful?
0