notesonly.in

One notebook for every subject — open it anywhere.

Log in

Signum and Greatest Integer Functions: Graphs & Properties

The signum function, written sgn(x) or sign(x), reports only the sign of a number: it equals 1 when x > 0, 0 when x = 0, and −1 when x < 0. The greatest integer function, written ⌊x⌋ or [x], returns the largest integer less than or equal to x — so ⌊3.7⌋ = 3 and ⌊−2.3⌋ = −3.

These functions matter because they are your first examples of functions that jump. Most school graphs are smooth, but real processes switch suddenly: a light turns on or off, a taxi meter clicks to the next rupee, a parcel is charged per whole kilogram. Signum and greatest integer functions model exactly that step behaviour, and they force you to think carefully about domains, ranges and continuity.

Key Concepts

  • Signum function: sgn(x) = 1 for x > 0, 0 for x = 0, −1 for x < 0. Its range is just the three values {−1, 0, 1}.
  • Greatest integer function: ⌊x⌋ = the greatest integer n with n ≤ x. Also called the floor or step function.
  • Jump discontinuity: a break in the graph where the function suddenly leaps from one value to another; both these functions have jumps.
  • Step graph: the greatest integer graph looks like a staircase, flat on each interval [n, n+1) and jumping by 1 at every integer.

Formulas

  • Signum from modulus: for x ≠ 0, sgn(x) = x / |x|. At x = 0 the value is defined separately as 0, since division by |0| is impossible.
  • Floor decomposition: every real x satisfies x = ⌊x⌋ + {x} with 0 ≤ {x} < 1. Assumption: x is a real number.
  • Floor of negatives: ⌊−x⌋ = −⌈x⌉; for non-integers, ⌊−x⌋ = −⌊x⌋ − 1. Example: ⌊−2.3⌋ = −3, not −2.

Worked Example

Evaluate and graph-step the expression y = ⌊2x⌋ for x in [0, 2], and find sgn(−5), sgn(0), sgn(4).

  1. Signum values: sgn(−5) = −1 (negative input), sgn(0) = 0 (exactly zero), sgn(4) = 1 (positive input).
  2. Choose sample points: at x = 0.3, 2x = 0.6 so ⌊2x⌋ = 0; at x = 0.7, 2x = 1.4 so ⌊2x⌋ = 1; at x = 1.2, 2x = 2.4 so ⌊2x⌋ = 2; at x = 1.8, 2x = 3.6 so ⌊2x⌋ = 3.
  3. Read off the steps: y = 0 on [0, 0.5), y = 1 on [0.5, 1), y = 2 on [1, 1.5), y = 3 on [1.5, 2). At x = 2 exactly, y = 4.
  4. Graph shape: four flat steps, each half a unit wide and one unit tall, jumping at x = 0.5, 1, 1.5 and 2.

Common Misconceptions

  • "⌊−2.3⌋ = −2." Wrong — "greatest integer less than or equal" means you round DOWN toward negative infinity, giving −3. Chopping off the decimal (truncation) gives −2, which is a different operation.
  • "sgn(0) = 1." No, sgn(0) = 0 by definition. Zero is neither positive nor negative, so it gets its own value.
  • "These graphs are continuous." Both have jumps: signum jumps at x = 0, and the floor function jumps at every integer, so neither is continuous at its jump points.

Real-World Applications

  • Pricing and postage: courier charges per whole kilogram use the ceiling/floor idea — a 2.1 kg parcel is billed as 3 kg.
  • Digital signals: the signum function models a binary decision or a switch that outputs +1 or −1, used in comparators and control systems.
  • Tax slabs and grades: stepwise rates and grade bands are greatest-integer-style functions of income or marks.
  • Computer science: floor division (// in Python) and sign extraction appear constantly in algorithms, graphics and rounding logic.

Signum compresses every number to its sign (−1, 0 or 1), while the greatest integer function rounds down to a staircase of whole values. Both are the standard tools for anything that switches, steps or counts in whole units.