Course contentsShow
← Mathematics
Lesson 598 of 3,12114. Functions in DepthFree lesson

Writing Functions as Piecewise Definitions

Convert absolute value equations and other special functions into explicit piecewise form for analysis.

Writing Functions as Piecewise Definitions

What you'll learn: You'll learn how to convert special functions like absolute value and sign functions into explicit piecewise form for detailed analysis.

Why Convert to Piecewise Form?

Some functions have "built-in" behaviors that change depending on the input value. By rewriting them as piecewise definitions, you make these hidden behaviors explicit and easier to analyze, graph, and work with algebraically.

Converting Absolute Value to Piecewise

The absolute value function |x| is the most common example. It behaves differently for positive and negative inputs:

  • When x ≥ 0, the absolute value does nothing: |x| = x
  • When x < 0, it flips the sign: |x| = -x

So we write:

f(x) = { x,   if x ≥ 0
       { -x,  if x < 0

Converting Other Special Functions

The Sign Function can be written as:

sgn(x) = { 1,   if x > 0
         { 0,   if x = 0
         { -1,  if x < 0

More Complex Examples like f(x) = |x - 3| become:

f(x) = { x - 3,     if x ≥ 3
       { -(x - 3),  if x < 3

The "break point" occurs where the expression inside changes sign (at x = 3).

The Process

  1. Identify where the function's behavior changes (critical points)
  2. Determine the output formula in each region
  3. Write the piecewise definition with appropriate conditions

Think of it like translating a shorthand notation into step-by-step instructions—you're making the function's logic completely transparent.

Key Takeaway: Converting functions like absolute value into piecewise form reveals their case-by-case behavior explicitly, making analysis and graphing more straightforward.