If you meant to write out [tex]\tan^2(x) + 1 = \sec^2(x)[/tex], then this is an identity. It can be derived from the pythagorean identity [tex]\sin^2(x)+\cos^2(x) = 1[/tex]. Divide every term by [tex]\cos^2(x)[/tex] to end up with the first equation mentioned.