Consider the following question.
cos2x+2sin2xcos2x
=cos2x−sin2x+2sin2xcos2x
=sin2x+cos2xcos2x
=1cos2x
=sec2x
Hence, this is the required answer.