Modulus Functions
students, in this lesson you will learn how modulus functions work, why they are useful, and how to read, sketch, and solve problems involving them. Modulus functions are important because they turn negative values into positive ones, which makes them useful in real-life situations like distance from a point, error size, and times when only the size of a quantity matters. 📏
Learning objectives
- Explain the main ideas and terminology behind modulus functions.
- Apply IB Mathematics: Analysis and Approaches HL reasoning to modulus graphs and equations.
- Connect modulus functions to the wider study of functions.
- Summarize how modulus functions fit into transformations, inverses, and equations.
- Use examples and evidence to solve modulus-related problems.
A modulus function is built around the absolute value expression $|x|$. The key idea is that $|x|$ measures the distance of $x$ from $0$ on the number line, so it is never negative. For example, $|5|=5$ and $|-5|=5$. This “distance idea” is the heart of the topic and helps explain almost every graph and equation involving modulus. 😊
1. What the modulus means
The modulus of a number is its absolute value. In simple terms, it is the size of a number without its sign. The definition is
$$
$|x|=\begin{cases}$
$x, & x\ge 0 \\$
-x, & x<0
$\end{cases}$
$$
This piecewise definition is very important. It shows that modulus is not a brand-new operation with mysterious rules; it is just a rule that changes depending on whether the input is positive or negative. If $x$ is already non-negative, then $|x|=x$. If $x$ is negative, the sign changes so the result becomes positive.
For example:
- $|7|=7$
- $|0|=0$
- $|-12|=12$
A useful interpretation is that $|x|$ is the distance between $x$ and $0$. Distances are never negative, so the output of a modulus function is always $\ge 0$.
This idea also extends to expressions. For instance, $|x-3|$ is the distance from $x$ to $3$. If $x=8$, then $|8-3|=5$. If $x=1$, then $|1-3|=2$. This distance meaning is one of the most common ways modulus appears in modeling.
2. Graphing modulus functions
The most basic modulus graph is $y=|x|$. Its shape is a sharp $V$ with vertex at $(0,0)$. The right side is the line $y=x$ for $x\ge 0$, and the left side is the line $y=-x$ for $x<0$.
This graph is symmetric about the $y$-axis, which means if $(a,b)$ is on the graph, then $(-a,b)$ is also on the graph. That symmetry comes directly from the fact that $|x|=|-x|$.
A general transformation is $y=|x-a|+b$. This shifts the graph of $y=|x|$ right by $a$ and up by $b$. The vertex is at $(a,b)$. For example, $y=|x-2|+3$ has vertex $(2,3)$ and opens upward in a $V$ shape.
If the modulus is multiplied by a factor, the graph becomes steeper or flatter. For example, $y=2|x|$ is narrower than $y=|x|$, while $y=\frac12|x|$ is wider. A negative sign in front, such as $y=-|x|$, reflects the graph in the $x$-axis, giving an upside-down $V$.
Example: Sketch $y=|x+1|-2$.
- Start from $y=|x|$.
- Shift left by $1$ because of $x+1$.
- Shift down by $2$.
- The vertex is $(-1,-2)$.
- The graph still has the same $V$ shape and slope size on each side.
This type of transformation language is essential in IB Maths because it connects modulus functions to the broader topic of function notation and graph transformations.
3. Solving equations with modulus
Equations involving modulus often require splitting into cases. The reason is that the expression inside the modulus can be positive or negative, and each case changes the algebra.
Consider
$$
$|x|=4.$
$$
This means the distance of $x$ from $0$ is $4$, so there are two solutions:
$$
$ x=4 \quad \text{or} \quad x=-4.$
$$
Now consider
$$
$|x-3|=5.$
$$
This means the distance of $x$ from $3$ is $5$. So
$$
$ x-3=5 \quad \text{or} \quad x-3=-5.$
$$
Therefore,
$$
$ x=8 \quad \text{or} \quad x=-2.$
$$
For a harder example, solve
$$
$|2x-1|=7.$
$$
Split into two cases:
$$
$2x-1=7 \quad \text{or} \quad 2x-1=-7.$
$$
Then
$$
$ x=4 \quad \text{or} \quad x=-3.$
$$
A common mistake is forgetting that modulus equations may have two solutions, one solution, or no solutions. For example, $|x|=-3$ has no solution because a modulus can never be negative.
When the modulus expression is more complicated, it is often helpful to first isolate the modulus, then split into cases. Always check your answers in the original equation. ✅
4. Solving inequalities with modulus
Modulus inequalities are especially important in IB Mathematics because they connect algebra, graphs, and the number line.
The inequality
$$
|x|<4
$$
means the distance from $x$ to $0$ is less than $4$. So $x$ lies between $-4$ and $4$:
$$
-4<x<4.
$$
Similarly,
$$
$|x|\le 4$
$$
means
$$
$-4\le x\le 4.$
$$
For inequalities of the form
$$
|x-a|<b,
$$
the solution is
$$
a-b<x<a+b.
$$
This means $x$ is within a distance $b$ of $a$.
Example: Solve
$$
$|x-2|\le 3.$
$$
This means $x$ is at most $3$ units away from $2$, so
$$
$-1\le x\le 5.$
$$
For inequalities like
$$
|x|>4,
$$
the solution is outside the interval:
$$
x<-4 \quad \text{or} \quad x>4.
$$
Likewise,
$$
|x-a|>b
$$
means $x$ is more than $b$ units away from $a$.
Example: Solve
$$
|x+1|>2.
$$
Rewrite as $|x-(-1)|>2$, so the distance from $x$ to $-1$ is greater than $2$. Hence,
$$
x<-3 \quad \text{or} \quad x>1.
$$
These ideas are powerful for graph-based interpretation. On a number line, “less than” gives a middle interval, while “greater than” gives two outside regions.
5. Modulus and piecewise functions
Modulus functions are closely linked to piecewise functions. Because $|x|$ changes depending on whether the input is above or below zero, it can be rewritten in piecewise form. This helps when graphing or finding intersections.
For example,
$$
$y=|x-2|$
$$
can be written as
$$
$y=\begin{cases}$
$x-2, & x\ge 2 \\$
-(x-2), & x<2
$\end{cases}$
$$
which simplifies to
$$
$y=\begin{cases}$
$x-2, & x\ge 2 \\$
-x+2, & x<2
$\end{cases}$
$$
This makes the shape of the graph clear. To the right of $x=2$, the graph has slope $1$. To the left of $x=2$, the graph has slope $-1$. The two straight lines meet at the vertex $(2,0)$.
Piecewise thinking is useful in problem solving. For example, if you need to solve
$$
$|x-2|=x,$
$$
you can consider separate cases:
- If $x\ge 2$, then $|x-2|=x-2$, so $x-2=x$, which gives no solution.
- If $x<2$, then $|x-2|=-x+2$, so $-x+2=x$, giving $x=1$.
Thus the only solution is
$$
$ x=1.$
$$
This shows how modulus, piecewise definitions, and algebra work together.
6. Real-world meaning and links to other functions
Modulus functions are useful whenever the sign does not matter, only the size. A common example is measurement error. If a machine aims to produce rods of length $10$ cm, then an error of $+0.2$ cm and an error of $-0.2$ cm both have the same size. That size is represented by the modulus $|0.2|$ or $|-0.2|$.
Another example is distance from a target temperature. If the target is $20^\circ\text{C}$, then a room at $18^\circ\text{C}$ and one at $22^\circ\text{C}$ are both $2^\circ\text{C}$ away from the target, so the deviation can be written using a modulus expression like $|T-20|$.
Modulus also connects to other function topics in IB HL:
- Transformations: graphs such as $y=|x-a|+b$ are shifted versions of $y=|x|$.
- Inverse ideas: $y=|x|$ is not one-to-one on all real numbers, so it does not have an inverse function unless the domain is restricted.
- Composite functions: expressions like $f(|x|)$ or $|f(x)|$ show how modulus can act inside or outside another function.
- Equation solving: modulus often requires algebraic casework and careful checking.
For instance, if $f(x)=x^2-4$, then $|f(x)|=|x^2-4|$ changes the negative parts of the parabola above the $x$-axis. This can create new graphs with interesting symmetry and intercept behavior.
Conclusion
students, modulus functions are a central part of the Functions topic because they connect algebra, graphs, and real-world interpretation. The main idea is simple: $|x|$ measures distance and is never negative. From that idea come graph transformations, piecewise definitions, equations with multiple solutions, and inequalities with interval answers. By understanding how to read and manipulate modulus expressions, you strengthen the skills needed for IB Mathematics: Analysis and Approaches HL. 🌟
Study Notes
- The modulus of $x$ is $|x|$, and it means the distance of $x$ from $0$.
- The definition is $|x|=x$ for $x\ge 0$ and $|x|=-x$ for $x<0$.
- The graph of $y=|x|$ is a $V$ shape with vertex at $(0,0)$.
- The graph of $y=|x-a|+b$ has vertex at $(a,b)$.
- A modulus equation such as $|x-a|=b$ usually gives two solutions, provided $b\ge 0$.
- A modulus inequality such as $|x-a|<b$ gives $a-b<x<a+b$.
- A modulus inequality such as $|x-a|>b$ gives $x<a-b$ or $x>a+b$.
- Modulus functions are often rewritten as piecewise functions.
- Modulus is useful in real situations involving distance, error, and deviation.
- Modulus functions connect directly to transformations, composite functions, and function behavior in IB Mathematics: Analysis and Approaches HL.
