Problem 207
Easy Roots and Binomials

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

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

Explanation of Method

Completing the square converts the radicand into the bounded $a^2-u^2$ form, which must be resolved with the arcsine formula $\int\sqrt{a^2-u^2}\,du=\tfrac u2\sqrt{a^2-u^2}+\tfrac{a^2}2\arcsin(u/a)$ — not the logarithmic formula that applies to $u^2\pm a^2$.

  1. Complete the square for $2+x-x^2$.
  2. Substitute $u=x-\tfrac12$.
  3. Apply the standard formula for $\int\sqrt{a^2-u^2}\,du$.
  4. Substitute back.

Step 1 · Complete the square

$$ 2+x-x^2 = -(x^2-x-2) = \frac94 - \left(x-\frac12\right)^2. $$

Step 2 · Substitute

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

$$ I = \int \sqrt{a^2-u^2}\,du. $$

Step 3 · Apply the standard arcsine-based formula

$$ I = \frac u2\sqrt{a^2-u^2} + \frac{a^2}2\arcsin\frac ua + C. $$

Step 4 · Substitute back

With $u=x-\tfrac12$, $a=\tfrac32$, so $\tfrac u2=\tfrac{2x-1}4$ and $\tfrac ua=\tfrac{2x-1}3$:

$$ I = \frac{2x-1}{4}\sqrt{2+x-x^2} + \frac98\arcsin\left(\frac{2x-1}{3}\right) + C. $$


Summary Table

Quantity Value
Completed square$\tfrac94-(x-\tfrac12)^2$
$u,\,a$$x-\tfrac12,\ \tfrac32$

Additional Notes

Result

The solution to the integral is:

$$ I = \frac{2x-1}{4}\sqrt{2+x-x^2} + \frac98\arcsin\left(\frac{2x-1}{3}\right) + C. $$