This section discusses how to compute values using a piecewise function
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