Linear inequalities and linear programming: questions and answers

By Team Megalecture · Updated 22 Nov 2026

NUST NET (Engineering) · Maths · Analytic geometry. A short explanation of the idea, the rules to remember, the mistake to avoid, a worked example and practice questions with answers.

All NUST NET (Engineering) notes as one printable pack, PKR 299

Test this topic freeAll NUST NET (Engineering) topics

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.

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.

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)

Practice questions

Try each one, then open the answer.

1. Subject to x + y ≥ 3, 0 ≤ x ≤ 4 and 0 ≤ y ≤ 4, the minimum value of z = 2x + 5y is

  1. A
    6
  2. B
    0
  3. C
    8
  4. D
    15
Show answer

Answer: A. The corners (3, 0), (4, 0), (4, 4), (0, 4) and (0, 3) give z = 6, 8, 28, 20 and 15, so the minimum is 6 at (3, 0). The origin gives 0 but is not feasible, since 0 + 0 < 3.

2. Two papers are each marked out of 100. A student who scores x and y passes only with a total of at least 120. The pass condition is

  1. A
    x + y ≤ 120, x ≤ 100, y ≤ 100
  2. B
    x + y > 120, x ≤ 100, y ≤ 100
  3. C
    x + y ≥ 120, x ≤ 100, y ≤ 100
  4. D
    x + y ≥ 120, x ≥ 100, y ≥ 100
Show answer

Answer: C. "At least 120" means 120 or more, so x + y ≥ 120 (not the strict >). Each mark cannot be more than 100, so x ≤ 100 and y ≤ 100.

3. Subject to x + 2y ≤ 10, 3x + y ≤ 15, x ≥ 0 and y ≥ 0, the maximum value of z = 5x + 4y is

  1. A
    25
  2. B
    20
  3. C
    45
  4. D
    32
Show answer

Answer: D. The two lines meet at (4, 3). The corners (0, 0), (5, 0), (4, 3) and (0, 5) give z = 0, 25, 32 and 20, so the maximum is 32. The point (5, 5) that gives 45 is not feasible.

More questions on this topic

Keep going

← Circles and conic sectionsVectors in space →All rules on one pageStuck? Ask a question