Solve the following differential equation:
Differential Equations · Question 118 of 154
Solve the following differential equation: y ydx/dy+x- y=0
Question 1183 marksMedium
Solution:
Key idea: When the equation is linear in (not in ), we treat as the dependent variable and write it as , where and are functions of only. Then and the solution is , where is the arbitrary constant. Here and , so that is defined and non-zero.
Step 1 — Write the equation in standard form.
We move to the right and divide by .
Step 2 — Find the integrating factor.
We put , so ; the integral of is .
On an interval where keeps one sign we may take:
Step 3 — Multiply by the IF and integrate.
We multiply by ; with the integral is .
Step 4 — Make the subject.
We divide every term by .
Therefore, the general solution is .
