D[Abs[x^2-1],x]