If \(\int\displaystyle\frac{2x}{x^2+3x+2}\,dx=m\log|x+2|+n\log|x+1|+C\), then the values of m and n are:
Answer & explanation
Correct answer: option 1
The correct answer is Option (1) → \(m=4, n=-2\)
Since \(x^2+3x+2 = (x+1)(x+2)\), use partial fractions:
\( \displaystyle \frac{2x}{(x+1)(x+2)} = \frac{A}{x+1}+\frac{B}{x+2} \)
\( 2x = A(x+2)+B(x+1) \)
Putting \(x = -1\):
\( -2 = A \)
Putting \(x = -2\):
\( -4 = -B \), so \( B = 4 \)
Integrating:
\( \displaystyle \int\frac{2x}{x^2+3x+2}\,dx = -2\log|x+1|+4\log|x+2|+C \)
Comparing with \(m\log|x+2|+n\log|x+1|+C\): \(m = 4\), \(n = -2\).