Problem 206
Easy Roots and Binomials

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

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

Explanation of Method

Completing the square converts the radicand into the standard $u^2+a^2$ form, resolved by the well-known formula $\int\sqrt{u^2+a^2}\,du=\tfrac u2\sqrt{u^2+a^2}+\tfrac{a^2}2\ln|u+\sqrt{u^2+a^2}|$.

  1. Complete the square for $2+x+x^2$.
  2. Substitute $u=x+\tfrac12$.
  3. Apply the standard formula for $\int\sqrt{u^2+a^2}\,du$.
  4. Substitute back.

Step 1 · Complete the square

$$ 2+x+x^2 = \left(x+\frac12\right)^2 + \frac74. $$

Step 2 · Substitute

Let $u=x+\tfrac12$, $du=dx$, $a^2=\tfrac74$:

$$ I = \int \sqrt{u^2+\frac74}\,du. $$

Step 3 · Apply the standard formula

$$ I = \frac u2\sqrt{u^2+\frac74} + \frac78\ln\left|u+\sqrt{u^2+\frac74}\right| + C. $$

Step 4 · Substitute back

With $u=x+\tfrac12$, so $\tfrac u2=\tfrac{2x+1}4$:

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


Summary Table

Quantity Value
Completed square$(x+\tfrac12)^2+\tfrac74$
$u,\,a^2$$x+\tfrac12,\ \tfrac74$

Additional Notes

Result

The solution to the integral is:

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