How to find general solution of tan^2x + sec^2x =1

Amrut Madje's image