Hi,
To integrate xe^x directly, we need to use an advanced
technique called integration by parts, which is not
covered in the O-level mathematics syllabus.
A typical exam question will require the
student to carry out differentiation of an expression first, say
d/dx [(x-1)e^x] = xe^x. Then another part will ask the student to
reverse the process.
Hope that clarifies. Thanks!
Cheers,
Wen Shih