Piecewise functions feel awkward to graph because you must process two kinds of information at once: each formula determines the shape of a graph, while each condition determines where that shape is allowed to appear. Most mistakes occur when students graph the formulas correctly but overlook the domain restrictions, especially at boundary points.
The solution is to treat every piece as a formula plus an interval, not as a formula alone. Mark the boundaries first, calculate both possible endpoint heights, decide which points are included, and only then draw each restricted section. This article develops that method for students studying piecewise functions in IB Maths, with particular attention to open and closed circles, discontinuities, and exam presentation.
What is a piecewise function?
A piecewise-defined function uses different formulas for different parts of its domain. For example,
f(x)= \\begin{cases} 2x+1, & x<2,\\ x^2-3, & x\\geq 2. \\end{cases}This definition gives two instructions:
-
Use when the input is less than .
-
Use when the input is at least .
At , only the second rule applies because its condition includes equality. Therefore,
The first expression would produce , but that point is not part of the function. It is only the height approached by the first piece as approaches from the left.
This distinction follows from the basic definition of a function: each permitted input must have exactly one output. The wider function concept, including notation, domain, range, inverses, and graphs, is reviewed in RevisionDojo's IB Maths AA functions walkthrough. This article concentrates only on the narrower skill of graphing restricted pieces accurately.
Why does graphing piecewise functions feel unnatural?
Students are usually taught to see an equation such as and draw the entire parabola. A piecewise definition interrupts that habit. The equation still suggests a complete familiar curve, but the interval tells you to erase most of it.
Three separate decisions are compressed into each line of the definition:
-
Shape: What graph does the formula produce?
-
Location: Over which -values is that graph valid?
-
Boundary status: Is each endpoint included or excluded?
The third decision creates most errors. A boundary such as can produce two different candidate points because the formulas on either side may give different values. The inequalities decide which candidate, if either, represents the actual value of the function.
Piecewise graphs can also look visually disconnected. Students sometimes assume a function ought to be one unbroken curve, but being a function does not imply continuity. A graph may contain jumps, holes, or isolated endpoints while still giving no more than one output for each input.
What do the interval symbols mean on a graph?
The condition beside each formula controls whether its boundary point is drawn with an open or closed circle.
Condition at Is included?Graph notationNoOpen circleNoOpen circleYesClosed circleYesClosed circle
An open circle means that the piece approaches that coordinate but does not contain it. A closed circle means that the coordinate belongs to the graph.
The inequality controls inclusion, not the visual position of the point. A higher endpoint is not automatically open, and a lower endpoint is not automatically closed. You must read the symbols , , , and literally.
There is also a subtle case in which an excluded endpoint and an included endpoint occupy the same coordinate. For example,
g(x)= \\begin{cases} x+1, & x<2,\\ 3, & x\\geq2. \\end{cases}Both formulas give at the boundary. The first piece technically has an open endpoint at , while the second has a closed endpoint there. On the completed graph, the closed point is sufficient because belongs to the overall function.
How should you graph a piecewise function step by step?
Use the following procedure consistently. It separates domain decisions from sketching decisions, reducing the amount you must hold in your head at once.
Step 1: Identify every boundary value
Look for the -values where the rule changes. In
h(x)= \\begin{cases} \-x-1, & x<-1,\\ x^2, & -1\\leq x<2,\\ 4-x, & x\\geq2, \\end{cases}the boundaries are and . Lightly mark these values on the -axis or draw temporary vertical guide lines.
Step 2: Create an endpoint table
Substitute each boundary into the formulas immediately beside it, even when the condition excludes that boundary. This gives the coordinates of all open and closed endpoint candidates.
BoundaryFormulaCandidate pointStatusx=-1$$-x-1$$(-1,0)Open, because x<-1$$x=-1$$x^2$$(-1,1)Closed, because x\\geq-1$$x=2$$x^2$$(2,4)Open, because x<2$$x=2$$4-x$$(2,2)Closed, because
This table makes the two jumps visible before the curves are drawn.
Step 3: Sketch each parent graph lightly
Recognize the type of each expression:
-
is a straight line with gradient .
-
is an upward-opening parabola.
-
is a straight line with gradient and vertical intercept .
Plot one or two additional points where necessary. RevisionDojo's functions and transformations toolkit is useful if recognizing parent graphs is the main difficulty rather than restricting their domains.
Step 4: Keep only the permitted interval
Draw only to the left of . Draw only from up to, but not including, . Draw only from rightwards.
Do not draw each complete function and hope to distinguish the relevant section afterward. That often leaves extra curves which imply outputs the function does not have.
Step 5: Add open and closed endpoints
Place open circles at and . Place closed circles at and .
Make the distinction visible. A tiny open circle that becomes filled by a thick pencil line may communicate the wrong graph.
Step 6: Check the graph vertically
Imagine moving a vertical line from left to right. At every input in the domain, it should meet the completed graph exactly once. This vertical line test catches overlapping pieces and double-filled boundaries.
Also inspect each boundary independently:
-
Which formula actually defines ?
-
Which formula actually defines ?
-
Does the closed point show that value?
For targeted follow-up, the IB Maths AA graphing Questionbank provides practice on graph interpretation and sketching.
What are the most common boundary-point errors?
Graphing both formulas at the boundary
Suppose one condition is and the next is . If the formulas give different outputs at , the relation assigns two outputs to one input and is not a function as written. Do not quietly choose one point unless the question contains an obvious typographical issue and your teacher or examiner has clarified it.
By contrast, followed by partitions the domain correctly. Exactly one rule owns the boundary.
Leaving the boundary out completely
If the conditions are and , neither piece includes . The function is undefined there unless a separate rule defines it. Both candidate endpoints should be open.
Substituting the boundary into only the included formula
You need the included formula to find the actual function value, but you often need the excluded formula to locate its open circle. If the two expressions have different endpoint heights, calculating only one produces an incomplete graph.
Joining pieces automatically
Do not connect endpoints simply because they are close. The graph is continuous at only when the left-hand behavior, right-hand behavior, and actual value agree there. If the two endpoint heights differ, a connecting segment would invent outputs not given by either formula.
Using the inequality to determine the direction incorrectly
The condition describes -values, so it controls horizontal extent:
-
extends left from .
-
extends right from .
It does not tell you whether the graph rises or falls. That behavior comes from the formula.
Confusing the open circle with a separate point
An open circle records exclusion. It is not an extra output, an intercept, or a point belonging to the function. When reading from a graph, use the filled point at ; if there is no filled point, is undefined.
How do boundaries reveal continuity and range?
Boundary points carry more information than endpoint inclusion. They can reveal whether a graph is continuous and whether particular -values belong to the range.
For a two-piece function changing rule at , ask three questions:
-
What height does the left piece approach?
-
What height does the right piece approach?
-
What is the actual value ?
If all three are equal, the function is continuous at . If the one-sided heights differ, the graph has a jump discontinuity. If both sides approach the same height but the function is missing there or has a different filled point, the graph has a removable discontinuity.
Endpoint notation also affects range. If the graph approaches only at an open endpoint and no other point produces , then is excluded from the range. If another piece reaches , it remains in the overall range despite that open endpoint.
These ideas connect graphing to later calculus work, particularly limits, continuity, and differentiability. The broader IB Mathematics AA functions notes can help you place this single skill within Topic 2.
How does this skill fit IB Maths AA examinations?
The official Mathematics: analysis and approaches guide includes the concept of a function, domain, range, graph, and the creation of sketches from supplied information or context. It also states that graphing questions may use functions not explicitly named in the syllabus. This means memorizing a list of graph types is not enough; students must interpret the formula and the stated domain.
The guide distinguishes sketch from draw. A sketch must show the general shape and relevant features, while a drawing is expected to be accurate, labelled, and plotted appropriately. For a piecewise sketch, relevant features normally include:
-
labelled axes;
-
boundary -values;
-
clearly open or closed endpoints;
-
intercepts or turning points needed to establish the shape;
-
the correct graph on each specified interval.
You do not need to plot many points if the command term is sketch, but you must show the mathematical structure. A beautifully shaped parabola on the wrong interval is not an accurate representation.
Technology can check a piecewise graph, but calculator syntax varies. More importantly, restricted graphing modes can hide endpoint circles or make an excluded endpoint appear filled because of screen resolution. Use technology to confirm shape and scale, then verify every inequality manually. The official guide confirms that IB Maths AA assesses graphing and problem solving both with and without technology, so the hand method remains essential.
Students who need to rebuild the underlying terminology can use the SL 2.2 functions, domain and range notes, followed by the corresponding functions Questionbank.
What is the fastest reliable exam routine?
Under time pressure, use the shorthand B-F-I-C:
-
Boundaries: Mark every value where the rule changes.
-
Formulas: Calculate the possible endpoint height from each adjacent formula.
-
Intervals: Restrict every curve to its stated -values.
-
Circles: Use open circles for strict inequalities and closed circles for inclusive inequalities.
Then perform a five-second vertical check. At each boundary, there should normally be one filled point, no filled point if the function is undefined there, or coincident endpoints at the same coordinate.
When checking your work, do not ask only, “Does this look right?” Ask precise questions:
-
Did I graph any formula outside its permitted interval?
-
Did I calculate both endpoint heights?
-
Does each closed point agree with the actual value of the function?
-
Have I accidentally connected a jump?
-
Can any vertical line meet two included points?
That checklist turns a visual task into a controlled sequence of decisions. If an error remains unclear, Jojo AI can help explain which formula owns a boundary, while RevisionDojo's graphing Questionbank can provide repeated practice with different interval structures.
Conclusion
Piecewise functions feel awkward because each line combines a graphing rule with a domain restriction. The formula controls the curve's shape, the interval controls its horizontal location, and the inequality controls whether a boundary point is open or closed.
A reliable graph comes from marking boundaries, evaluating adjacent formulas, restricting each curve, adding endpoint circles, and checking vertically. For exam preparation, revise the wider functions framework with RevisionDojo's Functions Notes, then use the Questionbank and Jojo AI to diagnose boundary errors rather than repeatedly sketching without feedback.
