---
title: "Piecewise Functions | FiveStudy"
description: "Graph each rule only where its interval permits, with exact open and closed endpoint control."
url: https://fivestudy.com/guides/algebra-2-piecewise-functions
---

[Algebra 2](https://fivestudy.com/algebra-2) · Study guide

# Piecewise Functions

[Figure: FiveStudy logo]

FiveStudy

Algebra 2 · Guide 19/24

Algebra 2 · Functions & Graphs

# Piecewise *Functions*

Graph each rule only where its interval permits, with exact open and closed endpoint control.

3 parts · 6 worked examples · 3 checks

**Prerequisite check**Read < and > as open endpoints and ≤ and ≥ as included endpoints.

## Guide roadmap

Piecewise functions pair each formula with an input interval. Correct work depends on honoring both pieces of information: the rule supplies outputs, while the interval controls where those outputs belong and which rule owns a breakpoint.

The Matplotlib visuals separate interval ownership before showing the combined graph. Algebraic boundary evaluation then distinguishes continuity, jump behavior, and familiar shapes such as absolute-value functions without relying on a compressed image.

- Evaluate and graph rules only on their stated intervals.
- Combine nonlinear and linear pieces with exact endpoint control.
- Derive familiar V-shapes from sign-based piecewise definitions.

Part 1

## Intervals and Endpoint Control

A piecewise graph is several restricted graphs, not one rule applied everywhere.

### Build the idea

A piecewise definition assigns different rules to different input intervals. Evaluating or graphing requires two decisions: first choose the interval containing the input, then use only that interval's formula. The breakpoint inequality determines which rule owns the exact boundary value.

Continuity at a breakpoint is a three-part check: the left-hand outputs approach one value, the right-hand outputs approach the same value, and the included rule assigns that value to the function. Open and closed markers communicate ownership, while the numerical boundary outputs reveal whether the graph meets or jumps.

### Read the structure

| Look for | What it tells you | How to verify |
| --- | --- | --- |
| Input interval | Selects exactly one active formula. | Test the input against the inequalities before substituting. |
| Open versus closed symbol | Determines boundary ownership. | Use </> for open and ≤/≥ for closed. |
| One-sided boundary outputs | Determine meeting or jumping. | Evaluate both formulas at the breakpoint for comparison. |

f(x)={A(x)B(x)x<cx≥c

1

Mark the breakpoint on the x-axis.

2

Graph the first rule only on its interval.

3

Use an open or closed endpoint from its inequality.

4

Repeat for every piece, then combine.

Worked example A · foundation

### Separate the two interval jobs

f(x)={2x+1x<1x≥1

Draw y=2 only for x<1 with an open endpoint.

Draw y=x+1 only for x≥1 with a closed endpoint.

Both endpoint calculations equal 2, so the final graph meets at (1,2).

The closed point determines the function value f(1)=2.

**Result**

f(1)=2 and the graph is continuous at x=1.

[Figure: Three-panel piecewise graph showing the constant rule, the linear rule, and the combined graph with endpoint control at x equals 1]

The open and closed endpoint instructions come from the inequality symbols, even when the pieces meet.

Worked example B · contrast

### Identify a jump at the boundary

f(x)={x+1x2+2x<0x≥0

For x=−2, use the first rule and obtain f(−2)=−1.

At x=0, the second rule owns the boundary, so f(0)=2.

The first rule approaches 1 as x→0−, while the second approaches 2 as x→0+.

Because the one-sided values differ, the graph has a jump at x=0.

**Result**

f(−2)=−1,f(0)=2; jump discontinuity at x=0.

### Correct the misconception

**Incorrect path**

A student substitutes x=0 into both formulas and reports two function values.

**Why it fails**

A function assigns one output to each input. The inequalities decide which formula owns the boundary.

**Repair**

Use only the x≥0 rule for f(0); use the other result only as a one-sided limit comparison.

### Try it, then check

**Prompt**

For g(x)=2x when x≤1 and g(x)=x+3 when x>1, find g(1) and classify continuity.

**Hint:** Use the closed rule for the value and compare both boundary outputs.

**Answer and reason**

g(1)=2; discontinuous at x=1.

The right-hand rule approaches 4, so the two pieces do not meet.

**Watch for this**

- The rule's formula does not override its interval restriction.

Part 2

## Nonlinear Pieces

A parabola or other nonlinear rule must stop exactly at its boundary just like a line.

### Build the idea

A nonlinear piece is still restricted by its interval. Sketching the complete parent can help with orientation, but only the allowed segment belongs in the final graph. Endpoints must be calculated from the formula rather than placed by visual guesswork.

Domain may also be restricted by the formula itself. A square-root piece needs a nonnegative radicand in addition to its stated interval, while a polynomial piece accepts every input in its interval. The actual domain of a piece is the intersection of the formula's domain and the piecewise condition.

### Read the structure

| Look for | What it tells you | How to verify |
| --- | --- | --- |
| Parent-function shape | Guides the local curve. | Remove every segment outside the stated interval. |
| Formula domain | May further restrict the interval. | Intersect radicand or denominator conditions with the piece condition. |
| Boundary output | Locates the exact endpoint. | Evaluate the formula at the breakpoint even when the point is open. |

f(x)={x24x<2x≥2

1

Sketch the full parent lightly in your reasoning.

2

Keep only the allowed interval.

3

Calculate the boundary output.

4

Apply the correct endpoint marker.

Worked example A · foundation

### Restrict a parabola

f(x)={x24x<2x≥2

Use only the part of y=x2 left of x=2.

Mark (2,4) open for the parabola piece.

Draw y=4 right of x=2 with a closed point.

Combine without extending either rule through the wrong interval.

**Result**

The pieces meet at (2,4); f(2)=4.

[Figure: Three-panel piecewise graph showing a restricted parabola and a constant branch meeting at 2 comma 4]

Stop the parabola at x = 2 and begin the constant branch there.

Worked example B · contrast

### Combine a radical and a line continuously

f(x)={x+1x−1−1≤x<3x≥3

The square-root piece begins at (−1,0) and approaches (3,2) with an open endpoint.

The line piece begins at x=3 with closed point (3,2).

Both boundary calculations equal 2, so the pieces meet without a jump.

The combined domain is [−1,∞) and f(3)=2.

**Result**

Continuous at x=3; f(3)=2; domain [−1,∞).

### Correct the misconception

**Incorrect path**

A student draws the complete square-root parent beyond x=3.

**Why it fails**

The formula may be defined there, but the piecewise interval explicitly stops that rule.

**Repair**

Crop the radical curve at the open boundary and let the included linear rule continue.

### Try it, then check

**Prompt**

For f(x)=x2 when x≤−1 and f(x)=−x when x>−1, determine f(−1) and continuity.

**Hint:** Evaluate both formulas at the breakpoint, then use the closed rule for the value.

**Answer and reason**

f(−1)=1; continuous at x=−1.

Both one-sided formulas approach 1, and the first rule includes the point.

**Watch for this**

- Do not draw the entire parent parabola and then add the second piece.

Part 3

## Building Familiar Shapes from Pieces

Piecewise definitions can reveal how familiar shapes are assembled from simpler rules.

### Build the idea

Absolute-value graphs are piecewise linear because the sign of the inside expression determines whether it is preserved or negated. The breakpoint occurs where the inside equals zero, which becomes the vertex of the V-shaped graph.

Writing the piecewise form explains both slopes and the domain split. On one side the inside is negative, so absolute value multiplies it by −1; on the other side it is nonnegative and remains unchanged. The included boundary may be assigned to either matching formula, but the standard form uses one open and one closed interval.

### Read the structure

| Look for | What it tells you | How to verify |
| --- | --- | --- |
| Inside expression =0 | Locates the sign change and vertex. | Solve it before writing intervals. |
| Inside negative | Requires negating the complete expression. | Test one input from that interval. |
| Inside nonnegative | Keeps the expression unchanged. | Check that the two formulas agree at the breakpoint. |

∣x+1∣={−x−1x+1x<−1x≥−1

1

Find the breakpoint.

2

Graph each linear rule on its side.

3

Control ownership of the shared endpoint.

4

Read the resulting domain, range, and turning point.

Worked example A · foundation

### Assemble a shifted V

f(x)={−x−1x+1x<−1x≥−1

The breakpoint is x=−1.

The left rule approaches (−1,0) with an open point.

The right rule starts at (−1,0) with a closed point.

Together the rules form y=∣x+1∣.

**Result**

Vertex (−1,0); range y≥0.

[Figure: Three-panel piecewise graph combining two lines into a V with vertex at negative 1 comma 0]

The breakpoint controls which branch owns the shared vertex.

Worked example B · contrast

### Build a shifted absolute-value graph

y=∣x−2∣−1

The inside expression changes sign at x=2, giving vertex (2,−1).

For x<2, ∣x−2∣=−(x−2)=2−x, so y=1−x.

For x≥2, ∣x−2∣=x−2, so y=x−3.

The pieces meet at (2,−1) and create slopes −1 and 1.

**Result**

y={1−xx−3x<2x≥2;vertex (2,−1).

### Correct the misconception

**Incorrect path**

A student negates only x and writes the left rule −x−2−1.

**Why it fails**

The negative applies to the complete inside expression: −(x−2)=−x+2.

**Repair**

Use parentheses while distributing, then include the outside shift.

### Try it, then check

**Prompt**

Write ∣2x+4∣ as a piecewise function.

**Hint:** Find where 2x+4=0 and negate the full expression on the negative side.

**Answer and reason**

∣2x+4∣={−2x−42x+4x<−2x≥−2

The two rules meet at vertex (−2,0).

**Watch for this**

- Open and closed markers can occupy the same coordinate; the included rule determines the function value.

## Read a Step Function

A step function holds the same output throughout an interval. The output can change all at once at the next boundary.

### Trace a counter that updates once an hour

A display shows 2 completed transfers for the first hour, 5 for the second hour, and 8 from hour 2 through hour 3. Let \(t\) be the hours since the first reading.

\[C(t)=\begin{cases}2&0\leq t<1\\5&1\leq t<2\\8&2\leq t\leq3\end{cases}.\]

The horizontal axis shows hours and the vertical axis shows completed transfers. At hour 1 the filled point gives \(C(1)=5\). The open points at height 2 at hour 1 and height 5 at hour 2 show the heights approached from the left.

The left-hand height at 1 is 2 and the right-hand height is 5. They differ, so the graph has a jump there. No vertical segment connects those heights because writing one would assign more than one output to the same input.

## Choose a Rule from a Threshold

A change in filling rate changes the slope of the depth graph. To model it, find the amount present at the moment the new rate begins.

### Measure the depth after a valve adjustment

A tank starts at 18 cm and fills at 3 cm per minute for 4 minutes. The valve then lowers the filling rate to 1 cm per minute. It continues at that rate until minute 10.

The first rule is \(18+3t\), with \(t\) measured in minutes. At minute 4 the depth is \(18+3(4)=30\text{ cm}\). After that, the tank gains \(t-4\) more centimeters.

\[D(t)=\begin{cases}18+3t&0\leq t<4\\30+(t-4)&4\leq t\leq10\end{cases}.\]

To find when the depth reaches 34 cm, solve \(30+(t-4)=34\). This gives \(t=8\), which lies in the interval for that rule. Solving the first rule instead gives \(t=\frac{16}{3}\), which lies outside its interval.

**Check the depth at minute 7**

Three minutes have elapsed since the adjustment. The depth is \(30+3=33\text{ cm}\).

Finish strong

## Quick Reference

Graph formula and interval together.

Open: < or >. Closed: ≤ or ≥.

Evaluate each one-sided rule at the boundary before deciding whether pieces meet.

FiveStudy · Algebra 2

Guide 19 · Piecewise Functions
