GenMath
piecewise function
Piecewise functions
-> are just what they are named: pieces of different
functions (sub-functions) all on one graph. The easiest
way to think of them is if you drew more than one
function on a graph, and you just erased parts of the
functions where they aren’t supposed to be (along the
x’s); they are defined differently for different intervals of
x. So y is defined differently for different values of x; we
use the x to look up what interval it’s in, so we can find
out what the y is supposed to be.
Functions assign outputs to inputs. Some functions have
simple rules, like "for every x, return x²." However, there can
be other rules that are more elaborate. For example, "If x<0,
return 2x, and if x≥0, return 3x." These are called *piecewise
functions*, because their rules aren't uniform, but consist of
multiple pieces.
A piecewise function is a function built from pieces of
different functions over different intervals. For example, we
can make a piecewise function f(x) where f(x) = -9 when -9 < x
≤ -5, f(x) = 6 when -5 < x ≤ -1, and f(x) = -7 when -1 <x ≤ 9.
Activity
Let us say income tax are assessed as follows:
There is no tax on income up to 15,000.00. Income over 15,000.00
and up to 30,000.00 is taxed at 12%. Income over 30,000.00 is taxed at 18%.
1. Write the piecewise function of the above information and sketch its graph.
2. Determine how much tax is to be paid on an income of 17,000.00.
One hundred meters of fencing is available to enclose a rectangular area
next to a river (as shown in the figure below). Give a function A that can
represent the area that can be enclosed in terms of x.
SEATWORK
• Provide a real-world example or scenario that
can be expressed as a relation that is not a
function.
• Provide a real-world scenario that can be
modeled by a function (may it be a linear
function or a piecewise function)