Derivative of function containing absolute value

Click For Summary

Discussion Overview

The discussion revolves around the derivative of a function that includes an absolute value, specifically in the context of solving an ordinary differential equation (ODE) with initial conditions. Participants explore the implications of differentiating absolute value functions and how this affects the application of initial conditions.

Discussion Character

  • Technical explanation
  • Debate/contested
  • Mathematical reasoning

Main Points Raised

  • One participant presents a solution to an ODE involving the absolute value function and expresses difficulty in applying the second initial condition due to challenges in taking the derivative.
  • Several participants note that the derivative of the absolute value function is given by the signum function, but this is contingent on the definition of the derivative used.
  • One participant argues that the derivative of |x| does not exist at x=0, emphasizing that |x| has a corner at the origin and should not be considered differentiable there.
  • Another participant suggests that if initial conditions were given at x=6 instead of x=2, it would necessitate setting certain constants to zero and raises the issue of specifying one-sided derivative conditions at x=6.
  • There is a discussion about the implications of using different definitions of the derivative and how they affect the interpretation of differentiability at certain points.

Areas of Agreement / Disagreement

Participants express differing views on the differentiability of the absolute value function at the origin, with some accepting the symmetric definition of the derivative while others reject it as meaningful. The discussion remains unresolved regarding the implications of initial conditions and the treatment of derivatives at specific points.

Contextual Notes

Participants highlight the dependence on definitions of the derivative and the implications of initial conditions on the solution of the ODE. There are unresolved mathematical steps regarding the application of these concepts to the specific problem at hand.

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