How to integrate $$∫\frac{\sec^2x}{(\sec x+\tan x)^{9/2}} dx$$
In my book it is done like
$$\begin{align} \sec x+\tan x &=t \\ \sec x−\tan x &= \frac 1t \\ (\sec x \tan x+\sec^2x)dx &=dt \\ \sec x(\sec x+\tan x)dx &=dt \\ \sec xdx &=\frac 1t dt \\ t+\frac 1t &=2\sec x \end{align}$$
and then it is substituted in the original expression and integrated.
The substitutions seem pretty unintuitive to me. Please share the approach you would follow :-)!