Consider the given equation and expression,
sinθ=cosθ ……(1) and 2tanθ+cos2θ …..(2)
Now, from equation (2),
⇒2.tanθ+cos2θ
⇒2.sinθcosθ+cos2θ
From equation (1),
⇒2.cosθcosθ+cos2θ
⇒2+cos2θ
⇒cos2θ+2