Use the definition of the cotangent function and the quotient rule to prove if f(x)=cotx, than f'(x)= -cosec2x.