Absolute Value Function
Theory
The absolute value \(|x|\) of a number is its distance from \(0\) on the number line, so it is never negative. This Year 11 Mathematics Advanced page shows how to evaluate absolute values, find the distance between two numbers with \(|a-b|\), use \(\sqrt{x^2}=|x|\), sketch the V-shaped graph of an absolute value function with its vertex and intercepts, write the two branches of the graph, and solve absolute value equations such as \(|ax+b|=c\) algebraically and graphically.
The absolute value of a real number \(x\), written \(|x|\), is the distance of \(x\) from \(0\) on the number line. A distance is never negative, so \(|x|\ge 0\) for every \(x\). As a rule:
For example \(|5|=5\), \(|0|=0\) and \(|-3|=-(-3)=3\). When the absolute value contains an expression, work out the expression first and take the absolute value last: \(|2-9|=|-7|=7\).
The distance between two numbers \(a\) and \(b\) on the number line is \(|a-b|\). The order does not matter, because \(|a-b|=|b-a|\). For example, the distance between \(2\) and \(9\) is \(|2-9|=7\).
A square root is never negative, so \(\sqrt{x^2}=|x|\) for every real number \(x\). For example \(\sqrt{(-6)^2}=\sqrt{36}=6=|-6|\), not \(-6\).
The absolute value function \(y=|x|\) has a V-shaped graph. The corner of the V is the vertex. The two straight arms are the branches: \(y=x\) for \(x\ge 0\) and \(y=-x\) for \(x<0\). The graph of \(y=a|x-h|+k\) (with \(a>0\)) is also a V, with vertex \((h,k)\). For a graph such as \(y=|3x-6|\), the vertex is where the expression inside the absolute value is zero.
An absolute value equation \(|A|=c\) with \(c>0\) splits into two cases, \(A=c\) or \(A=-c\), because there are two numbers at distance \(c\) from \(0\). If \(c=0\) there is one case, and if \(c<0\) there are no solutions.
Definition of absolute value:
Distance between \(a\) and \(b\) on the number line, and the square root of a square:
Vertex of the V-shaped graph:
Solving an absolute value equation, for \(c>0\):
Evaluating an absolute value
- Substitute the value into the expression inside the absolute value.
- Simplify the inside to a single number.
- Take the absolute value last: drop a negative sign, keep a positive number.
Solving \(|A|=c\)
- Check the right-hand side: if \(c<0\) there are no solutions.
- Split the absolute value into its two cases: \(A=c\) or \(A=-c\).
- Solve both linear equations side by side.
- State both answers: \(\therefore x=\ldots\) or \(x=\ldots\)
Graphing an absolute value function
- Vertex: solve "inside \(=0\)" for \(x\), then find \(y\). For \(y=a|x-h|+k\) read it off as \((h,k)\).
- Intercepts: put \(x=0\) for the \(y\)-intercept; put \(y=0\) and solve for the \(x\)-intercepts.
- Branches: for inside \(\ge 0\) replace \(|A|\) by \(A\); for inside \(<0\) replace it by \(-(A)\). Simplify each and state its domain.
- Sketch the V through the vertex and intercepts.
Problems with graphs and unknowns
- Intersections: the graphs of \(y=|A|\) and \(y=c\) meet where \(|A|=c\), so solve that equation.
- Unknown coefficient: substitute a point on the graph and solve for the unknown.
- Number of solutions: picture the horizontal line moving past the vertex; two solutions when it is above the vertex.
- Areas: find the vertex and the intersection points, then use \(\text{Area}=\dfrac{1}{2}bh\).
(ii) Find the distance between \(-6\) and \(9\) on the number line.
(iii) Simplify \(\sqrt{(x+4)^2}\), given that \(x<-4\).
(i) Substitute, then take the absolute value last:
| \(f(3)\) | \(=\) | \(|5-4(3)|\) |
| \(\) | \(=\) | \(|5-12|\) |
| \(\) | \(=\) | \(|-7|\) |
| \(\) | \(=\) | \(7\) |
\(\therefore\) \(\boldsymbol{f(3)=7}\)
(ii) The distance between \(a\) and \(b\) is \(|a-b|\):
| \(|-6-9|\) | \(=\) | \(|-15|\) |
| \(\) | \(=\) | \(15\) |
Check: \(6\) units from \(-6\) to \(0\), then \(9\) units from \(0\) to \(9\).
\(\therefore\) the distance is \(15\) units.
(iii) Use \(\sqrt{a^2}=|a|\) with \(a=x+4\):
| \(\sqrt{(x+4)^2}\) | \(=\) | \(|x+4|\) |
When \(x<-4\), \(x+4<0\), so \(|x+4|=-(x+4)\).
\(\therefore\) \(\boldsymbol{\sqrt{(x+4)^2}=-x-4}\)
(i) \(|3x-4|=8\)
(ii) \(|7-2x|=3\)
(iii) \(|x+6|=-2\)
Give any fraction answers in simplest form.
(i) Split the absolute value into its two cases:
| \(3x-4\) | \(=\) | \(8\) | \(\quad\text{or}\quad\) | \(3x-4\) | \(=\) | \(-8\) |
| \(3x\) | \(=\) | \(12\) | \(\quad\text{or}\quad\) | \(3x\) | \(=\) | \(-4\) |
| \(x\) | \(=\) | \(4\) | \(\quad\text{or}\quad\) | \(x\) | \(=\) | \(-\dfrac{4}{3}\) |
\(\therefore\) \(\boldsymbol{x=4}\) or \(\boldsymbol{x=-\dfrac{4}{3}}\)
(ii) Split the absolute value into its two cases:
| \(7-2x\) | \(=\) | \(3\) | \(\quad\text{or}\quad\) | \(7-2x\) | \(=\) | \(-3\) |
| \(-2x\) | \(=\) | \(-4\) | \(\quad\text{or}\quad\) | \(-2x\) | \(=\) | \(-10\) |
| \(x\) | \(=\) | \(2\) | \(\quad\text{or}\quad\) | \(x\) | \(=\) | \(5\) |
\(\therefore\) \(\boldsymbol{x=2}\) or \(\boldsymbol{x=5}\)
Check: \(|7-2(5)|=|-3|=3\) ✓
(iii) An absolute value is never negative, so \(|x+6|\) can never equal \(-2\).
\(\therefore\) there are no solutions.
(i) find the vertex
(ii) find the \(x\)- and \(y\)-intercepts
(iii) write the equations of the two branches, stating the domain of each, and sketch the graph.
(i) The vertex is where the expression inside the absolute value is zero:
| \(x+2\) | \(=\) | \(0\) |
| \(x\) | \(=\) | \(-2\) |
| \(y\) | \(=\) | \(|0|-3=-3\) |
\(\therefore\) the vertex is \(\boldsymbol{(-2,-3)}\). (This matches \(y=a|x-h|+k\) with \(h=-2\), \(k=-3\).)
(ii) \(y\)-intercept: put \(x=0\), so \(y=|2|-3=-1\), giving \((0,-1)\).
\(x\)-intercepts: put \(y=0\), so \(|x+2|=3\):
| \(x+2\) | \(=\) | \(3\) | \(\quad\text{or}\quad\) | \(x+2\) | \(=\) | \(-3\) |
| \(x\) | \(=\) | \(1\) | \(\quad\text{or}\quad\) | \(x\) | \(=\) | \(-5\) |
\(\therefore\) intercepts \(\boldsymbol{(1,0)}\), \(\boldsymbol{(-5,0)}\) and \(\boldsymbol{(0,-1)}\).
(iii) For \(x+2\ge 0\), i.e. \(x\ge -2\):
| \(y\) | \(=\) | \(x+2-3\) |
| \(\therefore y\) | \(=\) | \(x-1,\quad x\ge -2\) |
For \(x+2<0\), i.e. \(x<-2\):
| \(y\) | \(=\) | \(-(x+2)-3\) |
| \(y\) | \(=\) | \(-x-2-3\) |
| \(\therefore y\) | \(=\) | \(-x-5,\quad x<-2\) |
\(\therefore\) \(\boldsymbol{y=x-1}\) for \(x\ge -2\) and \(\boldsymbol{y=-x-5}\) for \(x<-2\).
(i) Find the value of \(a\).
(ii) The graph meets the \(x\)-axis at \(A\) and \(B\), and \(V\) is the vertex. Find the area of \(\triangle ABV\).
(iii) Find the values of \(k\) for which \(a|x-1|-4=k\) has exactly two solutions.
(i) Substitute the point \((4,2)\) and solve for \(a\):
| \(2\) | \(=\) | \(a|4-1|-4\) |
| \(2\) | \(=\) | \(3a-4\) |
| \(6\) | \(=\) | \(3a\) |
| \(a\) | \(=\) | \(2\) |
\(\therefore\) \(\boldsymbol{a=2}\), so \(y=2|x-1|-4\).
(ii) \(x\)-intercepts: put \(y=0\), so \(2|x-1|=4\), i.e. \(|x-1|=2\):
| \(x-1\) | \(=\) | \(2\) | \(\quad\text{or}\quad\) | \(x-1\) | \(=\) | \(-2\) |
| \(x\) | \(=\) | \(3\) | \(\quad\text{or}\quad\) | \(x\) | \(=\) | \(-1\) |
So \(A(-1,0)\), \(B(3,0)\) and \(V(1,-4)\). Base \(AB=3-(-1)=4\); height = distance from \(V\) to the \(x\)-axis \(=4\).
| \(\text{Area}\) | \(=\) | \(\dfrac{1}{2}\times 4\times 4\) |
| \(\) | \(=\) | \(8\text{ units}^2\) |
\(\therefore\) the area is \(\boldsymbol{8\text{ units}^2}\).
(iii) Think of the horizontal line \(y=k\) cutting the V. The lowest point of \(y=2|x-1|-4\) is the vertex, at \(y=-4\).
If \(k<-4\) the line misses the graph: no solutions. If \(k=-4\) it touches the vertex: one solution. If \(k>-4\) it cuts both arms: two solutions.
\(\therefore\) exactly two solutions when \(\boldsymbol{k>-4}\).
Common pitfalls
Frequently asked questions
What is the absolute value of a number?
It is the distance of the number from \(0\) on the number line, so it is never negative. For example \(|-8|=8\) and \(|8|=8\).
How do you solve an absolute value equation like |x - 5| = 4?
Split it into two cases: \(x-5=4\) or \(x-5=-4\). Solving each gives \(x=9\) or \(x=1\). Both numbers are \(4\) units from \(5\).
Why is the square root of x squared equal to the absolute value of x?
A square root is never negative. If \(x\ge 0\), \(\sqrt{x^2}=x\); if \(x<0\), \(\sqrt{x^2}=-x\), which is positive. That is exactly \(|x|\). For example \(\sqrt{(-6)^2}=6\).
How do you find the vertex of an absolute value graph?
Set the expression inside the absolute value equal to zero and solve for \(x\), then substitute to find \(y\). For \(y=|2x+8|\) the vertex is \((-4,0)\). For \(y=a|x-h|+k\) the vertex is \((h,k)\).
Can an absolute value equation have no solution?
Yes. An absolute value is never negative, so an equation such as \(|3x-1|=-4\) has no solutions. On a graph, the line \(y=-4\) lies below the whole V and never meets it.