Mathwords logoMathwords

Signum — Definition, Formula & Example

Signum, or the sign function, is a function that reports only the sign of a number. It outputs −1-1 for a negative input, 00 for zero, and 11 for a positive input.

The signum function sgn⁡:R→{−1,0,1}\operatorname{sgn}: \mathbb{R} \to \{-1, 0, 1\} is the piecewise function defined below. It is bounded, odd (sgn⁡(−x)=−sgn⁡(x)\operatorname{sgn}(-x) = -\operatorname{sgn}(x)), and has a jump discontinuity at x=0x = 0. For every real xx it satisfies x=sgn⁡(x) ∣x∣x = \operatorname{sgn}(x)\,|x|. For x≠0x \neq 0 it also equals x∣x∣\frac{x}{|x|}. Its graph consists of the open ray y=−1y = -1 for x<0x < 0, the single point (0,0)(0, 0), and the open ray y=1y = 1 for x>0x > 0.

Key Formula

sgn⁡(x)={−1if x<00if x=01if x>0\operatorname{sgn}(x) = \begin{cases} -1 & \text{if } x < 0 \\ 0 & \text{if } x = 0 \\ 1 & \text{if } x > 0 \end{cases}
Where:
  • xx = Any real number (the input)
  • sgn⁡(x)\operatorname{sgn}(x) = The output, which is always exactly one of −1, 0, or 1

Worked Example

Problem: Let g(x)=sgn⁡(x2−4x)g(x) = \operatorname{sgn}(x^2 - 4x). Evaluate g(1)g(1), g(4)g(4), and g(6)g(6).
Step 1: First compute the argument at x=1x = 1. It is negative, so signum returns −1-1.
g(1)=sgn⁡(12−4⋅1)=sgn⁡(−3)=−1g(1) = \operatorname{sgn}(1^2 - 4\cdot 1) = \operatorname{sgn}(-3) = -1
Step 2: At x=4x = 4 the argument is exactly zero, so signum returns 00.
g(4)=sgn⁡(16−16)=sgn⁡(0)=0g(4) = \operatorname{sgn}(16 - 16) = \operatorname{sgn}(0) = 0
Step 3: At x=6x = 6 the argument is positive, so signum returns 11. Notice that the size of the argument, 12, is discarded. Only its sign survives.
g(6)=sgn⁡(36−24)=sgn⁡(12)=1g(6) = \operatorname{sgn}(36 - 24) = \operatorname{sgn}(12) = 1
Answer: g(1)=−1g(1) = -1, g(4)=0g(4) = 0, and g(6)=1g(6) = 1. Composing with signum turns x2−4xx^2 - 4x into a sign chart. The output is −1-1 on (0,4)(0, 4), 00 at x=0x = 0 and x=4x = 4, and 11 elsewhere.

Why It Matters

In Calculus I, the derivative of ∣x∣|x| is sgn⁡(x)\operatorname{sgn}(x) for every x≠0x \neq 0. At x=0x = 0, ∣x∣|x| has no derivative. In physics, kinetic friction is often modeled as F=−μN sgn⁡(v)F = -\mu N\,\operatorname{sgn}(v). Here signum flips the force so it always opposes the direction of the velocity vv.

Common Mistakes

Mistake: Using sgn⁡(x)=x∣x∣\operatorname{sgn}(x) = \frac{x}{|x|} for all xx, or assuming sgn⁡(0)=1\operatorname{sgn}(0) = 1.
Correction: The quotient x∣x∣\frac{x}{|x|} is undefined at x=0x = 0, so it matches signum only for nonzero xx. The standard signum function assigns sgn⁡(0)=0\operatorname{sgn}(0) = 0 as a separate case.

Related Terms