Problem 202
Medium Roots and Binomials

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

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

Explanation of Method

Completing the square and applying a sine substitution reduces the integral to $\int d\theta$, giving an arcsine answer that can also be re-expressed as an arctangent using a half-angle-style identity.

  1. Complete the square for $1+x-x^2$.
  2. Substitute $x-\tfrac12=\tfrac{\sqrt5}{2}\sin\theta$.
  3. Simplify to $\int d\theta$.
  4. Express the result as an arcsine, and note the equivalent arctangent form.

Step 1 · Complete the square

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

Step 2 · Trigonometric substitution

Let $x-\tfrac12=\dfrac{\sqrt5}{2}\sin\theta$, so $dx=\dfrac{\sqrt5}{2}\cos\theta\,d\theta$ and $\sqrt{1+x-x^2}=\dfrac{\sqrt5}{2}\cos\theta$:

$$ I = \int \frac{\frac{\sqrt5}{2}\cos\theta\,d\theta}{\frac{\sqrt5}{2}\cos\theta} = \int d\theta = \theta + C. $$

Step 3 · Express as arcsine

With $\theta=\arcsin\dfrac{x-1/2}{\sqrt5/2}$:

$$ I = \arcsin\left(\frac{2x-1}{\sqrt5}\right) + C. $$

Step 4 · Equivalent arctangent form

The same antiderivative can be written using the arctangent identity that arises from the alternate ("Euler") substitution $\sqrt{1+x-x^2}=t-x$; this yields the equivalent closed form:

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


Summary Table

Quantity Value
Completed square$\tfrac54-(x-\tfrac12)^2$
Arcsine form$\arcsin\!\left(\tfrac{2x-1}{\sqrt5}\right)$
Arctangent form$-2\arctan\!\left(\tfrac{1+\sqrt{1+x-x^2}}{x}\right)$

Additional Notes

Result

The solution to the integral is:

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