All revision notes topics

Graphical solution of linear programsEdexcel International A Level Maths: Revision notes

Section 1

Drawing the feasible region

With two variables, a linear program can be solved on a graph. For each constraint, draw the boundary line (replace the inequality sign with ==), then decide which side satisfies it, by testing a point such as the origin (if the line does not pass through it). Shade out (or label) the unwanted side for each inequality, so that the feasible region RR is left clear. The region where all constraints hold is bounded by the axes (from x,y≥0x,y\ge0) and the lines. The corner points of the region are its vertices. Their coordinates are found by reading the graph, or exactly by solving the two boundary equations simultaneously. For x+y=10x+y=10 and 3x+y=183x+y=18: subtracting gives 2x=82x=8, so the vertex is (4,6)(4,6). Always check that a vertex satisfies every other constraint.

Key termsfeasible regionvertexboundary line
Common mistake

Reading coordinates off the graph for a vertex and leaving it there. Solve the equations to get the exact value.

Section 2

The vertex method

An optimal solution of a linear program always occurs at a vertex of the feasible region (or along an edge between two vertices which gives the same value). So:

  1. Find the coordinates of every vertex of the feasible region.
  2. Evaluate the objective function at each vertex.
  3. Choose the largest value (to maximise) or the smallest (to minimise). Example: maximise P=5x+4yP=5x+4y with vertices (0,0)(0,0), (6,0)(6,0), (4,6)(4,6), (0,10)(0,10). The values are 00, 3030, 4444, 4040. The maximum is P=44P=44 at (4,6)(4,6). State the values of both the variables and the objective at the end.
Key termsvertex methodoptimal solution
Exam tip

Make a short table of vertex, calculation and value, so that no vertex is missed.

Section 3

The ruler (objective line) method

The objective function P=ax+byP=ax+by is a family of parallel lines, one for each value of PP. Each has gradient −ab-\frac{a}{b}. To use the ruler method:

  1. Draw one objective line, such as 5x+4y=205x+4y=20, choosing a value of PP that gives a convenient line inside the graph.
  2. Place a ruler along it and slide it parallel to the line.
  3. For maximising, move away from the origin: the optimum is the last point of the feasible region the ruler touches. For minimising, start on the origin side and move away from the origin: the optimum is the first point of the region touched.
  4. Read off the vertex, then find its coordinates exactly by solving the two boundary equations, and calculate PP. The line has a negative gradient when aa and bb are positive, so check your line slopes down to the right.
Key termsobjective lineruler methodgradient
Common mistake

Sliding the ruler perpendicular to the objective line, or choosing the wrong end of the region. For a maximum, take the point furthest from the origin.

Section 4

Minimisation problems

Minimisation problems usually have constraints of the form ≥\ge (requirements such as energy or protein) and the feasible region is on the far side of the lines from the origin. The optimum is then the point that makes the objective as small as possible: with the ruler, it is the first point of the region touched when the line moves away from the origin. Example: minimise C=4x+3yC=4x+3y subject to 2x+y≥122x+y\ge12, x+2y≥9x+2y\ge9, x+y≤10x+y\le10. The vertices are (2,8)(2,8), (5,2)(5,2), (9,0)(9,0) and (10,0)(10,0), with C=32C=32, 2626, 3636, 4040. The minimum is C=26C=26 at (5,2)(5,2). The point (5,2)(5,2) is found by solving 2x+y=122x+y=12 and x+2y=9x+2y=9.

Key termsminimiserequirement
Exam tip

Test a point in the region (such as (4,4)(4,4)) in every inequality to make sure you have shaded the correct side.

Section 5

Integer solutions

If xx and yy must be whole numbers (tables, parcels), the optimal vertex may be fractional. The solution is then the best integer point inside the feasible region. Do not just round: a rounded point may lie outside the region or not be the best. Method: find the optimal vertex, then test integer points near it, checking every constraint. Or use the ruler method: move the objective line back from the optimal vertex, parallel to itself, until it first passes through a feasible integer point; that point is the optimum. Example: maximise P=5x+4yP=5x+4y subject to 2x+3y≤142x+3y\le14 and 4x+y≤154x+y\le15. The vertex (3.1, 2.6)(3.1,\,2.6) gives P=25.9P=25.9. The point (3,3)(3,3) is infeasible (15>1415>14), and (3,2)(3,2) is feasible with P=23P=23. The other points are worse ((2,3)(2,3) gives 22, (1,4)(1,4) gives 21), so the optimum is (3,2)(3,2) with P=23P=23. The integer optimum is never better than the non-integer optimum.

Key termsinteger solution
Common mistake

Rounding the optimal vertex to the nearest integers without checking that the result satisfies all constraints.

That's the notes covered.

Carry on to the next subtopic.

Exam questions on Graphical solution of linear programs

  1. A furniture company makes xx desks and yy chairs each day. The company wants to maximise its daily profit P=5x+4yP=5x+4y (in hundreds of pounds), subject to the constraints x+y≤10x+y\le10 (worker hours), 3x+y≤183x+y\le18 (workshop space), x≥0x\ge0 and y≥0y\ge0.
    The feasible region has vertices (0,0)(0,0), (6,0)(6,0), (4,6)(4,6) and (0,10)(0,10). Use the vertex method to find the maximum value of PP and the values of xx and yy at which it occurs.2 marks
  2. A school canteen mixes xx kg of ingredient X and yy kg of ingredient Y in each batch. The cost is C=4x+3yC=4x+3y pence, which is to be minimised, subject to 2x+y≥122x+y\ge12 (energy), x+2y≥9x+2y\ge9 (protein), x+y≤10x+y\le10 (tank capacity), x≥0x\ge0 and y≥0y\ge0.
    Show that the lines 2x+y=122x+y=12 and x+2y=9x+2y=9 meet at (5,2)(5,2), and find the value of CC there.2 marks
  3. A potter makes xx mugs and yy bowls each day. The clay available gives 2x+3y≤142x+3y\le14 and the kiln time available gives 4x+y≤154x+y\le15, with x≥0x\ge0 and y≥0y\ge0. The profit is P=5x+4yP=5x+4y pounds, which is to be maximised.
    Show that the lines 2x+3y=142x+3y=14 and 4x+y=154x+y=15 meet at (3.1, 2.6)(3.1,\,2.6), and find the value of PP there.3 marks
See the full worksheet

Written by the Exaim team, led by Shaun Daswani (Head of Upper Secondary, Improve ME Institute; MSc Financial Mathematics, Imperial College London; BSc, UCL) and Jason Daswani (operational lead, Improve ME Institute; LSE).