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