Linear inequalities and linear programming

NUST NET Maths · Maths · Analytic geometry. The idea in plain words, the rules to remember, the mistake to avoid and a worked example, written and checked by Mega Lecture.

Test this topic freeAll NUST NET Maths topics

Grid with a shaded feasible region: a quadrilateral with corner points (0, 0), (4, 0), (3, 2) and (0, 3).
Grid with a shaded feasible region: a quadrilateral with corner points (0, 0), (4, 0), (3, 2) and (0, 3).

The idea

A linear inequality in x and y describes a half-plane: all the points on one side of a straight line. To graph it, draw the boundary line, then test one point (the origin is easiest) to see which side to keep.

Several inequalities together give the feasible region, the set of points that satisfy every constraint at once. The conditions x ≥ 0 and y ≥ 0 keep it in the first quadrant.

In linear programming you maximise or minimise an objective function z = ax + by over this region. You do not search the whole region: the best value always occurs at a corner point, so find the corners and test each one.

In simpler words

An inequality like 2x + y ≤ 6 picks out one side of a straight line. Draw the line, then test a point such as (0, 0) to see which side is allowed. When several inequalities are drawn together, the part that satisfies all of them is the feasible region. To find the biggest or smallest value of z = 3x + 2y, you only need to check the corners of that region.

An everyday comparison

The feasible region is like a fenced field. Each fence is a boundary line, and the field is the part inside all of them. The objective function is like the sun's position: the highest point of the field under the sun is always at a corner post, never in the middle of a flat side. The comparison stops when two corners tie: then the whole fence between them is 'highest', which has no counterpart in a real field.

Rules to remember

Common mistake

Counting every intersection of two boundary lines as a corner point. An intersection is a corner only if it satisfies all the constraints, so check each one before using it.

In the exam

For each inequality, write the boundary line equation, find its intercepts, draw it solid for ≤ or ≥ and broken for < or >, then test (0, 0) and write 'true, shade this side' or 'false, shade the other side'. Shade or label the feasible region. List each corner point, showing the pair of equations solved to find it, and confirm it satisfies the remaining constraints. Draw a table of corners against z, evaluate z at each, and state the maximum or minimum with the point where it occurs.

Worked example

Maximise z = 5x + 3y subject to x + y ≤ 6, x ≤ 4, x ≥ 0, y ≥ 0.

  1. Corner points: (0, 0), (4, 0), (0, 6), and x = 4 with x + y = 6 gives (4, 2).
  2. z at each: (0, 0) → 0; (4, 0) → 20; (4, 2) → 20 + 6 = 26; (0, 6) → 18.
  3. The largest value is 26.

Answer: Maximum z = 26 at (4, 2)

Ask about this

Type what you are stuck on. The helper finds the explanation, worked examples and the notes to read, free and instant.

Keep going

← Circles and conic sectionsVectors in space →Take a NUST NET Maths test