Piecewise Behavior Formula

The Formula

|x| = \begin{cases} x & \text{if } x \geq 0 \\ -x & \text{if } x < 0 \end{cases}

When to use: Think of the behavior as shifting gears โ€” the function follows one rule until it hits a boundary, then switches to a different rule for the next region.

Quick Example

Absolute value: |x| = \begin{cases} x & \text{if } x \geq 0 \\ -x & \text{if } x < 0 \end{cases}

Notation

Continuity at boundary a: check that \lim_{x \to a^-} f(x) = \lim_{x \to a^+} f(x) = f(a).

What This Formula Means

Piecewise behavior refers to a function that exhibits qualitatively different characteristics in different regions of its domain, like having a different slope or curvature in each region.

Think of the behavior as shifting gears โ€” the function follows one rule until it hits a boundary, then switches to a different rule for the next region.

Worked Examples

Example 1

easy
Write |x| as an explicit piecewise function, evaluate |-4|, |0|, and |7|, and sketch its graph.

Solution

  1. 1
    Definition: |x| = \begin{cases} x & \text{if } x \geq 0 \\ -x & \text{if } x < 0 \end{cases}.
  2. 2
    Evaluate: |-4| = -(-4) = 4; |0| = 0; |7| = 7.
  3. 3
    Graph: two rays meeting at the origin (0,0), slope -1 for x<0 and slope +1 for x\geq0, forming a 'V' shape.

Answer

|-4|=4, |0|=0, |7|=7; V-shaped graph with vertex at origin
The absolute value function is the simplest and most important piecewise function. It measures distance from zero, always returning a non-negative value. Its V-shape has slope \pm1 and vertex at the origin.

Example 2

medium
Solve the equation |2x - 5| = 7 and the inequality |2x - 5| < 7.

Common Mistakes

  • Using the wrong formula for a given x value โ€” always check which interval your input falls in before evaluating
  • Assuming the function is continuous at boundary points โ€” piecewise functions may or may not be continuous where pieces meet
  • Ignoring the boundary conditions (< vs. \leq) โ€” whether the boundary point belongs to the left or right piece matters

Why This Formula Matters

Many real situations have different rules for different cases.

Frequently Asked Questions

What is the Piecewise Behavior formula?

Piecewise behavior refers to a function that exhibits qualitatively different characteristics in different regions of its domain, like having a different slope or curvature in each region.

How do you use the Piecewise Behavior formula?

Think of the behavior as shifting gears โ€” the function follows one rule until it hits a boundary, then switches to a different rule for the next region.

What do the symbols mean in the Piecewise Behavior formula?

Continuity at boundary a: check that \lim_{x \to a^-} f(x) = \lim_{x \to a^+} f(x) = f(a).

Why is the Piecewise Behavior formula important in Math?

Many real situations have different rules for different cases.

What do students get wrong about Piecewise Behavior?

Always determine which piece applies before computing โ€” and check that adjacent pieces agree (or deliberately disagree) at their shared boundary points.

What should I learn before the Piecewise Behavior formula?

Before studying the Piecewise Behavior formula, you should understand: piecewise function.

Want the Full Guide?

This formula is covered in depth in our complete guide:

Rational Functions: Definition, Graphs, Asymptotes, and Applications โ†’