Solving x^2 dy/dx = y-xy with y(-1)=-1

  • Thread starter Thread starter Saladsamurai
  • Start date Start date
Join the discussion
Registration is free. Start your own thread to ask a follow-up.
2 replies · 2K views
Saladsamurai
Messages
3,009
Reaction score
7

Homework Statement


Find implicit and explicit solution for

[tex]x^2\frac{dy}{dx}=y-xy[/tex] when y(-1)=-1


So far I have:

[tex]\frac{(1-x)}{x^2}dx=dy/y[/tex]

[tex]\Rightarrow x^{-2}(1-x)dx=\ln y+C[/tex]

[tex]\Rightarrow (x^{-2)-x^{-1})dx=\ln y+C[/tex]

[tex]\Rightarrow -\frac{1}{x}-\ln x=\ln y+C[/tex]

With the initial values, (-1,-1) are outside of the domain. What gives? My integration looks good to me. What am I missing?

Thanks,
Casey
 
Physics news on Phys.org
Actually,

[tex]\int \frac{du}{u} = \ln |u| + C[/tex]

Assuming everything else is correct, that might be your mistake.
 
Oh, yes, that looks like it would clear up the problem. Thanks Ben. The integration looked a little to easy to be getting the best of me. It's always the details...

Thanks,
Casey