Here you need to use the formula that the differential of e^f(x), where f(x) is any function, is equal to f'(x)e^f(x). So for our function we differentiate xsinx using product rule to give sinx + xcosx. By using the formula above we can show that the answer is (sinx + xcosx)e^(xsinx).