Problem 217
Medium Roots and Binomials

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

Evaluate the integral: $$ I = \int \frac{x}{\sqrt{5+x-x^2}}\,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 arcsine piece, exactly the same technique used throughout Problems 215–219.

  1. Rewrite $x=-\tfrac12(1-2x)+\tfrac12$.
  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 arcsine formula.

Step 1 · Rewrite the numerator

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

$$ x = -\frac12(1-2x) + \frac12. $$

Step 2 · Split the integral

$$ I = -\frac12\int \frac{1-2x}{\sqrt{5+x-x^2}}\,dx + \frac12\int \frac{dx}{\sqrt{5+x-x^2}}. $$

Step 3 · Integrate the first piece

Let $w=5+x-x^2$, $dw=(1-2x)\,dx$:

$$ -\frac12\int \frac{1-2x}{\sqrt{5+x-x^2}}\,dx = -\frac12\int \frac{dw}{\sqrt w} = -\sqrt w = -\sqrt{5+x-x^2}. $$

Step 4 · Complete the square for the second piece

$$ 5+x-x^2 = \frac{21}{4} - \left(x-\frac12\right)^2. $$

Using the standard arcsine formula with $a=\dfrac{\sqrt{21}}{2}$:

$$ \int \frac{dx}{\sqrt{5+x-x^2}} = \arcsin\left(\frac{2x-1}{\sqrt{21}}\right) + C, \qquad \text{so}\qquad \frac12\int \frac{dx}{\sqrt{5+x-x^2}} = \frac12\arcsin\left(\frac{2x-1}{\sqrt{21}}\right). $$

Step 5 · Combine

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


Summary Table

Piece Antiderivative
$(1-2x)/\sqrt{5+x-x^2}$$-2\sqrt{5+x-x^2}$
$1/\sqrt{5+x-x^2}$$\arcsin\!\left(\tfrac{2x-1}{\sqrt{21}}\right)$

Additional Notes

Result

The solution to the integral is:

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