1.6 Piecewise Functions YOU WILL NEED graph paper graphing calculator GOAL Understand, interpret, and graph situations that are described by piecewise functions. LEARN ABOUT the Math A city parking lot uses the following rules to calculate parking fees: A flat rate of $5.00 for any amount of time up to and including the first hour A flat rate of $1.50 for any amount of time over 1 h and up to and including h A flat rate of $13 plus $3 per hour for each hour after h? How can you describe the function for parking fees in terms of the number of hours parked? EXAMPLE 1 Representing the problem using a graphical model Use a graphical model to represent the function for parking fees. Time (h) Parking Fee ($) 0 0 0.5 5.00 0.50 5.00 1.00 5.00 1.5 1.50 1.50 1.50.00 1.50.50 1.50 3.00 16.00.00 19.00 Create a table of values. 6 1.6 Piecewise Functions NEL
1.6 Plot the points in the table of values. Use a solid dot to include a value in an interval. Use an open dot to eclude a value from an interval. Cost ($) 0 16 1 8 0 1 3 Time (h) 5 The domain of this piecewise function is $ 0. The function is linear over the domain, but it is discontinuous at 5 0, 1, and. There is a solid dot at (0, 0) and an open dot at (0, 5) because the parking fee at 0 h is $0.00. There is a closed dot at (1, 5) and an open dot at (1, 1.50) because the parking fee at 1 h is $5.00. There is a closed dot at (, 1.50) and an open dot at (, 13) because the parking fee at h is $1.50. The last part of the graph continues in a straight line since the rate of change is constant after h. piecewise function a function defined by using two or more rules on two or more intervals; as a result, the graph is made up of two or more pieces of similar or different functions Each part of a piecewise function can be described using a specific equation for the interval of the domain. EXAMPLE Representing the problem using an algebraic model Use an algebraic model to represent the function for parking fees. y 1 5 0 y 5 5 y 3 5 1.50 y 5 3 113 if 5 0 if 0, # 1 if 1, # if. Write the relation for each rule. NEL Chapter 1 7
f () 5 μ 0, if 5 0 5, if 0, # 1 1.50, if 1, # 3 1 13, if. Combine the relations into a piecewise function. The domain of the function is $ 0. The function is discontinuous at 5 0, 1, and because there is a break in the function at each of these points. Reflecting A. How do you sketch the graph of a piecewise function? B. How do you create the algebraic representation of a piecewise function? C. How do you determine from a graph or from the algebraic representation of a piecewise function if there are any discontinuities? APPLY the Math EXAMPLE 3 Representing a piecewise function using a graph Graph the following piecewise function.,if, f () 5 e 1 3, if $ Create a table of values. f () 5 f () 5 1 3 f() f() 7 1 1 3 9 0 0 11 1 1 5 13 6 15 From the equations given, the graph consists of part of a parabola that opens up and a line that rises from left to right. Both tables include 5 since this is where the description of the function changes. 8 1.6 Piecewise Functions NEL
1.6 10 8 6 y = f() 0 y Plot the points, and draw the graph. A solid dot is placed at (, 7) since 5 is included with f() 5 1 3. An open dot is placed at (, ) since 5 is ecluded from f() 5. f () is discontinuous at 5. EXAMPLE 6 y = f () 0 y Representing a piecewise function using an algebraic model Determine the algebraic representation of the following piecewise function. 6 1 f () 5,if #, if. The graph is made up of two pieces. One piece is part of the reciprocal function defined by y 5 1 when #. The other piece is a horizontal line defined by y 5 when.. The solid dot indicates that point Q, 1 R belongs with the reciprocal function. NEL Chapter 1 9
EXAMPLE 5 Reasoning about the continuity of a piecewise function Is this function continuous at the points where it is pieced together? Eplain. 1 1, if # 0 g() 5 1 1, if 0,, 3, if $ 3 The function is continuous at the points where it is pieced together if the functions being joined have the same y-values at these points. Calculate the values of the function at 5 0 using the relevant equations: y 5 1 1 y 5 0 1 1 y 5 1 y 5 1 1 y 5 (0) 1 1 y 5 1 Calculate the values of the function at 5 3 using the relevant equations: y 5 1 1 y 5 (3) 1 1 y 5 7 y 5 y 5 3 y 55 The function is discontinuous, since there is a break in the graph at 5 3. The graph is made up of three pieces. One piece is part of an increasing line defined by y 5 1 1 when # 0. The second piece is an increasing line defined by y 5 1 1 when 0,, 3. The third piece is part of a parabola that opens down, defined by y 5 when $ 3. The two y-values are the same, so the two linear pieces join each other at 5 0. The two y-values are different, so the second linear piece does not join with the parabola at 5 3. Tech Support For help using a graphing calculator to graph a piecewise function, see Technical Appendi, T-16. Verify by graphing. 50 1.6 Piecewise Functions NEL
1.6 In Summary Key Ideas Some functions are represented by two or more pieces. These functions are called piecewise functions. Each piece of a piecewise function is defined for a specific interval in the domain of the function. Need to Know To graph a piecewise function, graph each piece of the function over the given interval. A piecewise function can be either continuous or not. If all the pieces of the function join together at the endpoints of the given intervals, then the function is continuous. Otherwise, it is discontinuous at these values of the domain. CHECK Your Understanding 1. Graph each piecewise function., if, 1 0 1 0,if #1 a) f () 5 e d) f () 5 e 3,if $ 1 1, if.1, if, 0 b) f () 5 e e) 1, if $ 0 1 0 0, if # c) f () 5 e f) f () 5,if, 1,if.,if $ 1. State whether each function in question 1 is continuous or not. If not, state where it is discontinuous. 3. Write the algebraic representation of each piecewise function, using function notation. a) y b) y 6 6 y = f () 0 6 f () 5 e!,if,,if $ y = f () 0 6. State the domain of each piecewise function in question 3, and comment on the continuity of the function. NEL Chapter 1 51
PRACTISING 5. Graph the following piecewise functions. Determine whether each K function is continuous or not, and state the domain and range of the function., if,1 a) f () 5 e c) 3, if $1 f () 5 e 1 1, if, 1 1, if $ 1, if,1 b) f () 5 e,if # 0 d) f () 5 1, if 1 # # 3,if. 0 5, if. 3 6. Graham s long-distance telephone plan includes the first 500 min per A month in the $15.00 monthly charge. For each minute after 500 min, Graham is charged $0.0. Write a function that describes Graham s total long-distance charge in terms of the number of long distance minutes he uses in a month. 7. Many income ta systems are calculated using a tiered method. Under a certain ta law, the first $100 000 of earnings are subject to a 35% ta; earnings greater than $100 000 and up to $500 000 are subject to a 5% ta. Any earnings greater than $500 000 are taed at 55%. Write a piecewise function that models this situation. 8. Find the value of k that makes the following function continuous. T Graph the function. f () 5 e k,if,1 1, if $1 9. The fish population, in thousands, in a lake at any time,, in years is modelled by the following function:,if 0 # # 6 f () 5 e 1 8, if. 6 This function describes a sudden change in the population at time 5 6, due to a chemical spill. a) Sketch the graph of the piecewise function. b) Describe the continuity of the function. c) How many fish were killed by the chemical spill? d) At what time did the population recover to the level it was before the chemical spill? e) Describe other events relating to fish populations in a lake that might result in piecewise functions. 5 1.6 Piecewise Functions NEL
10. Create a flow chart that describes how to plot a piecewise function with two pieces. In your flow chart, include how to determine where the function is continuous. 1.6 11. An absolute value function can be written as a piecewise function that C involves two linear functions. Write the function f () 5 0 1 3 0 as a piecewise function, and graph your piecewise function to check it. 1. The demand for a new CD is described by 1 D(p) 5 p,if 0, p # 15 0, if p. 15 where D is the demand for the CD at price p, in dollars. Determine where the demand function is discontinuous and continuous. Etending 13. Consider a function, f (), that takes an element of its domain and rounds it down to the nearest 10. Thus, f (15.6) 5 10, while f (1.7) 5 0 and f (30) 5 30. Draw the graph, and write the piecewise function. You may limit the domain to P[0, 50). Why do you think graphs like this one are often referred to as step functions? 1. Eplain why there is no value of k that will make the following function continuous. 5, if,1 f () 5 1 k, if 1 # # 3,if. 3 15. The greatest integer function is a step function that is written as f () 5 3, where f () is the greatest integer less than or equal to. In other words, the greatest integer function rounds any number down to the nearest integer. For eample, the greatest integer less than or equal to the number [5.3] is 5, while the greatest integer less than or equal to the number 35.3 is 6. Sketch the graph of f () 5 3. 16. a) Create your own piecewise function using three different transformed parent functions. b) Graph the function you created in part a). c) Is the function you created continuous or not? Eplain. d) If the function you created is not continuous, change the interval or adjust the transformations used as required to change it to a continuous function. NEL Chapter 1 53