# Kreyszig ODE

by mathnerd15
Tags: kreyszig
 P: 110 Hi! I think I have to ask this since I'm having health problems- from Kreyszig, for xy'=-y how do you verify the solution y=h(x)=clnx by differentiating y'=h'(x)=-clnx^2? I don't see how you get the x^2 term also for ODEs the solution is on an open interval a
 HW Helper P: 2,264 That is not a solution. It is a separable differential equation.
 P: 110 thanks very much! I separated leading to- -ln|y|=ln|x|+C so then you just find the substitution c/x? (I misread the text: l is /)
Math
Emeritus
Well, you don't just "find" a substitution. You always solve an equation of the form f(y)= F(x) for y by taking $f^{-1}$ of both sides. The inverse function to ln(x) is, of course, $e^x$ so take the exponential of both sides:
$$e^{-ln|y|}= e^{ln|x|+ C}$$
$-ln|y|= ln|y^{-1}|$ so the left side is $y^{-1}= 1/y$. Because $e^{a+ b}= e^ae^b$ the right side is $e^{ln|x|}e^C= C' |x|$ where C'= e^C.
That is, $1/|y|= C'|x|$ or $|y|= C'/|x|$. We can then "absorb" the absolute values into C' by allowing it to be positive or negative.