Find the derivative of the function y = 4xsinx + x2e^x. Which of the following options correctly represents the derivative of the function?

A) 4sinx + 4xcosx + 2xe^x
B) 4sinx + 4xcosx + 2e^x
C) 4sinx + 2xcosx + 2xe^x
D) 4sinx + 2xcosx + e^x