The Modulus (Absolute Value) Function
Modulus Function: The modulus function, also written as the absolute value function, is defined as:
It returns the non-negative magnitude of any real number.
In plain terms, the modulus function strips away any negative sign. So , , and .
When applied to functions, the modulus transforms graphs in predictable and examinable ways. There are two distinct cases you need to master:
- , modulus applied to the output
- , modulus applied to the input
These two cases produce very different graph shapes, so it is critical not to mix them up.
and are not the same transformation. Confusing these two is one of the most common errors in this topic.
Expressing modulus functions as piecewise functions
Before graphing, it is often helpful to write explicitly as a piecewise function. This is standard IB HL practice and makes the case structure visible:
For example, can be written as:
This piecewise form directly tells you the gradient on each branch and where corner points occur , essential information for both sketching and solving.
Graphing y = |f(x)|
When the modulus is applied to the output of a function, any part of the graph that lies below the x-axis is reflected upward into the region . The parts of the graph already above the x-axis remain unchanged.
Method for sketching :
- Sketch as normal.
- Identify all portions where (i.e., below the x-axis).
- Reflect those portions in the x-axis (flip them upward).
- The x-intercepts of become corner points (sharp, non-differentiable points) on .
The graph of always satisfies for all in the domain. It can never go below the x-axis by definition.
Note on terminology: The points at x-intercepts are called corner points or sharp points , they are not differentiable because the gradient changes sign abruptly. Do not call them cusps; a cusp has a specific different meaning in mathematics.
Sketch .
First, write as a piecewise function:
Step 1: Sketch . This is an upward-opening parabola with vertex at and x-intercepts at .
Step 2: Identify the region below the x-axis: this occurs for , where .
Step 3: Reflect that central portion upward. The section of the parabola between and flips to become an upward-opening arch above the x-axis (the downward-pointing section is a downward parabola, but since we are reflecting the negative portion upward, the central arch peaks at and opens downward , creating the characteristic W-shape overall).
Key features of :
- Touches the x-axis at (corner points , not differentiable here)
- Local maximum at (from the reflected vertex)
- The outer arms of the parabola ( and ) are unchanged, rising without bound
- Overall shape: a W-shape with two outer rising arms and a central peak at