ACT MATH • PREPARING FOR HIGHER MATH

Piecewise Functions

Master functions defined by different rules on different intervals to conquer ACT Math questions.

Historical Context & Motivation

Mathematics has always been driven by the need to describe the real world, and real-world phenomena rarely follow a single, neat formula from start to finish. Tax brackets change at certain income thresholds, shipping costs jump at weight limits, and the speed of a car changes between acceleration and braking. The concept of a piecewise function — a function built from multiple sub-functions, each applying to a specific interval of the domain — arose precisely because mathematicians needed flexible tools to model situations where the rules change.

1700s
Euler and Function Debate
Leonhard Euler and other mathematicians debated what counts as a "function." Early definitions required a single algebraic expression, but vibrating string problems demanded multiple formulas joined together.
1822
Fourier's Heat Equation
Joseph Fourier modeled heat flow using functions that changed behavior at boundaries. His work showed that piecewise-defined functions were essential in physics and engineering.
1837
Dirichlet's Modern Definition
Peter Gustav Lejeune Dirichlet formalized the modern idea of a function as a rule assigning outputs to inputs, explicitly allowing different rules on different parts of the domain.
Today
ACT & Standardized Testing
Piecewise functions appear regularly on the ACT, SAT, and in college-level courses. They model tax rates, utility pricing, absolute value, and step functions used in computer science.

The central question piecewise functions answer is straightforward: How do we write a single function when the rule changes depending on where you are in the domain? Understanding this concept not only prepares you for ACT problems but also builds a foundation for calculus, where piecewise functions play a critical role in understanding limits and continuity.

Core Principles & Definitions

A piecewise function is a function defined by two or more expressions, each of which applies to a different part (or "piece") of the domain. You can think of it as a set of instructions: "If x is in this range, use this formula; if x is in that range, use that formula." Each sub-function has its own interval, and the intervals together must cover the entire domain without overlapping.

1

Domain Intervals

Each piece of the function applies only on a specific interval of x-values. Intervals are written using inequalities such as x < 2 or x ≥ 2. Together they must cover every x in the domain.
2

Sub-Functions (Pieces)

Each interval has its own rule — it could be linear, quadratic, constant, or any other type. The key is that you use the correct rule for the correct interval.
3

Boundary Points

Where intervals meet, pay close attention to whether endpoints are included (≤ or ≥, shown with a filled dot) or excluded (< or >, shown with an open dot). A function can have only one output per input.
4

Evaluating

To evaluate f(x), first determine which interval x falls into, then substitute x into the corresponding sub-function. The ACT tests this skill frequently.
5

Continuity at Boundaries

A piecewise function is continuous at a boundary if the two pieces meet at the same point — no jump or gap. If they don't meet, the function has a discontinuity (a "break" in the graph).
KEY TAKEAWAY
Think of a piecewise function like a GPS giving driving directions. On the highway you follow one rule ("drive 65 mph"), but once you exit onto city streets the rule changes ("drive 30 mph"). The overall trip is one journey, but the instructions change based on where you are. Similarly, a piecewise function is one function with multiple rules, each triggered by the value of x.

Visual Explanation

The graph below shows a classic piecewise function with three pieces. Notice how the graph changes its behavior at the boundary points x = −1 and x = 2. Each colored segment represents a different sub-function, and the open and filled circles tell you whether each endpoint is included or excluded.

The blue segment shows y = x + 1 for x < −1 (open circle at x = −1). The violet segment shows y = 1 for −1 ≤ x < 2 (filled circle at x = −1, open at x = 2). The pink segment shows y = x − 1 for x ≥ 2 (filled circle at x = 2).

When reading a piecewise graph, always check the boundary points. A filled circle means the point is included in that piece (corresponding to ≤ or ≥ in the inequality). An open circle means the point is excluded (corresponding to < or >). Notice in the diagram above that there is a jump discontinuity at x = −1: the blue piece approaches y = 0 but the violet piece starts at y = 1. Meanwhile, at x = 2 the pieces meet smoothly — no jump.

Mathematical Framework

Piecewise functions use a special notation that looks like a large curly brace with multiple rows. Each row contains a formula on the left and the condition (interval) on the right. Here is the general form and two important special cases you will encounter on the ACT.

GENERAL PIECEWISE NOTATION
f(x) = { expression₁, if condition₁ ; expression₂, if condition₂ ; expression₃, if condition₃ }
Each expressionₖ is a formula (like 2x + 3 or x²), and each conditionₖ is an inequality defining the interval (like x < 0 or x ≥ 5). The conditions must not overlap, and together they should cover the full domain.
ABSOLUTE VALUE AS PIECEWISE
|x| = { x, if x ≥ 0 ; −x, if x < 0 }
The absolute value function is the most common piecewise function. For non-negative inputs, it returns the input unchanged; for negative inputs, it returns the opposite (making it positive).
STEP FUNCTION EXAMPLE
f(x) = { 0, if x < 0 ; 1, if 0 ≤ x < 1 ; 2, if x ≥ 1 }
A step function jumps between constant values. These model scenarios like postage rates, parking fees, and grade thresholds.
💡 ACT TIP
When an ACT question asks you to evaluate a piecewise function at a specific value of x, follow these steps: (1) Read the conditions to determine which piece x belongs to. (2) Substitute x into only that piece's formula. (3) Simplify. A common mistake is using the wrong piece — always check the inequality signs carefully.

Types of Piecewise Functions

Not all piecewise functions look the same. Some are continuous (the graph has no breaks), while others have jumps or gaps. The ACT can test any of these types. The diagram below compares a continuous piecewise function on the left with a discontinuous piecewise function on the right, so you can see the difference clearly.

Left: Both pieces meet at the point (0, 2), so the function is continuous. Right: At x = 0, the left piece approaches y = 1 (open circle) but the right piece starts at y = −1 (filled circle), creating a jump discontinuity.
Comparing continuous and discontinuous piecewise functions
FeatureContinuous PiecewiseDiscontinuous Piecewise
Graph appearanceNo breaks — you can draw it without lifting your pencilHas jumps, holes, or gaps at one or more boundary points
At the boundaryLeft piece value = Right piece valueLeft piece value ≠ Right piece value
ExampleAbsolute value |x|, V-shaped functionsStep functions, tax bracket calculations

Worked Example

Let's work through a complete ACT-style problem involving a piecewise function. This example covers the most common question type: evaluating the function at given values and interpreting the result.

GIVEN FUNCTION
f(x) = { 3x + 2, if x < 1 ; x² − 1, if x ≥ 1 }
Find f(−2), f(1), and f(4).
Evaluating a Piecewise Function
1
Step 1 — Evaluate f(−2)Since −2 < 1, we use the first piece: f(x) = 3x + 2. Substituting x = −2 gives f(−2) = 3(−2) + 2 = −6 + 2.
f(−2) = −4
2
Step 2 — Evaluate f(1)Since 1 ≥ 1, we use the second piece: f(x) = x² − 1. Substituting x = 1 gives f(1) = (1)² − 1 = 1 − 1. Note: the boundary x = 1 belongs to the second piece because the condition says x ≥ 1 ("greater than or equal to").
f(1) = 0
3
Step 3 — Evaluate f(4)Since 4 ≥ 1, we again use the second piece: f(x) = x² − 1. Substituting x = 4 gives f(4) = (4)² − 1 = 16 − 1.
f(4) = 15
4
Step 4 — Check for Continuity at x = 1To see if the function is continuous at the boundary, compare the limit from the left using the first piece with the actual value from the second piece. Approaching x = 1 from the left: 3(1) + 2 = 5. The second piece gives f(1) = 0. Since 5 ≠ 0, there is a jump discontinuity at x = 1.
Discontinuous at x = 1 (jump of 5 units)

Common Mistakes & How to Avoid Them

Piecewise function questions on the ACT are designed to test careful reading. Most errors come not from difficult calculations but from picking the wrong piece or misreading an inequality sign. The table below highlights the most frequent mistakes students make, along with strategies to avoid them.

Common errors and corrections for piecewise function problems
Common MistakeWhy It HappensHow to Fix It
Using the wrong pieceRushing and not checking whether the boundary value is < or ≤Circle the inequality sign before substituting. Ask: does the boundary belong to this piece or the next?
Confusing open and filled dotsForgetting that an open dot means the point is excludedOpen circle = strict inequality (< or >). Filled circle = includes endpoint (≤ or ≥).
Sign errors with negativesSubstituting a negative value without proper parenthesesAlways wrap negative numbers in parentheses: 3(−2), not 3 × −2.
Ignoring domain restrictionsGraphing a piece beyond its valid intervalMark the start and end of each piece on the x-axis before drawing the curve.
KEY TAKEAWAY
Think of boundary points like traffic lights. A filled circle (≤ or ≥) is a green light — the function includes that point. An open circle (< or >) is a red light — stop just before that point. On the ACT, half the battle is reading the "traffic signs" correctly.

Connection to Advanced Topics

Mastering piecewise functions on the ACT is not just about test points — it builds essential skills for higher-level math. In calculus, you will study limits and derivatives of piecewise functions, asking not just what the function equals at a boundary but how it behaves as it approaches the boundary from each side. The idea of continuity you explored in this lesson becomes a formal definition in calculus, and differentiability adds another layer.

How piecewise function skills scale from ACT to calculus
ConceptACT Level (This Lesson)Calculus Level
Evaluating f(a)Determine which piece to use; substitute and simplifyEvaluate left-hand and right-hand limits as x → a
ContinuityCheck if pieces connect at boundary (no gap)Formal ε-δ definition; three conditions must hold
GraphingPlot each piece on its interval; use open/filled dotsAnalyze slope and concavity of each piece; find derivatives
ApplicationsTax brackets, shipping costs, grading scalesSignal processing, physics models, spline interpolation in computer graphics

If you continue to precalculus or AP Calculus, you will also encounter absolute value functions and the greatest integer (floor) function — both of which are piecewise functions in disguise. Having a solid foundation now means these topics will feel familiar rather than intimidating.

Practice Problems

Test your understanding with these five problems, arranged from foundational concepts to challenging applications. Try each one before reading the answer.

1
Given the piecewise function f(x) = { 2x + 1, if x < 0 { 5, if x = 0 { x² − 1, if x > 0 what is the value of f(0)?
2
For the piecewise function g(x) = { 3x − 4, if x ≤ 2 { x² + 1, if x > 2 what is the value of g(−1) + g(5)?
3
The function h(x) is defined as: { −x + 6, if x < 3 { 2x − 3, if x ≥ 3 For what value of x does h(x) = 7?
4
A parking garage charges the following rates: $5 for the first hour or any part thereof, $3 for each additional hour or part thereof up to 5 total hours, and a flat rate of $20 for anything over 5 hours. This pricing can be modeled by a piecewise function C(t), where t is the number of hours parked and C is the cost in dollars. What is the cost of parking for exactly 4.5 hours?
5
The piecewise function f(x) is defined as: { ax + 2, if x < 1 { x² + bx, if x ≥ 1 If f is continuous (no breaks in the graph) and f(3) = 15, what is the value of a?

Lesson Summary

A piecewise function is a single function defined by multiple expressions, each applying to a specific domain interval. To evaluate one, first check which condition (inequality) your input satisfies, then substitute into the matching sub-function. Pay close attention to boundary points: a filled circle (≤ or ≥) means the endpoint is included, while an open circle (< or >) means it is excluded.

When graphing, draw each piece only on its assigned interval and use open and filled dots at boundaries. A piecewise function is continuous at a boundary if both pieces produce the same value there; otherwise, it has a jump discontinuity. Common ACT question types include evaluating at specific values, finding constants that ensure continuity, interpreting graphs, and modeling real-world scenarios like pricing or tax brackets. These skills also form the foundation for limits and derivatives in calculus.

Varsity Tutors • ACT Math • Piecewise Functions