FunctionsPiecewise Functions
Draw a Function:
Type some text:
Multisport races test athletes endurance. Swimrun is a rather new multi sport competition that started in 2002 in Sweden. The story goes that the owner of the Utö Värdshus hotel, his friend, and two hotel staff challenged each other to a two-versus-two race from the Utö Värdshus hotel, across three islands, to Sandhamn. The losing team would pay for everyone’s post-race meals. How long do you think the race lasted?

The race ended up taking over 24 hours! The friends did the same race the next year, and the idea for the ÖtillÖ (island to island) was born.

We are training for the ÖtillÖ. We need to get used to the feeling of swimming then immediately running. We decide to swim for 500 meters then run for 5 kilometers. Choose the graph that represents the athlete’s distance as a function of time, d(t).
This is an example of a
One of the most common ways to write piecewise functions is by using cases.
Each line in this function is a case. It includes the function rule and the input values where the rule is used. We read this function as “The function d has a value of (1/20)t when t is at least 0 and up to 10. Function d is (⅙)t-(7/6) when t is at least 10 and no more than 40.”
Let’s continue to get our feet wet in the world of piecewise functions.
The 400 meter medley relay in swimming includes four swimmers. Each athlete swims 100 meters of the relay in one of the four strokes. These 100 meter segments are called legs. This relay includes backstroke, breaststroke, butterfly, and freestyle in that order. The graph below shows s(d). Notice the vertical axis is
Recall that functions cannot have one input going to
undefined
We need to pay close attention to the endpoints of each section of the domain. The endpoints ensure each element of the domain is matched to only one element of the range. With this in mind, select the function that matches the graph above.
option 1={(1.3, 0<=d<=100),(1.2, 100<d<=200),(1.4, 200<d<=300),(1.5, 300<d<=400):}) option 2={(1.3, 0<=d<=100),(1.2, 100<=d<=200),(1.4, 200<=d<300),(1.5, 300<d<=400):})
Notice the graph shows “<” as an open circle - the same would be true for endpoint containing “>”. The closed circles inculcate “<=” and “>=”.
The function s(d) is a special kind of piecewise function called a
The fastest leg of the relay is
We’re ready to dive into graphing.
One of the most common multisport competitions is a triathlon where athletes swim, bike, and run. The function l(t), Lisa Laws’s race, is given below. Use the given line segments to draw l(t) on the coordinate plane.
piece 1 piece 2 piece 3 piece 4 piece 5 solution
Noticing that each slope is either constant or
Slope can also help us determine the order of the pieces from left to right. For example, Law’s fastest leg of the race was
Recall that a function’s key features give us insights into what’s going on during the race. For example, the starting line is represented by the {.FIXME} (multiple select)
| Place contextual statement cards on graph | | Target key feature appears when card is placed | |Function notation appears when card is placed | |
| |
| |
| | Law crosses the finish line. | | maximum | | l(123)=51500 | | Law is cycling toward the transition point. | | increasing | | 21 < t <= 86 | | Law is transitioning from swimming to cycling. | | constant | | 20 < t <= 21 | | Law is transitioning from cycling to running. | | constant | | 86 < t <= 87 |
Now you get to race Law. One of the exciting things about triathlons is that you don’t need to be the fastest at each of the three sports, you just need to cross the finish line first. Here you can adjust your graph, s(t), to see how the race changes. Let’s say your most challenging leg of this race is swimming. As you can see, this segment cannot be adjusted. Can you beat Law with a swim leg that’s
s(t) = {(60t, 0<=t<=25),(1500, 25<t<=26.5),(_695.652_t-16934.8, 26.5+-0.75<=t<84+-0.75),(41500, 84<t<=85.5), (_298.50_t+15977.6, 85.5<t<=123+-5):}
Try adjusting the graph so that your swim and run are slower than Law’s. You need to cycle at
Let’s go get some ice cream to celebrate you win! Ice-agon gives two pricing schemes. You can pay by the gram or buy one of three sizes. What do you want to order?
As you can see, your choice will depend on a few different factors. Fill out the table below to have a clearer understanding of your options.
| Weight | | Cost | | Cost | |
| |
| |
| | 50 | |
The most ice cream you can buy with $5 is about