You can split the derivative into 2 parts: dx/dy (x^2*e^x) + dx/dy (x)
For the first part you have to use the product rule, so let U=x^2 V=e^x U'=2x V'=Chain rule
V'=dx/dy(e^x)dx/dy(x)=e^x1=e^x
Returning to the product rule, f'(x)=U'V+UV' So, (2xe^x)+(x^2e^x) =x(x+2)e^x
Second part is dx/dy(x)=1
Final answer =x(x+2)e^x+1