We have to prove that :
[tex] Cot(x)=Sin(x)Sin(\frac{\pi}{2}-x)+Cos^{2}(x)Cot(x) [/tex]
For this, let us take the Right Hand Side (RHS) and then prove the Left Hand Side (LHS).
RHS=[tex] Sin(x)Sin(\frac{\pi}{2}-x)+Cos^{2}(x)Cot(x) [/tex]
=[tex] Sin(x)Cos(x)+Cos^{2}(x)Cot(x) [/tex] ([tex] \because Sin(\frac{\pi}{2}-x)=Cos(x) [/tex])
=[tex] Sin(x)Cos(x)+Cos^{2}(x)\frac{Cos(x)}{Sin(x)} [/tex] ([tex] \because Cot(x)=\frac{Cos(x)}{Sin(x)} [/tex])
=[tex] \frac{Sin^2(x)Cos(x)+Cos^2(x)Cos(x)}{Sin(x)} [/tex]
Now, we know that [tex] Cos(x) [/tex] is common in the numerator and thus,
[tex] \frac{Cos(x)(Sin^2(x)+Cos^2(x))}{Sin(x)} [/tex]
=[tex] \frac{Cos(x)}{Sin(x)} [/tex] ([tex] \because Sin^2(x)+Cos^2(x)=1 [/tex])
=[tex] Cot(x) [/tex]=LHS
Hence, LHS=RHS and thus the required equation has been proved.