Posted by Christine on Wednesday, May 7, 2008 at 11:09am.
First solve the homogeneous equation:
y' + (y)tanh(x)= 0
Replace the integration constant by an unknown function and substitute that back in the Diff. equation:
y' + (y)tanh(x) - 2e^x = 0
then solve for that unknown function.