A mathematical differential equation problem (x + 1) y '+ 1 = 2 (to the - y power of E) Ask for his general understanding

A mathematical differential equation problem (x + 1) y '+ 1 = 2 (to the - y power of E) Ask for his general understanding

(x+1)(dy/dx) = (2exp(-y)-1)
dy/[2exp(-y)=1] = dx/(x+1)
exp(y)dy/(2-exp(y)) = dx/(x+1)
The solution is - ln [2-exp (y)] = ln (x + 1) + C1
(x+1)[2-exp(y)]=C