Resources For Teachers For Tutors For Students & Parents AI New Books Pricing
Year 11 (2026) Maths Extension 1 (2026) Further Work with Functions

Absolute Value Functions

20 practice questions 1 video lesson Theory + worked examples
Practice 20 questions
Practice questions

Every question with a fully worked solution.

Start practising
Watch 1 video(s)
  • Absolute Value Functions - Video - Graphing Absolute Value Functions Watch
Create a free accountTrack your progress and save your work as you go.
Create free account

Theory

The graphs of \(y=|f(x)|\) and \(y=f(|x|)\) both come from the graph of \(y=f(x)\), but in different ways. This Year 11 Mathematics Extension 1 page shows how to reflect the parts below the \(x\)-axis for \(|f(x)|\), how to reflect the right half in the \(y\)-axis for \(f(|x|)\), and how to count and find the solutions of \(|f(x)|=k\).

The absolute value can act on the output of a function or on its input, and the two graphs are different.

\(y=|f(x)|\) (absolute value of the output). Work out \(f(x)\) first, then make it positive. Where \(f(x)\geq0\) the graph is unchanged; where \(f(x)\lt 0\) the graph is reflected in the \(x\)-axis. The graph of \(y=|f(x)|\) never goes below the \(x\)-axis, the \(x\)-intercepts stay where they are, and the graph has a sharp point wherever \(f\) crosses the \(x\)-axis. A minimum turning point below the axis becomes a maximum turning point above it, and an asymptote below the axis, such as \(y=-3\), is reflected to \(y=3\).

\(y=f(|x|)\) (absolute value of the input). Take the absolute value of \(x\) first, then apply \(f\). For \(x\geq0\), \(|x|=x\), so the graph is the same as \(y=f(x)\). For \(x\lt 0\), \(f(|x|)=f(-x)\), so the left half is the mirror image of the right half in the \(y\)-axis. The part of \(f\) to the left of the \(y\)-axis is thrown away. Since \(f(|-x|)=f(|x|)\), the function \(y=f(|x|)\) is always even: its graph is symmetric about the \(y\)-axis.

The order matters when you evaluate. For \(f(x)=x-7\) and \(x=-3\): \(|f(-3)|=|-10|=10\), but \(f(|-3|)=f(3)=-4\).

Some functions are written as \(f(|x|)\) in disguise: \(y=5-|x|\) is \(f(|x|)\) for \(f(x)=5-x\), \(y=\log_3|x|\) is \(f(|x|)\) for \(f(x)=\log_3x\), and \(y=|x^2|-2|x|\) is \(f(|x|)\) for \(f(x)=x^2-2x\), because \(|x^2|=|x|^2\).

y = |x² + 2x − 3|The parabola y = x^2 + 2x - 3 (dashed) with x-intercepts -3 and 1 and vertex (-1, -4). The graph of y = |x^2 + 2x - 3| (solid) keeps the parts above the x-axis and reflects the part between x = -3 and x = 1 up, so the vertex becomes the local maximum (-1, 4) and there are sharp points at (-3, 0) and (1, 0). x y −2 −1 2 −4 −2 2 4 (−3, 0) (1, 0) (−1, −4) (−1, 4) (0, 3) y = f(x) y = |f(x)|
\(y=|f(x)|\) for \(f(x)=x^2+2x-3\): the part below the \(x\)-axis (\(-3\lt x\lt 1\)) is reflected up. The minimum \((-1,-4)\) becomes the local maximum \((-1,4)\).
y = f(|x|) for f(x) = x² + 2x − 3The parabola y = x^2 + 2x - 3 (dashed). The graph of y = f(|x|) = |x|^2 + 2|x| - 3 (solid) keeps the part of the parabola for x >= 0 and reflects it in the y-axis. It has a sharp minimum at (0, -3) and x-intercepts -1 and 1. The vertex (-1, -4) of the parabola is not on the new graph. x y −4 −3 −2 2 −4 2 4 (−1, 0) (1, 0) (0, −3) (−1, −4) y = f(x) y = f(|x|)
\(y=f(|x|)\) for the same \(f\): keep the part for \(x\geq0\) and reflect it in the \(y\)-axis. The left half of \(f\), with its vertex \((-1,-4)\), is thrown away.

Absolute value of the output:

\[|f(x)|=f(x)\ \text{ where } f(x)\geq0,\qquad |f(x)|=-f(x)\ \text{ where } f(x)\lt 0\]
absolute value of f of x equals f of x where f of x is at least 0, and negative f of x where f of x is negative

Absolute value of the input:

\[f(|x|)=f(x)\ \text{ for } x\geq0,\qquad f(|x|)=f(-x)\ \text{ for } x\lt 0\]
f of absolute x equals f of x for x at least 0, and f of negative x for x negative
\[f(|-x|)=f(|x|)\quad\Rightarrow\quad y=f(|x|)\ \text{is even}\]
f of absolute negative x equals f of absolute x, so y equals f of absolute x is even
\(y=|f(x)|\)\(y=f(|x|)\)
Keepthe parts with \(f(x)\geq0\)the part with \(x\geq0\)
Reflectthe parts below the \(x\)-axis, in the \(x\)-axisthe part with \(x\geq0\), in the \(y\)-axis
Throw awaynothing (it is flipped up)the part with \(x\lt 0\)
Symmetrynone in generalabout the \(y\)-axis (even)
Range\(y\geq0\) onlycan go below the axis
Sharp pointswhere \(f\) crosses the \(x\)-axispossibly on the \(y\)-axis

Solving an equation with an absolute value of the output (\(k\gt 0\)):

\[|f(x)|=k\quad\Leftrightarrow\quad f(x)=k\ \text{ or }\ f(x)=-k\]
absolute value of f of x equals k means f of x equals k or f of x equals negative k
Counting solutions. The number of solutions of \(|f(x)|=k\) is the number of times the horizontal line \(y=k\) meets the graph of \(y=|f(x)|\). There are no solutions if \(k\lt 0\).
Domain and range. For \(y=f(|x|)\), \(|x|\) must be in the domain of \(f\): for \(f(x)=\sqrt{x-2}\), \(y=\sqrt{|x|-2}\) needs \(|x|\geq2\), so \(x\leq-2\) or \(x\geq2\). For \(y=|f(x)|\) on a restricted domain, find the least and greatest values of \(f\) first, then apply the absolute value; the range starts at \(0\) if \(f\) has a zero in the domain.
Powers. \(|x^2|=|x|^2=x^2\) and \(|x^3|=|x|^3\), so an expression in \(|x^2|\) and \(|x^3|\) is a function of \(|x|\).

How to sketch \(y=|f(x)|\)

  1. Sketch \(y=f(x)\) lightly and find its \(x\)-intercepts.
  2. Keep every part of the graph on or above the \(x\)-axis.
  3. Reflect every part below the \(x\)-axis in the \(x\)-axis: a point \((a,b)\) with \(b\lt 0\) moves to \((a,-b)\). Reflect turning points and asymptotes too.
  4. Label the \(x\)-intercepts (now sharp points), the \(y\)-intercept \(|f(0)|\) and the reflected turning points.

How to sketch \(y=f(|x|)\)

  1. Sketch \(y=f(x)\) for \(x\geq0\) only.
  2. Reflect that part in the \(y\)-axis to get the part for \(x\lt 0\). Throw away the old left half of \(f\).
  3. Label intercepts and turning points in pairs: an intercept \(x=a\) (\(a\gt 0\)) gives \(x=\pm a\), and a turning point \((a,b)\) gives \((\pm a,b)\).

How to solve \(|f(x)|=k\)

  1. Split into \(f(x)=k\) and \(f(x)=-k\), and solve each.
  2. Check the number of solutions with the line \(y=k\) on the graph of \(y=|f(x)|\).
Example 1 — Output or input?
Let \(f(x)=2x+4\).
(i) Find \(|f(-3)|\) and \(f(|-3|)\).
(ii) Sketch \(y=|f(x)|\) and \(y=f(|x|)\) on the same axes.
Solution

(i) Apply \(f\) first, then the absolute value:

\(f(-3)\)\(=\)\(2(-3)+4=-2\)
\(|f(-3)|\)\(=\)\(|-2|=\mathbf{2}\)
f of negative 3 equals negative 2, so its absolute value is 2

Take the absolute value of \(x\) first:

\(|-3|\)\(=\)\(3\)
\(f(3)\)\(=\)\(2(3)+4=\mathbf{10}\)
absolute value of negative 3 is 3, f of 3 equals 10

(ii) \(f(x)=0\) at \(x=-2\). For \(y=|2x+4|\), reflect the part of the line with \(x\lt -2\) in the \(x\)-axis: a V with its vertex at \((-2,0)\) and \(y\)-intercept \((0,4)\).

For \(y=f(|x|)=2|x|+4\), keep the line for \(x\geq0\), starting at \((0,4)\), and reflect it in the \(y\)-axis: a V with its vertex at \((0,4)\).

y = |2x + 4| and y = 2|x| + 4Two V-shaped graphs. y = |2x + 4| (navy) has its vertex at (-2, 0) and y-intercept (0, 4). y = 2|x| + 4 (red) has its vertex at (0, 4) and is symmetric about the y-axis. x y −4 −3 −1 1 2 3 2 6 8 (−2, 0) (0, 4) y = |2x + 4| y = 2|x| + 4
Example 2 — Sketch |f(x)| and solve |f(x)| = k
Let \(f(x)=x^2-6x+5\).
(i) Sketch \(y=|f(x)|\), showing the intercepts and the turning point.
(ii) Hence state the number of solutions of \(|x^2-6x+5|=3\), and find them exactly.
Solution

(i) Factorise and complete the square:

\(f(x)\)\(=\)\((x-1)(x-5)\)
\(\)\(=\)\((x-3)^2-4\)
f of x equals x minus 1 times x minus 5, which equals x minus 3 squared minus 4

\(x\)-intercepts \((1,0)\), \((5,0)\); \(y\)-intercept \(|f(0)|=5\): \((0,5)\). The parabola is below the axis for \(1\lt x\lt 5\), so that part is reflected: the vertex \((3,-4)\) becomes a local maximum \((3,4)\).

(ii) The line \(y=3\) is between \(0\) and the local maximum \(4\), so it meets the graph 4 times.

\(|f(x)|=3\) means \(f(x)=3\) or \(f(x)=-3\):

\(x^2-6x+5\)\(=\)\(3\)
\(x^2-6x+2\)\(=\)\(0\)
\(x\)\(=\)\(\dfrac{6\pm\sqrt{36-8}}{2}\)
\(\)\(=\)\(3\pm\sqrt7\)
x squared minus 6x plus 2 equals 0, x equals 3 plus or minus root 7
\(x^2-6x+5\)\(=\)\(-3\)
\(x^2-6x+8\)\(=\)\(0\)
\((x-2)(x-4)\)\(=\)\(0\)
\(x\)\(=\)\(2,\ 4\)
x squared minus 6x plus 8 equals 0, x equals 2 or 4

\(\therefore x=\mathbf{3-\sqrt7,\ 2,\ 4,\ 3+\sqrt7}\)

y = |x² − 6x + 5| and y = 3The graph of y = |x^2 - 6x + 5| (solid), with x-intercepts 1 and 5, y-intercept (0, 5) and local maximum (3, 4), drawn with the parabola (dashed) and the line y = 3, which meets the graph four times. x y −1 2 3 4 6 7 −4 −2 2 4 6 (1, 0) (5, 0) (3, 4) (0, 5) (3, −4) y = 3
Example 3 — Sketch f(|x|)
For the same function \(f(x)=x^2-6x+5\):
(i) Find the \(x\)-intercepts of \(y=f(|x|)\).
(ii) Find the minimum value of \(y=f(|x|)\) and the values of \(x\) where it occurs.
(iii) Sketch \(y=f(|x|)\).
Solution

\(y=f(|x|)\): take \(f\) for \(x\geq0\) and reflect it in the \(y\)-axis.

(i) \(f(x)=(x-1)(x-5)=0\Rightarrow x=1,\ 5\)

\(f(|x|)\)\(=\)\(0\)
\(|x|\)\(=\)\(1\ \text{or}\ |x|=5\)
\(x\)\(=\)\(\pm1,\ \pm5\)
f of absolute x equals 0, so absolute x equals 1 or 5, so x equals plus or minus 1 or plus or minus 5

\(\therefore\) \(x\)-intercepts \(x=\mathbf{-5,\ -1,\ 1,\ 5}\)

(ii) \(f(x)=(x-3)^2-4\): minimum \(-4\) at \(x=3\) (with \(x\geq0\)). Reflecting: minimum value \(\mathbf{-4}\) at \(x=\mathbf{3}\) and \(x=\mathbf{-3}\).

(iii) The \(y\)-intercept is \(f(0)=5\). The two halves meet at \((0,5)\) at a sharp point, which is a local maximum. The graph is a W shape, symmetric about the \(y\)-axis.

y = f(|x|) for f(x) = x² − 6x + 5The graph of y = |x|^2 - 6|x| + 5 (solid), symmetric about the y-axis, with x-intercepts -5, -1, 1 and 5, minimum points (-3, -4) and (3, -4), and a sharp local maximum at (0, 5). The parabola y = x^2 - 6x + 5 is dashed. x y −5 −3 −1 1 3 5 −2 2 4 (−3, −4) (3, −4) (0, 5) y = f(x) y = f(|x|)
Example 4 — Exponential function
Let \(f(x)=3^x-3\).
(i) Sketch \(y=|f(x)|\), showing any asymptote and intercepts, and state its range.
(ii) Sketch \(y=f(|x|)\), showing its intercepts, and state its range.
Solution

Features of \(f\): as \(x\to-\infty\), \(3^x\to0\), so \(f(x)\to-3\): asymptote \(y=-3\). \(x\)-intercept: \(3^x=3\Rightarrow x=1\). \(y\)-intercept: \(f(0)=1-3=-2\).

(i) For \(x\geq1\): \(f(x)\geq0\), so \(y=3^x-3\) (unchanged). For \(x\lt 1\): \(f(x)\lt 0\), so \(y=3-3^x\), the reflection of \(f\) in the \(x\)-axis.

\(\text{asymptote}\)\(:\)\(y=-3\ \text{reflects to}\ y=3\)
\(y\text{-intercept}\)\(:\)\(|f(0)|=|-2|=2\)
the asymptote y equals negative 3 reflects to y equals 3, and the y-intercept is 2

Sharp point at \((1,0)\). Range: \(\boldsymbol{y\geq0}\).

y = |3^x − 3|The graph of y = |3^x - 3| (solid): for x >= 1 it is the curve y = 3^x - 3, and for x < 1 the curve is reflected up to y = 3 - 3^x, with horizontal asymptote y = 3, y-intercept (0, 2) and a sharp point at (1, 0). The curve y = 3^x - 3 is dashed, with asymptote y = -3. x y −4 −3 −2 −1 2 −1 1 4 5 (1, 0) (0, 2) y = 3 y = −3 y = |3x − 3|

(ii) For \(x\geq0\), \(y=3^x-3\), from \((0,-2)\) up through \((1,0)\). Reflect this in the \(y\)-axis.

\(x\)-intercepts \(x=\pm1\), sharp minimum \((0,-2)\), and no asymptote (the left half of \(f\), with its asymptote, is thrown away). Range: \(\boldsymbol{y\geq-2}\).

y = 3^|x| − 3The graph of y = 3^|x| - 3 (solid), symmetric about the y-axis, with a sharp minimum at (0, -2), x-intercepts -1 and 1, and no asymptote. The curve y = 3^x - 3 is dashed. x y −2 2 2 4 (−1, 0) (1, 0) (0, −2) y = −3 y = 3|x| − 3

Common pitfalls

Output or input? \(|f(x)|\) changes the \(y\)-values (reflect in the \(x\)-axis); \(f(|x|)\) changes the \(x\)-values (reflect in the \(y\)-axis). Read where the absolute value bars are before you start.
For \(f(|x|)\), reflect the right half, not the left half. The part of \(f\) with \(x\lt 0\) is thrown away and replaced by the mirror image of the part with \(x\geq0\). For \(f(x)=x^2+2x-3\), the vertex \((-1,-4)\) is not on the graph of \(f(|x|)\).
Reflect the asymptotes and turning points too. For \(y=|f(x)|\), an asymptote \(y=-3\) below the axis becomes \(y=3\), and a minimum \((3,-4)\) becomes a maximum \((3,4)\). Turning points and intercepts that are already on or above the axis stay put.
Look for both cases in \(|f(x)|=k\). Solve \(f(x)=k\) and \(f(x)=-k\). Use the graph to check the count: a line \(y=k\) through a local maximum of \(y=|f(x)|\) only touches the graph there, so that point counts once: \(|x^2-6x+5|=4\) has \(3\) solutions, not \(4\).

Frequently asked questions

What is the difference between y = |f(x)| and y = f(|x|)?

In \(y=|f(x)|\) the absolute value acts on the output, so every part below the \(x\)-axis is reflected up. In \(y=f(|x|)\) it acts on the input, so the part for \(x\geq0\) is kept and reflected in the \(y\)-axis.

How do you sketch y = |f(x)|?

Sketch \(y=f(x)\), keep the parts on or above the \(x\)-axis, and reflect the parts below the \(x\)-axis in the \(x\)-axis. The graph has sharp points where \(f\) crosses the axis.

How do you sketch y = f(|x|)?

Sketch \(y=f(x)\) for \(x\geq0\) only, then reflect that part in the \(y\)-axis. Throw away the original part for \(x\lt 0\).

Is y = f(|x|) always an even function?

Yes. \(f(|-x|)=f(|x|)\) for every \(x\), so the graph of \(y=f(|x|)\) is always symmetric about the \(y\)-axis. \(y=|f(x)|\) is not even in general: \(y=|x-7|\) is symmetric about \(x=7\), not the \(y\)-axis.

How many solutions does |f(x)| = k have?

Draw the line \(y=k\) on the graph of \(y=|f(x)|\) and count the points where they meet. To find them, solve \(f(x)=k\) and \(f(x)=-k\). There are none if \(k\lt 0\).

Can the graph of y = |f(x)| go below the x-axis?

No. An absolute value is never negative, so \(|f(x)|\geq0\) and the whole graph is on or above the \(x\)-axis. The graph of \(y=f(|x|)\) can go below the axis.