Systems of Equations

Systems of Linear Inequalities: Graph, Solve and Check

To solve a system of inequalities, graph every inequality on the same plane and keep the region where all the shading overlaps: each point (x,y)(x, y) in that overlap makes every inequality true at once. The answer is usually a whole region, and its corners come from solving the boundary lines as ordinary equations.

{y≥m1x+b1y<m2x+b2\begin{cases} y \ge m_1x + b_1 \\\\ y < m_2x + b_2 \end{cases}

The graphing is routine. Points are lost on three details: solid versus dashed lines, a sign that should have flipped after dividing by a negative, and corner points that look included but are not. Each has a clean fix below.

What is the solution to a system of inequalities?

An inequality such as y>2x−1y > 2x - 1 describes a half-plane: everything strictly above the line y=2x−1y = 2x - 1. A system joins several of these with an implicit “and,” so the solution is the intersection of the half-planes. One idea explains most of what follows: an intersection of straight-edged regions can never have a dent or a curve. That is why solution regions are wedges, strips or polygons, and why the best value in an optimization problem always sits at a corner.

The boundary lines play a different role than they do in a system of equations. When you are solving systems by graphing, the crossing point of the lines is the answer. Here the lines are only the edges of the answer.

System of equations System of inequalities
Typical answer One point (x,y)(x, y) A region of infinitely many points
Role of the lines They are the solution set They are the edges of the region
Crossing point The answer A corner that may or may not be included

Because the answer is a region, it is described by the inequalities themselves or by a shaded graph. Individual solutions, like (2,1)(2, 1), are just sample points you can name and test.

Quick check

Is (2,1)(2, 1) a solution of y≥x−3y \ge x - 3 and y<4−xy < 4 - x?

How do you solve a system of linear inequalities by graphing?

The method has four moves:

  1. Rewrite each inequality so one variable is alone, usually yy.
  2. Draw each boundary line: solid for ≤\le and ≥\ge, dashed for << and >>.
  3. Decide which side to shade, using a test point or the sign.
  4. Keep only the overlap.

When yy is alone, the sign does the shading for you: y>y > or y≥y \ge shades above, y<y < or y≤y \le shades below. Writing lines in slope-intercept form also makes them quick to draw, since you plot the intercept and climb by the slope.

Example 1. Solve y≥2x−3y \ge 2x - 3 and y<−x+3y < -x + 3.

The first boundary, y=2x−3y = 2x - 3, has slope 22 and yy-intercept −3-3. It is solid. The second, y=−x+3y = -x + 3, has slope −1-1 and yy-intercept 33. It is dashed. Test the origin in each:

0≥2(0)−3  ⇒  0≥−3 (true, shade above)0 \ge 2(0) - 3 \;\Rightarrow\; 0 \ge -3 \text{ (true, shade above)}

0<−0+3  ⇒  0<3 (true, shade below)0 < -0 + 3 \;\Rightarrow\; 0 < 3 \text{ (true, shade below)}

The overlap is a wedge opening to the left. The lines cross where 2x−3=−x+32x - 3 = -x + 3, so 3x=63x = 6, x=2x = 2, and y=1y = 1. The crossing (2,1)(2, 1) is not part of the solution, because the dashed line demands 1<11 < 1, which is false. A point like (0,−2)(0, -2) confirms the region: −2≥−3-2 \ge -3 and −2<3-2 < 3 both hold.

A tidy habit: shade the half-plane you do not want for each inequality, so the answer is the clean, unshaded region. It is far easier to see than a pile of overlapping colors.

Solid or dashed boundary lines: what counts as a solution?

Graph of y ≥ 2x − 3 and y < −x + 3 with open corner at (2, 1)
The solid line passes through (2, 1), but the dashed line demands 1 < 1, so the corner is excluded.

The rule is simple. A solid line means points on the line satisfy the inequality, which happens with ≤\le and ≥\ge. A dashed line means they do not, which happens with << and >>. The line style comes from the sign alone, never from how the region looks.

The costly mistake appears at corners. A corner is shared by two boundary lines, and it belongs to the solution only if both are solid. If either one is dashed, the corner is excluded, even when the other line is solid. In Example 1, the solid line passes through (2,1)(2, 1), but the dashed line removes it.

Corner rule

A corner point is in the solution only if every boundary line through it is solid. One dashed line is enough to exclude it.

Vertical and horizontal boundaries need the same care. For x>3x > 3, the boundary is the vertical line x=3x = 3, dashed, and the shading goes to the right, not “above.” For y≤−1y \le -1, the line is horizontal and solid, and you shade downward. Many lost points come from treating xx-inequalities as if they were yy-inequalities.

How do you graph inequalities with negatives and fractions?

Rewriting an inequality to isolate yy is where signs go wrong. The one rule: multiplying or dividing both sides by a negative number reverses the inequality. Adding, subtracting, or multiplying by a positive never does. The reason is that negation reflects the number line, so “larger” becomes “smaller.”

Example 2. Graph 4x−2y>24x - 2y > 2 and x2+y3≤2\dfrac{x}{2} + \dfrac{y}{3} \le 2.

For the first, subtract 4x4x, then divide by −2-2 and flip:

−2y>−4x+2  ⇒  y<2x−1-2y > -4x + 2 \;\Rightarrow\; y < 2x - 1

For the second, clear the fractions by multiplying by the positive common denominator 66, which keeps the sign:

3x+2y≤12  ⇒  y≤−32x+63x + 2y \le 12 \;\Rightarrow\; y \le -\tfrac{3}{2}x + 6

The first line is dashed and the second is solid, and both shade below. Check the flip with the origin: 4(0)−2(0)>24(0) - 2(0) > 2 is false, and 0<2(0)−10 < 2(0) - 1 is also false, so the two forms agree. If they disagreed, a sign was dropped. The lines meet where 2x−1=−32x+62x - 1 = -\tfrac{3}{2}x + 6, so 72x=7\tfrac{7}{2}x = 7, x=2x = 2, y=3y = 3. That corner is excluded because the first line is dashed. The region is everything below both lines, opening downward forever.

If you are handed a shaded graph and must write the inequality, find the boundary equation first, perhaps from two points using point-slope form, then pick the sign by testing a point in the shaded area.

Quick check

Rewrite −3y≥6x−9-3y \ge 6x - 9 with yy alone.

How do you find the corner points of the solution region?

Graph of x ≥ 0, y ≥ 0, x + 2y ≤ 8, 3x + y ≤ 9 showing four true corners
The crossings (0, 9) and (8, 0) fail a test, so the region has corners (0, 0), (3, 0), (2, 3) and (0, 4).

Corner points (vertices) matter because they describe the region exactly and because optimization answers live there. Each corner is where two boundary lines meet, so replace each inequality sign with == and solve pairs of lines as ordinary systems. Then test each crossing in every original inequality. Only crossings that pass all tests are corners of the region.

Example 3. Find the corners of x≥0x \ge 0, y≥0y \ge 0, x+2y≤8x + 2y \le 8, 3x+y≤93x + y \le 9.

Four lines produce up to six crossings. Solve each pair:

  • x=0x = 0 with y=0y = 0 gives (0,0)(0, 0), which passes.
  • x=0x = 0 with x+2y=8x + 2y = 8 gives (0,4)(0, 4), which passes.
  • x=0x = 0 with 3x+y=93x + y = 9 gives (0,9)(0, 9), which fails since 0+18>80 + 18 > 8.
  • y=0y = 0 with x+2y=8x + 2y = 8 gives (8,0)(8, 0), which fails since 24>924 > 9.
  • y=0y = 0 with 3x+y=93x + y = 9 gives (3,0)(3, 0), which passes.

The last pair needs a real solve. Using substitution, write y=9−3xy = 9 - 3x and plug in:

x+2(9−3x)=8  ⇒  −5x=−10  ⇒  x=2,  y=3x + 2(9 - 3x) = 8 \;\Rightarrow\; -5x = -10 \;\Rightarrow\; x = 2,\; y = 3

Elimination gives the same answer. So does Cramer’s rule, where the 2×2 determinants are D=1−6=−5D = 1 - 6 = -5, Dx=8−18=−10D_x = 8 - 18 = -10, Dy=9−24=−15D_y = 9 - 24 = -15, so x=2x = 2 and y=3y = 3. The point (2,3)(2, 3) passes both slanted inequalities with equality. The region is the quadrilateral with corners (0,0)(0,0), (3,0)(3,0), (2,3)(2,3) and (0,4)(0,4).

Can a system of inequalities have no solution?

Yes, and the pattern is worth knowing. For y>x+2y > x + 2 and y<x−1y < x - 1, the boundaries are parallel and the shading points away from each other, so nothing overlaps. Compare this with a system of equations, where parallel lines also give no solution (see no solution vs infinitely many solutions). Parallel boundaries can also give a strip, as in −1≤y≤5-1 \le y \le 5, or just one half-plane, when both shade the same way.

Emptiness test

Two inequalities whose boundaries are not parallel always overlap in a wedge. An empty region needs parallel lines, or three or more constraints that contradict each other.

Three constraints can be empty even with no parallel lines. Take x≥1x \ge 1, y≥1y \ge 1 and x+y≤1x + y \le 1. The first two force x+y≥2x + y \ge 2, which contradicts the third. Algebra catches this faster than a graph: add the lower bounds and compare.

An edge case: y≥xy \ge x together with y≤xy \le x leaves only the line y=xy = x. The region collapses to a line, still infinitely many solutions, but no area. Changing one sign to strict, y>xy > x with y≤xy \le x, empties it completely. Finally, a region can be unbounded, running off the page forever, as in Example 2. Only enough opposing constraints, such as x≥0x \ge 0, y≥0y \ge 0 plus upper limits, close it into a polygon.

Systems of inequalities word problems and linear programming

Real constraints are inequalities: budgets, time limits, ingredient supplies. Translating the wording correctly is half the work:

  • “At least” and “no less than” mean ≥\ge.
  • “At most” and “no more than” mean ≤\le.
  • “Fewer than” and “more than” mean << and >>.
  • Quantities that cannot be negative add x≥0x \ge 0 and y≥0y \ge 0.

Here is Example 3 as a story. A workshop makes xx chairs and yy tables. Sanding takes 11 hour per chair and 22 per table, with 88 hours available, so x+2y≤8x + 2y \le 8. Painting takes 33 hours per chair and 11 per table, with 99 hours available, so 3x+y≤93x + y \le 9. With profit P=30x+40yP = 30x + 40y, the maximum sits at a corner. Checking the four corners from earlier gives 00, 9090, 180180 and 160160 at (0,0)(0,0), (3,0)(3,0), (2,3)(2,3) and (0,4)(0,4). The best plan is 22 chairs and 33 tables for $180. This corner-point idea is the heart of linear programming.

Try this: A snack bar sells muffins at $3 and cookies at $2. You have at most $20 and want at least 44 items. Write the system with x≥0x \ge 0 and y≥0y \ge 0, then find one point that works and one that fails.

For one answer, (4,2)(4, 2) works: 12+4=16≤2012 + 4 = 16 \le 20 and 6≥46 \ge 4. The point (8,2)(8, 2) fails the budget. When items must be whole numbers, only whole-number points inside the region count, so a fractional corner has to be replaced by nearby whole-number points that you test. With three products, corners become solutions of three-variable systems, handled with a system of three equations.

Quick check

Pens cost $2$2 and notebooks $5$5. With a budget of at most $30$30, write the budget inequality and test 55 pens and 44 notebooks.

How do you check a system of inequalities answer?

Use three test points after shading: one clearly inside the final region, one outside, and one on a boundary line. The inside point must satisfy every inequality. The outside point must fail at least one. The boundary point tests your solid versus dashed choice. If all three behave, the graph is almost certainly right.

The origin is the favorite test point, with one trap. If a boundary line passes through (0,0)(0, 0), as with y>2xy > 2x, the origin sits on the line and says nothing about which side to shade. Use (1,0)(1, 0) or (0,1)(0, 1) instead. Also test every claimed corner in all the inequalities, not only the two that created it.

Last, match the shading direction to the sign after rewriting. If you divided by a negative, the shading should be where the flipped sign says, and the origin test from earlier will confirm it. For more drills on solving the corner-point equations, work through the substitution method practice problems and the elimination method practice problems.

Practice problems

0 of 5 solved

  1. Is (4,−1)(4, -1) a solution of the system x+y≤3x + y \le 3 and 2x−y>82x - y > 8?

  2. Find the corner point where the boundary lines of y≥x−2y \ge x - 2 and y≤−2x+7y \le -2x + 7 meet.

  3. Rewrite 6x−3y<96x - 3y < 9 in the form y>…y > \ldots or y<…y < \ldots.

  4. Does the system x+y≥6x + y \ge 6, x≤2x \le 2, y≤3y \le 3 have any solution?

  5. Find the maximum of P=3x+2yP = 3x + 2y subject to x≥0x \ge 0, y≥0y \ge 0, x+y≤6x + y \le 6, x+3y≤12x + 3y \le 12.

Common questions

How do you solve a system of inequalities?

Graph each inequality on the same coordinate plane, using a solid line for ≤\le or ≥\ge and a dashed line for << or >>. Shade the correct side of each line, then keep the region where all the shading overlaps. Confirm with a test point.

What does the solution of a system of inequalities look like?

It is a region of the plane, not a single point. Every point in the region satisfies all the inequalities at once, so there are infinitely many solutions unless the region is empty or shrinks to a line or point.

When is the boundary line dashed in a system of inequalities?

The line is dashed when the inequality is strict (<< or >>), because points on the line do not make it true. It is solid for ≤\le and ≥\ge. A corner point is included only if every line through it is solid.

Can a system of inequalities have no solution?

Yes. The shaded regions can fail to overlap, which happens with parallel boundaries that shade away from each other, or with three or more inequalities that contradict each other. Two inequalities with non-parallel boundaries always overlap.

How do you find the vertices of a system of inequalities?

Change each inequality to an equation, solve pairs of boundary lines as a system, then test each crossing point in every original inequality. The crossings that pass all tests are the vertices.

When do you flip the inequality sign?

Flip it whenever you multiply or divide both sides by a negative number. Adding, subtracting, or multiplying by a positive number never changes the direction.

Up next