Resources For Teachers For Tutors For Students & Parents AI New Books Pricing
Year 11 (2026) Maths Advanced (2026) Piecewise Functions, Continuity and Absolute Value

Absolute Value Function

20 practice questions 2 video lessons Theory + worked examples
Practice 20 questions
Practice questions

Every question with a fully worked solution.

Start practising
Watch 2 video(s)
  • Absolute Value Function - Video - Absolute Value Function Watch
  • Absolute Value Function - Video - How To Graph Absolute Value Functions - Domain & Range Watch
Create a free accountTrack your progress and save your work as you go.
Create free account

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:

\[|x|=\begin{cases}x & \text{for } x\ge 0\\ -x & \text{for } x<0\end{cases}\]

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.

The graph of y = |x|A V-shaped graph with vertex at the origin. The right arm is the line y = x for x greater than or equal to 0; the left arm is the line y = -x for x less than 0. x y −3 −2 −1 3 1 2 3 vertex (0, 0) y = x, x ≥ 0 y = −x, x < 0
The graph of \(y=|x|\) is a V with its vertex at \((0,0)\). For \(x\ge 0\) it is the line \(y=x\); for \(x<0\) it is the line \(y=-x\). These two lines are the branches of the graph.
Horizontal lines cutting the graph of y = |x - 1|The V-shaped graph of y = |x - 1| has its vertex at (1, 0). The line y = 2 cuts it at x = -1 and x = 3. The x-axis, y = 0, touches it only at the vertex. The line y = -1 lies below the graph and does not meet it. x y −2 −1 2 3 4 1 3 y = 2 y = −1 (−1, 2) (3, 2) (1, 0)
A horizontal line \(y=c\) meets the V of \(y=|x-1|\) twice if \(c>0\), once (at the vertex) if \(c=0\), and never if \(c<0\). So \(|x-1|=2\) has two solutions, \(x=-1\) and \(x=3\), while \(|x-1|=-1\) has none.

Definition of absolute value:

\[|x|=\begin{cases}x & \text{for } x\ge 0\\ -x & \text{for } x<0\end{cases}\]
absolute value of x equals x for x at least 0, and negative x for x less than 0

Distance between \(a\) and \(b\) on the number line, and the square root of a square:

\[\text{distance}=|a-b|\qquad\qquad \sqrt{x^2}=|x|\]
distance equals absolute value of a minus b; square root of x squared equals absolute value of x

Vertex of the V-shaped graph:

\[y=a|x-h|+k\ \text{ has vertex } (h,k)\]
y equals a times absolute value of x minus h, plus k, has vertex h, k

Solving an absolute value equation, for \(c>0\):

\[|A|=c\quad\Longrightarrow\quad A=c\ \ \text{or}\ \ A=-c\]
absolute value of A equals c gives A equals c or A equals negative c
How many solutions? \(|A|=c\) has two solutions if \(c>0\), one solution if \(c=0\) (the vertex), and no solutions if \(c<0\). On a graph, count where the horizontal line \(y=c\) meets the V.
Writing the branches. Where the inside is \(\ge 0\), replace \(|A|\) by \(A\); where the inside is \(<0\), replace \(|A|\) by \(-(A)\). For \(y=|x-4|+2\): for \(x\ge 4\), \(y=x-4+2=x-2\); for \(x<4\), \(y=-(x-4)+2=-x+6\). The same rule works when the absolute value is part of a bigger expression: for \(y=|x|+x\), \(y=x+x=2x\) for \(x\ge 0\) and \(y=-x+x=0\) for \(x<0\). If the expression is also in a denominator, leave out the value that makes it zero: \(y=\dfrac{|x+1|}{x+1}\) gives \(y=\dfrac{x+1}{x+1}=1\) for \(x>-1\) and \(y=\dfrac{-(x+1)}{x+1}=-1\) for \(x<-1\).

Evaluating an absolute value

  1. Substitute the value into the expression inside the absolute value.
  2. Simplify the inside to a single number.
  3. Take the absolute value last: drop a negative sign, keep a positive number.

Solving \(|A|=c\)

  1. Check the right-hand side: if \(c<0\) there are no solutions.
  2. Split the absolute value into its two cases: \(A=c\) or \(A=-c\).
  3. Solve both linear equations side by side.
  4. State both answers: \(\therefore x=\ldots\) or \(x=\ldots\)

Graphing an absolute value function

  1. Vertex: solve "inside \(=0\)" for \(x\), then find \(y\). For \(y=a|x-h|+k\) read it off as \((h,k)\).
  2. Intercepts: put \(x=0\) for the \(y\)-intercept; put \(y=0\) and solve for the \(x\)-intercepts.
  3. Branches: for inside \(\ge 0\) replace \(|A|\) by \(A\); for inside \(<0\) replace it by \(-(A)\). Simplify each and state its domain.
  4. Sketch the V through the vertex and intercepts.

Problems with graphs and unknowns

  1. Intersections: the graphs of \(y=|A|\) and \(y=c\) meet where \(|A|=c\), so solve that equation.
  2. Unknown coefficient: substitute a point on the graph and solve for the unknown.
  3. Number of solutions: picture the horizontal line moving past the vertex; two solutions when it is above the vertex.
  4. Areas: find the vertex and the intersection points, then use \(\text{Area}=\dfrac{1}{2}bh\).
Example 1 — Evaluating and distance
(i) For \(f(x)=|5-4x|\), find \(f(3)\).
(ii) Find the distance between \(-6\) and \(9\) on the number line.
(iii) Simplify \(\sqrt{(x+4)^2}\), given that \(x<-4\).
Solution

(i) Substitute, then take the absolute value last:

\(f(3)\)\(=\)\(|5-4(3)|\)
\(\)\(=\)\(|5-12|\)
\(\)\(=\)\(|-7|\)
\(\)\(=\)\(7\)
f of 3 equals absolute value of 5 minus 12, which is absolute value of negative 7, which is 7

\(\therefore\) \(\boldsymbol{f(3)=7}\)

(ii) The distance between \(a\) and \(b\) is \(|a-b|\):

\(|-6-9|\)\(=\)\(|-15|\)
\(\)\(=\)\(15\)
absolute value of negative 6 minus 9 equals absolute value of negative 15, which is 15
Distance between -6 and 9 on the number linePoints at -6 and 9 on a number line. It is 6 units from -6 to 0 and 9 units from 0 to 9, a total of 15 units. −6 −3 0 3 6 9 6 9 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|\)
square root of x plus 4 squared equals absolute value of x plus 4

When \(x<-4\), \(x+4<0\), so \(|x+4|=-(x+4)\).

\(\therefore\) \(\boldsymbol{\sqrt{(x+4)^2}=-x-4}\)

Example 2 — Solving absolute value equations
Solve:
(i) \(|3x-4|=8\)
(ii) \(|7-2x|=3\)
(iii) \(|x+6|=-2\)
Give any fraction answers in simplest form.
Solution

(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}\)
3x minus 4 equals 8 or 3x minus 4 equals negative 8, so x equals 4 or x equals negative four thirds

\(\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\)
7 minus 2x equals 3 or 7 minus 2x equals negative 3, so x equals 2 or x equals 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.

Example 3 — Vertex, intercepts and branches
For the graph of \(y=|x+2|-3\):
(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.
Solution

(i) The vertex is where the expression inside the absolute value is zero:

\(x+2\)\(=\)\(0\)
\(x\)\(=\)\(-2\)
\(y\)\(=\)\(|0|-3=-3\)
x plus 2 equals 0, so x equals negative 2 and y equals negative 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\)
x plus 2 equals 3 or x plus 2 equals negative 3, so x equals 1 or x equals negative 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 at least negative 2, y equals x minus 1

For \(x+2<0\), i.e. \(x<-2\):

\(y\)\(=\)\(-(x+2)-3\)
\(y\)\(=\)\(-x-2-3\)
\(\therefore y\)\(=\)\(-x-5,\quad x<-2\)
for x less than negative 2, y equals negative x minus 5
The graph of y = |x + 2| - 3A V-shaped graph with vertex (-2, -3). It crosses the x-axis at (-5, 0) and (1, 0) and the y-axis at (0, -1). The right branch is y = x - 1 and the left branch is y = -x - 5. x y −4 −3 −1 −3 −2 2 3 (−2, −3) (1, 0) (−5, 0) (0, −1) y = x − 1 y = −x − 5

\(\therefore\) \(\boldsymbol{y=x-1}\) for \(x\ge -2\) and \(\boldsymbol{y=-x-5}\) for \(x<-2\).

Example 4 — Unknown coefficient, area and number of solutions
The graph of \(y=a|x-1|-4\) has its vertex at \((1,-4)\) and passes through \((4,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.
Solution

(i) Substitute the point \((4,2)\) and solve for \(a\):

\(2\)\(=\)\(a|4-1|-4\)
\(2\)\(=\)\(3a-4\)
\(6\)\(=\)\(3a\)
\(a\)\(=\)\(2\)
2 equals a times 3 minus 4, so 3a equals 6 and a equals 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\)
x minus 1 equals 2 or x minus 1 equals negative 2, so x equals 3 or x equals negative 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\)
area equals one half times 4 times 4, which is 8 square units

\(\therefore\) the area is \(\boldsymbol{8\text{ units}^2}\).

The graph of y = 2|x - 1| - 4 and the triangle below the x-axisA V-shaped graph with vertex V(1, -4) passing through (4, 2). It crosses the x-axis at A(-1, 0) and B(3, 0). The triangle ABV is shaded. A dashed horizontal line y = k above the vertex cuts both arms. x y 1 2 −4 2 4 V(1, −4) A(−1, 0) B(3, 0) (4, 2) y = k area 8

(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

Simplify inside first, take the absolute value last. \(|2(1)-7|=|-5|=5\). The absolute value does not turn every minus sign into a plus: \(|2x-7|\) is not \(2x+7\), and \(|-3+5|=2\), not \(|-3|+|5|=8\).
Keep both cases. \(|A|=c\) with \(c>0\) gives \(A=c\) or \(A=-c\). Solving only \(A=c\) loses half the answer. Check the right-hand side first: \(|A|=\) a negative number has no solutions.
\(\sqrt{x^2}\) is \(|x|\), not \(x\). A square root is never negative. When the inside is negative, the answer is its opposite: for \(x<-1\), \(\sqrt{(x+1)^2}=|x+1|=-x-1\).
Watch the sign of the vertex. \(y=|x+2|-3\) has its vertex at \(x=-2\), not \(x=2\): solve \(x+2=0\). For \(y=|2x-5|\), the vertex is at \(x=\dfrac{5}{2}\), not \(x=5\).
Bracket the whole inside on the negative branch. Where the inside is negative, \(|x+2|\) becomes \(-(x+2)=-x-2\), not \(-x+2\). Then state the domain of each branch.

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.