How can I solve this?

#cosx(tan^2x + 1) = secx#