Piecewise Function

Functions
definition

Also known as: piecewise

Grade 9-12

View on concept map

A piecewise function is defined by different formulas on different non-overlapping intervals of its domain, with the applicable formula determined by the input value. Piecewise functions model any situation with different regimes โ€” tax brackets, shipping rates, and absolute value are all piecewise in nature.

This concept is covered in depth in our piecewise functions explained, with worked examples, practice problems, and common mistakes.

Definition

A piecewise function is defined by different formulas on different non-overlapping intervals of its domain, with the applicable formula determined by the input value.

๐Ÿ’ก Intuition

A piecewise function is like a rulebook: look up which rule applies to your input value, then use only that rule to compute the output.

๐ŸŽฏ Core Idea

Each piece has its own formula valid only on its own sub-domain. The complete function is the union of all pieces โ€” no input uses more than one rule.

Example

f(x) = \begin{cases} x & \text{if } x \geq 0 \\ -x & \text{if } x < 0 \end{cases} This is the absolute value function.

Formula

f(x) = \begin{cases} f_1(x) & \text{if } x \in D_1 \\ f_2(x) & \text{if } x \in D_2 \end{cases}

Notation

f(x) = \begin{cases} \text{expr}_1 & \text{if condition}_1 \\ \text{expr}_2 & \text{if condition}_2 \end{cases} uses brace notation to define each piece.

๐ŸŒŸ Why It Matters

Piecewise functions model any situation with different regimes โ€” tax brackets, shipping rates, and absolute value are all piecewise in nature.

๐Ÿ’ญ Hint When Stuck

Write down which interval your x-value falls in first, then use only that piece's formula. Check both sides at boundary points.

Formal View

f(x) = \begin{cases} f_1(x) & x \in D_1 \\ f_2(x) & x \in D_2 \\ \vdots \end{cases} where D_1 \cup D_2 \cup \cdots = \text{Dom}(f) and D_i \cap D_j = \emptyset for i \neq j

๐Ÿšง Common Stuck Point

Always check which piece to use before computing โ€” substituting into the wrong formula gives the wrong answer even if the algebra is perfect.

โš ๏ธ Common Mistakes

  • Evaluating the wrong piece โ€” check which interval your x-value falls in before plugging into a formula
  • Forgetting to check continuity at boundary points โ€” the pieces may not connect, creating a jump or gap
  • Including a value in two intervals โ€” each x must belong to exactly one piece; intervals should not overlap

Frequently Asked Questions

What is Piecewise Function in Math?

A piecewise function is defined by different formulas on different non-overlapping intervals of its domain, with the applicable formula determined by the input value.

Why is Piecewise Function important?

Piecewise functions model any situation with different regimes โ€” tax brackets, shipping rates, and absolute value are all piecewise in nature.

What do students usually get wrong about Piecewise Function?

Always check which piece to use before computing โ€” substituting into the wrong formula gives the wrong answer even if the algebra is perfect.

What should I learn before Piecewise Function?

Before studying Piecewise Function, you should understand: function definition, domain.

How Piecewise Function Connects to Other Ideas

To understand piecewise function, you should first be comfortable with function definition and domain. Once you have a solid grasp of piecewise function, you can move on to absolute value and step function intuition.

Want the Full Guide?

This concept is explained step by step in our complete guide:

Functions and Graphs: Complete Foundations for Algebra and Calculus โ†’

Visualization

Static

Visual representation of Piecewise Function