A jump at the boundary
Take f(x) = 2x for x < 2, and f(x) = x + 4 for . As x comes up to 2 from the left, 2x comes closer and closer to 2 × 2 = 4, so the left piece ends in a hollow dot at (2, 4). The right piece starts at x = 2 with 2 + 4 = 6, a filled dot at (2, 6). The graph jumps by 6 − 4 = 2 at the boundary.
A graph that can be drawn without lifting the pen is called continuous. This one is not continuous at x = 2: the pen has to jump from the end of one piece to the start of the other.
f(x) = 2x for x < 2 and x + 4 for . The left piece ends in a hollow dot at (2, 4) and the right piece starts from a filled dot at (2, 6): a jump of 2.
Leave the constant unknown
Replace the 4 in the second rule by an unknown constant k: f(x) = 2x for x < 2, and f(x) = x + k for . Changing k slides the whole right-hand piece up or down, without changing its gradient. The question is which value of k makes the right-hand piece start exactly where the left-hand piece ends.
Work out both rules at the boundary, x = 2. The left rule heads for 2 × 2 = 4. The right rule gives 2 + k.
Set the two values equal
The pieces meet when the two values are the same, so set them equal: 2 + k = 4. Subtract 2 from both sides: k = 2. The equation has one solution, so exactly one value of k closes the jump.
Check: with k = 2 the right rule is x + 2, and at x = 2 it gives 2 + 2 = 4, the same as the left rule. The filled dot of the right-hand piece now sits on the hollow end of the left-hand piece, at (2, 4), and fills it.
The gold graph is f with k = 2: both pieces pass through (2, 4). The white lines are the right-hand piece with k = 4, which starts at (2, 6), too high, and with k = 0, which starts at (2, 2), too low.
Continuous at the boundary
With k = 2 the graph runs through x = 2 unbroken, so f is continuous there. Within each piece nothing breaks, because each rule is a straight line, so the boundary is the only place to check. For rules like these, continuity at the boundary means one thing: both rules give the same value there.
It does not matter which rule owns the boundary. Once both rules give 4 at x = 2, f(2) = 4 whichever inequality carries the "or equal to".
An unknown in the other rule
The unknown can be in either rule, and the method does not change. Take for x < 1, and f(x) = 4x − 1 for . At x = 1 the left rule gives , and the right rule gives 4 × 1 − 1 = 3. Set them equal: 1 + c = 3, so c = 2. Check: .
The unknown can also multiply x. Take g(x) = ax − 2 for x < 2, and g(x) = x + 4 for . At x = 2 the left rule gives 2a − 2 and the right rule gives 2 + 4 = 6. Set them equal: 2a − 2 = 6, so 2a = 8 and a = 4. Changing a does not slide the left-hand piece; it turns it about the point (0, −2), where ax − 2 = −2 for every a, until its end reaches (2, 6).
The gold graph is g with a = 4: the left piece rises from (0, −2) to meet the right piece at (2, 6). The white line is the left piece with a = 2, turned about the same point (0, −2), which reaches only (2, 2).
The usual mistakes
Taking k to be the height the pieces meet at. They meet at 4, but k is the constant in x + k, and 2 + k = 4 gives k = 2.
Taking k to be the boundary. The boundary 2 is the input where the rule changes. It is a coincidence of this example that k = 2 as well: for f(x) = 3x for x < 2 and x + k for , the left rule gives 6, so 2 + k = 6 and k = 4.
Adding where the rule multiplies. The left rule is 2x, so at x = 2 it gives 2 × 2 = 4, not 2 + 2.
Worked example: An Electricity Tariff with a Higher-Priced Second Band and No Jump in the Bill
Question An electricity company charges $0.20 for each of the first 200 units used in a month and $0.30 for each unit after that. The bill for x units is B(x) dollars, where B(x) = 0.2x for 0 ≤ x ≤ 200 and B(x) = 0.3x + k for x > 200. (a) Find the value of k for which the bill has no jump at x = 200. (b) Find the bill for 350 units.
1.At the threshold x = 200 the first rule gives B(200) = 0.2 × 200 = 40. A household that uses exactly 200 units pays $40.
At the threshold the first rule gives B(200) = 0.2 × 200 = 40. 2.The bill must not jump when one more unit is used, so the second rule must also give 40 at x = 200: 0.3 × 200 + k = 40.
With k = 0 the second rule would start at 60, and the bill would jump. For no jump, 0.3 × 200 + k = 40. 3.(a) 60 + k = 40, so k = 40 − 60 = −20. The second rule is B(x) = 0.3x − 20.
(a) 60 + k = 40, so k = −20. The second rule now starts where the first one ends. 4.A use of 350 units is more than 200, so use the second rule: B(350) = 0.3 × 350 − 20 = 105 − 20 = 85.
350 units is past the threshold, so B(350) = 0.3 × 350 − 20 = 85. 5.(b) The bill is $85. Check by the bands: the first 200 units cost $40 and the other 150 units cost 150 × 0.30 = $45, and 40 + 45 = 85.
(b) The bill is $85: $40 for the first 200 units and $45 for the other 150.
Answer: (a) k = −20; (b) $85
Common mistakes
- Taking k = 0, so that 350 units cost 0.3 × 350 = $105. That charges all 350 units at the higher rate, but the first 200 units cost only $0.20 each. It also makes the bill jump from $40 to more than $60 at the threshold.
- Reading k = −20 as a discount of $20 that the company gives. The rule 0.3x overcharges each of the first 200 units by $0.10, which is 200 × 0.10 = $20 in all, and the constant takes exactly that back.