Example 4.1.1. A piecewise rate function.
In Exampleย 2.3.1, we modelled the salary of salespeople who were paid a base salary, commission on each sale, and a bonus commission on each sale above some threshold. The model we came up with for the salary \(s(q)\) as a function of the number of units \(q\) sold was
\begin{equation*}
s(q) = \begin{cases}
4000 + 10 q \amp 0 \le q \le 100 \\
4000 + 10 q + 5 (q - 100) \amp q \gt 100
\end{cases}\text{.}
\end{equation*}
Simplifying the second formula in the piecewise definition, we can write
\begin{equation*}
s(q) = \begin{cases}
4000 + 10 q \amp 0 \le q \le 100 \\
3500 + 15 q \amp q \gt 100
\end{cases}\text{.}
\end{equation*}
That rate of accumulation of salary relative to number of units sold is constant โ salary increases by \(10\) dollars per extra unit sold โ up until the threshold where the bonus kicks in, at \(q = 100\text{.}\) After that, the rate of accumulation jumps to a new level โ salary increases by \(15\) dollars per extra unit sold. To keep track of how the rate varies, we create a function to model the rate:
\begin{equation*}
r(q) = \begin{cases}
10 \amp 0 \le q \le 100 \\
15 \amp q \gt 100
\end{cases}\text{.}
\end{equation*}
We know that the constant rate for a linear function is just the slope of the line, so essentially we have just extracted the slopes of the two โpiecesโ of \(s(q)\) on their respective subdomains.

