You are using the product rule correctly, but you forgot to use the chain rule when taking the derivatives of the individual terms.