Problem 303 · General formula
Easy Substitutions

Evaluate the integral, for constants a>b: I = integral

Evaluate the integral, for constants $a>b$: $$ I = \int \sqrt{\frac{a-x}{x-b}}\,dx. $$

Explanation of Method

The substitution $x=b+(a-b)\sin^2\theta$ makes the radical equal to $\cot\theta$ exactly, generalizing the technique from Problem 302.

  1. Substitute $x=b+(a-b)\sin^2\theta$.
  2. Simplify the radical to $\cot\theta$.
  3. Integrate using the half-angle formula.
  4. Convert back to $x$.

Step 1 · Substitute

Let $x=b+(a-b)\sin^2\theta$, $0\leq\theta\leq\tfrac\pi2$, so $dx=2(a-b)\sin\theta\cos\theta\,d\theta$, $x-b=(a-b)\sin^2\theta$, $a-x=(a-b)\cos^2\theta$:

$$ \sqrt{\frac{a-x}{x-b}} = \frac{\cos\theta}{\sin\theta} = \cot\theta \quad\Rightarrow\quad I = 2(a-b)\int\cos^2\theta\,d\theta. $$

Step 2 · Integrate

$$ 2(a-b)\int\cos^2\theta\,d\theta = (a-b)\int(1+\cos2\theta)\,d\theta = (a-b)\theta + (a-b)\sin\theta\cos\theta + C. $$

Step 3 · Convert back to $x$

Since $\sin\theta=\sqrt{(x-b)/(a-b)}$, $\cos\theta=\sqrt{(a-x)/(a-b)}$, $\theta=\arcsin\sqrt{(x-b)/(a-b)}$, and $(a-b)\sin\theta\cos\theta=\sqrt{(x-b)(a-x)}$:

$$ I = (a-b)\arcsin\sqrt{\frac{x-b}{a-b}} + \sqrt{(x-b)(a-x)} + C. $$


Summary Table

QuantityValue
$\sin\theta$$\sqrt{(x-b)/(a-b)}$
$\cos\theta$$\sqrt{(a-x)/(a-b)}$

Additional Notes

Result

The solution to the integral is:

$$ I = (a-b)\arcsin\sqrt{\frac{x-b}{a-b}} + \sqrt{(a-x)(x-b)} + C. $$