How do you differentiate f(x) = xcos((pix)/2)f(x)=xcos(πx2) using the chain rule?