you don't square the cosine in sec(x)=1/cos(x), do you?,(reply>), ​@Aniruddh Vasishta oh, you're right, in the context of derivatives that makes sense,(reply>), I think he meant the specific case of d/dx[tan(x)] = sec^2(x) should be written as 1/cos^2(x)