Yeah, it's pretty trivial to get sec, however that is not what I am after. You could have also done

so

so

so

which is a hyperbola so the parametric equation
)
would work. However that still doesn't explain why you make the substitution when you are integrating. Why do we do this kind of inverse substitution? I understand the restriction to make it 1-to-1 function or else the inverse would not be defined when changing the variable

back into

however the crux step is the first substitution, why does it work? (Not necessarily where it comes from)
What I'm looking for is analogous to say integration by parts which is the "reverse" of the product rule.
Oh wait nvm I got it, it's because by picking
)
we can simplify the radical

. It actually works quite similar to a parametric equation xD