Two-variable inequalities and linear programming problems
An inequality in x and y is a half-plane; several together make a region. In linear programming the best value of a linear expression is always at a corner of that region.
Key ideas
ax + by ≤ c is everything on one side of the line ax + by = c.
Corners: solve the pairs of boundary equations.
Best value: evaluate the target at every corner and pick the best.
Whole points: count by columns, x = 0, 1, 2, … and how many y fit in each.
Area of a triangular region: ½ × base × height from its corners.
Watch out: If only whole numbers make sense, the best whole point may be next to the corner, not on it.
Practise this step
5 questions from this step only, in 8 minutes: new numbers and
stories every time, of exactly the types worked out below. Marked at the end, with every question
worked out.
11 types of question. Try each one yourself before you open
the hint or the solution.
Example 1 · level 8
For a party Mia may spend at most 100 euros. Pizzas cost 13 euros and drink packs 7.50 euros. Mia buys 4 pizzas. How many drink packs can she buy at most?
Hint
With x pizzas and y packs: px + qy ≤ B. Put in the number of pizzas.
Worked solution
13 × 4 + 7.50y ≤ 100
7.50y ≤ 100 − 52 = 48, so y ≤ 6.4
At most 6 packs
Answer: 6 packs
Example 2 · level 8
A factory makes x tables and y chairs a week, with 4x + 5y ≤ 148 hours of work. This week it makes 3 tables. How many chairs can it make at most?
Hint
Put x into the inequality and solve for y; chairs come in whole numbers.
Worked solution
4 × 3 + 5y ≤ 148
5y ≤ 148 − 12 = 136, so y ≤ 27.2
At most 27 chairs
Answer: 27 chairs
Example 3 · level 8
What is the area of the region where x and y are not negative and 5x + 8y ≤ 46?
Hint
The region is a right triangle between the axes and the line ax + by = c.
Worked solution
The line meets the x-axis at x = 46/5 = 9.2 and the y-axis at y = 46/8 = 5.75
Right triangle with legs 9.2 and 5.75
Area: 9.2 × 5.75/2 = 26.45
Answer: 26.45
Example 4 · level 8
A bakery makes x loaves and y cakes. Flour limits it to 2x + 3y ≤ 40 and sugar to 5x + 4y ≤ 86. At the corner where both limits are reached exactly, how many loaves does it make?
How many pairs of whole numbers (x, y), neither of them negative, satisfy x + y ≤ 29?
Hint
For each x from 0 to n, count the possible y.
Worked solution
For a given x, y can be 0 to 29 − x: that is 29 − x + 1 values
30 + 29 + … + 1
= 30 × 31/2 = 465 pairs
Answer: 465
Example 6 · level 9
A workshop makes x lamps and y clocks a week. It can make at most 40 lamps and at most 36 clocks, and at most 48 items in all. A lamp earns 4 euros and a clock 7 euros. What is the most it can earn in a week?
Hint
The best value of px + qy over the region is at a corner of the region.
Worked solution
Corners: (40, 0), (40, 8), (12, 36), (0, 36)
Earnings: 160, 216, 300, 252 euros
Most: 300 euros, at (12, 36)
Answer: 300 euros
Example 7 · level 9
A festival needs at least 51 people on the gate. Supervisors cost 180 euros a day and helpers 100 euros. Each supervisor can lead at most 4 helpers. What is the lowest cost a day?
Hint
Helpers are cheaper, so use as many as the supervisors allow: x + y = N with y ≤ s·x.
Worked solution
With x supervisors: y = 51 − x ≤ 4x, so x ≥ 51/(4 + 1): the fewest is 11
Then 40 helpers (at most 44 allowed)
Cost: (180 × 11) + (100 × 40) = 5980 euros
Answer: 5980 euros
Example 8 · level 9
What is the area of the region where x ≥ 6, y ≥ 5 and x + y ≤ 15.5?
Hint
The three lines make a right triangle; find its corners.
Worked solution
Corners: (6, 5), (10.5, 5) and (6, 9.5)
Both legs are 15.5 − 6 − 5 = 4.5
Area: 4.5²/2 = 10.125
Answer: 10.125
Example 9 · level 9
How many points (x, y) with whole-number coordinates, neither negative, satisfy 5x + 2y ≤ 32?
Hint
For each x from 0 upwards, count the y from 0 to (c − ax)/b.
Worked solution
x goes from 0 to 6
Number of y for each x: 17, 14, 12, 9, 7, 4, 2
Together: 65 points
Answer: 65
Example 10 · level 10
What is the area of the region where y is not negative, y ≤ 3x and x + y ≤ 27?
Hint
It is a triangle with corners (0, 0), (c, 0) and where y = mx meets x + y = c.
Worked solution
x + 3x = 27, so x = 27/4 = 6.75 and y = 20.25
Base 27 on the x-axis, height 20.25
Area: 27 × 20.25/2 = 273.375
Answer: 273.375
Example 11 · level 10
For which smallest positive number k is kx + 10 ≥ 51 for every x from 10 to 19?
Hint
kx + b grows with x when k is positive, so the hardest place is the smallest x.
Worked solution
With k positive the smallest value is at x = 10
10k + 10 ≥ 51, so k ≥ 41/10 = 4.1
Then at x = 19 the value is 87.9, above 51 too
Answer: 4.1
Ready for the quiz?
Check yourself on this step: 5 questions, 8 minutes.