1
$\begingroup$

I have been asked to show that the solutions to this equation are identical regardless of the method used. I did both methods and I think I may have got it right but I am not sure. Please check:

Using the integrating factor method I found that the factor was $x$. Therefore $\frac{d}{dx}(xy)=x$ so the result was $y=\frac12 x+\frac cx$

Using the substitution $y=vx$ enabled me to get the separable equation: $x\frac{dy}{dv}+2v=1$ I then solved to give: $\frac1{\sqrt{1-2v}}=Ax$ where $A=e^c$. Rearranging to try and get the form of the answer that I got using the other method gave me: $y=\frac12x-\frac{1}{2A^2x}$. It looks similar to my last answer and would be the same if it is permissible to simply say that $c=-\frac{1}{2A^2}$. Is this allowed or have I done something wrong?

$\endgroup$
  • 1
    $\begingroup$ they are equivalent. $\endgroup$ – abel Mar 19 '15 at 0:23
  • $\begingroup$ So I have done it right? $\endgroup$ – RobChem Mar 19 '15 at 0:23
  • 1
    $\begingroup$ Yes it is allowed. $\endgroup$ – science Mar 19 '15 at 0:24
  • $\begingroup$ yes. you did it right. $\endgroup$ – abel Mar 19 '15 at 0:24
1
$\begingroup$

i don't know if you care for another way to do this. that is a third way. but here it is. we write the differential equation as $$\frac{dy}{dx} = \frac{x-y}x $$ split this into equations $$\frac{dy}{dt} = x - y, \, \frac{dt}{dx} = \frac 1 x$$ we solve the second one and get $$x = Ce^t, \frac{dy}{dx} + y=Ce^t $$ the solution for $y$ is $$y = Be^{-t} + \frac C 2 e^t $$ now we get rid $t$ by subbing $\frac x C$ for $e^t$ and arrive at the same solution you got $$y = \frac{BC} x + \frac 1 2 x $$

$\endgroup$
2
$\begingroup$

Write the ode as

$$ xy'+y=x \implies (xy)'=x. $$

$\endgroup$
  • $\begingroup$ Any thoughts in terms of an answer? $\endgroup$ – RobChem Mar 19 '15 at 0:22

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.