Skip to content

Systems of equations on a graph

Systems of equations on a graph

A system of equations

A system of equations is two equations in two unknowns, x\displaystyle x and y\displaystyle y, that must hold together.
For example: the sum of two numbers is 10, and their difference is 2.
We call the larger number x\displaystyle x and the smaller y\displaystyle y, and get two equations:

{x+y=10x−y=2 \begin{cases}x+y=10\\ x-y=2\end{cases}

The curly bracket shows that the equations belong together – we look for numbers that satisfy both.

The solution of a system

The solution of the system is an ordered pair (x,y)\displaystyle (x,y) that satisfies both equations. A pair is checked by substituting: put its x\displaystyle x and its y\displaystyle y into each equation.

  • (6,4)\displaystyle (6,4): 6+4=10\displaystyle {6+4}={10} and 6−4=2\displaystyle {6-4}={2} – both equations hold, so (6,4)\displaystyle (6,4) is the solution of the system.
  • (7,3)\displaystyle (7,3): 7+3=10\displaystyle {7+3}={10}, but 7−3=4\displaystyle {7-3}={4}, not 2 – the second equation does not hold, so (7,3)\displaystyle (7,3) is not a solution.
Exercise 1

Here is the system {y=2x−1x+y=5\displaystyle {\begin{cases}y=2x-1\\ x+y=5\end{cases}}
Which of the pairs is the solution of the system: (2,3)\displaystyle (2,3), (3,5)\displaystyle (3,5), (1,4)\displaystyle (1,4)?
Check each pair in both equations.

The meeting point of the lines

The solution of a system of linear equations is the point where its two lines meet.

  • Each equation of the system is a line. We isolate y\displaystyle y in each:
    • in x+y=10\displaystyle {x+y}={10} we subtract x\displaystyle x from both sides: y=−x+10\displaystyle {y}={-x+10};
    • in x−y=2\displaystyle {x-y}={2} we add y\displaystyle y to both sides and subtract 2: y=x−2\displaystyle {y}={x-2} (dashed).
  • Every point on a line satisfies its equation.
  • The meeting point is on both lines, so it satisfies both equations: (6,4)\displaystyle (6,4).
y=−x+10\displaystyle y=-x+10
y=x−2\displaystyle y=x-2
A=(6,4)\displaystyle A=(6,4)
Exercise 2

Here are the lines of the system {y=x+1y=−2x+7\displaystyle {\begin{cases}y=x+1\\ y=-2x+7\end{cases}}
Mark the point where they meet on the graph.
Write the solution of the system, and check it by substituting into both equations.

y=x+1\displaystyle y=x+1
y=−2x+7\displaystyle y=-2x+7

Parallel lines

The lines y=2x+1\displaystyle {y}={2x+1} and y=2x−3\displaystyle {y}={2x-3} (dashed) have the same slope, 2, and cross the y\displaystyle y-axis at different points – they are parallel.

  • Parallel lines never meet, so they have no point in common.
  • The system {y=2x+1y=2x−3\displaystyle {\begin{cases}y=2x+1\\ y=2x-3\end{cases}} has no solution.
  • The calculation shows it too: if 2x+1=2x−3\displaystyle {2x+1}={2x-3}, then 1=−3\displaystyle {1}={-3} – which is never true.
y=2x+1\displaystyle y=2x+1
y=2x−3\displaystyle y=2x-3
The same line twice

In the system {y=x+22y=2x+4\displaystyle {\begin{cases}y=x+2\\ 2y=2x+4\end{cases}} the second equation is the first times 2. Divide it by 2 and you get y=x+2\displaystyle {y}={x+2} – the same line (the dashed one covers it).

  • Every point on the line satisfies both equations: (0,2)\displaystyle (0,2), (1,3)\displaystyle (1,3), (−2,0)\displaystyle (-2,0) …
  • The system has infinitely many solutions.
y=x+2\displaystyle y=x+2
2y=2x+4\displaystyle 2y=2x+4
The number of solutions of a system

The number of solutions of a system of two linear equations depends on the slopes of the two lines:

The linesThe slopesNumber of solutions
meetdifferentone – the meeting point
parallelequal, different points on the y\displaystyle y-axisno solution
the same lineequal, the same point on the y\displaystyle y-axisinfinitely many
Exercise 3

Without solving: how many solutions does each system have?
Write each equation that is not yet in the form y=…\displaystyle {y}={\ldots} in that form, and compare the slopes and the points on the y\displaystyle y-axis.

a

{y=3x+1y=3x−2\displaystyle {\begin{cases}y=3x+1\\ y=3x-2\end{cases}}

b

{y=−x+4y=2x+4\displaystyle {\begin{cases}y=-x+4\\ y=2x+4\end{cases}}

c

{y=2x−62y=4x−12\displaystyle {\begin{cases}y=2x-6\\ 2y=4x-12\end{cases}}

d

{x+y=5y=x+5\displaystyle {\begin{cases}x+y=5\\ y=x+5\end{cases}}