Skip to content

Signum Function

Definition

The signum function sgn⁡ ⁣:R→R\operatorname{sgn} \colon \mathbb{R} \to \mathbb{R} is defined by

sgn⁡(x)={ ∣x∣x,x≠0, 0,x=0={ 1,x>0, 0,x=0, −1,x<0.\operatorname{sgn}(x)=\begin{cases} \displaystyle \, \frac{|x|}{x},& x\neq 0,\\[2pt] \displaystyle \, 0,& x= 0 \end{cases} =\begin{cases} \displaystyle \, 1,& x>0,\\[2pt] \displaystyle \, 0,& x=0,\\[2pt] \displaystyle \, -1,& x<0. \end{cases}

The signum function: a horizontal line at 1 for positive x, a horizontal line at -1 for negative x, and the value 0 at the origin.


Interpretation

The signum function keeps only the sign of a real number and discards its size: every positive number goes to 11, every negative number to −1-1, and 00 to 00. The formula ∣x∣/x|x|/x shows the link with the absolute value: dividing a nonzero number by its magnitude leaves only its direction on the real line.

Read the other way, every real number factors as x=sgn⁡(x) ∣x∣x=\operatorname{sgn}(x)\,|x|, sign times magnitude, and this also holds at x=0x=0. The three possible values match the trichotomy of real numbers: each xx is positive, zero or negative.

The signum function is the standard example of a jump. Its one-sided limits at 00 are 11 from the right and −1-1 from the left, so the limit at 00 does not exist and no choice of sgn⁡(0)\operatorname{sgn}(0) makes the function continuous there. It also shows why the intermediate value theorem needs continuity: on [−1,1][-1,1] it never takes the value 12\tfrac{1}{2}.

A common slip is to use ∣x∣/x|x|/x at x=0x=0. That quotient is undefined at 00, which is why the definition sets sgn⁡(0)=0\operatorname{sgn}(0)=0 separately.


Key Results


Examples

  • sgn⁡(3)=1.\operatorname{sgn}(3)=1\text{.}
  • sgn⁡(−2)=−1.\operatorname{sgn}(-2)=-1\text{.}
  • sgn⁡(0)=0.\operatorname{sgn}(0)=0\text{.}

Prerequisites

Sources

Aliases: sign function, sgn Symbols: real numbers

Last updated: 22 October 2026 19:04