The two terms are multiplied together, not added. You cannot break them up and integrate separately like you tried.

The method you need to use is integration by parts. Are you familiar with it? Another way to check without actually integrating is to differentiate the proposed solution they gave and see if it matches up as it should.