f(x) = xx^2 = elnx^x^2 = ex^2lnx
Let u = x2ln(x) then apply the Chain Rule:
df(x)/dx = deu/du * du/dx = eu * du/dx = xx^2 * d(x2ln(x))/dx
Apply the Product Rule:
= xx^2 * (2xlnx + x2/x)
= xx^2 * (2xlnx + x)
= xx^2 * x(2lnx + 1)
This is what you got, and it's correct. If you apply the rules of exponents from algebra 1, you'll recall that xa*x = xa+1. Hence xx^2*x = xx^2 + 1, so:
= xx^2 + 1*(2lnx + 1)
So your answer is correct; you just forgot the algebra 1 rules of exponents.