From wikipedia the derivative of the Sign[x] function has the following property:
$\qquad \frac{d}{dx}{\rm Sign}[x]=2\delta[x]$
Where $\delta[x]={\rm DiracDelta}[x]$. It seems that Mathematica ignores this property. If I'm not wrong about this, is there a way to assign this property globally (for all Notebook cells)?
Signworks for all complex ones. – Szabolcs Feb 13 '17 at 19:55Clear[realSign]; realSign[0] = 0; realSign[x_] := -1 /; x < 0; realSign[x_] := 1 /; x > 0; realSign' = 2 DiracDelta[#] &– Szabolcs Feb 13 '17 at 19:55sign[x_] := 2 HeavisideTheta[x] - 1instead? You can also use the technique I provided in (137443) – Carl Woll Feb 13 '17 at 19:58Unprotect[Derivative]; Derivative[1][Sign][x_Symbol] := 2*DiracDelta[x] Protect[Derivative];but i suggest to implement your own sign function which behaves like that suggested by Carl Woll – Julien Kluge Feb 13 '17 at 20:48