I have problem that I cannot figure out with differential equation and using trigonometric property. How did they go from a red circle to an orange circle that I drew ???

I have problem that I cannot figure out with differential equation and using trigonometric property. How did they go from a red circle to an orange circle that I drew ???

By the Pythagorean identity, $\cos^2(2x) + \sin^2(2x) = 1$. Dividing through by $\cos^2(2x)$ yields $1+\tan^2(2x) = \sec^2(2x)$.