\int (e^x-x)^2 dx

(Alternative method to solve this problem is given in the video below)