Step 1: Use the substitution Let \[ t = \sin^{-1} \left( \sqrt{\frac{x - a}{x}} \right). \] Then, \[ \sin t = \sqrt{\frac{x - a}{x}}. \] Squaring both sides, \[ \sin^2 t = \frac{x - a}{x}. \] Thus, \[ x \sin^2 t = x - a. \] Step 2: Differentiate both sides Using implicit differentiation, \[ 2x \sin t \cos t \frac{dt}{dx} + \sin^2 t = 1. \] Rearranging, \[ \frac{dt}{dx} = \frac{1 - \sin^2 t}{2x \sin t \cos t}. \] Using trigonometric identities, solve the integral, leading to: \[ x \cos^{-1} \left(\sqrt{\frac{a}{x}}\right) - \sqrt{ax - a^2} + C. \]