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|
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.
A V shape with its corner at the origin: |x| = x for x ≥ 0 and −x for x < 0.
Type: y = |x|
|x − 2| moves the V right by 2; |x| − 2 moves it down by 2.
Type: y = |x| y = |x - 2| y = |x| - 2
A staircase: [x] stays constant between integers and jumps by 1 at each integer.
Type: y = [x]
A saw-tooth: it rises from 0 towards 1 and drops back to 0 at every integer. Period 1.
Type: y = {x}
1 for x > 0, −1 for x < 0 and 0 at x = 0.
Type: y = sgn x (0, 0)
y = |x| + |x − 2| is flat (= 2) between 0 and 2.
Type: y = |x| + |x - 2|
max(x, x²) follows whichever is larger; min(x, x²) the smaller.
Type: y = max(x, x^2) y = min(x, x^2)