Prove the following trigonometric identities:
(1+sin θ)2+(1−sin θ)22 cos2θ=1+sin2θ1−sin2θ
(i) secθ−1secθ+1=sin2θ(1+cosθ)2
(ii) secθ−tanθsecθ+tanθ=cos2θ(1+sinθ)2