Problem 190
Easy Hyperbolic Integrals and Integration by Parts

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

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

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 — the same pattern as Problem 189.

  1. Complete the square for $x^2-x+2$.
  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+2 = \left(x-\frac12\right)^2 + \frac74. $$

Step 2 · Substitute

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

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

Step 3 · Apply the standard arctangent formula

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

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

Step 4 · Substitute back

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

$$ I = \frac{2}{\sqrt7}\arctan\left(\frac{2x-1}{\sqrt7}\right) + C = \frac{2\sqrt7}{7}\arctan\left(\frac{2x-1}{\sqrt7}\right) + C. $$


Summary Table

Quantity Value
Completed square$(x-\tfrac12)^2+\tfrac74$
$a$$\sqrt7/2$
$1/a$$2/\sqrt7$

Additional Notes

Result

The solution to the integral is:

$$ I = \frac{2\sqrt7}{7}\arctan\left(\frac{2x-1}{\sqrt7}\right) + C. $$