Step 1: Understanding the Concept.
The integrand is a proper rational function, because the numerator has degree 1 and the denominator has degree 2. Such a function is integrated by splitting it into partial fractions.
Step 2: Key Formula or Approach.
Write \(\dfrac{x}{(x+1)(x+2)} = \dfrac{A}{x+1} + \dfrac{B}{x+2}\) and find \(A\) and \(B\).
Step 3: Find A and B.
Multiply both sides by \((x+1)(x+2)\):
\[ x = A(x+2) + B(x+1) \]
Put \(x=-1\): \(-1 = A(1)\), so \(A=-1\).
Put \(x=-2\): \(-2 = B(-1)\), so \(B=2\).
\[ \frac{x}{(x+1)(x+2)} = -\frac{1}{x+1} + \frac{2}{x+2} \]
Step 4: Integrate each term.
\[ \int \frac{x\,dx}{(x+1)(x+2)} = -\int\frac{dx}{x+1} + 2\int\frac{dx}{x+2} = -\log|x+1| + 2\log|x+2| + C \]
Final Answer:
\[ \boxed{2\log|x+2| - \log|x+1| + C} \]