Learn
Lesson · Lines, Functions and Graphs · Lines

Linear Inequalities in Two Variables

Replacing the equals sign in a linear equation with an inequality turns a line into a half-plane. The line itself is the boundary, solid or dashed according to the symbol, and a single test point decides which side gets shaded.

boundary: replace the inequality sign with = solid line for <= or >= dashed line for < or > test any point off the line; true means shade that side dividing by a negative reverses the inequality
Three decisions and the rule that catches people

Core ideas

What this lesson establishes

A linear equation in two unknowns had a line for its solution set. An inequality has half the plane, and finding which half is one substitution.

1

The solution set is a region

A solution is still an ordered pair that makes the statement true, exactly as in “The Coordinate Plane”. There are simply infinitely many of them filling an area rather than lying along a line, and shading is how an infinite set gets drawn.

2

The boundary is in or out, and the symbol says which

≤ and ≥ include the line, drawn solid. < and > exclude it, drawn dashed. The dashed line is not decoration: (0, −4) satisfies 4x − 2y ≥ 8 and fails 4x − 2y > 8, and the drawing has to record that difference.

3

Test a point rather than guessing a side

Substitute one point that is not on the line. A true statement means that point's side is the solution set; a false one means the other side. (0, 0) is the easiest test point whenever the boundary misses the origin, and when the boundary passes through it, any other point will do.

The material

Boundary, side, and the sign that flips

How to draw the region, why the test point is more reliable than the symbol, and the one algebraic move that reverses an inequality.

Definition · Linear inequality in two variables

A linear inequality in two variables is a statement of the form Ax + By < C, with ≤, > or ≥ equally allowed and A and B not both zero. Its solution set is the set of ordered pairs making it true, which is a half-plane, including its edge or not.

The line Ax + By = C splits the plane into two open regions. Every point in one region makes Ax + By larger than C, every point in the other makes it smaller, and points on the line make it equal. That is why one test point settles the whole region: the expression cannot change which side of C it falls on without crossing the line.

Drawing the region

  1. Replace the inequality sign with an equals sign and graph that line, by intercepts or by slope-intercept form, whichever “Graphing a Linear Equation”'s methods make easier here.
  2. Make it solid or dashed. Solid for ≤ and ≥, since those points are solutions; dashed for < and >, since they are not.
  3. Test one point off the line, preferably (0, 0). Substitute both coordinates into the original inequality.
  4. Shade the side that won. If the test point made the statement true, shade its side; if false, shade the other.

For 2x + 3y ≤ 12 the boundary meets the axes at (6, 0) and (0, 4), and it is solid. Testing (0, 0) gives 0 ≤ 12, which is true, so the shaded half-plane is the one containing the origin: the side below and to the left of the line.

Why the symbol alone cannot tell you the side

It is tempting to read > as "above" and < as "below". That works only when the inequality has already been solved for y with a positive coefficient, and it fails as soon as the coefficient of y is negative.

4x - 2y > 8 -2y > -4x + 8 y < 2x - 4 divided by -2, so the sign FLIPPED test (0, 0): 4(0) - 2(0) = 0 0 > 8 is FALSE test (3, 1): 4(3) - 2(1) = 10 10 > 8 is TRUE test (0, -10): 4(0) - 2(-10) = 20 20 > 8 is TRUE the symbol says >, the shaded region is BELOW the line y = 2x - 4

The written symbol is > and the region is below. Both facts are correct, and they are consistent because solving for y required dividing by −2, which reversed the inequality into y < 2x − 4. A test point reaches the same conclusion without needing the rearrangement at all, which is why it is the more reliable method.

Theorem · Multiplying or dividing by a negative reverses the sign

If a < b and c is negative then ac > bc. This is the single rule from “Linear Inequalities” in Linear Equations and Inequalities that survives into two variables, and it is where a correct boundary line ends up with the wrong side shaded. Adding or subtracting anything, and multiplying by a positive, leave the direction alone.

When the boundary passes through the origin

y < 3x has the origin on its boundary, so (0, 0) cannot be the test point: it satisfies the equation, not the inequality, and it lies on the edge rather than in either region. Any other point works. Testing (1, 0) gives 0 < 3, which is true, so the shaded region is the one containing (1, 0), below and to the right of the line.

Example · Four points against one inequality

For 4x − 2y > 8: (0, 0) gives 0, false. (3, 1) gives 10, true. (0, −4) gives 8, and 8 > 8 is false, so this point sits exactly on the dashed boundary and is not a solution. (1, 2) gives 0, false. Only (3, 1) is in the solution set, and (0, −4) is the one worth pausing on: it would be a solution if the symbol were ≥.

Reading a region back into an inequality

The reverse direction appears in modelling and in Systems and Matrices. Find the boundary line's equation from two of its points, choose ≤ or < from whether the line is solid or dashed, and then fix the direction by testing a point taken from inside the shaded region. The last step is the same substitution as before, run with the answer known and the symbol unknown.

Interactive

Systems of inequalities

The feasible region, its corners, and whether it is empty

System
the feasible regionan included boundarya strict boundarycorners

Method

Graphing a linear inequality

Boundary, style, test, shade. Doing the test before choosing a side keeps the symbol from misleading you.

1

Graph the boundary

Swap the inequality for an equals sign and draw that line. Intercepts are usually quickest: for 4x − 2y = 8 they are (2, 0) and (0, −4).

2

Choose solid or dashed

Solid when the symbol includes equality, dashed when it does not. Make this decision from the original inequality, before any rearranging, so a flipped sign cannot change it. Rearranging never changes whether the boundary is included.

3

Substitute a test point

Use (0, 0) unless the boundary passes through it, in which case pick any convenient point off the line. Substitute into the original inequality and evaluate to a true or false statement.

4

Shade the winning side, then confirm

True means shade the test point's side; false means shade the other. Then test one point from inside the shaded region: it must satisfy the inequality. That second substitution is the check that catches a reversed sign.

Boundaries and sides

Score 0 / 0

Two inequalities, graphed and checked

The first is straightforward. The second has a negative coefficient on y, which is where the shading goes wrong.

1. 2x + 3y <= 12 boundary 2x + 3y = 12 SOLID (<= includes it) intercepts (6, 0) and (0, 4) test (0, 0): 2(0) + 3(0) = 0 0 <= 12 TRUE shade the side containing the origin confirm (1, 1): 2 + 3 = 5 5 <= 12 TRUE (6, 4): 12 + 12 = 24 24 <= 12 FALSE, other side 2. 4x - 2y > 8 boundary 4x - 2y = 8 DASHED (> excludes it) intercepts (2, 0) and (0, -4) test (0, 0): 4(0) - 2(0) = 0 0 > 8 FALSE shade the side NOT containing the origin in slope-intercept form: -2y > -4x + 8 y < 2x - 4 divide by -2, flip the sign so the region is BELOW the line, although the symbol is > confirm (0, -10): 0 + 20 = 20 20 > 8 TRUE (3, 1): 12 - 2 = 10 10 > 8 TRUE (0, -4): 0 + 8 = 8 8 > 8 FALSE, on the edge

The second example is the whole lesson in one picture. The symbol is >, the region is below, and there is no contradiction: solving for y divided by −2 and flipped the sign to <. Anyone shading above has applied a rule that is only valid after the rearrangement has been done.

The point (0, −4) is on the boundary and gives 8 > 8, which is false. With ≥ in place of > it would be a solution and the line would be solid. One symbol changes the status of every point on the line and no other point in the plane.

Both confirmations tested a point from inside the shaded region rather than re-reading the picture. Shading is easy to draw on the wrong side of a correctly drawn line, and only a substitution catches it.

For a faded graph, use 3x − 2y ≤ 6. The boundary 3x − 2y = 6 is supplied. Decide its line style, find two points on it, test the origin in the original inequality, shade the winning side, and confirm with a second point. Finally solve for y and use the reversed sign as an independent check on the shading.

Common mistakes

1
Forgetting to flip when dividing by a negative4x − 2y > 8 becomes y < 2x − 4, not y > 2x − 4. The boundary line is identical either way, so the graph looks right and the shading is on the wrong side. Testing (0, −10), which satisfies the original, exposes it in one line.
2
Reading the side off the symbol> does not mean above. It means above only after the inequality has been solved for y and the coefficient of y was positive. For 4x − 2y > 8 the region is below the boundary. A test point never depends on the form the inequality happens to be written in.
3
Drawing a solid line for a strict inequality< and > exclude the boundary, so it is dashed. The difference is real: (0, −4) satisfies 4x − 2y ≥ 8 and fails 4x − 2y > 8, and a solid line claims every point of the boundary as a solution.

Check your understanding

✓
Finish when you can graph any linear inequality with the right line style and the right side shaded, and can justify the side by a substitution rather than by the symbol.

Given 5x − 2y ≥ 10 you should draw the solid boundary from two checked points, choose and substitute a test point, shade the correct half-plane, and confirm the result after solving for y. You should also handle a boundary through the origin by choosing a different test point, and read an inequality back off a shaded picture.

Note: That closes the line block. “What a Function Is” changes the question from which pairs solve a statement to whether each input has exactly one output. Systems and Matrices later stacks several shaded regions on one set of axes; the overlap of the shaded half-planes is the feasible set that linear programming optimises over.

Kept in this browser only, for you. Nothing is sent anywhere and nothing checks it. Carry it to another device.

Feedback and recommendations

Something to change about this lesson? Write it down, tick it off when it is handled, and export the list when you want to act on it. Kept in this browser only: nothing is sent anywhere, and nobody is notified.

No recommendations yet for this lesson.