pieces and parts

Piecewise-Defined Functions

Piecewise defined functions are defined by using pieces of other functions.

Of course, we have to make sure that we do not duplicate domain numbers, otherwise we will not have a function. This new collection of pairs will automatically give us a domain by collecting all of the first coordinates.

For example, we could start with two constant functions: and .

  • with as its domain.
  • with as its domain.

We can create a new function called step, by selecting some pairs from each of these functions.

  • From we’ll take pairs with negative domain values. This is one piece.
  • From we’ll take pairs with nonnegative domain values. This is another piece.

Note: Nonnegative means positive or 0.

The step function uses two formulas, but only one at a time.

  • , if
  • , if

Either you use the formula or your use the formula . The domain number at which you are evaluating tells you which formula to use.

The traditional way to write this formula looks like

The formulas are listed in the left column and the domain conditions are listed in the right column. When evaluating a piecewise defined function, you don’t look for the formula first. First, you decide which domain condition in the right column your domain number satisfies. Then you choose the corresponding formula and evaluate with your domain number.

We can have any number of pieces defining our function.

From the formula above, we can see that the domain of is .

ooooo=-=-=-=-=-=-=-=-=-=-=-=-=ooOoo=-=-=-=-=-=-=-=-=-=-=-=-=ooooo
more examples can be found by following this link
More Examples of Piecewise-Defined Functions