Where is it appropriate to place absolute value bars while solving this diffeq

Join the discussion
Ask a follow-up here, or get your own question answered by working scientists, mathematicians and engineers — people, not an autocomplete.
Real named experts · corrections over time · the nuance an AI answer skips
1 reply · 1K views
vande060
Messages
180
Reaction score
0

Homework Statement



just a simple problem as an example

dy/dx = y/x

dy/y = dx/x



Homework Equations





The Attempt at a Solution



dy/y = dx/x

ln|y| = ln|x| + c

then when I take exponents do I still have to include the absolute value bar

|y| = |x|c
 
Physics news on Phys.org
vande060 said:

Homework Statement



just a simple problem as an example

dy/dx = y/x

dy/y = dx/x



Homework Equations





The Attempt at a Solution



dy/y = dx/x

ln|y| = ln|x| + c
When you exponentiate each side, you get
[tex]e^{ln|x|} = e^{ln|y| + c} = e^{ln|y|}\cdot e^c = Ae^{ln|y|}[/tex]

where A = ec

You can remove the absolute value signs by investigating four cases:
1) x > 0 and y > 0
2) x > 0 and y < 0
3) x < 0 and y > 0
4) x < 0 and y < 0

If x > 0, |x| = x
If x < 0, |x| = -x

The four cases above will probably reduce to two equations. A is always positive, so you don't have to worry about it.
vande060 said:
then when I take exponents do I still have to include the absolute value bar

|y| = |x|c