Find the general solution to:
$$ (e^x+1)y'=y-ye^x $$
I worked through the problem and got stuck. I know that it isn't a separable equation and for me all I can think of to solve it is using the method of integrating factors, but I got stuck trying to figure out the integrating factor. Could someone help me answer it and give me some instruction on what's the correct way to go about solving this? Thanks!