Absolute value and piecewise-defined functions: the piecewise definition of |x|, graphing y = |ax + b|, solving |ax + b| = k with cases (with Extension 1 inequalities and variable right-hand sides flagged), evaluating and graphing piecewise functions and finding where they are continuous (the piecewise definition, domain, range, symmetry and piecewise functions are new in the 2024 syllabus)
“Define and graph piecewise functions, recognise continuity and breaks informally, define the absolute value piecewise, graph and , and solve absolute value equations of the form algebraically and graphically”
for and for , with . Solve by splitting into cases or by graphing, and check each answer against its case since extraneous solutions occur (inequalities and variable right-hand sides are Extension 1). A piecewise function uses a different rule on each interval and is continuous at a join when the pieces take the same value there. The 2017 Advanced course already graphed and and solved ; 2024 adds the piecewise definition, domain, range, symmetry and piecewise functions.
What this dot point is asking
Two linked ideas appear in the Mathematics Advanced 11-12 Syllabus (2024) Year 11 Working with functions focus area. Piecewise-defined functions use different rules on different parts of the domain, and students are expected to graph them, decide whether they are even or odd, and talk informally about continuity and about points where the graph "breaks". The absolute value function is built on exactly that idea: NESA asks you to establish the piecewise definition of , show that , graph (with and without technology), and solve absolute value equations of the form algebraically and graphically.
The 2017 Advanced course already graphed and and solved . The 2024 course adds the piecewise definition of , the result , and the domain, range and symmetry of these graphs, together with piecewise-defined functions and informal continuity.
Some material on this page goes beyond the Advanced dot point and is labelled Extension 1: absolute value inequalities, and equations with the unknown on both sides such as . Treat those as extra practice unless you study Extension 1.
The absolute value of a number is its distance from zero, ignoring direction, so and are both . As a function it works like a mirror: anything that would go below the -axis is flipped up above it. A piecewise function is a rule book with different instructions for different stretches of the number line. You check which stretch your is in, then follow that instruction.
The answer
- is the distance from to ; is the distance between and .
- (not ).
- () means or .
- Extension 1 only: means ; means or .
Graphing and
The graph of is a V with its vertex at the origin. It is even (symmetric about the -axis), has domain all reals and range . For :
- Find the vertex where , that is .
- Plot the -intercept .
- Draw the V with gradients and either side of the vertex.
Equivalently, sketch and reflect the part below the -axis upward.
Solving equations
The Advanced dot point covers equations of the form . There are two reliable methods.
Cases. Split at the point where the inside changes sign, solve each case, and check every candidate against its own condition.
Graphs. Sketch both sides and read off the intersections, which is useful when the equation has an outside the modulus, as in (an Extension 1 style equation).
Always test each answer in the original equation. An absolute value is never negative, so if the other side is negative at a candidate, that candidate is extraneous and must be discarded.
Piecewise functions
A piecewise function is written with a brace, one rule per interval. To evaluate, decide which interval the input lies in and use that rule. To graph, sketch each rule only on its own interval, using an open circle where an endpoint is excluded and a closed circle where it is included. Make sure every in the domain belongs to exactly one piece, otherwise it is not a function.
Continuity at a join, informally
A function is continuous at a point when you can draw through it without lifting your pen. For a piecewise function at the join , check that the two rules give the same value at (the left-hand rule approaching and the right-hand rule at ). If they differ, there is a jump or a hole, and the function is discontinuous there. Note that continuity does not mean smoothness: is continuous everywhere even though it has a corner at the origin.
Graph a modulus function from its piecewise form
Write as a piecewise function and state its range.
Cases
when , and when .
Features
The vertex is and the -intercept is . The graph never goes below the -axis, so the range is .
Solve an absolute value inequality (Extension 1)
Solve .
Split
gives . gives .
Combine
The solution is or . On a number line this is two rays with a gap between and .
Marker's note: "greater than" gives two pieces joined by "or", while "less than" gives one interval.
- Writing
- It equals , so , not .
- Solving only one case
- Every modulus equation has two cases, and each answer must satisfy its own case condition.
- Forgetting to reject extraneous solutions
- Check each candidate in the original equation, especially when appears outside the modulus.
- Combining "or" and "and" wrongly (Extension 1 inequalities)
- is an "and" (between), while is an "or" (outside).
- Confusing continuous with smooth
- A join can be continuous but have a corner, as in .
When a question includes both a modulus and an outside it, draw the two graphs first so you know how many solutions to expect. Write the case condition next to each case ("") and tick it off when you check the answer. For a piecewise graph, mark the endpoints with open and closed circles so the domain of each piece is clear.
Exam-style questions
Questions in the style of NESA exam questions on this dot point, each with a worked answer. They are written by ExamExplained unless tagged "Past paper"; the year shows the paper a question is modelled on.
HSC-style3 marksSketch the graph of and use it to solve (the unknown on both sides makes this an Extension 1 style equation).
Show worked answer →
The graph is a V-shape with vertex and -intercept : for , , and for , . Setting gives (valid since ). Setting gives (valid since ). So or ; the line crosses the V twice.
Markers award one mark for the sketch with vertex and intercept, one for each solution with its case checked.
HSC-style3 marksShow that is an even function and sketch its graph for .
Show worked answer →
, so is even and the graph is symmetric about the -axis. For , with , and . The left half is the mirror image: and . There is a corner at the origin where the two halves meet.
Markers award one mark for the algebraic test, one for the right half and one for the reflected left half.
Practice questions
Original practice questions graded from foundation to exam level, each with a full worked solution. Try them before revealing the solution.
foundation2 marksSolve .
Show worked solution →
An absolute value equals when the inside equals or .
Check: and . Both work, so or .
Marker's note: one mark for each solution. Forgetting the negative case loses a mark.
foundation2 marksExtension 1: solve .
Show worked solution →
"Absolute value at most " means the inside lies between and .
Marker's note: one mark for the double inequality, one for the solution. The graph of lies on or below between its two crossings.
core3 marksThe function is defined by for and for . (a) Find , and . (b) Is continuous at ? Explain.
Show worked solution →
(a) , so . (the rule with applies). .
(b) As approaches from the left, approaches . But . The graph jumps from height to height at , so is not continuous there (a jump discontinuity of size ).
Marker's note: one mark for the three values, one for the left-hand approach value and one for the conclusion.
core3 marksThe function for and for is continuous at . Find , and sketch the shape of the graph near .
Show worked solution →
Match the values at the join. From the left, . From the right, . For continuity, , so .
Shape. The graph is the line up to and including the point , then the parabola continuing from that same point with gradient . The line has gradient , so there is a corner at , though no break.
Marker's note: one mark for equating the two values, one for and one for the description. Joining at a point makes a function continuous, not smooth.
exam4 marks(a) Write without absolute value signs. (b) Hence solve .
Show worked solution →
(a) Split at and , where each modulus changes.
- : and , so .
- : and , so .
- : and , so .
(b) Solve in each part. For : gives , which is less than , so it is valid. For : , no solution. For : gives , valid.
The solutions are and .
Marker's note: two marks for the three pieces correctly simplified and two for the solutions with their interval checks. Each answer must fit its own interval.
exam4 marksExtension 1 style: solve and explain why one candidate must be rejected.
Show worked solution →
- Case 1:
- Then , so , giving and . This satisfies .
- Case 2:
- Then , so , giving and . This does not satisfy , so it is rejected.
- Check the survivor
- At : and . The solution is only.
Another way to see why fails: the right side is negative, but an absolute value cannot equal a negative number.
Marker's note: one mark for each case set up, one for solving both and one for the justified rejection.