examples

We have many famous functions, which are piecewise defined function. We have already seen the step function. It acts as a mathematical on/off switch.

Perhaps more famous are the absolute value function and greatest integer function.

The formula for absolute value is not very complicated. However, absolute value involves different formulas used in different situations. Our algebra doesn’t like this. The first step when working algebraically with the absolute value signs is getting rid of the absolute values signs. They don’t work well with algebra. For instance, they do not always distribute over addition of subtraction.

True False
True False

Sometimes this works, but not as a general rule.

When working algebraically, the first step is to convert the absolute value signs into a piecewise defined function. Then we can identify the formula we need in our algebraic expression. We can see from the formula’s domain column that the formulas switch at . Working algebraically with absolute value means first identifying zeros.

Notice that we have many domain numbers with the same function value. That is ok. To be a function, we just need that each domain number only has one function value. The GIF passes this test.

Calculate:
Calculate:

Notice that both the absolute value function and the greatest integer function pass the so-called vertical line test.

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