The identity $\sec x + \tan x = \tan\left(\frac{\pi}{4} + \frac{x}{2}\right)$ is highly useful across calculus. Memorizing this transformation allows you to skip straight to integrating $\frac{\pi}{4} + \frac{x}{2}$ in seconds!
Step 1: Simplify the inside term.
Write $\sec x + \tan x = \dfrac{1 + \sin x}{\cos x}$. Using half angle forms this becomes $\dfrac{1 + \tan(x/2)}{1 - \tan(x/2)}$.
Step 2: Recognise the tangent.
That fraction equals $\tan\left(\dfrac{\pi}{4} + \dfrac{x}{2}\right)$, so $\tan^{-1}$ of it is just $\dfrac{\pi}{4} + \dfrac{x}{2}$.