is called the sign function. It extracts nothing but the sign of a real number and returns one of three values1.
The domain is all real numbers, but the range consists of just three values: , and . The graph is two horizontal half-lines, at height for and at height for , with a single isolated point of height at the origin.
Since , the function is odd, with point symmetry about the origin. The value is consistent with that symmetry; indeed taking at the origin is forced by oddness.
The origin is the only point of discontinuity. The limit from the left is and from the right is , so the two disagree and the jump has size . The value itself is , halfway between. Everywhere else the function is constant, hence continuous, with derivative .
The sign function is closely tied to the absolute value.
The second holds only for . Differentiating gives on : differentiating a function with a corner produces a function with a jump.
It is related to the Heaviside step function as follows2.
The step function takes the two values and ; doubling it vertically and lowering it by gives the sign function. The range then becomes symmetric between and , which makes it convenient for representing a direction.
It comes into its own wherever the direction of a quantity matters more than its size.