Learning Center / Algebra

Systems of equations and graphing systems of linear inequalities

How to find the solution to a system of equations three ways, then how to graph a system of inequalities: boundary lines, shading and the overlap.

2 min readUpdated 2 November 2026By Sumzo team (AI-assisted)Reviewed by Sumzo AI (owner-delegated review)

A system is two or more equations (or inequalities) that must be true at the same time. The solution to a system of equations is the point where their graphs cross. Graphing systems of linear inequalities works the same way, except the answer is a whole shaded region — every point where all the inequalities hold.

The solution to a system of equations

Worked example

Easy: elimination

Solve x+y=10x + y = 10 and x−y=4x - y = 4.

Show the working
  1. Add the equations; yy cancels.
    2x=14⇒x=72x = 14 \Rightarrow x = 7
  2. Substitute back.
    7+y=10⇒y=37 + y = 10 \Rightarrow y = 3
  3. Check in both: 7+3=107 + 3 = 10 ✓ and 7−3=47 - 3 = 4 ✓.

Answer: (7,3)(7, 3)

Checked by Sumzo’s math engine

Worked example

Medium: substitution

Solve y=2x+1y = 2x + 1 and 3x+y=113x + y = 11.

Show the working
  1. Substitute y=2x+1y = 2x + 1 into the second equation.
    3x+2x+1=113x + 2x + 1 = 11
  2. Solve.
    5x=10⇒x=2,y=55x = 10 \Rightarrow x = 2, \quad y = 5
  3. Check: 3(2)+5=113(2) + 5 = 11 ✓.

Answer: (2,5)(2, 5)

Checked by Sumzo’s math engine

Graphically, each linear equation is a line and the solution is where they cross. Parallel lines never cross — no solution; the same line twice gives infinitely many solutions.

How to graph a system of inequalities

  1. Draw each boundary line as if the inequality were “=”.
  2. Use a solid line for ≤\leq or ≥\geq (points on the line count) and a dashed line for << or >>.
  3. Pick a test point not on the line, usually (0,0)(0, 0). If it makes the inequality true, shade its side; if not, shade the other side.
  4. The solution is the region shaded by every inequality — the overlap.

Worked example

Hard: graphing systems of linear inequalities

Graph the system y≤2x+1y \leq 2x + 1 and y>−x+4y > -x + 4, and find the corner point.

Show the working
  1. Boundary 1: y=2x+1y = 2x + 1, solid. Test (0,0)(0, 0): 0≤10 \leq 1 is true, so shade the side containing the origin (below the line).
  2. Boundary 2: y=−x+4y = -x + 4, dashed. Test (0,0)(0, 0): 0>40 > 4 is false, so shade the side away from the origin (above the line).
  3. The corner of the region is where the lines meet.
    2x+1=−x+4⇒x=1,  y=32x + 1 = -x + 4 \Rightarrow x = 1, \; y = 3
  4. The corner (1,3)(1, 3) lies on the dashed line, so it is not itself a solution; the solutions are the overlap of the two shaded regions.

Answer: The region below y=2x+1y = 2x + 1 and above y=−x+4y = -x + 4, to the right of their crossing point (1,3)(1, 3).

Checked by Sumzo’s math engine

Common mistakes

  • Using a solid line for a strict inequality (<<, >>).
  • Shading the wrong side — always test a point.
  • Forgetting to flip the sign when multiplying or dividing an inequality by a negative number.
  • Giving only xx as the solution of a system — the answer is a pair (x,y)(x, y).

Frequently asked questions

How do you graph a system of inequalities?

Graph each boundary line (solid for ≤ or ≥, dashed for < or >), shade the side that makes each inequality true using a test point, and the solution is where all the shading overlaps.

What is the solution to a system of equations?

The pair of values that makes every equation true at once — on a graph, the point where the lines cross.

When does a system have no solution?

When the lines are parallel (same slope, different intercepts). For inequalities, when the shaded regions don’t overlap.

Stuck on a problem? Ask Sumzo AI