<s>[INST] Integrating a function with substitution Totally forgot how to integrate.
$$ \int \frac{1}{x^2 \sqrt{x^2+4}}dx$$
Just need a tip, for this what would I use to substitute? 
 [/INST] Put $x = 2 \tan t $, then $dx = 2 \sec^2 t dt $. and $\sqrt{x^2 +4} = \sqrt{ 4 \tan^2 t + 4 } = 2 \sec t$ hence,
$$ \int \frac{dx}{x^2 \sqrt{x^2+4}} = \int \frac{2 \sec^2 t dt}{4 \tan^2 t 2 \sec t} = \frac{1}{4} \int \frac{ \sec t dt }{\tan^2 t} = \frac{1}{4} \int \frac{\frac{1}{\cos t}}{\frac{\sin^2t}{\cos^2 t}} = \frac{1}{4} \int \frac{\cos t dt}{\sin^2 t} = \frac{1}{4} \int \frac{d ( \sin t)}{\sin^2 t} = \frac{-1}{4}\frac{1}{\sin t} + C$$
</s>