This section discusses how to compute values using a piecewise function

Computing values of a piecewise function is relatively straightforward, although perhaps not initially obvious. Recalling that the point of piecewise functions is to write out a list of functions that are ‘stitched together’, if you wish to compute the value of the piecewise function at a specific point, it’s a matter of finding which function your value is on, and using that function to compute the value. Consider the following function we developed to record profit over time of the newly founded company:

If we want to determine the profit at, say, year 5 we first need to determine which of the three listed functions governs that year. To do this we check the list on the right hand side of each function to see which function has 5 in it’s domain. After checking the values, we can see that 5 is recorded in the third function (since ) and so we would use the function on that line, ie to determine the value. Finally, we plug in the value we want and compute:

Here is a Video lecture on graphing (which includes computing) piecewise functions

_