im studying for this test i have to take on monday called the mastery test. its all derivatives and im studying this practice sheet my teacher posted online but i think i found an error on one. can someone check it please.

y=x^sin(x)

find y'

y'=(ln(x))(x^sin(x))(cos(x))

this is what i got ^^^^

but on the answer sheet of the practice sheet it says that the answer is:

[cosx(lnx) + sinx(1/x)] (x^sinx)

which one is correct?

thank you