For the differential equations in given question find the general solution.
dydx+y=1(y≠1).
Given, dydx+y=1
On separating the variables, we get dy+ydx=dx ⇒ dy=dx-ydx
⇒dy=dx(1−y)⇒dx=dy1−y
On integrating both sides, we get ∫dy(1−y)=∫dx⇒−log|1−y|=x−C⇒−x+C=log|1−y|⇒|1−y|=e−x+C⇒y−1=(±eC)e−x⇒y=1+Ae−x (where,(A=±eC )
which is the required general solution of the given differential equation.