Signum Function - Definition, Graph, Properties

#Algebra
TL;DR
The signum function, written sgn⁡(x)\operatorname{sgn}(x), reports only the sign of a real number: it returns −1-1 for negatives, 00 at zero, and +1+1 for positives. This article gives its piecewise definition, its three-part graph, domain and range, why it is an odd function, its key properties, its derivative, and six worked examples.
MV
Madhukar VLast updated on August 17, 20269 min read

The Function That Throws Away Everything But The Sign

Most functions care about how big a number is. The signum function ignores size entirely and reports one thing: is the input negative, zero, or positive? That deliberate forgetfulness is exactly what makes it useful.

Whenever a rule needs "which direction" without "how far" - a controller that must push left or right, a sorting comparison, an absolute value rebuilt from a sign - the signum function is the tool that strips a number down to its direction.

What Is The Signum Function?

The signum function (from the Latin signum, "sign") is the function sgn⁡:R→−1,0,1\operatorname{sgn} : \mathbb{R} \to {-1, 0, 1} that returns the sign of its input. Its piecewise definition is:

sgn⁡(x)={−1if x<0, 0if x=0, 1if x>0.\operatorname{sgn}(x) = \begin{cases} -1 & \text{if } x < 0, \ 0 & \text{if } x = 0, \ 1 & \text{if } x > 0. \end{cases}

So sgn⁡(−8)=−1\operatorname{sgn}(-8) = -1, sgn⁡(0)=0\operatorname{sgn}(0) = 0, and sgn⁡(3.7)=1\operatorname{sgn}(3.7) = 1. The exact input value is discarded; only its sign survives. A closely related identity ties it to the absolute value: for every nonzero xx,

sgn⁡(x)=x∣x∣,x≠0.\operatorname{sgn}(x) = \frac{x}{|x|}, \qquad x \neq 0.

This says the signum of xx is xx divided by its own magnitude, which is why it always lands on −1-1 or +1+1 away from the origin. (At x=0x = 0 the fraction is undefined, so the value 00 is assigned separately.)

What Are The Domain And Range Of The Signum Function?

The signum function accepts every real number, so its domain is all of R\mathbb{R}. But it only ever outputs one of three values, so its range is the finite set

Range=−1,0,1.\text{Range} = {-1, 0, 1}.

That mismatch - an infinite domain squeezed onto three outputs - is the source of every structural property below. Because many different inputs (say 22, 5050, and 10610^6) all map to the same output 11, the signum function cannot be one-to-one.

What Does The Graph Of The Signum Function Look Like?

The graph has three disconnected pieces:

  • A horizontal ray at height y=−1y = -1 for every x<0x < 0.

  • A single point at the origin, (0,0)(0, 0), where sgn⁡(0)=0\operatorname{sgn}(0) = 0.

  • A horizontal ray at height y=+1y = +1 for every x>0x > 0.

At x=0x = 0 the value leaps from −1-1 to +1+1, a jump discontinuity of size 22. The function is flat on each side (its slope is 00 everywhere it is defined off the origin), so nothing "curves"; it simply sits at one level, jumps, and sits at another. This shape puts the signum function in the same family as the greatest integer function, another step-style function built from flat pieces and jumps.

What Are The Properties Of The Signum Function?

The signum function's small range gives it a tidy list of properties.

  • It is an odd function. sgn⁡(−x)=−sgn⁡(x)\operatorname{sgn}(-x) = -\operatorname{sgn}(x) for all xx, so its graph has rotational symmetry about the origin. This places it among the even and odd functions.

  • It is neither one-to-one nor onto (as a map to R\mathbb{R}). Many inputs share an output, and it hits only three real values.

  • It is multiplicative: sgn⁡(xy)=sgn⁡(x),sgn⁡(y)\operatorname{sgn}(xy) = \operatorname{sgn}(x),\operatorname{sgn}(y). The sign of a product is the product of the signs.

  • It rebuilds absolute value: ∣x∣=x⋅sgn⁡(x)|x| = x \cdot \operatorname{sgn}(x), and conversely sgn⁡(x)=x∣x∣\operatorname{sgn}(x) = \frac{x}{|x|} for x≠0x \neq 0.

  • It is bounded: −1≤sgn⁡(x)≤1-1 \le \operatorname{sgn}(x) \le 1 for every real xx.

  • It is discontinuous only at x=0x = 0, and constant (hence continuous) everywhere else.

What Is The Derivative Of The Signum Function?

Away from the origin the signum function is flat, so its derivative is 00 for every x≠0x \neq 0:

ddxsgn⁡(x)=0,x≠0.\frac{d}{dx}\operatorname{sgn}(x) = 0, \qquad x \neq 0.

At x=0x = 0 the ordinary derivative does not exist, because a function must be continuous at a point to be differentiable there, and the signum function jumps at 00. (In more advanced work the "derivative" at the origin is described by the Dirac delta, but at school level the honest statement is: slope 00 off the origin, undefined at the origin.) This is a gap most competitor pages skip, and it is worth stating plainly rather than leaving a student to assume the derivative is 00 everywhere.

Examples Of Signum Function

The set runs from a direct evaluation, through the mistake students make at x=0x = 0, up to solving an inequality and using the multiplicative property.

Example 1

Evaluate sgn⁡(−15)\operatorname{sgn}(-15), sgn⁡(0)\operatorname{sgn}(0), and sgn⁡(4.2)\operatorname{sgn}(4.2).

Read the sign of each input against the definition.

sgn⁡(−15)=−1\operatorname{sgn}(-15) = -1 sgn⁡(0)=0\operatorname{sgn}(0) = 0 sgn⁡(4.2)=1\operatorname{sgn}(4.2) = 1

Final answer: −1-1, 00, and 11. Magnitude is irrelevant; −15-15 and −0.0001-0.0001 both give −1-1.

Example 2

Find sgn⁡(x)\operatorname{sgn}(x) when x=3−3x = 3 - 3.

Wrong path. A student sees the positive-looking numbers 33 and 33 and answers sgn⁡(x)=1\operatorname{sgn}(x) = 1, reasoning "the inputs are positive, so the sign is positive." But the signum function reads the value of xx, not the numbers used to build it. First simplify.

Correct. Evaluate the input before applying the function.

x=3−3=0x = 3 - 3 = 0 sgn⁡(0)=0\operatorname{sgn}(0) = 0

Final answer: 00. Always compute the argument first; sgn⁡\operatorname{sgn} then reads that single resulting value.

Example 3

Simplify sgn⁡(x)⋅∣x∣\operatorname{sgn}(x) \cdot |x| for a nonzero xx.

Use the identity ∣x∣=x⋅sgn⁡(x)|x| = x \cdot \operatorname{sgn}(x) and the fact that sgn⁡(x)2=1\operatorname{sgn}(x)^2 = 1 for x≠0x \neq 0.

sgn⁡(x)⋅∣x∣=sgn⁡(x)⋅(x⋅sgn⁡(x))\operatorname{sgn}(x) \cdot |x| = \operatorname{sgn}(x)\cdot\big(x\cdot\operatorname{sgn}(x)\big) =x⋅sgn⁡(x)2= x \cdot \operatorname{sgn}(x)^2 =x⋅1=x= x \cdot 1 = x

Final answer: xx. The signum and the absolute value are inverse "sign-strippers": multiply them and the original number returns.

Example 4

Use the multiplicative property to find sgn⁡(−6⋅5)\operatorname{sgn}(-6 \cdot 5).

The sign of a product is the product of the signs.

sgn⁡(−6)=−1\operatorname{sgn}(-6) = -1 sgn⁡(5)=1\operatorname{sgn}(5) = 1 sgn⁡(−6⋅5)=(−1)(1)=−1\operatorname{sgn}(-6 \cdot 5) = (-1)(1) = -1

Final answer: −1-1. You never have to multiply −6-6 by 55; the signs alone settle it.

Example 5

Solve sgn⁡(x−4)=1\operatorname{sgn}(x - 4) = 1.

The output is 11 exactly when the input is strictly positive.

sgn⁡(x−4)=1  ⟺  x−4>0\operatorname{sgn}(x - 4) = 1 \iff x - 4 > 0 x>4x > 4

Final answer: x>4x > 4. Reading the definition backwards turns a signum equation into a simple inequality.

Example 6

Find sgn⁡(x2+1)\operatorname{sgn}(x^2 + 1) for every real xx.

Check the sign of the input across all real xx.

x2≥0 for all real xx^2 \ge 0 \text{ for all real } x x2+1≥1>0x^2 + 1 \ge 1 > 0 sgn⁡(x2+1)=1\operatorname{sgn}(x^2 + 1) = 1

Final answer: 11, for every real xx. Because x2+1x^2 + 1 can never be zero or negative, the signum is constantly +1+1.

Where The Signum Function Earns Its Keep

"How does a machine know which way to push before it knows how hard?"

Control systems answer that question with a signum. A bang-bang controller - the logic behind a simple thermostat or a satellite's attitude thrusters - does not compute a smooth response; it looks at the sign of the error and pushes full force in the opposite direction. If the error is positive, fire one way; if negative, fire the other. That is sgn⁡(error)\operatorname{sgn}(\text{error}) doing the deciding. The function's whole value is that it separates direction from magnitude, which is often exactly the split an engineer needs.

The signum function also shows up quietly across mathematics: it appears in the formula for the derivative of ∣x∣|x| (which is sgn⁡(x)\operatorname{sgn}(x) away from zero), in defining orientation and permutations by their "sign," and anywhere a formula must branch on positive-versus-negative without caring about the exact number. It belongs to the broader family of types of functions that students meet in higher algebra, and it is one of the cleanest examples of a piecewise, discontinuous rule.

Common Mistakes

Mistake 1: Forgetting That sgn(0) Is 0, Not 1 Or −1

Where it slips in: any input that simplifies to zero.

Don't do this: assign sgn⁡(0)=1\operatorname{sgn}(0) = 1 (or −1-1) because "it has to be one of them." Zero has no sign, and the definition gives it the value 00.

The correct way: treat x=0x = 0 as its own case with output 00. The memoriser who learned "signum gives plus or minus one" freezes here — the fix is to picture the graph, where the origin is a lone dot at height 00, distinct from both rays.

Mistake 2: Applying sgn Before Simplifying The Input

Where it slips in: expressions like sgn⁡(3−3)\operatorname{sgn}(3 - 3) or sgn⁡(2−5)\operatorname{sgn}(2 - 5).

Don't do this: judge the sign from the numbers you see rather than the value they produce. sgn⁡(2−5)\operatorname{sgn}(2 - 5) is not "mixed" or "positive"; the input is −3-3.

The correct way: compute the argument to a single number first, then read its sign. The rusher who applies the function to the raw expression is the one who gets these wrong.

Mistake 3: Assuming The Derivative Is 0 Everywhere

Where it slips in: differentiating the signum function.

Don't do this: write ddxsgn⁡(x)=0\frac{d}{dx}\operatorname{sgn}(x) = 0 for all xx, including the origin.

The correct way: the derivative is 00 only for x≠0x \neq 0; at x=0x = 0 it is undefined, because the function is discontinuous there. Continuity is a prerequisite for differentiability, and the jump breaks it.

Conclusion

  • The signum function sgn⁡(x)\operatorname{sgn}(x) returns −1-1, 00, or +1+1: the sign of xx, with size discarded.

  • Its domain is all real numbers; its range is the three-element set −1,0,1{-1, 0, 1}.

  • The graph is two flat rays with a single dot at the origin and a jump of 22 at x=0x = 0.

  • It is odd, multiplicative, bounded, and discontinuous only at x=0x = 0; its derivative is 00 off the origin and undefined there.

  • The usual slips are mishandling sgn⁡(0)\operatorname{sgn}(0), applying the function before simplifying, and assuming the derivative is 00 everywhere.

To go deeper into functions and their graphs with a teacher, explore Bhanzu's algebra tutor sessions, a high school math tutor for board-level work, or structured math classes online. Want a live trainer to walk through the signum graph and other piecewise functions? Book a free demo class with a Bhanzu trainer.

Read More

Was this article helpful?

Your feedback helps us write better content

Frequently Asked Questions

What is the signum function in simple terms?
It is a function that returns only the sign of a number: −1-1 if the number is negative, 00 if it is zero, and +1+1 if it is positive.
What is the range of the signum function?
The set −1,0,1{-1, 0, 1}: just three values, no matter how large the input.
Is the signum function odd or even?
Odd. sgn⁡(−x)=−sgn⁡(x)\operatorname{sgn}(-x) = -\operatorname{sgn}(x), so its graph is symmetric about the origin under a half-turn.
Why is sgn(0) equal to 0?
Because zero is neither positive nor negative, so neither −1-1 nor +1+1 fits. Assigning 00 keeps the function odd and matches the identity sgn⁡(x)=x/∣x∣\operatorname{sgn}(x) = x/|x| in the limiting sense.
Is the signum function continuous?
No. It is continuous everywhere except at x=0x = 0, where it has a jump discontinuity of size 22.
✍️ Written By
Madhukar V
Madhukar V
Math Columnist & Analyst
I see mathematics as more than just numbers and formulas—it is a way of thinking, questioning, and understanding the world around us. I work at the intersection of mathematics, EdTech, technology, and AI-powered learning, I enjoy exploring how mathematical ideas can be made simple, meaningful, and relatable. Through my articles, I aim to present mathematics with curiosity and a practical perspective, helping readers see the beauty and relevance behind every concept in a Bhanzu way.
LinkedIn
Related Articles
Book a FREE Demo ClassBook Now →