Question:medium

Find \(\displaystyle \int \sqrt{\frac{x+2}{x-2}}\,dx\).

Show Hint

Multiply the numerator and denominator inside the root by (x+2) to get (x+2)/sqrt(x^2-4), then split into two standard integrals.
Updated On: Oct 22, 2026
Show Solution

Solution and Explanation

Step 1: Choose a substitution:
The ratio \(\dfrac{x+2}{x-2}\) suggests a hyperbolic substitution. We take \(x > 2\) so that the root is real.
Let $x = 2\cosh u$ with $u > 0$. Then $dx = 2\sinh u\,du$.

Step 2: Simplify the root:
Use the half-angle identities $\cosh u + 1 = 2\cosh^2\frac{u}{2}$ and $\cosh u - 1 = 2\sinh^2\frac{u}{2}$.
\[ \sqrt{\frac{x+2}{x-2}} = \sqrt{\frac{\cosh u + 1}{\cosh u - 1}} = \frac{\cosh(u/2)}{\sinh(u/2)} \]

Step 3: Build the new integral:
Write $\sinh u = 2\sinh\frac{u}{2}\cosh\frac{u}{2}$ and multiply by the root.
\[ I = \int \frac{\cosh(u/2)}{\sinh(u/2)} \cdot 4\sinh\frac{u}{2}\cosh\frac{u}{2}\,du = 4\int \cosh^2\frac{u}{2}\,du \]
Now use $2\cosh^2\frac{u}{2} = 1 + \cosh u$.
\[ I = 2\int (1 + \cosh u)\,du = 2u + 2\sinh u + C_1 \]

Step 4: Go back to x:
Since $\cosh u = \frac{x}{2}$, we get $\sinh u = \frac{\sqrt{x^2-4}}{2}$.
Also $u = \log\left(\frac{x + \sqrt{x^2-4}}{2}\right)$.
So $2\sinh u = \sqrt{x^2-4}$ and $2u = 2\log\left(x+\sqrt{x^2-4}\right) - 2\log 2$.
The constant $-2\log 2$ merges with $C_1$.
\[ I = \sqrt{x^2-4} + 2\log\left|x+\sqrt{x^2-4}\right| + C \]

Final Answer:
The result agrees with the direct method. \[ \boxed{\sqrt{x^2-4} + 2\log\left|x+\sqrt{x^2-4}\right| + C} \]
Was this answer helpful?
0