The general solution of the differential equation dydx=ex+y is
(a)ex+e−y=C
(b)ex+ey=C
(c)e−x+ey=C
(d)e−x+e−y=C
Given, dydx=ex+y⇒dydx=exey
On separating the variables, we get e−ydy=exdx
On integrating both sides, we get ∫e−ydy=∫exdx⇒e−y−1=ex+A
⇒ex+e−y=−A⇒ex+e−y=C, where C=−A
Hence, (a) is the correct option.