Problem 311
Medium Substitutions

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

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

Explanation of Method

Substituting $u=x+1$ turns the quadratic into $u^2-u+1$; a further reciprocal substitution $t=1/u$ reduces the problem to the standard form $\int dt/\sqrt{t^2-t+1}$, which is handled by the general formula for $\int dx/[x\sqrt{ax^2+bx+1}]$ with unit constant term.

  1. Substitute $u=x+1$.
  2. Substitute $t=1/u$.
  3. Integrate using the standard formula.
  4. Back-substitute twice.

Step 1 · First substitution

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

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

Step 2 · Second substitution

Let $t=1/u$, $du=-dt/t^2$. Since the constant term of $u^2-u+1$ is $1$, a direct computation gives $u^2-u+1=(t^2-t+1)/t^2$, so:

$$ I = -\int\frac{dt}{\sqrt{t^2-t+1}}. $$

Step 3 · Integrate

Completing the square, $t^2-t+1=(t-\tfrac12)^2+\tfrac34$:

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

Writing this as a single fraction (multiplying inside the log by $2$ and simplifying) gives the standard form:

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

Step 4 · Back-substitute twice

Using $t=1/(x+1)$, $2-t=(1-x)/(x+1)$, and $\sqrt{t^2-t+1}=\sqrt{x^2+x+1}/(x+1)$:

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


Summary Table

SubstitutionRelation
$u=x+1$$u^2-u+1=x^2+x+1$
$t=1/u$$t^2-t+1=(u^2-u+1)/u^2$

Additional Notes

Result

The solution to the integral is:

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