Math Book 5A ch.04
Math Book 5A ch.04
4 Linear Programming
1.
2.
y 2x 3
3. Draw the line .
x 2 3 4
y 1 3 5
Draw the line x 2 y 6 .
x 1 3 5
y 2 0 2
115
NSS Mathematics in Action (2nd Edition) 5A Full Solutions
y 0 1 2
Quick Practice
Quick Practice 4.1 (p. 4.8)
Draw the solid line 3 x 2 y 2 .
x 0 2 4
y 1 2 5
∵ The two straight lines intersect at (2.5, 0.5).
∴ The solution is x = 2.5 and y = 0.5. When x = 0 and y = 0,
3 x 2 y 3(0) 2(0) 0 2
Activity ∴ The half-plane containing the test point (0, 0) together
with the boundary represents the solutions of the
Activity 4.1 (p. 4.6) inequality.
Graphical representation of 3x 2y ≤ 2:
1. Point (x, y) B(–2, 1) C(–1, 6) D(3, 4)
Value of x + y –1 5 7
Value of x + y –1 6
4. 3, 3
116
4 Linear Programming
Quick Practice 4.4 (p. 4.15) Quick Practice 4.7 (p. 4.26)
3 x y 1
Graphical representation of
x 2 y 2
:
(b) Since x and y are integers, the required possible pairs are
represented by the dots in the figure below. (b)
(a)
117
NSS Mathematics in Action (2nd Edition) 5A Full Solutions
(b)
(a)
118
4 Linear Programming
(b)
119
NSS Mathematics in Action (2nd Edition) 5A Full Solutions
(b)
∴
ordered to attain a minimum cost of $1050.
(b)
(b)
120
4 Linear Programming
(c) Let $C be the total cost on hiring workers per day. Choose a point in the shaded region, say (3, 0).
When x 3 and y 0 ,
C 300 x 200 y 500(10 x ) 300(15 y ) 3 x 2 y 3(3) 2(0) 9 12
9500 200 x 100 y ∴ The remaining inequality is 3 x 2 y 12 .
Hence, the required system of inequalities is
x 2 y 2
.
3 x 2 y 12
x 0
y
0
2. (a)
121
NSS Mathematics in Action (2nd Edition) 5A Full Solutions
Exercise
Exercise 4A (p. 4.11)
Level 1
1.
122
4 Linear Programming
123
NSS Mathematics in Action (2nd Edition) 5A Full Solutions
14. 3x 1
3x y
y
3
2
18. (a) By substituting x = 4 and y = 0 into y 3 x b ,
we have
Draw the solid line 3x – y = 3.
Choose (0, 0) as the test point. 0 3( 4) b
When x = 0 and y = 0, b 12
3x y = 3(0) 0 = 0 ≰ 3
∴ The half-plane without the test point (0, 0) (b) Choose a point in the shaded region, say (0, 0).
represents the solutions of the inequality. When x 0 and y 0 ,
3 x 12 3(0) 12 12
y0
∴ y 3 x 12
∴ The required inequality is y 3 x 12 .
1.
16. (a) Choose a point in the shaded region, say (0, 0).
2 y 4 x 2(0) 4(0) 0 3
∴ The inequality is 2y – 4x 3.
3.
4.
124
4 Linear Programming
x 1
Level 2
9. The solutions of
y 3x 1
are represented by the
shaded region in the figure below.
13.
14.
125
NSS Mathematics in Action (2nd Edition) 5A Full Solutions
15. Choose a point in the shaded region, say (1, 1). 19. The solutions of
y
x
2 x
x
2 y 6
are
∵ 2x + 3y = 2(1) + 3(1) = 5 ≤ 6 y 2
.
x 3 y 6
4 x y 12
y 0
x y 7
x y 1
126
4 Linear Programming
22. (a) The solutions of 2. Check the values of P = –2x + y at the three vertices.
3 x
3 x
4 y
4 y
3
12
0
0
are At (0, 4), P = –2(0) + (4) = 4
x
At (0, 0), P = –2(0) + (0) = 0
3
5.
127
NSS Mathematics in Action (2nd Edition) 5A Full Solutions
128
4 Linear Programming
1 x 2
are represented
2 x y 6
∴ Maximum value of P = 7
x 0
y 0
by the
Minimum value of P = 16 shaded region in the figure below.
Level 2
12. The solutions of
x 2 y 4 0
are
x 2 y 6 0
x 0
y 0
represented by the
shaded region in the figure below.
129
NSS Mathematics in Action (2nd Edition) 5A Full Solutions
19. (a) The shaded region is the common region of the left
Check the values of P x y 3 at the three vertices. half-plane of L1, the lower half-plane of L2, the upper
At (1, 0), P 1 0 3 2 half-plane of L3 and the upper half-plane of L4.
∴ The system of inequalities is
At (2, 4), P 2 4 3 3 x 9
At (5, ), P 5 6 3 8 y 8
y
1
x .
3
∴ Maximum value of P = 8
y 7 x 22
Minimum value of P = 2
(b) Coordinates of A (9, 8)
L2 : y 8 (1)
L4 : y 7 x 22 ( 2)
130
4 Linear Programming
L4 : y 7 x 22 ( 2)
1
L3 : y 3 x (3)
By substituting y = 1 into the equation of L2, we have
.
y x 2
y 1
131
NSS Mathematics in Action (2nd Edition) 5A Full Solutions
(b) (i) Check the values of P x 3 y at the three (ii) Since x and y are integers, the feasible solutions
vertices. are the points indicated by the dots in the figure.
At (2, 1), P 2 3( 1) 5
At (1.5, 2.5), P 1.5 3( 2.5) 9
At (5, 1), P 5 3( 1) 2
∴ Maximum value of P = 9
∴ Minimum value of P = 5
3( 2) 2(3) 6
6
From the graph, P attains its minimum at (–2, –2).
3( 2) 2( 2) 6
∴ Minimum value of P
16
From the graph, P attains its maximum at (2, 2).
∴ Maximum value of P 2 3( 2) 8
Exercise 4D (p. 4.44)
From the graph, P attains its minimum at (–2, –1).
∴ Minimum value of P Level 1
2 3( 1) 5
1. The constraints are:
x y 30
x y
x 0
y
0
y 2
three vertices.
At (2, 2,
P 3( 2) 2( 2) 6 16
At (1.5, 5), P 3(1.5) 2(5) 6 8.5
At (3.5, 2),
P 3(3.5) 2( 2) 6 0.5
∴ Maximum value of P 8.5
Minimum value of P 16
132
4 Linear Programming
4 x 4 y 3200
5 x 3 y 3000
5. (a) The constraints are:
x0
y0
After simplification, we have:
x y 800 (b)
5 x 3 y 3000
x0
y0
(b)
$[300(300) 200(500)]
$190 000
80 x 90 y 100 000
20 x 10 y 15 000
6. (a) The constraints are:
x0
y0
After simplification, we have:
8 x 9 y 10 000
2 x y 1500
x0
y0
133
NSS Mathematics in Action (2nd Edition) 5A Full Solutions
(c) Let $P be the profit, then P = 500x + 400y. 8. (a) The constraints are:
6 x 2 y 24
4 x 2 y 20
x and y are non-negative integers.
$[2000( 2) 800(6)]
$8800
30 x 50 y 450
(b) 600 x 300 y
6000
x and y ar e non-negative integers.
(b)
134
4 Linear Programming
From the graph, C attains its minimum at (10, 3). 11. (a) The constraints are:
∴ The company should hire 10 buses A and 2 x
y 9
3 buses B.
x y 7
x 2 y 1 0
x 0
y 0
$[ 450(10) 600(3)]
$6300
Level 2
10. (a) The constraints are:
50 x 60 y 80 0
50 x 40 y 600
x 0
y 0
5 x 6 y 80
5 x 4 y 6 0
x 0
(b)
y 0
(b)
25 x 10 y 4000
25 x 20 y 7000
40 x 5 y 4000
x a nd y are non-n ega ti ve in te ger
5 x 2 y 8 00
5 x 4 y 140 0
8 x y 80 0
x an d
y a re n on-ne gat i ve i nt ege rs.
135
NSS Mathematics in Action (2nd Edition) 5A Full Solutions
(b)
3 x 2 y 60
x 2 y 48
x y 25
x and y are no n-n egativ e integers .
$[90(10) 75(15)]
$2025
(b)
15. (a) The constraints are:
1 8 0x 1 00 y 20 0 0
1 2 0x 1 50 y 20 0 0
x 8
y 10
x
a nd y a re non-n e ga tiv e i nt eg e
136
4 Linear Programming
(b)
(b)
137
NSS Mathematics in Action (2nd Edition) 5A Full Solutions
(d)
138
4 Linear Programming
6. The solutions of y x 4 are represented by the (ii) Check the values of P 2 x y 1 at the
shaded region in the figure below. three
vertices.
At (0, 2), P 2(0) 2 1 1
At (1, 1), P 2( 1) ( 1) 1 0
At (2, 4), P 2( 2) ( 4) 1 9
∴ Maximum value of P = 1
Minimum value of P = 9
7. The solutions of 2 x y 1 0 are represented by the
shaded region in the figure below. Revision Exercise 4 (p. 4.54)
Level 1
1. When x = 0 and y = 0,
x 1 0 1 1 0
∴ The half-plane containing the test point (0, 0)
together with the boundary represents the solutions of
the inequality.
2 x 3 y 6
8. The solutions of x 2 y 0 are represented
by the
shaded region in the figure below.
2. When x = 0 and y = 0,
2 x 4 2(0) 4 4 0
∴ The half-plane containing the test point (0, 0)
represents the solutions of the inequality.
x 3 y 3
9. The solutions of 3 x 2 y 2 are represented by
the shaded region in the figure below.
3. When x = 0 and y = 0,
3x 2y = 3(0) + 2(0) = 0 1
∴ The half-plane containing the test point (0, 0)
together with the boundary represents the solutions of
the inequality.
10. (a) Choose a point in the shaded region, say (0, 0).
∵ x+y+2=0+0+2=2
∴ One inequality is x + y + 2 ≥ 0.
∵ 3x y + 2 = 3(0) 0 + 2 = 2
∴ One inequality is 3x y + 2 ≥ 0.
∵ 3x + y 2 = 3(0) + 0 2 = 2
∴ One inequality is 3x + y 2 ≤ 0.
∴ The system of inequalities is
x
3 x
y
y
2
2
0
0 . 4. Choose a point in the shaded region, say (2, 0).
When x 2 and y 0 ,
3 x y 2 0
139
NSS Mathematics in Action (2nd Edition) 5A Full Solutions
x y 1
7. The solutions of
x y 3
are represented
by the shaded region in the figure below.
140
4 Linear Programming
represented by the
shaded region in the figure below.
x
18. The solutions of y 1 are represented by the
2 23. Check the values of P x 3 y at the three vertices.
shaded At (2, 9), P = –2 + 3(9) = 25
region in the figure below. At (1, 3), P = 1 + 3(3) = 10
At (4, 6), P = 4 + 3(6) = 22
∴ Maximum value of P = 25
Minimum value of P = 10
141
NSS Mathematics in Action (2nd Edition) 5A Full Solutions
x 7
(b)
142
4 Linear Programming
30. (a) The constraints are: (c) Let $C be the cost, then C = 200x + 220y.
3 x 2 y 40
x 2 y 24
x and y are non-negative integers.
(c) Let $P be the profit, then P = 2400x + 2000y. 32. (a) The constraints are:
$[ 2400(8) 2000(8)]
$35 200 (c) Let $P be the profit, then P = 240x + 300y.
100 x 80 y 100 0
100 x 120 y 1200
x 0
y
0
5 x 4 y 50
5 x 6 y 60
x 0
y 0
$[240(12) 300(8)]
$5280
(b)
33. (a) The constraints are:
50 x 20 y 250
y x
x and y are non-negative integers.
143
NSS Mathematics in Action (2nd Edition) 5A Full Solutions
$[ 200(0.6) 50(0.4)]
$140
34. (a) The constraints are: (c) Let $P be the profit, then P = 20 000x + 40 000y.
240 x 40 y 160
180 x 6 0 y 132
x 0
y 0
6 x y 4
15 x 5 y 11
x 0
y
0
(b)
From the graph, P attains its maximum at (20, 91).
∴ The owner should construct 20 shops A and
(c) Let $C be the cost, then C = 200x + 50y. 91 shops B.
0.2 x 0.3 y 45
0.7 x 0.3 y 60
x and y are non-negative integer s.
144
4 Linear Programming
(b)
$[8(30) 6(130)]
$1020
39. (a)
Level 2
y x
40. (a)
From the graph, C(2, 2), D(3, 1) and E(7, –1) satisfy
the system of inequalities in (a). (b) Since x and y are integers and the 9 ordered pairs
must lie on the right half-plane of x = p.
Therefore, from the graph, p can be any value in the
range 4 p 5 .
145
NSS Mathematics in Action (2nd Edition) 5A Full Solutions
42. (a) ∵ The solutions lie on the right of x = 0. (ii) ∵ L1 passes through P and R.
∴ One inequality is x ≥ 0. ∴ The equation of L1:
∵ The solutions lie on the upper half-plane of y = 0. y ( 8) 0 ( 8)
∴ One inequality is y ≥ 0.
Choose a point in the shaded region, say (0, 0). x ( 6) 6 ( 6)
∵ x+y=0+0=0≤5 y 8 8
∴ One inequality is x + y ≤ 5.
x6 12
∵ 2x y + 2 = 2(0) 0 + 2 = 2 ≥ 0
∴ One inequality is 2x y + 2 ≥ 0. 3 y 24 2 x 12
x 0
∴ The system of inequalities is 2x 3 y 12
.
y
0
(1) ( 2) : 3 x 2 5 2x y 4
x 1 (b) (i) Choose a point in the shaded region, say (0, 0).
∵ 2x 3y = 2(0) 3(0) = 0 ≤ 12
∴ One inequality is 2x 3y ≤ 12.
∵ 2x + 3y = 2(0) + 3(0) = 0 ≤ 12
∴ One inequality is 2x + 3y ≤ 12.
∵ 2x y = 2(0) 0 = 0 ≥ 4
∴ One inequality is 2x y ≥ 4.
∴ The system of inequalities is
2 x 3 y 12
2 x
2 x
3 y
y
12
4
.
146
delete label: x = 0, y = 0
4 Linear Programming
are
x 8
3 x 5 y 20
y 4 x 19
147
NSS Mathematics in Action (2nd Edition) 5A Full Solutions
2 00 x 250 y 17 00
1.2 x 1.8 y 10. 8
x 3
x
a nd y a re non-ne ga ti ve i nt eg ers.
4 x 5 y
2 x 3 y
34
18
(b)
x 3
x and
y are non-negative in tegers .
(b)
$[80(14) 120(13)]
$2680
From the graph, N attains its maximum at (3, 4).
∴ Tom should buy 3 small tables and 4 large 49. (a) The constraints are:
tables.
∴ The maximum number of seats
150 x
4 x
80 y
y
10
20
100 0
x y
x and y a re n on-neg at iv e i nt eg ers.
(b)
148
4 Linear Programming
(c) Let $P be the profit, then P = 30 000x + 20 000y. 51. (a) ∵ x tonnes of coal are sent from P to A.
∴ (20 – x) tonnes of coal are sent from Q to A.
∵ y tonnes of coal are sent from P to B.
∴ (15 – y) tonnes of coal are sent from Q to B.
The constraints are:
x y 30
( 20 x) (15 y ) 15
0 x 20
0
y 15
x y 30
x y 20
0 x 20
0 y 15
108 x 72 y 2160
x y 25
$[ 4 y 2(15 y )]
$( 2 y 30)
Let $C be the total transportation cost, then
C ( 4 x 60) ( 2 y 30)
4 x 2 y 90
(b)
10 x 30 y 500
3000 x 8000 y 140 000
x and y are non-negative integers.
From the graph, C attains its minimum at (10, 15). After simplification, we have:
∴ The minimum daily operation cost x 3 y 50
3 x 8 y 140
x and y are non-negative integers.
$[100(10) 80(15)]
$2200
149
NSS Mathematics in Action (2nd Edition) 5A Full Solutions
3. Answer: D
Choose (1, 0) as the test point.
When x = 1 and y = 0,
x+y=1+0=1≥0
xy=10=1≥0
(b) ∴ (1, 0) is one of the solutions of the system.
∴ The answer is D.
5. Answer: A
Since x ≤ 2, regions I and II may be the answer.
Equation of the line passing through (0, 4) and (4, 0):
y4 04
x0 40
y 4 x
From the graph, C attains its minimum at (20, 10).
∴ 20 helicopters and 10 transport-troops should be x y 4
used. Consider x + y ≥ 4.
∴ The minimum cost Use test point (1, 1), we have
$[17 000( 20) 48 000(10)] x+y=1+1=2≱4
∴ Region I, that does not contain (1, 1), is the answer.
$820 000
6. Answer: D
(d) Since the route to the quake-stricken region might be ∵ The shaded region is the common region of the lower
blocked, the best way to avoid delay would be to use half-plane of y = 3, the upper half-plane of x + y = 0,
helicopters. i.e. y = x and the upper half-plane of x – y + 3 = 0,
Therefore, 50 helicopters and no transport-troops i.e. y = x + 3.
should be used. ∴ The system of the inequalities is
The cost = $17 000 × 50 = $850 000
y 3
y
y
x
x 3
,
(or any other reasonable answers) i.e.
y
y
3
x
.
x y 3
150
4 Linear Programming
151
NSS Mathematics in Action (2nd Edition) 5A Full Solutions
2. (a) The shaded region is the common region of the left 3. Answer: C
half-plane of x = 7, the lower half-plane of a
4 The slope of ax + by = 0 is .
4 x 3 y 0 , i.e. y x and the upper half- b
3 ∵ a, b > 0
4 40 ∴ The slope of the line ax + by = 0 is negative, and the
plane of 4 x 3 y 40 0 , i.e. y x . line slopes downwards.
3 3 Choose (0, 1) as the test point.
∴ The system of inequalities is When x = 0 and y = 1,
x 7
4 x 3 y
4 x 3 y
0
40 0
. ax + by = a(0) + b(1) = b > 0
∴ The half-plane containing the test point (0, 1)
(b) (i) The constraints are: represents the solutions of the inequality.
∴ The answer is C.
20 x 140
4. Answer: A
20 x 15 y
20 x 15 y 200
x an d y are non-neg ative integers.
After simplification, we have: The shaded region is the common region of the lower half
plane of x + y = 2, i.e. y 2 x , the lower half-plane
x
7
4 x 3 y
0
4 x 3 y 40 0
of
x and
y are n on-negative integers.
y = x and the upper half-plane of y = 0.
Let the total cost be $C, ∴ The system of inequalities is
then C = 5000x + 4000y. y x 2
y x
,
5000
y 0
Slope of 5000x + 4000y = 0 is , i.e.
x y 2
i.e.
y x
.
4000 y
0
5 5. Answer: C
4 x 0
4 ∵ The shaded region of 5 y 0
is the
4 common region of the right half-plane of x = 4, the left
Slope of 4 x 3 y 40 0 is half-plane of x = 0, the upper half-plane of y =
3
5 and the lower half-plane of y = 0.
∵ Slope of 5000x + 4000y = 0 is less negative
∴ Regions II, IV and VI may be the solution.
than that of 4 x 3 y 40 0 .
1
∴ 5000x + 4000y = 0 is less steeper than ∵ x 2 y 0 , i.e. y x
4 x 3 y 40 0 . 2
Therefore, refer to the graph given in (a), 1
C attains its minimum at point A. ∴ The lower half-plane of y x , i.e.
2
x 2 y 0 is the solution of the inequality
x 2y 0 .
∴ Regions IV and VI represent the solution of
x 2 y 0
4
5
x
y
0
0
.
6. Answer: D
The point (x, y) lying outside R does not satisfy one of the
inequalities in the system
0 x 5
By substituting x = 7 into 4 x 3 y 40 0 .
y 0
x 2 y 15
2 x y 10
, When x = 4 and y = 6,
we have x 2 y 4 2(6) 16 15 ,
4(7) 3 y 40 0
which does not satisfy the inequality x 2 y 15 .
y4 ∴ (4, 6) lies outside R.
∴ The coordinates of A are (7, 4).
Minimum cost = $[5000(7) + 4000(4)] = $51 000,
which is already over $50 000.
Hence, the manager’s claim is correct.
152
4 Linear Programming
(1) × 2 (2):
4 y 12 ( y 8) 0
5 y 20 0
y4
By substituting y = 4 into (1), we have From the graph, P attains its maximum at (52, 54).
∴ The supermarket should prepare 52 packs A and
x 2( 4) 6 0 54 packs B to obtain the maximum daily profit.
x2
∴ One of the vertices is (2, 4). (b) Decrease in the maximum daily profit
Check the values of 3 x 2 y 4 at the four vertices.
At (0, 0), 3(0) 2(0) 4 4 Original max. daily profit new max. daily profit
At (4, 0), 3( 4) 2(0) 4 8 $[15(52) 25(54)] $[15(52) 24(54)]
$54
At (0, 3), 3(0) 2( 4) 4 4
At (2, 4), 3( 2) 2( 4) 4 10
4. When D increases to 10, P becomes 15x + 15y. By
∴ Maximum value = 10 translating the line 15x + 15y = 0, we can check that
Minimum value = 4 P attains its maximum at two points (52, 54) and (53, 53).
∴ The answer is C. Further increasing the value of D, P will attain its
maximum at (53, 53) rather that (52, 54).
Investigation Corner (p. 4.73) Hence, the required value is 10.
1. The constraints are:
5 x 10 y 800
x y
x and y are non-negative integers.
153
NSS Mathematics in Action (2nd Edition) 5A Full Solutions
154