1. Linear and piecewise linear models
A linear model has the form f(x) = mx + c. The gradient m is the change in the output for each one-unit increase in the input. The y-intercept c is the starting value, where x = 0.
A piecewise linear model uses a different linear rule for each part of the domain. The pieces join at the value where the rule changes. Examples are mobile phone charges and the depth of a swimming pool.
Write the rule for the second piece so that it counts only the part beyond the change, such as n - 15 for the hats beyond the first 15.
f(x) = mx + c
m = (change in output)/(change in input)
Worked example 17 marks
A manufacturer designs hats that businesses can order.
For an order of 15 hats or fewer, the price per hat is p euros (EUR). For larger orders, the price of each hat after the first 15 ordered is reduced by 5 EUR.
C(n) represents the total cost of purchasing n hats from the manufacturer.
(a) Write down an expression in terms of p for the total cost of ordering 15 hats.
(b) Write down an equation for C(n), in terms of p and n, for the total cost of ordering n hats when n > 15.
A company decides to order 100 hats. The mean price per hat for this order is 25.73 EUR.
(c)(i) Calculate the exact total cost of the order.(ii) Hence, determine the value of p, correct to 2 decimal places.
- 1
(a) 15p (A1) [1]
- 2
(b) (p - 5) or (n - 15) seen (A1) [1]
- 3
adding a cost expression to their 15p (M1) [1]
- 4
C(n) = 15p + (p - 5)(n - 15) or C(n) = np - 5n + 75 (A1) [1]
- 5
(c)(i) 25.73 × 100 = 2573 EUR (A1). The answer must be exact. [1]
- 6
(ii) substitute into their cost function: 2573 = 15p + (p - 5)(100 - 15) (A1) [1]
- 7
p = 29.98 EUR (A1). The answer must be given to 2 decimal places. [1]