so I need to find the derivative of the following expression:
$$y=(-\csc x)(-\sin x)$$
This is what I have done so far by applying the product rule:
$$y'=\csc x\cot x(-\sin x) + (-\csc x)(-\cos x)=-\sin x\csc x\cot x + \csc x\cos x$$
$$y'=\csc x(-\sin x\cot x + \cos x)$$
Unfortunately, my textbook displays the result as:
$$y'=\cos x\cot^2x$$
Am I doing something wrong, or both results are equivalent? If they are equivalent, can someone show me step by step how to get to the textbook's result?
Thank you so much in advance!
Notice:
$$-\csc x \times -\sin x = \frac{1}{\sin x} \times \sin x =1$$
Hence $f'(x)=\frac{\mathrm{d}}{\mathrm{dx}}(1)=0$