A Galway taxi hasn't moved yet, so why does its fare graph already show €4?
Your taxi in Galway hasn't moved yet, but the fare is already four euro. Then it goes up by two euro for every kilometre. Where would you put the first dot on a graph of that trip?
Read the x-coordinate first and the y-coordinate second. From one comma three to three comma seven, you move two units right, then four units up. To find the gradient, divide the rise of four by the run of two. That gives two.
Read distance across and fare up. At zero kilometres the fare is four euro, so plot zero comma four. Move one kilometre right and two euro up to plot one comma six. Join the dots with a straight line and extend it to show the first three kilometres.
Another taxi starts at five euro and adds three euro per kilometre. Where do you put the dot for zero kilometres, and where is the dot one kilometre later? Pick the pair of points.
For distances of zero, one, two and three kilometres, the fares are four, six, eight and ten euro. Adding two each time makes the pattern linear. Compare that with squaring each input, like counting tiles in a square, or doubling or tripling each output to get the next. Those patterns are non-linear.
Read the rule as y equals f of x, which equals m times x plus c. The output, y, is the fare for an input distance x. M is the gradient, two euro per kilometre. C is the y-intercept, the fare of four euro at zero kilometres.
For y equals two x plus four, start at zero comma four. Move two kilometres right. At two euro per kilometre, the fare rises by four euro. Add that to the starting fare to get two comma eight. Check the gradient: the rise of four divided by the run of two gives two.
This time the fare rule is y equals three x plus six. You start at zero comma six and move two kilometres to the right. Pick the point that goes on the graph at two kilometres.
Putting minus one into the expression gives two, but you can't travel a negative distance. For trips up to six kilometres, the domain is all distances from zero to six, inclusive. Draw only that segment. You can choose non-negative real numbers as the co-domain, the set that contains all the outputs.