Exploring Derivatives of |x| and \sgn(x)

  • Thread starter IniquiTrance
  • Start date
  • Tags
    Derivatives
In summary, the Wikipedia article on \sgn (x) states that the derivative of \vert x\vert is equal to \sgn(x), but the product rule for derivatives does not apply in this case due to the indeterminate nature of the derivative at x=0. However, the formula \frac{d}{dx}\vert x\vert = \textrm{sgn}(x) + 2x\delta(x) is still considered valid in some sense, as 2x\delta(x) is equivalent to 0 for all x except x=0.
  • #1
IniquiTrance
190
0
The wikipedia article on [itex]\sgn (x)[/itex] (http://en.wikipedia.org/wiki/Sign_function) states that,

[tex]
\frac{d}{dx}\vert x\vert = \sgn(x)
[/tex]

and [itex]\frac{d}{dx}\sgn(x) = 2\delta(x)[/itex]. I'm wondering why the following is not true:

[tex]
\begin{align*}
\vert x\vert &= x\sgn(x)\\
\Longrightarrow \frac{d}{dx}\vert x \vert &= \sgn(x) + 2x\delta(x)
\end{align*}
[/tex]

by the product rule for derivatives. Is it because this derivative is indeterminate at [itex]x=0[/itex], and [itex]2x\delta(x) \equiv 0 [/itex] for all [itex]x \neq 0[/itex]?
 
Physics news on Phys.org
  • #2
The stated derivative of ##\text{sgn}## is the derivative of ##\text{sgn}## as a distribution, but for distributions that are not identifiable with differentiable functions the chain rule don't apply in general.
 
Last edited:
  • Like
Likes 1 person
  • #3
It is quite common that formal calculations still give correct results in some sense, even if they are not fully justified.

In this case I don't see anything wrong with the formula

[tex]
\frac{d}{dx}|x| = \textrm{sgn}(x) + 2x\delta(x)
[/tex]

Simply subsitute [itex]2x\delta(x)=0[/itex] and you get the previous formula

[tex]
\frac{d}{dx}|x| = \textrm{sgn}(x)
[/tex]

For test function [itex]f[/itex] we have

[tex]
\int\limits_{-\infty}^{\infty} f(x) 2x\delta(x)dx = 0
[/tex]

so in this sense [itex]2x\delta(x)=0[/itex] holds "for all [itex]x[/itex]", not only for [itex]x\neq 0[/itex].
 
  • Like
Likes 1 person
  • #4
The formula is true, because [itex] x\cdot \delta [/itex] is actually the zero distribution.
 
  • #5


I would like to clarify that the product rule for derivatives states that for two functions f(x) and g(x), the derivative of their product is given by:

\frac{d}{dx}(f(x)g(x)) = f'(x)g(x) + f(x)g'(x)

In this case, we have f(x) = |x| and g(x) = sgn(x), so using the product rule we get:

\frac{d}{dx}(|x|sgn(x)) = |x| \frac{d}{dx}(sgn(x)) + sgn(x) \frac{d}{dx}(|x|)

Now, according to the given information, we know that:

\frac{d}{dx}(|x|) = sgn(x)

and

\frac{d}{dx}(sgn(x)) = 2\delta(x)

Substituting these values in the above equation, we get:

\frac{d}{dx}(|x|sgn(x)) = |x| (2\delta(x)) + sgn(x) (sgn(x))

= 2|x|\delta(x) + (sgn(x))^2

= 2|x|\delta(x) + 1

Now, we can see that the derivative is not equal to just sgn(x) as stated in the original question. This is because the product rule also takes into account the derivative of |x| which is not just sgn(x) but also includes the term 2\delta(x). So, the original statement is not true.

Moreover, as you correctly pointed out, the derivative is indeterminate at x=0, which means that we cannot simply substitute x=0 in the derivative. This is because the derivative of |x| at x=0 is not defined. So, we cannot say that 2x\delta(x) is equal to 0 for all x ≠ 0.

In conclusion, the given statement is not true and the product rule for derivatives should be used correctly to obtain the correct derivative.
 

1. What is the definition of |x| and \sgn(x)?

The absolute value of x, denoted by |x|, is the distance of x from 0 on the number line. The sign function, denoted by \sgn(x), is a mathematical function that returns the sign of x (positive, negative, or zero).

2. How are the derivatives of |x| and \sgn(x) calculated?

The derivative of |x| is defined as 1 for positive values of x, -1 for negative values of x, and does not exist at x = 0. The derivative of \sgn(x) is defined as 0 for all values of x except at x = 0, where it is undefined.

3. What are the main applications of derivatives of |x| and \sgn(x)?

The derivatives of |x| and \sgn(x) are commonly used in physics and engineering to analyze motion and determine the direction and magnitude of change in a system.

4. Are there any real-world examples of |x| and \sgn(x) derivatives?

Yes, an example of |x| derivative can be seen in velocity and acceleration calculations in physics, where |x| represents distance and its derivative represents speed. An example of \sgn(x) derivative can be seen in electrical engineering, where it is used to determine the direction of current flow in a circuit.

5. Can the derivatives of |x| and \sgn(x) be negative?

Yes, the derivative of |x| can be negative for negative values of x, as it represents the decrease in distance from 0. However, the derivative of \sgn(x) is always 0, except at x = 0 where it is undefined.

Similar threads

  • Advanced Physics Homework Help
Replies
10
Views
574
Replies
1
Views
659
Replies
4
Views
359
  • Calculus and Beyond Homework Help
Replies
0
Views
151
  • Calculus and Beyond Homework Help
Replies
3
Views
2K
  • Quantum Physics
Replies
6
Views
813
  • Advanced Physics Homework Help
Replies
8
Views
801
  • High Energy, Nuclear, Particle Physics
Replies
6
Views
2K
Replies
3
Views
2K
  • STEM Educators and Teaching
Replies
4
Views
1K
Back
Top