Sub topic 6
Modulus Functions and Their V-Shaped Graphs
Prerequisites
You should know how to solve linear equations, read coordinates, use inequalities, and interpret the absolute value of a number. The modulus, or absolute value, of \(x\), written \(|x|\), is the distance of \(x\) from zero on the number line.
|x| =
\begin{cases}
x, & x \geq 0\\
-x, & x < 0
\end{cases}Thus, \(|5|=5\) and \(|-5|=5\).
The basic modulus graph
The graph of \(y=|x|\) has two straight arms:
- For \(x \geq 0\), \(y=x\).
- For \(x<0\), \(y=-x\).
The two arms meet at the vertex \((0,0)\). The graph is symmetric about the \(y\)-axis.
A general modulus function is
y=a|x-h|+k.Its vertex is \((h,k)\). The number \(a\) controls the steepness and direction:
- If \(a>0\), the graph opens upward.
- If \(a<0\), the graph opens downward.
- Larger \(|a|\) makes the graph narrower.
- Smaller \(0<|a|<1\) makes it wider.
The graph has domain \(\mathbb{R}\). Its range is \(y\geq k\) when \(a>0\), and \(y\leq k\) when \(a<0\).
| Function | Vertex | Direction | Range | Column | Column |
|---|---|---|---|---|---|
| \(y=2 | x-3 | -4\) | \((3,-4)\) | Upward | \(y\geq -4\) |
| \(y=- | x+1 | +5\) | \((-1,5)\) | Downward | \(y\leq 5\) |
Solving modulus equations
To solve \(|u|=c\), where \(c\geq0\), use
u=c \quad \text{or} \quad u=-c.For example,
|2x-3|=7gives
2x-3=7 \quad \text{or} \quad 2x-3=-7.Therefore, \(x=5\) or \(x=-2\).
If the right side is negative, there is no real solution because a modulus cannot be negative.
For a graph, the solutions of \(f(x)=c\) are the \(x\)-coordinates where the graph of \(f\) meets the horizontal line \(y=c\).
def f(x):
return abs(x - 3) + 1
for x in range(-1, 8):
print(x, f(x))Common errors
- Treating \(|x-h|\) as \(x-h\) for every \(x\).
- Forgetting that the vertex is \((h,k)\), not \((-h,k)\).
- Giving a negative value for a modulus.
- Using only one equation when solving \(|u|=c\).
- Confusing the range with the domain.
Exercise
Find the vertex, range, and solutions of 2|x − 1| + 3 = 9.
Show answer
The vertex is (1, 3), and the range is y ≥ 3. Solving gives 2|x − 1| = 6, so |x − 1| = 3. Hence x = 4 or x = −2.