Words you need (10 key words in this lesson)
The maths words this lesson uses, in plain English. Open this before you start if English is not your first language.
- vertex
- A corner of a shape. Also, the turning point of a parabola.A triangle has three vertices.
- linear
- Making a straight line. The letter has power 1.y = 2x plus 1 is linear.
- region
- An area on a graph or diagram.Shade the region above the line.
- inequality
- A statement that two things are not equal. It uses signs like less than or greater than.x is greater than 3 is an inequality.
- constraint
- A limit on what you can do.Constraints are limits in a problem.
- at most
- This number or less.At most 5 means 5 or less.
- parallel
- Always the same distance apart, never meeting.Railway tracks are parallel.
- edge
- A line where two faces meet. In graph theory, a line joining two points.A cube has twelve edges.
- write down
- Give the answer with little or no working.Write down the median.
- feasible
- Possible within all the limits.The feasible region shows allowed answers.
Warm-up
Three quick ones from earlier work. Try each in your head or on paper before you open the answer.
- From Year 9, Unit 7, lesson 6: solve x + y = 9 and 2x + y = 14.
Answer
x = 5 and y = 4. Subtract the first equation from the second. - From lesson 5: is the point (3, 3) in the region x + y ≤ 6 and y ≥ 1?
Answer
Yes: 3 + 3 = 6 is allowed by ≤, and 3 ≥ 1. - From Year 8, Unit 4, lesson 5: write “at most 18 boxes” as an inequality in b.
Answer
b ≤ 18.
Words used in this lesson
- constraint
- a limit written as an inequality. For example: x + y ≤ 30.
- feasible region
- all the points that satisfy every constraint. For example: the shaded polygon.
- objective function
- the quantity to be made largest or smallest. For example: profit = 8x + 5y.
- vertex
- a corner of the region, where two boundary lines meet. For example: where x = 2 meets y = 3.
- optimum
- the best value of the objective. For example: the largest profit.
- maximise
- make as large as possible. For example: the most money.
The best of what is allowed
A tailor's workshop in Kigali makes x large tote bags and y small embroidered purses each week. A tote uses 2 metres of cloth and a purse 1 metre, and there are 14 metres a week, so 2x + y ≤ 14. The workshop can finish at most 9 items a week, so x + y ≤ 9. A tote earns 3 thousand francs and a purse 2 thousand, so the takings are P = 3x + 2y thousand francs, and the tailor wants them as large as possible.
Predict first: the allowed pairs (x, y) fill a region. Where in the region do you expect the best choice to be: in the middle, along an edge, or at a corner? Write your guess and a reason. Then use the figure and slide the line to find out.
P = 3x + 2y at 12: the line 3x + 2y = 12 crosses the allowed region. Raise P and watch where the line last touches it.
Show me the steps
- P = 3x + 2y with the line at 12: it crosses the region. Raising P slides the line away from the origin.
- At 23 the line touches the region only at the corner (5, 4), and at 24 it has left. The corner values are 0, 21, 23 and 18, so the largest is 23.
- P = 2x + y: the line is parallel to the edge 2x + y = 14, so it leaves along the whole edge from (7, 0) to (5, 4). Both corners give 14.
- P = x + 5y: the line is steep, and the last corner it touches is (0, 9), where P = 45.
Four parts make a linear programming problem. The variables (x and y). The constraints, a system of linear inequalities, which together make the feasible region. The objective function, such as P = px + qy, which is to be made as large (or small) as possible. And a decision, said in the words of the problem.
Lines px + qy = P are parallel, and sliding them across the region, the last point touched is a vertex (or a whole edge when the line is parallel to it). So find every vertex, work out P at each, and choose the best. Then check that the vertex really is inside the region and answer in context, with units.
Read what Keith says
A linear programming problem has four parts. The variables. The constraints, which together make the feasible region. The objective function, to be made as large or as small as possible. And a decision, said in the words of the problem. Slide parallel lines across the region, and the last point touched is a vertex. So find every vertex, work out the objective at each, and choose the best. Then check it is inside the region, and answer with units.
Two common mistakes. Using a corner that is not in the feasible region: two boundary lines meet somewhere, but if that point breaks another constraint it is not a vertex of the region. And stopping at a number: the answer to a linear programming problem is a decision in the words of the problem, such as “bake 4 trays of bread and 6 of pastries” or “make 5 totes and 4 purses”, with its units.
The rest of this lesson is in the full course
Still to come in this lesson:
- Worked examples
- Check before you go on
- Your turn
In the full lesson every figure moves as you drag it, and every answer you type is checked, with a note on what each wrong answer means.
One payment. Nothing renews. Full refund within 30 days. Prices are in US$; Gumroad shows your local currency at checkout. Pay by card on Gumroad, then come back here and type the email you paid with: we email you a sign-in link. For a refund, reply to your Gumroad receipt or email hello@ksmaths.com.
Try a free sample lesson in every unit, and the whole Skill Tree. See this unit.
Already have a revision pack or the Years 7 to 11 plan? Move up and the unused part of what you paid comes off.
Teaching students who need extra support? Student codes for 5, 10 or 30 students.