Problem 339
Medium Advanced Techniques

Evaluate the integral: I = integral

Evaluate the integral: $$ I = \int \frac{\sqrt{x^2+x+1}}{(x+1)^2}\,dx. $$

Explanation of Method

Shifting to $u=x+1$ turns the integrand into $\sqrt{u^2-u+1}/u^2$; integrating by parts with $dv=du/u^2$ reduces this to standard $\int du/\sqrt Q$ and $\int du/(u\sqrt Q)$ forms.

  1. Substitute $u=x+1$.
  2. Integrate by parts.
  3. Apply the two standard forms.
  4. Back-substitute.

Step 1 · Substitute

Let $u=x+1$, so $x^2+x+1=u^2-u+1=Q$:

$$ I = \int\frac{\sqrt Q}{u^2}\,du. $$

Step 2 · Integrate by parts

With $dv=du/u^2$ ($v=-1/u$) and differentiating $\sqrt Q$ ($Q'=2u-1$):

$$ I = -\frac{\sqrt Q}u + \int\frac{2u-1}{2u\sqrt Q}\,du = -\frac{\sqrt Q}u + \int\frac{du}{\sqrt Q} - \frac12\int\frac{du}{u\sqrt Q}. $$

Step 3 · Apply the standard forms

$$ \int\frac{du}{\sqrt Q} = \ln\left|u-\frac12+\sqrt Q\right|, \qquad \int\frac{du}{u\sqrt Q} = -\ln\left|\frac{2-u+2\sqrt Q}u\right| \quad(\text{since the constant term of }Q\text{ is }1). $$

$$ I = -\frac{\sqrt Q}u + \ln\left|u-\frac12+\sqrt Q\right| + \frac12\ln\left|\frac{2-u+2\sqrt Q}u\right| + C. $$

Step 4 · Back-substitute

With $u=x+1$, $u-\tfrac12=x+\tfrac12$, $2-u=1-x$:


Summary Table

PieceAntiderivative
$1/\sqrt Q$$\ln|u-\tfrac12+\sqrt Q|$
$-\tfrac12\cdot1/(u\sqrt Q)$$\tfrac12\ln|(2-u+2\sqrt Q)/u|$

Additional Notes

Result

The solution to the integral is:

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