\(\frac{x}{(x+1)(x+2)}\)
Show solutionHide solution
We need to evaluate \( \int \frac{x}{(x+1)(x+2)}\,dx \).
Use partial fractions. Suppose \[ \frac{x}{(x+1)(x+2)}=\frac{A}{x+1}+\frac{B}{x+2}. \] Multiplying by \((x+1)(x+2)\) gives \[ x=A(x+2)+B(x+1). \] Comparing coefficients: \(A+B=1\) and \(2A+B=0\). Subtracting gives \(A=-1\), hence \(B=2\). Therefore \[ \frac{x}{(x+1)(x+2)}=-\frac{1}{x+1}+\frac{2}{x+2}. \]
So \[ \int \frac{x}{(x+1)(x+2)}\,dx = -\int\frac{1}{x+1}\,dx+2\int\frac{1}{x+2}\,dx. \] Thus \[ \int \frac{x}{(x+1)(x+2)}\,dx = -\ln|x+1|+2\ln|x+2|+C. \]
Equivalently, \[ -\ln|x+1|+2\ln|x+2|+C = \ln\frac{(x+2)^2}{|x+1|}+C. \] The constant \(C\) is arbitrary on each interval of the domain \(x\ne -1,-2\).
Check by differentiation: \[ \frac{d}{dx}\left(-\ln|x+1|+2\ln|x+2|\right) = -\frac1{x+1}+\frac2{x+2} = \frac{-(x+2)+2(x+1)}{(x+1)(x+2)}=\frac{x}{(x+1)(x+2)}. \]