Problem 187
Easy Hyperbolic Integrals and Integration by Parts

Evaluate the integral: I = integral dx/(x²+2x)

Evaluate the integral: $$ I = \int \frac{dx}{x^2+2x}. $$

Explanation of Method

Factoring the denominator as $x(x+2)$ and decomposing into partial fractions reduces the integral to two elementary logarithms.

  1. Factor $x^2+2x=x(x+2)$.
  2. Decompose $1/[x(x+2)]$ into partial fractions.
  3. Integrate term by term and combine logs.

Step 1 · Factor and set up partial fractions

$$ x^2+2x = x(x+2), \qquad \frac{1}{x(x+2)} = \frac Ax + \frac{B}{x+2}. $$

Multiplying by $x(x+2)$: $1=A(x+2)+Bx$. Setting $x=0$ gives $A=\tfrac12$; setting $x=-2$ gives $B=-\tfrac12$.

Step 2 · Integrate

$$ I = \int \left(\frac{1}{2x} - \frac{1}{2(x+2)}\right) dx = \frac12\ln|x| - \frac12\ln|x+2| + C. $$

Step 3 · Combine logarithms

$$ I = \frac12\ln\left|\frac{x}{x+2}\right| + C. $$


Summary Table

Coefficient Value
$A$$1/2$
$B$$-1/2$

Additional Notes

Result

The solution to the integral is:

$$ I = \frac12\ln\left|\frac{x}{x+2}\right| + C. $$