First ODE of an absolute value

sydneyw
Messages
5
Reaction score
0
so I understand the basic premise of differentiating a first ODE, or I thought I did. I have the equation y'-y=abs(x-1). I have no idea of how to go about this. Can someone walk me through how to do this? I'm attempting to study for a test and this is one of the practice questions he gave us so I feel as though I'm in some serious trouble if I don't learn how to do this! Thank you much.
 
Physics news on Phys.org
Can you solve ##y'-y=x-1##? Can you solve ##y'-y=1-x##? These are the two cases you have depending on whether ##x>1## or ##x<1##. Solve them separately.
 
First, you don't want to "differentiate" the ODE, you want to integrate it.

And the simplest way to handle the absolute value is to use the definition. If x\ge 1, x- 1 is non-negative so |x- 1|= x- 1 and your differential equation becomes dy/dx- y= x- 1.
If x< 1, x- 1 is negative so|x- 1|= -(x- 1)= 1- x and your differential equation becomes dy/dx= 1- x.

Integrate those to get two general solutions, one valid for x> 1, the other valid for x< 1.
 
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