Problem 189
Medium Hyperbolic Integrals and Integration by Parts

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

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

Explanation of Method

Completing the square puts the denominator in the form $u^2+a^2$, and the standard arctangent formula finishes the problem directly.

  1. Complete the square for $x^2+x+1$.
  2. Substitute $u=x+\tfrac12$.
  3. Apply the standard formula $\int du/(u^2+a^2)=(1/a)\arctan(u/a)$.
  4. Substitute back and simplify.

Step 1 · Complete the square

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

Step 2 · Substitute

Let $u=x+\tfrac12$, $du=dx$:

$$ I = \int \frac{du}{u^2+\tfrac34} = \int \frac{du}{u^2+\left(\tfrac{\sqrt3}{2}\right)^2}. $$

Step 3 · Apply the standard arctangent formula

With $a=\dfrac{\sqrt3}{2}$:

$$ I = \frac{1}{a}\arctan\frac{u}{a} + C = \frac{2}{\sqrt3}\arctan\left(\frac{2u}{\sqrt3}\right) + C. $$

Step 4 · Substitute back

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

$$ I = \frac{2}{\sqrt3}\arctan\left(\frac{2x+1}{\sqrt3}\right) + C = \frac{2\sqrt3}{3}\arctan\left(\frac{2x+1}{\sqrt3}\right) + C. $$


Summary Table

Quantity Value
Completed square$(x+\tfrac12)^2+\tfrac34$
$a$$\sqrt3/2$
$1/a$$2/\sqrt3$

Additional Notes

Result

The solution to the integral is:

$$ I = \frac{2\sqrt3}{3}\arctan\left(\frac{2x+1}{\sqrt3}\right) + C. $$