Integrate the rational functions in Exercises 1 to 21.
\(\frac{5 x}{(x+1)\left(x^{2}-4\right)}\)Show solutionHide solution
Factor the denominator completely:
\[ (x+1)(x^2-4)=(x+1)(x-2)(x+2). \]We use partial fractions:
\[ \frac{5x}{(x+1)(x-2)(x+2)} =\frac{A}{x+1}+\frac{B}{x-2}+\frac{C}{x+2}. \]Multiplying by the denominator gives
\[ 5x=A(x-2)(x+2)+B(x+1)(x+2)+C(x+1)(x-2). \]Substitute convenient values of \(x\):
- At \(x=-1\): \(-5=A(-3)(1)\), so \(A=\frac{5}{3}\).
- At \(x=2\): \(10=B(3)(4)\), so \(B=\frac{5}{6}\).
- At \(x=-2\): \(-10=C(-1)(-4)\), so \(C=-\frac{5}{2}\).
Hence
\[ \frac{5x}{(x+1)(x-2)(x+2)} =\frac{5/3}{x+1}+\frac{5/6}{x-2}-\frac{5/2}{x+2}. \]Therefore, on any interval avoiding the poles \(x=-2,-1,2\),
\[ \int \frac{5x}{(x+1)(x^2-4)}\,dx =\frac{5}{3}\ln|x+1|+\frac{5}{6}\ln|x-2|-\frac{5}{2}\ln|x+2|+C. \]Equivalently, combining the logarithms,
\[ \int \frac{5x}{(x+1)(x^2-4)}\,dx =\frac{5}{6}\ln\!\left(\frac{(x+1)^2|x-2|}{|x+2|^3}\right)+C. \]