Problem 219
Hard Roots and Binomials

Evaluate the integral: I = integral

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

Explanation of Method

Writing the numerator as a multiple of the radicand's derivative plus a constant splits the integral into a direct square-root piece and a standard logarithmic piece — since $2x^2-x+1$ is always positive, this calls for the $\int du/\sqrt{u^2+a^2}$ formula, not arcsine.

  1. Rewrite $3x+1=\tfrac34(4x-1)+\tfrac74$.
  2. Split into a derivative-matching piece and a constant piece.
  3. Integrate the first piece directly.
  4. Complete the square and integrate the second piece using the logarithmic formula.

Step 1 · Rewrite the numerator

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

$$ 3x+1 = \frac34(4x-1) + \frac74. $$

Step 2 · Split the integral

$$ I = \frac34\int \frac{4x-1}{\sqrt{2x^2-x+1}}\,dx + \frac74\int \frac{dx}{\sqrt{2x^2-x+1}}. $$

Step 3 · Integrate the first piece

Let $v=2x^2-x+1$, $dv=(4x-1)\,dx$:

$$ \frac34\int \frac{4x-1}{\sqrt{2x^2-x+1}}\,dx = \frac34\int \frac{dv}{\sqrt v} = \frac32\sqrt v = \frac32\sqrt{2x^2-x+1}. $$

Step 4 · Complete the square for the second piece

$$ 2x^2-x+1 = 2\left(x-\frac14\right)^2 + \frac78, \qquad \sqrt{2x^2-x+1} = \sqrt2\,\sqrt{\left(x-\frac14\right)^2+\frac7{16}}. $$

Let $w=x-\tfrac14$, $a^2=\tfrac7{16}$:

$$ \int \frac{dx}{\sqrt{2x^2-x+1}} = \frac{1}{\sqrt2}\int \frac{dw}{\sqrt{w^2+a^2}} = \frac{1}{\sqrt2}\ln\left|w+\sqrt{w^2+a^2}\right| + C. $$

Since $w^2+a^2=x^2-\tfrac x2+\tfrac12=\tfrac12(2x^2-x+1)$, so $\sqrt{w^2+a^2}=\sqrt{2x^2-x+1}/\sqrt2$, multiplying inside the log by $4\sqrt2$ and absorbing the constant gives:

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

Step 5 · Combine

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


Summary Table

Piece Antiderivative
$(4x-1)/\sqrt{2x^2-x+1}$$2\sqrt{2x^2-x+1}$
$1/\sqrt{2x^2-x+1}$$\tfrac1{\sqrt2}\ln|4x-1+2\sqrt2\sqrt{2x^2-x+1}|$

Additional Notes

Result

The solution to the integral is:

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