Signum Function — Definition, Graph and Domain-Range
On this page· 13 sections
Source & scope. Class 11 Mathematics, Chapter 2 Relations and Functions, Section 2.4.1(vi) Signum function. Builds on: Modulus Function. Next: Greatest Integer Function, the last of the six "functions and their graphs" NCERT lists before moving to the algebra of real functions.
Source & scope. Class 11 Mathematics, Chapter 2 Relations and Functions, Section 2.4.1(vi) Signum function. Builds on: Modulus Function. Next: Greatest Integer Function, the last of the six "functions and their graphs" NCERT lists before moving to the algebra of real functions.
The signum function is the function f : R → R defined by f(x) = 1 if x > 0, f(x) = 0 if x = 0, and f(x) = −1 if x < 0. It simply reports the sign of a real number rather than its magnitude, so its domain is all of R but its range is restricted to just three values: {−1, 0, 1}.
At a glance
- Also written as sgn(x) in many textbooks, though NCERT itself calls it only the "signum function" and writes it as f(x).
- Piecewise rule: f(x) = 1 for x > 0, f(x) = 0 for x = 0, f(x) = −1 for x < 0.
- Domain = R (every real number has a sign), Range = {−1, 0, 1} (only three possible outputs).
- The graph consists of two horizontal half-lines (at y = 1 for x > 0 and y = −1 for x < 0) and a single isolated point at the origin (0, 0).
- It is not continuous at x = 0 — the graph "jumps" from −1 to 1 as x crosses zero, with the single point (0, 0) sitting between the jump.
Learning objectives
- State the three-part piecewise definition of the signum function exactly as NCERT gives it.
- Identify the domain and range of the signum function and justify why the range contains only three elements.
- Sketch the graph of the signum function, including the isolated point at the origin.
- Evaluate the signum function at any given real input, positive, negative, or zero.
Prerequisite knowledge
The reader should already know what a real function is (a function whose domain and range are subsets of R) and should have seen the modulus function f(x) = |x|, since the signum function is often compared with it (for x ≠ 0, sgn(x) = |x|/x, though NCERT itself does not use this relation explicitly).
Core explanation
The piecewise definition
NCERT defines the signum function as the function f : R → R given by
f(x) = 1, if x > 0 f(x) = 0, if x = 0 f(x) = −1, if x < 0
This is a piecewise-defined function: the rule that produces the output depends on which of the three cases (positive, zero, negative) the input x falls into. Unlike the modulus function, which returns a magnitude, the signum function returns a sign indicator — it discards all information about how large |x| is and keeps only whether x is positive, negative, or exactly zero.
Why the domain is R but the range is just three points
Every real number is either positive, negative, or zero — there is no real number for which none of the three cases in the definition applies. This means f(x) is defined for every x ∈ R, so the domain of the signum function is R.
However, no matter how large or small a nonzero x is, f(x) can only ever equal 1 or −1, and at exactly x = 0 it equals 0. No other output is ever produced. This is why the range of the signum function is the finite set {−1, 0, 1}, even though the domain is the entire (infinite) set of real numbers. This domain-range mismatch — an infinite domain collapsing onto a tiny three-element range — is the single most distinctive feature of this function and the detail most exam questions target.
Reading the graph
The graph of the signum function (NCERT's Fig 2.14) consists of three pieces:
- A horizontal ray at height y = 1, drawn for all x > 0 (an open circle at x = 0 since x = 0 is excluded from this piece).
- A horizontal ray at height y = −1, drawn for all x < 0 (an open circle at x = 0 since x = 0 is excluded from this piece too).
- A single isolated solid point at (0, 0), representing f(0) = 0.
Because the two rays sit at y = 1 and y = −1 while the lone point at x = 0 sits at y = 0 (strictly between the two rays), the graph has a visible "gap" or jump directly above and below the origin — the function is discontinuous at x = 0.
Key terms
- Signum function — the function f : R → R with f(x) = 1 for x > 0, f(x) = 0 for x = 0, and f(x) = −1 for x < 0; also written sgn(x).
- Piecewise-defined function — a function whose defining rule changes depending on which interval or case the input falls into.
- Domain — the complete set of permitted inputs; R for the signum function.
- Range — the complete set of actual outputs; {−1, 0, 1} for the signum function.
- Discontinuity — a point where a function's graph "jumps" rather than flowing in one unbroken curve; the signum function is discontinuous at x = 0.
Diagram / figure guidance
Draw a standard x-y axis. On the positive x-axis side, draw a horizontal ray at y = 1 starting from an open circle just right of the origin and extending rightward with an arrow. On the negative x-axis side, draw a horizontal ray at y = −1 starting from an open circle just left of the origin and extending leftward with an arrow. Mark a single solid filled dot exactly at the origin (0, 0). Label the three pieces "y = 1 (x > 0)", "y = −1 (x < 0)", and "(0, 0) when x = 0" so a learner can see at a glance why the range has exactly three values.
Worked example
Evaluate f(−7), f(0), and f(12) for the signum function f, and state the range of f over all real numbers.
Using the piecewise definition:
- f(−7): since −7 < 0, f(−7) = −1.
- f(0): since the input is exactly 0, f(0) = 0.
- f(12): since 12 > 0, f(12) = 1.
So the three outputs are −1, 0, and 1 respectively — notice that no matter how far from zero the nonnegative or nonpositive input is (−7 versus, say, −700), the output never changes beyond these three fixed values. This confirms directly that the range of the signum function is {−1, 0, 1}, regardless of how large or small the domain values chosen are, since the domain itself is all of R.
Common misconceptions
- "The signum function and the modulus function are the same thing." They are different: the modulus function f(x) = |x| returns the magnitude of x (so f(−7) = 7), while the signum function returns only the sign of x (so f(−7) = −1). They agree only in behavior pattern, never in actual output values for nonzero x.
- "f(0) should be undefined, since you can't assign a 'sign' to zero." NCERT's definition explicitly assigns f(0) = 0 as part of the piecewise rule — it is a defined value, not an undefined case, even though zero has no positive or negative sign in the usual sense.
- "The range of the signum function is all of R, since the domain is all of R." The domain and range are entirely different sets here. The domain is infinite (all of R), but the range is just the three-element set {−1, 0, 1} because the piecewise rule only ever outputs one of three fixed values.
- "The graph of the signum function is a continuous straight line." The graph has a jump discontinuity at x = 0 — it is made of two separate horizontal rays plus one isolated point, not a single connected line.
Exam application (JEE)
JEE questions on the signum function typically test whether a student can correctly state its domain ({R}) and range ({−1, 0, 1}), evaluate it at specific points (including tricky cases exactly at x = 0 or at negative decimals), or combine it with another function (such as the modulus function or greatest integer function) inside a composite expression and ask for the resulting domain/range or value at a point. It is also a common building block in "identify whether the given graph represents a function" and piecewise-function evaluation questions, and occasionally appears nested inside limits or continuity problems in higher classes because of its deliberate discontinuity at x = 0.
Frequently asked questions
- What is the signum function? The signum function is the function f : R → R defined by f(x) = 1 for x > 0, f(x) = 0 for x = 0, and f(x) = −1 for x < 0 — it reports only the sign of the input, not its magnitude.
- What are the domain and range of the signum function? The domain is R (every real number), while the range is the three-element set {−1, 0, 1}, since the piecewise rule only ever produces one of those three outputs.
- Is the signum function continuous at x = 0? No. The graph jumps from y = −1 (just left of 0) to the isolated point y = 0 (at x = 0) and then to y = 1 (just right of 0), so the signum function is discontinuous at x = 0.
- How is the signum function different from the modulus function? The modulus function f(x) = |x| returns the nonnegative magnitude of x, while the signum function returns only its sign (−1, 0, or 1); for any nonzero x, |x|/x equals the signum of x, which is the usual algebraic link between the two.
- What does the graph of the signum function look like? Two horizontal rays — one at y = 1 for all x > 0, and one at y = −1 for all x < 0 — plus a single isolated point at the origin (0, 0), with open circles at x = 0 on both rays to show that x = 0 belongs only to the isolated point.
Practice questions (original practice questions)
- If f is the signum function, what is the value of f(−15) + f(15)?
- (a) −2
- (b) 0
- (c) 1
- (d) 2
- Answer: (b) — f(−15) = −1 and f(15) = 1, so their sum is −1 + 1 = 0.
- What is the range of the signum function f : R → R?
- (a) R
- (b) {0, 1}
- (c) {−1, 0, 1}
- (d) {−1, 1}
- Answer: (c) — The piecewise rule only ever outputs −1, 0, or 1.
- For the signum function f, what is f(0) equal to?
- (a) 1
- (b) −1
- (c) 0
- (d) undefined
- Answer: (c) — By definition, f(0) = 0 is explicitly assigned in the piecewise rule.
- Which of the following correctly describes the domain of the signum function?
- (a) Only positive real numbers
- (b) Only nonzero real numbers
- (c) All real numbers
- (d) Only integers
- Answer: (c) — Every real number is positive, negative, or zero, so the piecewise rule covers all of R, making the domain all real numbers.
- If f is the signum function, what is the value of f(−3) × f(8)?
- (a) −1
- (b) 1
- (c) 0
- (d) 24
- Answer: (a) — f(−3) = −1 and f(8) = 1, so their product is −1 × 1 = −1.
Quick revision
- Signum function: f(x) = 1 (x > 0), 0 (x = 0), −1 (x < 0).
- Domain = R, Range = {−1, 0, 1}.
- Graph: two horizontal rays at y = 1 and y = −1, plus an isolated point at (0, 0).
- Discontinuous at x = 0 — the graph jumps.
- Different from the modulus function: signum gives the sign, modulus gives the magnitude.
Related articles
- Builds on: Modulus Function
- Next: Greatest Integer Function
- See also: Real-Valued Function and Real Function, Function Definition
- Related topics: Addition of Two Real Functions — (f + g)(x), Cartesian Product R × R and R × R × R — Coordinates of the Plane and Space, Cartesian Product of Three Sets — Ordered Triplets, Cartesian Product of Two Sets — Definition, Properties and Examples, Codomain of a Relation — Definition, and How It Differs from Range, Constant Function — Definition, Domain, Range and Graph