Help with very easy differential equation

pmqable
Messages
13
Reaction score
0

Homework Statement


dy/dx=y/x


Homework Equations





The Attempt at a Solution


ok here's what I got... dy/dx=y/x so dy/y=dx/x. Then just integrate both sides and you get ln(y)=ln(x)+C. Next raise both sides to a power of e and you get y=e^(ln(x)+C). This can be rewritten y=e^ln(x)*e^C. so the answer i got is y=xe^C. however, i checked the answer in the back of my textbook and it says that the answer is y=Cx. Help please??
 
Physics news on Phys.org
pmqable said:

Homework Statement


dy/dx=y/x


Homework Equations





The Attempt at a Solution


ok here's what I got... dy/dx=y/x so dy/y=dx/x. Then just integrate both sides and you get ln(y)=ln(x)+C. Next raise both sides to a power of e and you get y=e^(ln(x)+C). This can be rewritten y=e^ln(x)*e^C. so the answer i got is y=xe^C. however, i checked the answer in the back of my textbook and it says that the answer is y=Cx. Help please??

You have the right idea, but need to use a little more care. When you integrate you get$$
\ln(|y|) = \ln(|x|) + C$$
Writing in exponential form$$
|y| = e^{\ln(|x|+C)}=|x|e^C$$Note that while ##C## can be any constant, ##e^C## is positive, so both sides of this equation are positive. You can drop the absolute value signs like this$$
y = \pm e^Cx$$where ##\pm e^C## can now be any nonzero constant so you can call it a new constant K.$$
y = Kx$$One other point. By dividing by ##y## in your solution, you ruled out the possibility of finding ##y=0## if it would happen to be a solution. Checking it you will see that ##y=0## also works, so you can include that by saying ##K## is any constant, not just a nonzero one.

Finally, the way the equation is written, no solution can be valid for ##x=0##. That would be solved by writing the DE in the form ##x\frac{dy}{dx}= y## in the first place.
 
thanks a lot lckurtz
 
There are two things I don't understand about this problem. First, when finding the nth root of a number, there should in theory be n solutions. However, the formula produces n+1 roots. Here is how. The first root is simply ##\left(r\right)^{\left(\frac{1}{n}\right)}##. Then you multiply this first root by n additional expressions given by the formula, as you go through k=0,1,...n-1. So you end up with n+1 roots, which cannot be correct. Let me illustrate what I mean. For this...
Back
Top