The Laminars Book a demo
  1. Home
  2. Graph examples
  3. Modulus, greatest integer and signum
Class 11 · Graph examples

Modulus, greatest integer and signum

These functions are built from simple rules, and their graphs have corners and jumps. [x] is the greatest integer ≤ x, and {x} = x − [x] is the fractional part.

Tap a curve to read a point. Use Open in Graph plotter to change an example, print it on graph paper or share it.

1Modulus y = |x|

A V shape with its corner at the origin: |x| = x for x ≥ 0 and −x for x < 0.

Type: y = |x|

2Shifting the modulus

|x − 2| moves the V right by 2; |x| − 2 moves it down by 2.

Type: y = |x| y = |x - 2| y = |x| - 2

3Greatest integer y = [x]

A staircase: [x] stays constant between integers and jumps by 1 at each integer.

Type: y = [x]

4Fractional part y = {x}

A saw-tooth: it rises from 0 towards 1 and drops back to 0 at every integer. Period 1.

Type: y = {x}

5Signum y = sgn x

1 for x > 0, −1 for x < 0 and 0 at x = 0.

Type: y = sgn x (0, 0)

6Sum of two moduli

y = |x| + |x − 2| is flat (= 2) between 0 and 2.

Type: y = |x| + |x - 2|

7max and min

max(x, x²) follows whichever is larger; min(x, x²) the smaller.

Type: y = max(x, x^2) y = min(x, x^2)