I'm learning trigonometric substitutions and am having a bit of trouble understanding the intuition behind the conversions (why do most use secant?). If you could explain the conversions geometrically using a triangle, that would be very helpful. For example, if we have $$\int \frac{\sqrt{x^2-4}}{x}\,dx$$ I tried to construct a triangle like so:
To get $$\sin(\theta)=\frac{\sqrt{x^2-4}}{x}$$
But this is incorrect for use as a substitution. Why?

The intuition to use trig-sub is because sometimes a problem becomes easier when you make substitutions. Mainly, grouping "nasty" looking quantities into neat little packages can save you a headache. Notice that where you placed the quantities "$2$" and "$\sqrt{x^2-4}$" in your picture were arbitrary. Try switching them and see what happens. Your answer will still be correct.