Problem 216
Hard Roots and Binomials

Evaluate the integral: I = integral (x+1)/(sqrt(x²+x+1))

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

Explanation of Method

Writing the numerator as half the derivative of the radicand plus a constant splits the integral into a direct square-root antiderivative and a standard logarithmic integral.

  1. Rewrite $x+1=\tfrac12(2x+1)+\tfrac12$.
  2. Split into a derivative-matching piece and a constant piece.
  3. Integrate each piece.

Step 1 · Rewrite the numerator

Since $\dfrac{d}{dx}(x^2+x+1)=2x+1$, write:

$$ x+1 = \frac12(2x+1) + \frac12. $$

Step 2 · Split the integral

$$ I = \frac12\int \frac{2x+1}{\sqrt{x^2+x+1}}\,dx + \frac12\int \frac{dx}{\sqrt{x^2+x+1}}. $$

Step 3 · Integrate the first piece

Let $u=x^2+x+1$, $du=(2x+1)\,dx$:

$$ \frac12\int \frac{2x+1}{\sqrt{x^2+x+1}}\,dx = \frac12\int \frac{du}{\sqrt u} = \sqrt u = \sqrt{x^2+x+1}. $$

Step 4 · Integrate the second piece

Completing the square, $x^2+x+1=(x+\tfrac12)^2+\tfrac34$, so using the standard logarithmic formula:

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

Therefore:

$$ \frac12\int \frac{dx}{\sqrt{x^2+x+1}} = \frac12\ln\left|x+\frac12+\sqrt{x^2+x+1}\right|. $$

Step 5 · Combine

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


Summary Table

Piece Antiderivative
$(2x+1)/\sqrt{x^2+x+1}$$2\sqrt{x^2+x+1}$
$1/\sqrt{x^2+x+1}$$\ln|x+\tfrac12+\sqrt{x^2+x+1}|$

Additional Notes

Result

The solution to the integral is:

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