Download presentation
1
Objectives Write and graph piecewise functions. Use piecewise functions to describe real-world situations. Vocabulary piecewise function step function
2
Notes #1-2 A) Create a table for the two pieces B)Graph the function. –3x if x < 2 g(x) = x if x ≥ 2 2. Write and graph a piecewise function for the following situation. A house painter charges $12 per hour for the first 40 hours he works, time and a half for the 10 hours after that, and double time for all hours after that. How much does he earn for a 70-hour week?
3
A piecewise function is a function that is a combination of one or more functions. The rule for a piecewise function is different for different parts, or pieces, of the domain. For instance, fees for golfing can be different depending on the time of day. So the function for fees would assign a different value (green fee) for each domain interval (time).
4
When using interval notation, square brackets [ ] indicate an included endpoint, and parentheses ( ) indicate an excluded endpoint. (Lesson 1-1) Remember!
5
Example 1: Consumer Application
Create a table and a verbal description to represent the graph. Step 1 Create a table Because the endpoints of each segment of the graph identify the intervals of the domain, use the endpoints and points close to them as the domain values in the table.
6
Example 1 Continued The domain of the function is divided into three intervals: Weights under 2 [0, 2) Weights 2 and under 5 [2, 5) [5, ∞) Weights 5 and over
7
Example 1 Continued Step 2 Write a verbal description. Mixed nuts cost $8.00 per pound for less than 2 lb, $6.00 per pound for 2 lb or more and less than 5 lb, and $5.00 per pound for 5 or more pounds.
8
A piecewise function that is constant for each interval of its domain, such as the ticket price function, is called a step function. You can describe piecewise functions with a function rule. The rule for the movie ticket prices from Example 1 on page 662 is shown.
9
Read this as “f of x is 5 if x is greater than 0 and less than 13, 9 if x is greater than or equal to 13 and less than 55, and 6.5 if x is greater than or equal to 55.”
10
Example 2A: Evaluating a Piecewise Function
Evaluate each piecewise function for x = –1 and x = 4. 2x if x ≤ 2 h(x) = x2 – 4 if x > 2 Because –1 ≤ 2, use the rule for x ≤ 2. h(–1) = 2(–1) + 1 = –1 Because 4 > 2, use the rule for x > 2. h(4) = 42 – 4 = 12
11
Example 2B Evaluate each piecewise function for x = –1 and x = 3. 12 if x < –3 f(x) = 15 if –3 ≤ x < 6 20 if x ≥ 6 Because –3 ≤ –1 < 6, use the rule for –3 ≤ x < 6 . f(–1) = 15 Because –3 ≤ 3 < 6, use the rule for –3 ≤ x < 6 . f(3) = 15
12
You can graph a piecewise function by graphing each piece of the function.
13
Example 3A: Graphing Piecewise Functions
Graph each function. 1 4 x if x < 0 g(x) = –2x if x ≥ 0 The function is composed of two linear pieces that will be represented by two rays. Because the domain is divided by x = 0, evaluate both branches of the function at x = 0.
14
Example 3A Continued For the first branch, the function is 3 when x = 0, so plot the point (0, 3) with an open circle and draw a ray with the slope 0.25 to the left. For the second branch, the function is 3 when x = 0, so plot the point (0, 3) with a solid dot and draw a ray with the slope of –2 to the right. O ●
15
Example 3B: Graphing Piecewise Functions
Graph each function. x2 – if x < 0 1 2 x – if 0 ≤ x < 4 g(x) = (x – 4)2 – 1 if x ≥ 4 The function is composed of one linear piece and two quadratic pieces. The domain is divided at x = 0 and at x = 4.
16
Example 3B Continued No circle is required at (0, –3) and (4, –1) because the function is connected at those points.
17
The distance formula d = rt can be arranged to find rates: r = .
Notice that piecewise functions are not necessarily continuous, meaning that the graph of the function may have breaks or gaps. To write the rule for a piecewise function, determine where the domain is divided and write a separate rule for each piece. Combine the pieces by using the correct notation. The distance formula d = rt can be arranged to find rates: r = Remember! d t
18
Example 4: Sports Application
Jennifer is completing a 15.5-mile triathlon. She swims 0.5 mile in 30 minutes, bicycles 12 miles in 1 hour, and runs 3 miles in 30 minutes. Sketch a graph of Jennifer’s distance versus time. Then write a piecewise function for the graph.
19
Example 4 Continued Step 1 Make a table to organize the data. Use the distance formula to find Jennifer’s rate for each leg of the race.
20
Example 4 Continued Step 2 Because time is the independent variable, determine the intervals for the function. Swimming: 0 ≤ t ≤ 0.5 She swims for half an hour. Biking: 0.5 < t ≤ 1.5 She bikes for the next hour. Running: 1.5 < t ≤ 2 She runs the final half hour.
21
Example 4 Continued Step 3 Graph the function. After 30 minutes, Jennifer has covered 0.5 miles. On the next leg, she reaches a distance of 12 miles after a total of 1.5 hours. Finally she completes the 15.5 miles after 2 hours.
22
Example 4 Continued Step 4 Write a linear function for each leg. Swimming: d = t Use m = 0.5 and (0, 0). Biking: d = 12t – 5.5 Use m = 12 and (0.5, 0.5). Running: d = 6t + 3.5 Use m = 6 and (1.5, 12.5). t if 0 ≤ t ≤ 0.5 The function rule is d(t) = 12t – 5.5 if 0.5 < t ≤ 1.5 6t if 1.5 < t ≤ 2
23
Notes #1 A) Create a table for the two pieces B)Graph the function. –3x if x < 2 g(x) = x if x ≥ 2 The function is composed of two linear pieces. The domain is divided at x = 2.
24
Notes #1 x –3x x + 3 –4 12 –2 6 2 –6 5 4 7 ● O Add an open circle at (2, –6) and a closed circle at (2, 5) and so that the graph clearly shows the function value when x = 2.
25
Notes #2 2. Write and graph a piecewise function for the following situation. A house painter charges $12 per hour for the first 40 hours he works, time and a half for the 10 hours after that, and double time for all hours after that. How much does he earn for a 70-hour week?
Similar presentations
© 2025 SlidePlayer.com. Inc.
All rights reserved.