BetterGrades Algebra · Unit A12 · Lesson

Piecewise-defined functions

Apply different rules on different input intervals and manage endpoints.

Opening situation

Start here

Model postage, tax, or pricing tiers.

Use the opening situation and three distinct, fully solved cases to learn piecewise-defined functions as a connected mathematical idea rather than a memorized slogan.

Before this lesson

Prerequisite check

  1. State the earlier definition or operation most directly connected to: Apply different rules on different input intervals and manage endpoints.
  2. Classify the object in the worked prompt before choosing an operation: Evaluate f(2),f(1),f(-2), f(1), and f(4)f(4) when f(x)=x+3f(x) = x + 3 for x<1,f(x)=x2x < 1, f(x) = x^{2} for 1x3,1 \le x \le 3, and f(x)=10xf(x) = 10 - x for x>3x > 3.
  3. Name the check you would use to reject an answer with the wrong sign, domain, units, endpoint, or graph behavior.
Lesson text

Explanation

Apply different rules on different input intervals and manage endpoints. The lesson is about a particular mathematical decision, not a keyword or a decorative notation pattern. In piecewise-defined functions, first identify the object being studied and the information the answer must contain. Then mark the conditions that cannot be lost: these may include sign, endpoint inclusion, grouping, units, denominator restrictions, real-number domain, or the difference between an exact value and an approximation. A useful solution explains why its first move matches that structure.

Model postage, tax, or pricing tiers. This opening is useful because it forces the quantities to acquire meaning before symbols compress them. Name the changing and fixed quantities, define any reference value or input interval, and decide what would count as a plausible result. An estimate, sign prediction, graph feature, or domain statement made before calculation becomes an independent check afterward. Without that prediction, algebra can be internally tidy while answering the wrong contextual question.

Consider the worked problem: Evaluate f(2),f(1),f(-2), f(1), and f(4)f(4) when f(x)=x+3f(x) = x + 3 for x<1,f(x)=x2x < 1, f(x) = x^{2} for 1x3,1 \le x \le 3, and f(x)=10xf(x) = 10 - x for x>3x > 3. Begin with this justified move: Compare each input with the piecewise interval conditions. Next, use exactly the rule whose condition contains the input. Finally, check the included endpoints at x=1x = 1 and x=3x = 3. Each line should preserve the relevant relationship or deliberately produce candidates that are later tested. Skipping the middle line may hide the exact sign, factor, interval, or restriction on which the conclusion depends.

The result is f(2)=1,f(1)=1,f(-2) = 1, f(1) = 1, and f(4)=6f(4) = 6. Piecewise evaluation begins with the input condition, not with whichever formula looks easiest. A textbook answer does not stop at the last symbol. It states what the result means, includes units or set notation where required, and distinguishes a verified solution from a candidate. The original statement remains the final authority whenever the method includes a one-way operation, denominator clearing, squaring, graph estimation, regression, or numerical approximation.

Use a mapping or table, a formula with domain, and a graph that passes the vertical-line test. Changing representation is useful only when it exposes information rather than duplicating decoration. A table may reveal constant difference or ratio, a graph may reveal intersections or extrema, interval notation may compress a truth set, and factored or vertex form may expose a feature hidden in expanded form. The second representation must preserve the same values, restrictions, units, endpoints, and conclusions as the first.

A function assigns exactly one output to each allowed input. Function notation records that assignment: f(a)f(a) is the output produced when the input is a, not a product of ff and aa. A function may be represented by aa formula, table, graph, mapping, or context; the defining requirement is single-valued output for each input in its domain. For piecewise-defined functions, connect this principle directly to the stated outcome: Apply different rules on different input intervals and manage endpoints.

Domain describes allowed inputs and range describes produced outputs. Denominators exclude zero, even roots require nonnegative radicands in the real system, and contexts can impose additional limits such as nonnegative time or whole-number counts. Solving f(x)=kf(x) = k reverses the assignment question and may yield several inputs, one input, or none even though ff itself remains a function. For piecewise-defined functions, connect this principle directly to the stated outcome: Apply different rules on different input intervals and manage endpoints.

Piecewise functions use different rules on specified input regions, so endpoint conditions decide which formula applies. Arithmetic with functions combines output values and inherits the intersection of relevant domains; division adds the requirement that the divisor function be nonzero. Comparing families means comparing change patterns, domain restrictions, and characteristic graph behavior rather than merely matching visual shapes. For piecewise-defined functions, connect this principle directly to the stated outcome: Apply different rules on different input intervals and manage endpoints.

A common failure is: Treating function notation as multiplication or confusing a function with the equation used to represent one branch of it. Notation names an input-output assignment, and the domain or piecewise condition determines which rule is active. The repair is concrete: Identify the input, domain, active rule, and output before performing arithmetic or reading the graph. In the worked case, use the repair by checking “f(2)=1,f(1)=1,f(-2) = 1, f(1) = 1, and f(4)=6f(4) = 6.” against the original problem rather than trusting that the final line merely looks familiar.

Piecewise evaluation begins with the input condition, not with whichever formula looks easiest. That conclusion is the bridge to the next lesson: the method matters because it preserves meaning while the representation changes. A durable summary therefore has four parts—classify the object, state the conditions, carry out one justified step at aa time, and perform an independent check. If any of those parts is missing, return to the original quantities before adding more algebra.

Method

Solve piecewise-defined functions from structure

  1. Compare each input with the piecewise interval conditions.
  2. Use exactly the rule whose condition contains the input.
  3. Check the included endpoints atx=1x=3x = 1 \qquad x = 3

Check: Verify every input uses exactly one permitted rule and that computed outputs agree across the available representations.

Reference

Definitions and conditions

Piecewise-defined functions
Apply different rules on different input intervals and manage endpoints.Use the term only when the object satisfies the structural and domain conditions developed in this lesson.
function
A relation assigning exactly one output to each input in its domain.Different inputs may share an output; one input may not have two outputs.
domain
The set of allowed input values.It reflects algebraic restrictions and contextual constraints.
range
The set of output values actually produced by allowed inputs.Range depends on both the rule and the domain.
Figure for Piecewise-defined functions: Graph pieces.
Read this graph as text

Piecewise-defined functions · Graph pieces.. Figure for Piecewise-defined functions: Graph pieces. Read the labels in order, identify what is held fixed and what changes, and compare the representations before drawing a conclusion. The figure is a deterministic BetterGrades rendering of storyboard brief A12.6-V2.

Meaning is carried by written labels, position, line style, and shape; color is supplementary.

Why it matters: Use the visible structure in “Graph pieces.” to connect the opening context to the lesson outcome: Apply different rules on different input intervals and manage endpoints.

Piecewise-defined functions · Figure A12.6-V2

Graph pieces.

Examples

Worked examples

Worked Example 1

Evaluate f(2),f(1),f(-2), f(1), and f(4)f(4) when f(x)=x+3f(x) = x + 3 for x<1,f(x)=x2x < 1, f(x) = x^{2} for 1x3,1 \le x \le 3, and f(x)=10xf(x) = 10 - x for x>3x > 3.

  1. Compare each input with the piecewise interval conditions.
  2. Use exactly the rule whose condition contains the input.
  3. Check the included endpoints atx=1x=3x = 1 \qquad x = 3

Answerf(2)=1,f(1)=1,f(-2) = 1, f(1) = 1, and f(4)=6f(4) = 6.

Piecewise evaluation begins with the input condition, not with whichever formula looks easiest.

Worked Example 2

Evaluate p(1),p(2),p(-1), p(2), and p(5)p(5) when p(x) =2x+1= 2x + 1 for x<0,x < 0, p(x) =x2= x^{2} for 0x3,0 \le x \le 3, and p(x) =10x= 10 - x for x>3x > 3.

  1. Match 1-1 to the first interval, 22 to the middle interval, and 55 to the final interval.
  2. Evaluate the corresponding rule for each input.
  3. Check endpoint inclusion before assigning any rule.

Answerp(1)=1,p(2)=4,p(-1) = -1, p(2) = 4, and p(5)=5p(5) = 5.

Piecewise evaluation chooses a rule from the input condition before doing arithmetic.

Worked Example 3

Choose constants a and bb so q(x) == ax +1+ 1 for x<2x < 2 and q(x) == bx 3- 3 for x2x \ge 2 has q(2)=5q(2) = 5 and matching one-sided values at x=2x = 2.

  1. The included second rule gives 2b3=5,2b - 3 = 5, so b=4b = 4.
  2. Matching the first-rule approach value requires 2a+1=5,2a + 1 = 5, so a=2a = 2.
  3. Check both expressions at the boundary.

Answera=2a = 2 and b=4b = 4.

Boundary conditions can determine parameters that make a piecewise rule join continuously.

Practice

20 practice questions

Recall and read the structure

Warm-up

Question 1Retrieval · Foundation

Classify the mathematical object and requested action in this lesson case: Evaluate f(2),f(1),f(-2), f(1), and f(4)f(4) when f(x)=x+3f(x) = x + 3 for x<1,f(x)=x2x < 1, f(x) = x^{2} for 1x3,1 \le x \le 3, and f(x)=10xf(x) = 10 - x for x>3x > 3.

Need a hint?

Recall the named definition or perform a direct substitution before choosing an operation.

Question 2Retrieval · Foundation

State the central definition behind this outcome: Apply different rules on different input intervals and manage endpoints.

Need a hint?

Recall the named definition or perform a direct substitution before choosing an operation.

Question 3Concept · Standard

Before calculating, list every sign, endpoint, unit, grouping, or domain condition that can affect: Evaluate f(2),f(1),f(-2), f(1), and f(4)f(4) when f(x)=x+3f(x) = x + 3 for x<1,f(x)=x2x < 1, f(x) = x^{2} for 1x3,1 \le x \le 3, and f(x)=10xf(x) = 10 - x for x>3x > 3.

Need a hint?

State what must remain true, then connect that condition to the equation.

Question 4Concept · Standard

Explain why this opening move is valid: Compare each input with the piecewise interval conditions.

Need a hint?

State what must remain true, then connect that condition to the equation.

Build accuracy one step at a time

Core practice

Question 5Procedure · Standard

Evaluate f(2),f(1),f(-2), f(1), and f(4)f(4) when f(x)=x+3f(x) = x + 3 for x<1,f(x)=x2x < 1, f(x) = x^{2} for 1x3,1 \le x \le 3, and f(x)=10xf(x) = 10 - x for x>3x > 3.

Need a hint?

Write one equality-preserving step at a time and keep signs and grouping visible.

Question 6Procedure · Standard

Evaluate p(1),p(2),p(-1), p(2), and p(5)p(5) when p(x) =2x+1= 2x + 1 for x<0,x < 0, p(x) =x2= x^{2} for 0x3,0 \le x \le 3, and p(x) =10x= 10 - x for x>3x > 3.

Need a hint?

Write one equality-preserving step at a time and keep signs and grouping visible.

Question 7Procedure · Mixed

Choose constants a and bb so q(x) == ax +1+ 1 for x<2x < 2 and q(x) == bx 3- 3 for x2x \ge 2 has q(2)=5q(2) = 5 and matching one-sided values at x=2x = 2.

Need a hint?

Write one equality-preserving step at a time and keep signs and grouping visible.

Question 8Procedure · Mixed

Verify the proposed result “f(2)=1,f(1)=1,f(-2) = 1, f(1) = 1, and f(4)=6f(4) = 6.” against the original statement.

Need a hint?

Write one equality-preserving step at a time and keep signs and grouping visible.

Question 9Procedure · Standard

Complete the calculation after “Match 1-1 to the first interval, 22 to the middle interval, and 55 to the final interval.” in this problem: Evaluate p(1),p(2),p(-1), p(2), and p(5)p(5) when p(x) =2x+1= 2x + 1 for x<0,x < 0, p(x) =x2= x^{2} for 0x3,0 \le x \le 3, and p(x) =10x= 10 - x for x>3x > 3.

Need a hint?

Write one equality-preserving step at a time and keep signs and grouping visible.

Question 10Procedure · Mixed

Name and justify the most efficient first move, then solve: Choose constants a and bb so q(x) == ax +1+ 1 for x<2x < 2 and q(x) == bx 3- 3 for x2x \ge 2 has q(2)=5q(2) = 5 and matching one-sided values at x=2x = 2.

Need a hint?

Write one equality-preserving step at a time and keep signs and grouping visible.

Question 11Representation · Mixed

Compare the methods used in these two cases and identify the structural reason they differ: Evaluate p(1),p(2),p(-1), p(2), and p(5)p(5) when p(x) =2x+1= 2x + 1 for x<0,x < 0, p(x) =x2= x^{2} for 0x3,0 \le x \le 3, and p(x) =10x= 10 - x for x>3x > 3. Choose constants a and bb so q(x) == ax +1+ 1 for x<2x < 2 and q(x) == bx 3- 3 for x2x \ge 2 has q(2)=5q(2) = 5 and matching one-sided values at x=2x = 2.

Need a hint?

Label the quantities and make the same relationship visible in the new form.

Question 12Representation · Transfer

Create the representation most useful for checking this result: Evaluate p(1),p(2),p(-1), p(2), and p(5)p(5) when p(x) =2x+1= 2x + 1 for x<0,x < 0, p(x) =x2= x^{2} for 0x3,0 \le x \le 3, and p(x) =10x= 10 - x for x>3x > 3. Use a mapping or table, a formula with domain, and a graph that passes the vertical-line test.

Need a hint?

Label the quantities and make the same relationship visible in the new form.

Explain, compare, and diagnose

Represent and reason

Question 13Error Analysis · Mixed

A learner reports “f(2)=1,f(1)=1,f(-2) = 1, f(1) = 1, and f(4)=6f(4) = 6.” but omits the original-condition check. Explain the risk before deciding whether the result is supported.

Need a hint?

Locate the first line that no longer preserves the original relationship.

Question 14Transfer · Transfer

Repair a solution that skips “Matching the first-rule approach value requires 2a+1=5,2a + 1 = 5, so a=2a = 2.” while solving: Choose constants a and bb so q(x) == ax +1+ 1 for x<2x < 2 and q(x) == bx 3- 3 for x2x \ge 2 has q(2)=5q(2) = 5 and matching one-sided values at x=2x = 2.

Need a hint?

Identify the familiar equation structure before changing any symbols.

Question 15Modeling · Transfer

In this piecewise-defined functions case, change one numerical value, solve the revised problem, and identify which parts of the original method still apply: Evaluate f(2),f(1),f(-2), f(1), and f(4)f(4) when f(x)=x+3f(x) = x + 3 for x<1,f(x)=x2x < 1, f(x) = x^{2} for 1x3,1 \le x \le 3, and f(x)=10xf(x) = 10 - x for x>3x > 3.

Need a hint?

Define the unknown and its units before writing the equation.

Question 16Exit · Standard

Connect the opening situation “Model postage, tax, or pricing tiers.” to the algebraic structure used in the worked case. Define quantities and units before writing any equation.

Need a hint?

Solve, classify the solution set, and verify against the original equation.

Model, transfer, and verify

Finish strong

Question 17Transfer · Transfer

Explain why the method for piecewise-defined functions is valid here and name one nearby problem where it would not apply.

Need a hint?

Identify the familiar equation structure before changing any symbols.

Question 18Modeling · Transfer

Compare the conclusions of all three worked cases with this lesson outcome—Apply different rules on different input intervals and manage endpoints. Explain what remains invariant across them.

Need a hint?

Define the unknown and its units before writing the equation.

Question 19Error Analysis · Mixed

Exit check: solve and verify without referring to the displayed steps. Evaluate p(1),p(2),p(-1), p(2), and p(5)p(5) when p(x) =2x+1= 2x + 1 for x<0,x < 0, p(x) =x2= x^{2} for 0x3,0 \le x \le 3, and p(x) =10x= 10 - x for x>3x > 3.

Need a hint?

Locate the first line that no longer preserves the original relationship.

Question 20Exit · Standard

Exit check: solve and verify without referring to the displayed steps. Choose constants a and bb so q(x) == ax +1+ 1 for x<2x < 2 and q(x) == bx 3- 3 for x2x \ge 2 has q(2)=5q(2) = 5 and matching one-sided values at x=2x = 2.

Need a hint?

Solve, classify the solution set, and verify against the original equation.

Common mistakes

Error analysis

Wrong move: Treating function notation as multiplication or confusing a function with the equation used to represent one branch of it.

Why it fails: Notation names an input-output assignment, and the domain or piecewise condition determines which rule is active.

Repair: Identify the input, domain, active rule, and output before performing arithmetic or reading the graph.

Open-response checkA12.6

Exit check: solve and verify without referring to the displayed steps. Choose constants a and bb so q(x) == ax +1+ 1 for x<2x < 2 and q(x) == bx 3- 3 for x2x \ge 2 has q(2)=5q(2) = 5 and matching one-sided values at x=2x = 2.

Write a complete attempt before opening the response guide.

Attempt once to unlock the response guide

Complete a substantive attempt to unlock the protected solution and scoring criteria.

Before continuing

Exit check

  1. Exit check: solve and verify without referring to the displayed steps. Evaluate p(1),p(2),p(-1), p(2), and p(5)p(5) when p(x) =2x+1= 2x + 1 for x<0,x < 0, p(x) =x2= x^{2} for 0x3,0 \le x \le 3, and p(x) =10x= 10 - x for x>3x > 3.
  2. Exit check: solve and verify without referring to the displayed steps. Choose constants a and bb so q(x) == ax +1+ 1 for x<2x < 2 and q(x) == bx 3- 3 for x2x \ge 2 has q(2)=5q(2) = 5 and matching one-sided values at x=2x = 2.
Summary

What to remember

Apply different rules on different input intervals and manage endpoints. Use structure to choose the method, preserve every condition, and interpret the checked result.

  • Verify every input uses exactly one permitted rule and that computed outputs agree across the available representations.
  • Piecewise evaluation begins with the input condition, not with whichever formula looks easiest.

Continue to unit practice →

Source & rights

Original storyboard, rights-separated references.

Public page content comes from the BetterGrades Algebra editorial storyboard supplied by the owner. Reference books named in provenance remain separate and are not copied into the application.