Question
Mathematics Question on Differential equations
For the differential equations , find the general solution:dxdy+y=1, (y=1)
Answer
The given differential equation is:
dxdy+y=1
⇒dy+ydx=dx
⇒dy=(1−y)dx
Separating the variables, we get:
1−ydy=dx
Now, integrating both sides, we get:
∫1−ydy=∫dx
⇒log (1−y)=x+log C
⇒−log C−log (1−y)=x
⇒log C(1−y)=−x
⇒C(1−y)=e−x
⇒1−y=C1e−x
⇒y=1+Ae−x (where A=−C1)
This is the required general solution of the given differential equation.