Linear Inequalities • Topic 2 of 3

Linear Inequalities in Two Variables

A linear inequality in two variables has the form $ax + by < c$ (or with $\le$, $>$, $\ge$), where $a$ and $b$ are not both zero. Whereas an inequality in one variable carves out a stretch of the number line, an inequality in two variables carves out a region of the plane — a half-plane. Its solution is a set of ordered pairs $(x, y)$, not single numbers.

The starting point is the boundary line $ax + by = c$. This line splits the whole $xy$-plane into two halves. Every point in one half makes $ax + by < c$ true; every point in the other half makes $ax + by > c$ true. The line itself is where $ax + by = c$ exactly.

$$ax + by = c \;\;\text{is the boundary; it divides the plane into two half-planes}$$

Drawing the boundary line. The quickest way to plot $ax + by = c$ is by its intercepts: put $y = 0$ to get the $x$-intercept $\left(\tfrac{c}{a}, 0\right)$, and put $x = 0$ to get the $y$-intercept $\left(0, \tfrac{c}{b}\right)$, then join the two points. Special boundaries are even easier — $x = k$ is a vertical line and $y = k$ is a horizontal line.

Two decisions turn the line into a complete picture of the solution set. The first is whether the boundary is part of the solution. For a weak inequality ($\le$ or $\ge$) the points on the line satisfy it, so we draw a solid line. For a strict inequality ($<$ or $>$) the line is excluded, so we draw a dashed (broken) line.

InequalityBoundary lineShaded region
$ax + by \le c$ or $\ge c$solid (included)half-plane on the satisfying side
$ax + by < c$ or $> c$dashed (excluded)half-plane on the satisfying side

The second decision is which half to shade. Here the test-point method is fast and foolproof: pick any point not on the line, substitute it into the inequality, and check whether the statement is true. If it is true, shade the side containing that point; if it is false, shade the other side. The origin $(0,0)$ is the easiest test point whenever the line does not pass through it.

$$\text{Test }(0,0):\quad a(0) + b(0) = 0 \;\;\text{vs}\;\; c \;\;\Longrightarrow\;\; \text{shade the origin side iff the statement holds}$$

For instance, to graph $2x + 3y \le 6$: draw the solid line $2x + 3y = 6$ through $(3, 0)$ and $(0, 2)$, then test $(0,0)$ — $2(0) + 3(0) = 0 \le 6$ is true, so shade the side that contains the origin (the side toward the lower-left). When the boundary passes through the origin (for example $y = x$), the origin gives $0 = 0$ and cannot decide; pick a clear off-line point such as $(1, 0)$ instead.

Axis inequalities appear so often they are worth memorising on sight: $x \ge 0$ is the half-plane on and to the right of the $y$-axis, $x \le 0$ is to its left, $y \ge 0$ is on and above the $x$-axis, and $y \le 0$ is below it. These four are the building blocks of the non-negativity constraints that confine many problems to the first quadrant.

Deeper Insight — why one test point settles everything: The reason a single test point decides the shading for an entire half-plane is that the quantity $ax + by$ changes monotonically as you move directly across the line. On the boundary it equals $c$; step to one side and it grows larger, step to the other and it shrinks — it can never "come back" to satisfy the opposite inequality without re-crossing the line. So every point on the same side of the line gives the same true-or-false verdict, which is precisely why checking one representative point is enough to colour all of them. Choosing the origin is simply a convenience because the arithmetic collapses to comparing $0$ with $c$; the only time you must pick a different point is when the line itself passes through $(0,0)$, in which case any off-line point such as $(1,0)$ does the job. This half-plane idea is the foundation of linear programming, where overlapping half-planes fence off the feasible region in which an optimal solution is hunted.

Shaded half-plane for two x plus three y less than or equal to six Graph of 2x + 3y ≤ 6 x y (3, 0) (0, 2) test (0,0): 0 ≤ 6 true shaded: 2x + 3y ≤ 6 solid line (≤ includes boundary) Solid versus dashed boundary lines Boundary: solid vs dashed ≤ or ≥ : SOLIDboundary included < or > : DASHEDboundary excluded
1
Worked Example
Determine whether the point $(1, 1)$ satisfies the inequality $2x + y \ge 4$.
Solution
  1. Substitute $x = 1$, $y = 1$: $2(1) + 1 = 3$.
  2. Compare with $4$: is $3 \ge 4$? No.

Answer: $(1,1)$ does not satisfy $2x + y \ge 4$; it lies in the unshaded half-plane.

2
Worked Example
Should the boundary line be solid or dashed for (a) $x + y < 5$ and (b) $3x - 2y \ge 6$?
Solution
  1. (a) The symbol is $<$ (strict), so the line is not part of the solution: draw it dashed.
  2. (b) The symbol is $\ge$ (weak), so points on the line are included: draw it solid.

Answer: (a) dashed; (b) solid.

3
Worked Example
Graph $x + y \le 4$. State the boundary's intercepts and which side to shade using the origin test.
Solution
  1. Boundary: $x + y = 4$. Intercepts: $x = 4$ (when $y = 0$) and $y = 4$ (when $x = 0$).
  2. The symbol is $\le$, so draw the line through $(4,0)$ and $(0,4)$ solid.
  3. Test the origin: $0 + 0 = 0 \le 4$ is true.
  4. Shade the side containing the origin (toward the lower-left).

Answer: Solid line through $(4,0)$ and $(0,4)$; shade the origin side.

4
Worked Example
Graph $y > 2x - 1$. Decide the line style and the region to shade.
Solution
  1. Boundary: $y = 2x - 1$, passing through $(0,-1)$ and $(1,1)$.
  2. The symbol is $>$ (strict), so draw the line dashed.
  3. Test the origin $(0,0)$: is $0 > 2(0) - 1$, i.e. $0 > -1$? Yes.
  4. Shade the side containing the origin (above the line).

Answer: Dashed line through $(0,-1)$ and $(1,1)$; shade the region above it (the origin side).

5
Worked Example
The line $y = x$ passes through the origin, so the origin cannot be the test point. Which side should be shaded for $y \le x$? Use the test point $(1, 0)$.
Solution
  1. Boundary: $y = x$, drawn solid because the symbol is $\le$.
  2. The origin lies on the line, so choose another point, $(1,0)$.
  3. Test $(1,0)$: is $0 \le 1$? Yes.
  4. Shade the side that contains $(1,0)$ — the region below the line $y = x$.

Answer: Solid line $y = x$; shade below it (the half-plane containing $(1,0)$).

6
Worked Example
Write the inequality whose graph is the half-plane below the dashed line $2x + y = 2$, not including the boundary, and verify with the origin.
Solution
  1. The boundary is dashed, so the inequality is strict ($<$ or $>$).
  2. "Below the line" together with the origin: test $(0,0)$ in $2x + y$: $2(0) + 0 = 0$, which is less than $2$.
  3. So the origin satisfies $2x + y < 2$, and the origin lies below the line — consistent.

Answer: The region is described by $2x + y < 2$.

7
Worked Example
Find the $x$- and $y$-intercepts of the boundary line for $3x + 4y \le 12$ and use them to graph the inequality.
Solution
  1. Boundary: $3x + 4y = 12$. Put $y = 0$: $3x = 12 \Rightarrow x = 4$, so the $x$-intercept is $(4, 0)$.
  2. Put $x = 0$: $4y = 12 \Rightarrow y = 3$, so the $y$-intercept is $(0, 3)$.
  3. The symbol is $\le$, so join $(4,0)$ and $(0,3)$ with a solid line.
  4. Test $(0,0)$: $0 \le 12$ is true, so shade the origin side.

Answer: Solid line through $(4,0)$ and $(0,3)$, with the origin side shaded.

8
Worked Example
Solve $x \ge 0$ graphically — describe and sketch the region it represents.
Solution
  1. The boundary is the line $x = 0$, which is the $y$-axis.
  2. The symbol is $\ge$, so the boundary is included: draw the $y$-axis solid.
  3. Test $(1, 0)$: is $1 \ge 0$? Yes, so shade the side containing $(1,0)$.

Answer: The region is the $y$-axis together with everything to its right (all points with $x \ge 0$).

9
Worked Example
Does the point $(-2, 3)$ satisfy $x - 4y < -5$? Show the check.
Solution
  1. Substitute $x = -2$, $y = 3$ into the left side: $(-2) - 4(3) = -2 - 12 = -14$.
  2. Compare with $-5$: is $-14 < -5$? Yes.

Answer: Yes, $(-2, 3)$ satisfies $x - 4y < -5$; it lies in the shaded half-plane.

10
Worked Example
Graph $2x - 3y > 6$, stating the line style and the side to shade.
Solution
  1. Boundary: $2x - 3y = 6$. Intercepts: $(3, 0)$ and $(0, -2)$.
  2. The symbol is $>$ (strict), so draw the line dashed.
  3. Test $(0,0)$: $2(0) - 3(0) = 0$; is $0 > 6$? No.
  4. Since the origin fails, shade the other side — the side not containing the origin.

Answer: Dashed line through $(3,0)$ and $(0,-2)$; shade the side away from the origin.

11
Worked Example
A factory worker is paid ₹$x$ per regular hour and ₹$y$ per overtime hour, and the firm wants the combined rate to stay under ₹$300$ via the rule $x + y < 300$. Express the constraint set realistically and check the pair $(120, 200)$.
Solution
  1. The wage rates cannot be negative, so $x \ge 0$ and $y \ge 0$ as well as $x + y < 300$.
  2. Test $(120, 200)$: $x + y = 120 + 200 = 320$.
  3. Is $320 < 300$? No.

Answer: $(120, 200)$ does not satisfy $x + y < 300$, so it lies outside the allowed region.

12
Worked Example
Write the linear inequality represented by the half-plane on and above the solid line passing through $(0, 2)$ and $(4, 0)$.
Solution
  1. Find the line: from $(0,2)$ and $(4,0)$ the intercept form is $\dfrac{x}{4} + \dfrac{y}{2} = 1$, i.e. $x + 2y = 4$.
  2. The line is solid, so the inequality is weak ($\le$ or $\ge$).
  3. "On and above" means a point above the line, say $(4, 4)$, should satisfy it: $4 + 2(4) = 12 \ge 4$. True.

Answer: The region is described by $x + 2y \ge 4$.

Key Points

  • A linear inequality in two variables describes a half-plane, split off by the boundary line $ax + by = c$.
  • Plot the boundary quickly from its intercepts $\left(\tfrac{c}{a}, 0\right)$ and $\left(0, \tfrac{c}{b}\right)$; $x = k$ is vertical and $y = k$ horizontal.
  • Draw the boundary solid for $\le$ or $\ge$ (included) and dashed for $<$ or $>$ (excluded).
  • Use a test point — usually the origin — to decide which side to shade: true means shade that side, false means shade the other.
  • If the line passes through the origin, pick another test point such as $(1,0)$.
  • Know the axis regions on sight: $x \ge 0$ is right of the $y$-axis, $y \ge 0$ is above the $x$-axis, and so on.
  • The shaded region is the complete solution set; every point in it satisfies the inequality.
Tap an option to check your answer0 / 4
Q1.The graph of a linear inequality in two variables is:
Explanation: It is the region on one side of the boundary line.
Q2.Does $(0,0)$ satisfy $2x+3y\le6$?
Explanation: $0\le6$ is true.
Q3.For the strict inequality $x+y<4$, the boundary line is:
Explanation: Strict inequalities exclude the boundary.
Q4.The inequality $y\ge x$ represents the region:
Explanation: $y\ge x$ is the region above the line.