Mathematics Topic
Linear Programming
- Read notes
- Flashcards
- Quiz
- Confident
Study focus - 3 things
- Turn a word problem into variables, a list of constraints (inequalities, including x ≥ 0 and y ≥ 0) and an objective function such as profit or cost
- Draw the constraints, leave the feasible region clear, and find its vertices from the graph and by solving pairs of boundary equations
- The greatest or least value of the objective occurs at a vertex: work out the objective at every vertex, compare, and answer in the units of the problem
Visual notes
The stall problem in Example 1. The shading marks the UNWANTED part of the plane; the clear four-sided region is where all four constraints hold. Its vertices are (0, 0), (8, 0), (6, 4) and (0, 7).
The tuck shop order in Example 2. The shading marks the UNWANTED part; the clear region has vertices (4, 6), (4, 7), (9, 7) and (9, 1).
A bakery making x trays of buns and y trays of bread, with x + y ≤ 9 and x + 3y ≤ 15. The clear region has vertices (0, 0), (9, 0), (6, 3) and (0, 5). The shading marks the UNWANTED part.
Section 1What linear programming does
Linear programming finds the best value of something, such as the greatest profit or the least cost, when there are limits on what can be done. There are two unknown quantities, called the variables, usually x and y (for example the number of baskets and the number of bowls made in a week). The limits are the constraints, each written as an inequality. The quantity to be made as large or as small as possible is the objective function, for example P = 300x + 250y for the profit in J$. The set of all points (x, y) that satisfy every constraint is the feasible region.
Section 2Writing the constraints from words
Read each sentence and turn it into an inequality. 'At most', 'no more than' and 'not exceeding' give ≤. 'At least', 'no fewer than' and 'not less than' give ≥. If each basket takes 2 hours and each bowl takes 1 hour, and 16 hours are available, the total time 2x + y must be at most 16, so 2x + y ≤ 16. Because you cannot make a negative number of items, add x ≥ 0 and y ≥ 0 unless other constraints already rule them out. Write down what x and y stand for before you start.
Section 3Drawing the feasible region
Draw each constraint as in the topic on graphing inequalities in two variables: draw the boundary line (solid, because these constraints include equality), use a test point to find the wanted side, and shade the unwanted side. After all the lines are drawn, the part that is left clear is the feasible region. Its edges lie along the boundary lines and its corners are the vertices. Choose scales that fit the largest intercepts you need, and label every line.
Section 4Finding the vertices
A vertex is a corner of the feasible region, where two boundary lines cross. On the axes the vertices are easy: x = 0 or y = 0 gives the intercept. For a vertex where two slanted lines cross, solve the two boundary equations together, for example 2x + y = 16 and x + 2y = 14: from the first, y = 16 - 2x; substituting gives x + 32 - 4x = 14, so x = 6 and y = 4. Then test the point in EVERY constraint. A crossing point that breaks one of the constraints, such as (0, 16), is not a vertex of the feasible region even though it lies on a boundary line.
Section 5Finding the best value
When the feasible region is closed in on every side, as in the problems in this topic, the greatest or least value of the objective function over it happens at a vertex. So work out the objective at every vertex and compare: choose the largest value for a maximum (profit) and the smallest for a minimum (cost). Write the answer in a full sentence with units, for example 'the greatest profit is J$2,800, when the stall makes 6 baskets and 4 bowls'. A point inside the region may be a valid choice, but it never beats the best vertex.
Section 6Whole numbers and checking
Items usually come in whole numbers, so only points whose coordinates are whole numbers, inside the region or on its border, are possible choices. When all the vertices have whole-number coordinates, the best vertex is a valid answer. When the best vertex has a decimal coordinate, read the whole-number points near it from the graph, check each against the constraints, and compare their objective values. Finally check your answer: put the best point into every constraint, and see whether it uses up the limited resources, as a corner where two limits meet does.
Examples
Suppose a craft stall makes x straw baskets and y wooden bowls each week. Each basket takes 2 hours of work and each bowl takes 1 hour, and at most 16 hours are available. Each basket uses 1 unit of material and each bowl uses 2 units, and at most 14 units are available. The profit is J$300 on each basket and J$250 on each bowl. (a) Write the constraints and the objective function. (b) Find the vertices of the feasible region. (c) Find the greatest weekly profit and the numbers of baskets and bowls that give it.
(a) Work: 2x + y ≤ 16. Material: x + 2y ≤ 14. Also x ≥ 0 and y ≥ 0. Profit: P = 300x + 250y. (b) The line 2x + y = 16 passes through (8, 0) and (0, 16); the line x + 2y = 14 passes through (14, 0) and (0, 7). The origin satisfies both inequalities (0 ≤ 16 and 0 ≤ 14), so the origin side is wanted for each. The vertices are: (0, 0); (8, 0), where 2x + y = 16 meets y = 0; (0, 7), where x + 2y = 14 meets x = 0; and the crossing of the two slanted lines. For that one, y = 16 - 2x, so x + 2(16 - 2x) = 14, which gives x + 32 - 4x = 14, so -3x = -18, x = 6 and y = 4. Check (6, 4): 2 × 6 + 4 = 16 and 6 + 2 × 4 = 14, both exactly on the limits. The points (0, 16) and (14, 0) are crossings with the axes, but each breaks the other constraint, so they are not vertices. (c) P at (0, 0) is 0. P at (8, 0) is 300 × 8 = 2400. P at (6, 4) is 300 × 6 + 250 × 4 = 1800 + 1000 = 2800. P at (0, 7) is 250 × 7 = 1750. The greatest value is J$2,800, when the stall makes 6 baskets and 4 bowls.
Suppose a school tuck shop orders x trays of patties and y trays of cheese-and-bun. A tray of patties costs J$900 and a tray of cheese-and-bun costs J$600. The shop needs at least 10 trays in total and at least 4 trays of patties, orders at most 7 trays of cheese-and-bun, and has room for at most 9 trays of patties. (a) Write the constraints and the cost function. (b) Find the vertices of the feasible region. (c) Find the least cost and the order that gives it.
(a) x + y ≥ 10, x ≥ 4, y ≤ 7 and x ≤ 9. Cost: C = 900x + 600y, to be made as small as possible. (b) Draw the lines x + y = 10, x = 4, y = 7 and x = 9; all four symbols include equality, so the lines are solid. The wanted sides are: above x + y = 10 (test (10, 10): 20 ≥ 10 is true), right of x = 4, below y = 7 and left of x = 9. The corners come from pairs of lines: x = 4 meets x + y = 10 at (4, 6); x = 4 meets y = 7 at (4, 7); x = 9 meets x + y = 10 at (9, 1); x = 9 meets y = 7 at (9, 7). Check each in all four constraints: (4, 6) gives 10 ≥ 10, 4 ≥ 4, 6 ≤ 7, 4 ≤ 9, all true; the others also pass. The line x + y = 10 meets y = 7 at (3, 7), but 3 ≥ 4 is false, so (3, 7) is not a vertex. (c) C at (4, 6) is 900 × 4 + 600 × 6 = 3600 + 3600 = 7200. C at (4, 7) is 3600 + 4200 = 7800. C at (9, 1) is 8100 + 600 = 8700. C at (9, 7) is 8100 + 4200 = 12300. The least cost is J$7,200, from 4 trays of patties and 6 trays of cheese-and-bun.
Now let's water it
Session runs notes to flashcards to quiz back-to-back.
Where this comes from
- CSEC Mathematics Syllabus (CXC 05/G/SYLL 16, revised 2016; registry URL names an Oct 2025 amendment) · Caribbean Examinations Council (CXC) · Section 7, Specific Objective 7.15 · Syllabus scope
- Siyavula Mathematics, CAPS Grades 8 to 11 (online textbooks) · Siyavula Education · Chapter 12, 12.1 Introduction (Linear programming), checked against (https://www.siyavula.com/read/za/mathematics/grade-11/linear-programming/12-linear-programming-01) · Facts
- Siyavula Mathematics, CAPS Grades 8 to 11 (online textbooks) · Siyavula Education · Chapter 12, 12.2 Optimisation (Linear programming), checked against (https://www.siyavula.com/read/za/mathematics/grade-11/linear-programming/12-linear-programming-02) · Facts