Like Sir Michael, I am confused about the third line. It does not follow from the second line, and the fourth line does not follow from the third line. Moreover, using x to stand for multiplication in a problem involving x as a variable is something you are taught not to do in seventh or eighth grade. Nevertheless, I think what is going on is this.
y=32cos(10x)−52∗sin(2x)=32∗cos(10x)−52∗sin(2x).
Let p=2x, q=sin(p), r=5p, and s=cos(r).
So y=(32∗s)−(52∗q)⟹dxdy=(32∗dxds)−(52∗dxdq).
s=cos(r)⟹drds=−sin(r). NOTICE the minus sign on the derivative.
r=5p⟹dpdr=5.
p=2x⟹dxdp=2.
So (32∗dxds)=(32∗drds∗dpdr∗dxdp)=(32∗{−sin(r)}∗5∗2)=320∗{−sin(5p)}=320∗{−sin(10x)}=3−20∗sin(10x).
Similarly, −(52∗dxdq)=5−2∗dpdq∗dxdp=5−2∗cos(p)∗2=5−4∗cos(2x).
THUS, dxdy=3−20sin(10x)+5−4cos(2x).