When faced with an integral containing a radical expression in the form \sqrt{\pm(bx + c)^2 \pm a}, we can usually find some subtitution for x which simplifies the expression into a singular trigonometric identity. This is achievable due to the following three identities.
Lets see how these identites allow us to reduce certain radicals.
Trig substitutions
Lets examine the three cases where trig identities allow us to simplify a radical expression.
Case I:\sqrt{a - (bx + c)^2}
Notice how this case is a constant, subtracted by a squared variable term. This resembles our first expression, 1 - \sin^2x = \cos^2 x. We want to get the expression in these terms so we can reduce the radicle. Notice by making the substitution
Which evaulates to
\int\frac{\cos^2\theta}{\sin^2\theta} d\theta = -\cot\theta - \theta + C
This however, is only half the problem. We still need to convert the equation back to its orginal variable. Once again, the method of drawing a triangle will help to simplify the final expression.
Note that \sin \theta = \displaystyle\frac{\text{opp}}{\text{hyp}} = \displaystyle\frac{x}{3}
Code
\usetikzlibrary{graphs,graphs.standard,angles,quotes}\begin{tikzpicture}\draw[fill=black] (0,0);\draw[fill=black] (3,0);\draw[fill=black] (3,2);\draw[line width=1pt] (0,0) -- (3,0) -- (3,2) -- (0,0);\node at (1.75,-.3) {$\sqrt{9 -x^2}$};\node at (1.2,1.25) {$3$};\node at (3.2,1) {$x$};\coordinate (origo) at (0,0);\coordinate (pivot) at (3,2);\coordinate (mary) at (3,0);\pic[draw, -, "$\theta$", angle eccentricity=1.5]{angle = mary--origo--pivot};\end{tikzpicture}