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 absolute value signs is getting rid of the absolute value’s vertical bars. They don’t work well with our algebra. For instance, they do not always distribute over addition of subtraction.

Absolute Value

\(| -3 + 4 | = | -3 | + | 4 |\)

True False
Absolute Value

\(| 5 - 7 | = | 5 | - | 7 |\)

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 when the inside of the bars equals \(0\). 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.

\[ GIF(x) = \begin{cases} etc. & \\ -2 & \text { on } [-2, -1) \\ -1 & \text { on } [-1, 0) \\ 0 & \text { on } [0, 1) \\ 1 & \text { on } [1, 2) \\ 2 & \text { on } [2, 3) \\ etc. & \end{cases} \]
\[ GIF(x) = N \, \text { on } \, [N, N+1) \, \text { where } \, N \in \mathbb {Z} \]
GIF

Calculate:

\[ \lfloor 2.4 \rfloor \begin{prompt} =\answer {2} \end{prompt} \]
GIF

Calculate:

\[ \lfloor -2.4 \rfloor \begin{prompt} =\answer {-3} \end{prompt} \]

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

2025-12-03 01:59:08