PYQ Vault

HSC Maths · Linear Programming

Linear Inequations in Two Variables

Showing the solution set of a linear inequation, or of a system of them, as a region of the XY plane: draw the boundary line, use a test point to pick the side, and take the region common to all of them.

Why this matters

57 questions, one of them from a board paper: in 2023 the board asked for four inequations to be solved graphically and the corner points of the feasible region written down, a problem taken straight from Exercise 7.2. The textbook rows are Exercises 7.1 and 7.2, their solved examples and Parts I and II of the Miscellaneous Exercise: single inequations, pairs of inequations, and systems with x ≥ 0 and y ≥ 0, some of them built from word problems. Every later page draws its feasible region this way.

Concept 1 of 4: Lines parallel to the axes: x ≤ h and y ≥ k

An inequation with only xx in it, or only yy, has a boundary that is a vertical or a horizontal line. Simplify it first to x≤hx \le h or y≥ky \ge k, and the answer is simply everything on one side of that line.

Definition

  • Simplify to one of x≤hx \le h, x≥hx \ge h, y≤ky \le k, y≥ky \ge k. Dividing both sides by a negative number reverses the sign.
  • x=hx = h is a line parallel to the Y-axis; y=ky = k is a line parallel to the X-axis.
  • x≤hx \le h is the region on and to the left of x=hx = h; x≥hx \ge h is on and to the right.
  • y≤ky \le k is the region on and below y=ky = k; y≥ky \ge k is on and above.
  • x≥0x \ge 0 is the Y-axis and everything to its right; y≥0y \ge 0 is the X-axis and everything above it. Together, x≥0x \ge 0 and y≥0y \ge 0 give the first quadrant.
  • With ≤\le or ≥\ge, the boundary line belongs to the solution set.

Half planes of lines parallel to the axes

x≤h: on and left of x=hy≥k: on and above y=kx \le h:\ \text{on and left of } x = h \qquad y \ge k:\ \text{on and above } y = k
  • hhthe point where the vertical line x = h cuts the X-axis
  • kkthe point where the horizontal line y = k cuts the Y-axis

Worked example

Show the solution set of 3x−12≤03x - 12 \le 0 graphically.
Practise this conceptself-check · 3 quick reps

The same idea in a textbook question:

Balbharati textbook · 7.1 Exercise 7.1 Q.2 iv)Easy

Example 1 · Linear Programming · Linear Inequations in Two Variables

Solve graphically:
x≥0x \ge 0 and y≤0y \le 0

Not reversing the sign

Dividing by a negative number reverses the inequality: −2y≥−6-2y \ge -6 gives y≤3y \le 3, not y≥3y \ge 3. Check the answer with one point, such as the origin.

Shading the wrong side of a vertical line

x≥hx \ge h is on and to the RIGHT of x=hx = h, even when hh is negative. For x≥−5x \ge -5 the origin is inside the region.

Concept 2 of 4: One inequation ax + by ≤ c: the test point

The line ax+by=cax + by = c cuts the plane into two half planes. Every point on one side gives ax+by<cax + by < c, every point on the other side gives ax+by>cax + by > c. So test just one point: if it satisfies the inequation, its whole side does.

Definition

  • Step 1: change the sign to == and draw the line ax+by=cax + by = c through its two intercepts: put y=0y = 0 for the point on the X-axis, x=0x = 0 for the point on the Y-axis.
  • Step 2: test the origin. If O(0,0)O(0, 0) satisfies the inequation, the region is the origin side of the line; if not, it is the non-origin side.
  • Step 3: shade that half plane. With ≤\le or ≥\ge the line itself is part of the solution set.
  • If the line passes through the origin (c=0c = 0), the origin cannot be the test point. Take another point not on the line, such as (1,0)(1, 0) or (0,1)(0, 1).
  • The line can also be drawn from its double intercept form: dividing 3x+2y=63x + 2y = 6 by 6 gives x2+y3=1\dfrac{x}{2} + \dfrac{y}{3} = 1, so the intercepts are 2 and 3.

Intercepts and the origin test

ax+by=c: (ca,0), (0,cb);test O(0,0) in the inequationax + by = c:\ \left(\tfrac{c}{a}, 0\right),\ \left(0, \tfrac{c}{b}\right); \qquad \text{test } O(0, 0) \text{ in the inequation}
  • a,ba, bthe coefficients of x and y, not both zero
  • ccthe constant on the right-hand side

Worked example

Show the solution set of 3x+4y≥123x + 4y \ge 12 graphically.
Practise this conceptself-check · 3 quick reps

The same idea in a textbook question:

Balbharati textbook · 7.1 Exercise 7.1 Q.4 ii)Easy

Example 2 · Linear Programming · Linear Inequations in Two Variables

Solve graphically:
2x−5y≥102x - 5y \ge 10

Testing the origin on a line through it

For 3x+2y≥03x + 2y \ge 0 the origin lies on the line, and 0≥00 \ge 0 tells you nothing about the sides. Test a point off the line, such as (1,0)(1, 0).

Writing 'above' or 'below' the line

Which side looks 'above' changes with the slope of the line. Say 'origin side' or 'non-origin side', as the textbook does, and decide it by the test point.

Concept 3 of 4: Two inequations: the common region

Each inequation keeps one half plane. The solution of the pair is the part of the plane kept by both, where the two shadings overlap. The point where the two boundary lines meet is a corner of that region.

Definition

  • Draw both boundary lines from their intercepts.
  • Decide the side of each line by its own test point; one region may be the origin side and the other the non-origin side.
  • The solution set is the region common to both half planes.
  • Find where the lines meet by solving their two equations together; that point is a corner of the common region.
  • Without x≥0x \ge 0 and y≥0y \ge 0 the region can stretch into other quadrants, and it is usually unbounded.
  • The textbook sets out each line in a table: the equation, two points on it, the sign, and the side on which the region lies.

Solution set of a pair of inequations

{(x,y):a1x+b1y≤c1}∩{(x,y):a2x+b2y≥c2}\{(x, y) : a_1x + b_1y \le c_1\} \cap \{(x, y) : a_2x + b_2y \ge c_2\}

Worked example

Find graphically the common region of x+y≤5x + y \le 5 and x−y≥1x - y \ge 1.
Practise this conceptself-check · 2 quick reps

The same idea in a textbook question:

Balbharati textbook · 7.1 Exercise 7.1 Q.5 v)Moderate

Example 3 · Linear Programming · Linear Inequations in Two Variables

Solve graphically:
2x+y≥52x + y \ge 5 and x−y≤1x - y \le 1

Shading each region and stopping

The answer is the overlap. Shade or mark the common region clearly; two separate shadings do not show the solution set.

One test for both lines

Each line needs its own test. The origin can satisfy one inequation and fail the other, so it can be inside one region and outside the other.

Concept 4 of 4: Feasible solution of a system with x ≥ 0, y ≥ 0

Add x≥0x \ge 0 and y≥0y \ge 0 and the region is cut down to the first quadrant, often to a closed polygon. The board then asks you to name its corner points, and those corners are exactly what the next pages use.

Definition

  • x≥0x \ge 0 and y≥0y \ge 0 are the non-negativity constraints; they keep the region in the first quadrant.
  • A solution which satisfies all the constraints is a feasible solution. The common region of all the inequations is the feasible region.
  • Corners on the axes: an intercept is a corner only if it satisfies every other inequation.
  • Corners inside the quadrant: solve two boundary equations together, then check the point in the rest.
  • A set is convex if the segment joining any two of its points lies wholly in the set. A feasible region is always convex.
  • In a word problem, let xx and yy be the numbers of the two items, turn each limit into an inequation, add x≥0x \ge 0, y≥0y \ge 0, then draw.

Corner of the feasible region

corner=meeting point of two boundary lines that satisfies every other constraint\text{corner} = \text{meeting point of two boundary lines that satisfies every other constraint}

Worked example

Find graphically the feasible region of x+2y≤8x + 2y \le 8, 3x+y≤93x + y \le 9, x≥0x \ge 0, y≥0y \ge 0, and write its corner points.
Practise this conceptself-check · 3 quick reps

The same idea in a real exam question:

Maharashtra HSC Class 12 · 2023 · Q. 8Easy

Example 4 · Linear Programming · Linear Inequations in Two Variables

Solve the following inequations graphically and write the corner points of the feasible region: 2x+3y≤6,x+y≥2,x≥0,y≥02x + 3y \leq 6,x + y \geq 2,x \geq 0,y \geq 0

Keeping an intercept that breaks another inequation

Every corner must satisfy every inequation. With ≤\le constraints the corner on an axis is usually the nearer intercept; check the farther one before you write it down.

Leaving out x ≥ 0, y ≥ 0 in a word problem

Numbers of articles cannot be negative, so x≥0x \ge 0 and y≥0y \ge 0 are part of the answer. Without them the region is not the one the question wants.

Summary — formulas & gotchas at a glance

A revision cheat-sheet for the formulas and gotchas above. Click any concept name to jump back to its full explanation.

Formulas (4)

  • Lines parallel to the axes: x ≤ h and y ≥ k

    Half planes of lines parallel to the axes

    x≤h: on and left of x=hy≥k: on and above y=kx \le h:\ \text{on and left of } x = h \qquad y \ge k:\ \text{on and above } y = k
  • One inequation ax + by ≤ c: the test point

    Intercepts and the origin test

    ax+by=c: (ca,0), (0,cb);test O(0,0) in the inequationax + by = c:\ \left(\tfrac{c}{a}, 0\right),\ \left(0, \tfrac{c}{b}\right); \qquad \text{test } O(0, 0) \text{ in the inequation}
  • Two inequations: the common region

    Solution set of a pair of inequations

    {(x,y):a1x+b1y≤c1}∩{(x,y):a2x+b2y≥c2}\{(x, y) : a_1x + b_1y \le c_1\} \cap \{(x, y) : a_2x + b_2y \ge c_2\}
  • Feasible solution of a system with x ≥ 0, y ≥ 0

    Corner of the feasible region

    corner=meeting point of two boundary lines that satisfies every other constraint\text{corner} = \text{meeting point of two boundary lines that satisfies every other constraint}

Watch out for (8)

Test yourself on Linear Programming

10 past MH HSC 12 questions from this chapter, timed at 15 minutes and marked the way the exam marks it. You see your score and every answer the moment you finish. Free to start.