01 / 20

Piecewise
Functions

Build and interpret functions defined by different rules on different intervals of the domain.

ACCUPLACER Advanced Algebra & Functions

What Is a Piecewise Function?

A piecewise function uses more than one rule to define its output. Which rule applies depends on which interval the input \( x \) falls into.

$$ f(x) = \begin{cases} \color{#4ade80} x+2, & \text{if } x < 0 \\ \color{#fbbf24} 2x-1, & \text{if } x \geq 0 \end{cases} $$

The Key Terms

Piece
One of the sub-rules, like \( f(x)=x+2 \).
Condition
The interval where a piece applies, like \( x < 0 \).
Breakpoint
The \( x \)-value where one rule hands off to another.

Why It Matters

Piecewise functions describe situations where the rule changes at a threshold:

1
Tax brackets: a different rate applies above each income cutoff.
2
Shipping costs: one flat fee under 5 lb, a per-pound rate above it.
3
Cell phone plans: a fixed price, then overage charges after a data limit.

Core Rule: Choose the Piece First

$$ f(x) = \begin{cases} \color{#4ade80} x^2, & \text{if } x \leq 1 \\ \color{#fbbf24} 3x, & \text{if } x > 1 \end{cases} $$
\( f(-2) \): use \( x^2 \rightarrow (-2)^2 = 4 \) \( f(5) \): use \( 3x \rightarrow 3(5) = 15 \)

Graphing: Open vs Closed Dots

x y open dot at (1,2) closed dot at (1,3) 1 3

Key Distinction: Continuous vs Jump

Continuous pieces meet Jump pieces split

How to Evaluate Step by Step

1
Read the input. Note the value of \( x \) you must plug in.
2
Test the conditions. Check each interval to see which one \( x \) satisfies.
3
Select that piece. Use only the matching formula, ignore the others.
4
Substitute & simplify to get the output \( f(x) \).

Worked Example 1

$$ g(x) = \begin{cases} \color{#4ade80} -x, & \text{if } x < 3 \\ \color{#fbbf24} x-5, & \text{if } x \geq 3 \end{cases} $$

Find \( g(-2) \) and \( g(3) \).

Worked Example 2

$$ h(x) = \begin{cases} \color{#4ade80} 2x+1, & \text{if } x \leq -1 \\ \color{#fbbf24} x^2, & \text{if } x > -1 \end{cases} $$

Find \( h(-1) \) and \( h(2) \).

Worked Example 3: Continuity

$$ f(x) = \begin{cases} \color{#4ade80} x+1, & \text{if } x < 2 \\ \color{#fbbf24} 2x-1, & \text{if } x \geq 2 \end{cases} $$

Is \( f \) continuous at the breakpoint \( x = 2 \)?

Common Mistakes

✕ Wrong Piece
Plugging \( x \) into a formula whose condition it does not satisfy.
✕ Boundary Confusion
Forgetting that \( \le \) includes the breakpoint but \( < \) does not.
✕ Using Both Pieces
Adding or averaging the two rules instead of choosing exactly one.
✕ Dot Mix-Up
Drawing a closed dot for a strict inequality (or open for inclusive).

Reading the Inequalities

Symbol Meaning Endpoint Dot
\( x < a \)strictly less thanopen
\( x \le a \)less than or equalclosed
\( x > a \)strictly greater thanopen
\( x \ge a \)greater than or equalclosed

Question 1 of 5

Given the function below, find \( f(-3) \).

$$ f(x) = \begin{cases} x+4 & \text{if } x < 1 \\ 2x & \text{if } x \geq 1 \end{cases} $$

Question 2 of 5

For the same \( f \) above, what is \( f(1) \)? (Recall \(x \ge 1\) uses \(2x\).)

Question 3 of 5

A piece is defined for \(x > 2\). On a graph, the point at \(x = 2\) should be drawn as:

Question 4 of 5

Given the function below, find \( g(3) \).

$$ g(x) = \begin{cases} x^2 & \text{if } x \leq 3 \\ x+6 & \text{if } x > 3 \end{cases} $$

Question 5 of 5

For the function below, is \( f \) continuous at \( x = 1 \)?

$$ f(x) = \begin{cases} x+2 & \text{if } x < 1 \\ 3x & \text{if } x \geq 1 \end{cases} $$

Quick Recap

1
A piecewise function uses different rules on different intervals.
2
To evaluate, match the input to a condition first, then use that one piece.
3
Closed dots include the endpoint (\(\le, \ge\)); open dots exclude it (\(<, >\)).
4
Pieces that meet at the breakpoint make a continuous graph.

You're Ready

You can now build, read, evaluate, and graph piecewise functions and check them for continuity.