Graphing Piecewise Functions- Problem Solver Guide

What Is a Piecewise Function?

A piecewise function is just what it sounds like—a function built from pieces. Each piece applies to a different part of the domain.

Think of it like a tax bracket system. Income up to $10,000 gets taxed at 10%. Income from $10,001 to $40,000 gets taxed at 12%. The rule changes depending on where your input falls.

Mathematically, you define the function with separate expressions for different intervals:

f(x) = { expression1 if condition1, expression2 if condition2, expression3 if condition3 }

The hard part isn't understanding this. The hard part is graphing it without making mistakes on the boundaries.

Why Students Struggle With Piecewise Graphs

Most errors come from three places:

These aren't conceptual failures. They're pattern failures. Once you see the pattern, the whole thing clicks.

The Boundary Point Rule (This Is Where People Mess Up)

Every piecewise function has boundaries where one piece ends and another begins. At these points, you need to decide whether the endpoint is included or excluded.

Use a closed circle (●) when the point is included. Use an open circle (○) when it's excluded.

Example:

f(x) = { x + 2 if x < 1, 3 if x ≥ 1 }

At x = 1, the second piece takes over. Since the condition is x ≥ 1, the point (1, 3) is included. You draw a closed circle there. The first piece stops at x = 1 but doesn't include it, so you draw an open circle at (1, 3) coming from the left side.

How to Graph Piecewise Functions: Step by Step

Step 1: Identify the Intervals

Look at your conditions. Each condition defines an interval. Write them out and make sure they cover the entire domain (usually all real numbers) without overlapping.

Step 2: Graph Each Piece on Its Interval

Treat each piece as its own function, but only graph it within its assigned interval. Use the condition to determine the starting and ending x-values.

Step 3: Mark the Boundary Points

For each boundary, check the conditions on both sides. If a piece includes the boundary (≥ or ≤), use a closed circle. If it excludes the boundary (< or >), use an open circle.

Step 4: Connect Within Intervals

Inside each interval, connect the points normally—linear pieces get straight lines, quadratic pieces get curves. Don't try to connect across intervals unless the function is continuous there.

Step 5: Check for Continuity

Compare the y-values at each boundary. If they match, you have a continuous graph. If they don't, you have a jump. Both are fine—you just need to draw them correctly.

Common Piecewise Function Types

Most problems fall into a few categories. Here's what you're likely to encounter:

Absolute Value Functions

These are piecewise functions in disguise. |x| breaks into:

f(x) = { -x if x < 0, x if x ≥ 0 }

The "V" shape comes from a negatively-sloped line on the left and a positively-sloped line on the right, meeting at (0, 0).

Step Functions

The Greatest Integer Function (floor function) is the most common. It jumps from one integer to the next:

f(x) = ⌊x⌋ gives you steps that increase at each integer.

These are easier than they look. Just draw horizontal segments with closed circles on the left and open circles on the right at each step.

Linear Piecewise Functions

The most common in textbooks. Two or more linear pieces joined together. These are straightforward—graph each line segment on its interval, watch your endpoints.

Practical Example: Graphing a Three-Piece Function

Let's work through this one:

f(x) = { -2x + 1 if x < -1, 3 if -1 ≤ x < 2, x² - 4 if x ≥ 2 }

Piece 1: -2x + 1 for x < -1

This is a line with slope -2 and y-intercept 1. Since x < -1, we only graph it to the left of -1. At x = -1, we have an open circle (not included). Calculate the y-value approaching from the left: -2(-1) + 1 = 3. So we have an open circle at (-1, 3).

Piece 2: 3 for -1 ≤ x < 2

This is a horizontal line at y = 3. At x = -1, this piece starts and includes the point (closed circle). At x = 2, this piece ends without including that point (open circle at (2, 3)).

Piece 3: x² - 4 for x ≥ 2

This is a parabola shifted down 4 units. At x = 2, we have a closed circle. Calculate: 2² - 4 = 0. So we have a closed circle at (2, 0). Continue the parabola to the right from there.

Comparing Methods: Calculator vs. Hand-Drawing

Method Pros Cons
Hand Graphing Builds real understanding, catches boundary errors, faster on exams Slower, potential for small mistakes
Graphing Calculator Fast, accurate, shows full picture Doesn't teach the skill, can hide understanding gaps
Desmos/GeoGebra Free, visual, shows open/closed circles clearly Easy to rely on it instead of learning

My recommendation: master hand-drawing first. Use technology to check your work, not to do the work for you.

Quick Reference: Common Mistakes to Avoid

Getting Started: Your Action Plan

To get good at graphing piecewise functions:

  1. Start with two-piece functions before attempting three or more
  2. Practice the boundary point logic until it's automatic
  3. Graph by hand first, then verify with technology
  4. Check continuity at every boundary—you'll catch most errors this way
  5. Work backwards: given a graph, write the function. This reverses the thinking and solidifies understanding.

That's it. The skill comes from doing, not from reading about doing. Get graph paper and start plotting points.