Help with very easy differential equation

Click For Summary
SUMMARY

The differential equation dy/dx = y/x can be solved by separating variables and integrating both sides. The correct integration leads to the solution y = Kx, where K is a constant. The initial attempt incorrectly derived y = xe^C, which does not account for the constant's nature. Additionally, the solution must acknowledge that y = 0 is also valid, and the equation cannot be solved at x = 0.

PREREQUISITES
  • Understanding of differential equations and separation of variables
  • Familiarity with logarithmic and exponential functions
  • Knowledge of constants in mathematical solutions
  • Basic calculus concepts, including integration
NEXT STEPS
  • Study the method of separation of variables in differential equations
  • Learn about the implications of constants in solutions to differential equations
  • Explore the concept of solutions at boundary conditions, particularly at x = 0
  • Review examples of linear differential equations and their general solutions
USEFUL FOR

Students studying calculus, particularly those focusing on differential equations, as well as educators seeking to clarify common misconceptions in solving such equations.

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
 

Similar threads

  • · Replies 2 ·
Replies
2
Views
851
  • · Replies 8 ·
Replies
8
Views
2K
  • · Replies 8 ·
Replies
8
Views
2K
Replies
3
Views
2K
  • · Replies 4 ·
Replies
4
Views
1K
Replies
3
Views
2K
  • · Replies 3 ·
Replies
3
Views
1K
  • · Replies 8 ·
Replies
8
Views
2K
  • · Replies 25 ·
Replies
25
Views
2K
  • · Replies 12 ·
Replies
12
Views
2K