Derivative of function containing absolute value

Click For Summary
SUMMARY

The discussion centers on solving an ordinary differential equation (ODE) with initial conditions y(2)=4 and y'(2)=1/3, leading to the solution y=c1/|x-6|^8 + c2|x-6|^(2/3). Participants debate the application of the second initial condition and the differentiation of the absolute value function, specifically at x=0, where the derivative does not exist. The conversation highlights the importance of understanding the signum function and the implications of initial conditions at different points, particularly at x=6.

PREREQUISITES
  • Understanding of ordinary differential equations (ODEs)
  • Familiarity with the signum function (sgn)
  • Knowledge of differentiation and limits
  • Concept of one-sided derivatives
NEXT STEPS
  • Study the properties of the signum function in calculus
  • Learn about the implications of initial conditions in ODEs
  • Explore the concept of one-sided derivatives and their applications
  • Investigate the differentiability of piecewise functions, particularly at corners
USEFUL FOR

Mathematicians, students of calculus, and anyone working with differential equations who seeks to deepen their understanding of differentiability and initial conditions in ODEs.

find_the_fun
Messages
147
Reaction score
0
I'm working on a ODE with initial conditions y(2)=4 and y'(2)=1/3. I solved it to be [math]y=\frac{c_1}{|x-6|^8} + c_2|x-6|^{\frac{2}{3}}[/math]. How do I apply the second initial condition? I'm stuck at taking the derivative.
 
Physics news on Phys.org
$$\frac{d}{dx}|x|=\text{sgn}(x),$$
where sgn is the signum (or sign) function. Out of curiosity, what is your original DE?
 
Ackbach said:
$$\frac{d}{dx}|x|=\text{sgn}(x),$$
where sgn is the signum (or sign) function. Out of curiosity, what is your original DE?

I forget but I think I had fouled up at an earlier step than shown.
 
find_the_fun said:
I forget but I think I had fouled up at an earlier step than shown.

Ok...
 
Ackbach said:
$$\frac{d}{dx}|x|=\text{sgn}(x),$$
where sgn is the signum (or sign) function...

This is true only if we accept the definition of derivative...

$\displaystyle f^{\ '} (x) = \lim_{\delta \rightarrow 0} \frac{f(x + \delta) - f(x - \delta)}{2\ \delta}\ (1)$

With the more 'conventional' definition...

$\displaystyle f^{\ '} (x) = \lim_{\delta \rightarrow 0} \frac{f(x + \delta) - f(x)}{\delta}\ (2)$

... the derivative of |x| in x=0 doesn't exist...

Kind regards

$\chi$ $\sigma$
 
chisigma said:
This is true only if we accept the definition of derivative...

$\displaystyle f^{\ '} (x) = \lim_{\delta \rightarrow 0} \frac{f(x + \delta) - f(x - \delta)}{2\ \delta}\ (1)$

Not sure I agree. It is true that using the symmetric definition yields $f'(0)=0=\text{sgn}(0)$. However, to my mind, this is a meaningless statement. $|x|$ has a corner at the origin, and should not be viewed as differentiable there. I was kind of taking it as understood that $|x|$ is not differentiable at the origin. You could think of this as an "almost everywhere" equality.
 
Ackbach said:
Not sure I agree. It is true that using the symmetric definition yields $f'(0)=0=\text{sgn}(0)$. However, to my mind, this is a meaningless statement. $|x|$ has a corner at the origin, and should not be viewed as differentiable there. I was kind of taking it as understood that $|x|$ is not differentiable at the origin. You could think of this as an "almost everywhere" equality.

Ok! ... some problems, however could be born if the initial conditions have not been given at x = 2 but at x = 6 ... what to do in this case? ...

Kind regards

$\chi$ $\sigma$
 
chisigma said:
Ok! ... some problems, however could be born if the initial conditions have not been given at x = 2 but at x = 6 ... what to do in this case? ...

Kind regards

$\chi$ $\sigma$

Well, you'd certainly need $c_1=0$ if the initial conditions are finite. As for the derivative, I really don't think it's possible even to specify two-sided derivative conditions at $x=6$. You could specify one-sided derivative conditions, though. That is, you could specify what
$$\lim_{h\to 0^{+}}\frac{y(6+h)-y(6)}{h}\quad\text{and}\quad
\lim_{h\to 0^{-}}\frac{y(6+h)-y(6)}{h}$$
are. I imagine if you specify one of them, the other might be determined.
 

Similar threads

  • · Replies 2 ·
Replies
2
Views
1K
  • · Replies 6 ·
Replies
6
Views
3K
  • · Replies 22 ·
Replies
22
Views
3K
  • · Replies 5 ·
Replies
5
Views
3K
  • · Replies 16 ·
Replies
16
Views
3K
  • · Replies 4 ·
Replies
4
Views
3K
  • · Replies 7 ·
Replies
7
Views
3K
Replies
3
Views
2K
  • · Replies 1 ·
Replies
1
Views
3K
Replies
5
Views
2K