TITLE: How does trigonometric substitution work?
QUESTION [22 upvotes]: I have read my book, watched the MIT lecture and read Paul's Online Notes (which was pretty much worthless, no explanations just examples) and I have no idea what is going on with this at all.
I understand that if I need to find something like $$\int \frac { \sqrt{9-x^2}}{x^2}dx$$
I can't use any other method except this one. What I do not get is pretty much everything else.
It is hard to visualize the bounds of the substitution that will keep it positive but I think that is something I can just memorize from a table.
So this is similar to u substitution except that I am not using a single variable but expressing x in the form of a trig function. How does this not change the value of the problem? To me it seems like it would, algebraically how is something like $$\int \frac { \sqrt{9-x^2}}{x^2}dx$$ the same as $$\int \frac {3\cos x}{9\sin^2 x}3\cos x \, dx$$
It feels like if I were to put in numbers for $x$ that it would be a different answer.
Anyways just assuming that works I really do not understand at all what happens next.
"Returning" to the original variable to me should just mean plugging back in what you had from before the substitution but for whatever unknown and unexplained reason this is not true. Even though on problems before I could just plug back in my substitution of $u = 2x$, $\sin2u = \sin4x$ that would work fine but for whatever reason no longer works.
I am not expected to do some pretty complex trigonometric manipulation with the use of a triangle which I do not follow at all, luckily though this process is not explained at all in my book so I think I am just suppose to memorize it.
Then when it gets time for the answer there is no explanation at all but out of nowhere inverse sin comes in for some reason.
$$\frac {- \sqrt{9-x^2}}{x} - \sin^{-1} (x/3) +c$$
I have no idea happened but neither does the author apparently since there is no explanation.

REPLY [3 votes]: Imagine this. Drop your example for a sec. Is there any way that you can write an equation where $\sin{a} =  \sqrt{1-x^{2}}$ ? Plug in an x, and no matter what the x is, you can find an a that satisfies the equation? If so, great! There is only one rule: the two functions must have the same range, or must output the same area of y values, and we use a different variable. For example, sin(a) only outputs numbers between -1 and 1, and the same goes for our second equation. Also, it doesn't use the same variable, so we're good!
If you don't believe me, let's solve for a. Taking the arcsin yields $a = \arcsin{ \sqrt{1-x^{2}}}$. If you pick any value of x, you will get a value fora. If you solved for x, you would get $\sqrt{1-\sin^{2}{a}}=x$.
The important thing to recognize is that we are just finding new functions to represent the same number.
This is all just a different way of looking at the same number. 
The new variable ensures a new function, and the equivalent range ensures the new function can still produce the same numbers.
In the equation you give, any x value greater than or equal to 3 would put a negative number under the radical. This is also true for any number less than -3, because squaring gets rid of the negative. This means the domain is all real numbers greater than -3 but less than 3. How convenient! That entire domain is also found in 3 cos(theta), which oscillates between -3 and 3. So they have the same range! Perfect!
Try imagining this a different way. Let's say you want to solve the equation I gave, $\int x^{4} dx$. This is very easy, but sometimes you have to make the easy things hard to make the hard things easy. Let's say that you want to substitute in $x=4y$ and the necessary $dx = dy$. Can you do it? Well, why wouldn't you be able to? They output the same range: real numbers. They have different variables. So let's do it! 
We now have 
$
\int \left (4y \right )^{4} dy
$ 
which is just 
$
\int \ 256y^{5}  dy
$ . Completely pointless but bear with me. This is just equal to 
$
\frac{256y^{5}}{5}
$ 
Now let's plug back in x. Our original equation mentioned that $x=y^{2}$. Solving for y we have $y=\frac{x}{4}$. By putting that in our new equation we have our new equation as 
$\frac{x^{5}}{5}$. Seem familiar? We have seen that the only two things necessary to do a substitution is that
a. you have the same range in both and 
b. you use a different variable. 
3 cos(theta) = x is just the same. In the equation referenced you have a range between -3 and 3, as does 3 cos(theta). Obviously, they use different variables, so you are good.