Question
Question: How do you solve \(y'=-xy+\sqrt{y}\) given \(y\left( 0 \right)=1\)?...
How do you solve y′=−xy+y given y(0)=1?
Explanation
Solution
We need to divide the given equation by y to get y1dxdy=−xy+1. Then on substituting t=y we will obtain the equation 2dxdt+xt=1, which can be solved by finding the integrating factor. Finally, on substituting the solution in y=t2, we will obtain the solution in terms of a constant. The value of the constant can be found by using y(0)=1, which has been given in the question.
Complete step by step solution:
The differential equation given in the above question is written as
⇒y′=−xy+y
Writing y=dxdy in the above equation, we get
⇒dxdy=−xy+y
Dividing by y both the sides, we get