Two Galway shuttle trips cost the same. Can the fare still be a function?
On a Galway shuttle, a one-kilometre trip and a two-kilometre trip both cost four euro. If the fare depends on distance, how can two different distances give you the same price?
A locker costs two euro per hour. Start with three hours. Multiply three by two to get six euro. You can think of the rule as a machine: three hours goes in and six euro comes out.
This Galway shuttle offers just three trip distances. Follow the arrows: one kilometre gives four euro, two kilometres also gives four euro, and three kilometres gives six euro. Each allowed distance has exactly one fare, so this rule is a function.
A second shuttle charges five euro for one kilometre, five euro for two kilometres and seven euro for three kilometres. Those are all its inputs. Is its fare rule a function? Pick the answer with the right reason.
Read across the two fare lists. One kilometre still gives four euro in both. At two kilometres, the first list gives just four euro, while the second gives both four and six euro. Three kilometres gives six in both. The second list fails because one input has two outputs.
The domain lists the allowed distances: one, two and three kilometres. Take the stated target set, called the codomain, to be four, six and eight euro. Only four and six euro come out of the rule, so those two fares make up the range.
Here, f of x equals x squared. The domain is minus two, zero and two. The codomain is zero, one and four. Square each input in order: you get four, zero and four. Write each distinct output once: the range is zero and four.
Now the rule is still f of x equals x squared, but the domain is minus three, zero and three. The codomain is zero, three and nine. Square the three inputs and pick the range.
You might think each target value must have exactly one arrow coming in. A target value can be shared or left unused. Look where the arrows start instead. Each input must have exactly one arrow leaving it.
An exam question might ask, ‘Does this relation define a function? Justify your answer.’ Read the fares for the two-kilometre trip: four euro and six euro. Those fares are different, so name that one input with two distinct outputs as your reason.