Getting Started with Piecewise Functions

Piecewise functions show up everywhere in real math — from tax brackets to shipping costs to physics problems where something changes direction. The practice problems you find online or in textbooks are usually straightforward, but they hide a few traps that catch people off guard. I learned this the hard way during a tutoring session a couple years back when a student kept getting the boundary points wrong on a continuity problem. The issue wasn't the piece definitions, it was how the domain boundaries were written. Let me walk through some concrete problems and how to actually work them out.

Why Piecewise Function Practice Problems Matter

You don't need a special tool to handle these. What you really need is to understand what happens at the points where the rule switches. Most students focus on evaluating the function inside each piece and completely ignore the transition points. That's where the mistakes live. Here's a problem I see constantly:

Evaluate f(x) where f(x) = { x² + 1 if x

2, 4 - x if x 2 } at x = 2.

The trap here is thinking the answer is ambiguous because two rules meet at x = 2. It's not. You just check which inequality includes the equal sign. Since x 2 includes x = 2, you use the second piece: 4 - 2 = 2. That's it. The first piece doesn't apply at x = 2 because x < 2 excludes it. I once spent thirty minutes on a problem that looked more complicated than it was because I was drawing number lines for every single point. There's a faster way.

Working Through Domain and Range

Finding the domain and range of a piecewise function is where most practice sets get interesting. Let's take a slightly bigger example:

f(x) = { 2x + 3 if x -1, x² if -1 < x 3, 7 - x if x > 3 }

Domain: Read from left to right. The pieces cover (-, -1], (-1, 3], and (3, ). There are no gaps. The domain is all real numbers. Range: This one takes more work. Look at each piece independently first. For x -1, 2x + 3 gives values from - up to 2(-1) + 3 = 1. So the first piece contributes (-, 1]. For -1 < x 3, x² contributes values from just above 0 up to 9. So that's (0, 9]. For x > 3, 7 - x gives values less than 4. So that's (-, 4). Combine all three: (-, 1] (0, 9] (-, 4). Simplify by merging overlaps. The result is (-, 9]. The overlap between the first and third piece is easy to miss if you're rushing. Both go to -, but they cover different middle sections. I used to graph each piece separately on paper before merging the ranges. It takes longer but it's reliable. If you're doing this under time pressure, the separate-graph method usually adds about five to seven minutes per problem.

Graphing Piecewise Functions Without Messing Up

The biggest mistake I see is treating each piece as a complete line instead of a ray or segment bounded by the domain restrictions. Here's the correct process:

Graph f(x) = { x + 2 if x

0, -x + 1 if x 0 }

Get the Full Details

Piecewise Functions Practice Worksheet | PDF | Teaching Methods & Materials
Piecewise Functions Practice Worksheet | PDF | Teaching Methods & Materials
For the first piece, x + 2 is a line with slope 1 and y-intercept 2. But you only draw it for x < 0. That means you start at the open circle at (0, 2) and draw the line going left. Don't extend past x = 0. For the second piece, -x + 1 has slope -1 and y-intercept 1. You only draw it for x 0. Start at the closed circle at (0, 1) and draw the line going right. The gap between y = 1 and y = 2 at x = 0 is intentional. That's a jump discontinuity. Students often try to connect the dots or assume there's a mistake when they see this. There isn't. When I tutor, I make people use two colored pens — one per piece. It sounds silly but it prevents the most common error: accidentally extending a ray past its domain boundary. You'd be surprised how many answers get marked wrong because someone drew a line from x = -5 through x = 5 on a piece that only exists for x < 0.

Practice Problems to Work Through

Here are some problems that build from basic to more involved. Try them before looking at any solutions. Problem 1: Evaluate f(3) for f(x) = { 5x - 2 if x < 3, x² - 1 if x 3 }. The answer uses the second piece since 3 3. f(3) = 9 - 1 = 8. Problem 2: Find f(-2) for f(x) = { |x| + 1 if x 0, 2x - 3 if x > 0 }. Use the first piece. |2| + 1 = 3. Problem 3: Sketch the graph and state the domain and range for f(x) = { x² - 4 if x < -1, 2x + 1 if x -1 }. For x < -1, x² - 4 traces the left arm of a parabola. At x = -1 it would be 1 - 4 = -3, but that point is open. For x -1, 2x + 1 starts at the closed point (-1, -1) and goes up with slope 2. The range: x² - 4 for x < -1 gives values greater than -3. So (-3, ). The line 2x + 1 for x -1 gives values -1. So [-1, ). Combined range is (-3, ) since [-1, ) is contained within it. Problem 4: Determine if f(x) = { x + 1 if x 2, 5 if x = 2, -x + 4 if x > 2 } is continuous at x = 2. Check three things: does f(2) exist? Yes, f(2) = 5. Does lim(x2) f(x) exist? Left limit: 2 + 1 = 3. Right limit: -2 + 4 = 2. They're different, so the limit doesn't exist. The function is not continuous at x = 2 regardless of what f(2) equals. This last one always trips people up. They see that f(2) = 5 and assume continuity. It doesn't matter what the function value is if the left and right limits don't match.

Common Pitfalls That Slow You Down

The absolute most frequent error is mixing up strict and non-strict inequalities at the boundary. f(x) = { 3x if x < 1, x + 2 if x > 1 } leaves x = 1 undefined. Some students think the gap means they should average the two pieces or pick one arbitrarily. Neither works. The function simply has a hole at x = 1. If a problem asks for f(1), the answer is "undefined," not some guess. Another one involves absolute value inside a piecewise definition. When you see something like f(x) = |x - 2| written piecewise, you have to split at x = 2 yourself. The function isn't given in piecewise form yet. You convert it: x - 2 when x 2, and -(x - 2) when x < 2. I keep a sticky note on my desk that says "split at the zero of the expression inside the absolute value." It's saved me more times than I can count. Piecewise Function Practice Problems become much easier once you internalize this sequence: identify the active piece by checking the domain, evaluate using only that piece, verify boundary conditions separately, and always sketch if time allows. Following those steps in order cuts the error rate significantly compared to just plugging numbers into whichever formula looks closest.