I think that the OP's question refers to how to distinguish why to make this change of variable. Now, I will write the answer to that question.
Suppose you want to solve an integral of the form $$\color{blue}{\boxed{\int R(x,\sqrt{a^{2}-x^{2}})dx}}$$
As in your problem, that you have $$\color{red}{\text{Example:} \quad \int \frac{x^{2}}{\sqrt{1^{2}-x^{2}}}dx}$$So, this integral becomes a trigonometric integral with the change of variable $$\color{green}{\boxed{x=a\cos(t)}} \quad \color{green}{\boxed{x=a\sin(t)}}$$
As the MathS users indicate in the comments. Also note that you can also perform the variable change $$\color{green}{\boxed{x=a\tanh(t)}}$$ and this variable change transforms the integral into a hyperbolic integer.