Consider the L.H.S.
=tanx+cotx
=sinxcosx+cosxsinx
=sin2x+cos2xsinx.cosx
We know that
sin2x+cos2x=1
Therefore,
=1sinx.cosx
=secx.cosecx
Hence, proved.
We have,
=sec2x+cosec2x
=1cos2x+1sin2x
=sin2x+cos2xsin2x.cos2x
=1sin2x.cos2x
=sec2x.cosec2x
Hence, proved.