Rewrite the equation recalling the definitions of secant and tangent:

Rearrange the right hand side:

Multiply both sides by cos^2(x):

Use the fundamental equation of trigonometry to express
in terms of
:

So, the expression becomes

Simplifiy
from both sides:

Which only happens if x=0.