Answer:
The product rule is if the two "parts" of the function are being multiplied together, and the chain rule is if they are being composed. For instance, to find the derivative of f(x) = x² sin(x), you use the product rule, and to find the derivative of g(x) = sin(x²) you use the chain rule.
(sorry i didn't use the example but i hope this sort of helps!)