this is a little confusing
f(x) = e^xsinx
i don't know what rule to use with this
The product rule does not change based on situations. In your example, u was a function of x, which prompted us to use the chain rule to evaluate the derivative. The fact that du/dx required us to use the product rule was a function (pardon the pun) of the function .