## Section5.1Solving Systems of Linear Equations by Graphing

¶We have learned how to graph a line given its equation. In this section, we will learn what a *system* of *two* linear equations is, and how to use graphing to solve such a system.

### Subsection5.1.1Solving Systems of Equations by Graphing

###### Example5.1.2

Amy and d'Marie are running at constant speeds in parallel lanes on a track. Amy starts out ahead of d'Marie, but d'Marie is running faster. We want to determine when d'Marie will catch up with Amy. Let's start by looking at the graph of each runner's distance over time:

Each of the two lines in Figure 5.1.3 has an equation, as discussed in Chapter 4. The line representing Amy appears to have \(y\)-intercept \((0,4)\) and slope \(\frac{4}{3}\text{,}\) so its equation is \(y=\frac{4}{3}t+4\text{.}\) The line representing d'Marie appears to have \(y\)-intercept \((0,0)\) and slope \(2\text{,}\) so its equation is \(y=2t\text{.}\) When these two equations are together as a package, we have what is called a system of linear equations:

The large left brace indicates that this is a collection of two distinct equations, not one equation that was somehow algebraically manipulated into an equivalent equation.

As we can see in Figure 5.1.3, the graphs of the two equations cross at the point \((6,12)\text{.}\) We refer to the point \((6,12)\) as the solution to this system of linear equations. To denote the solution set, we write \(\{(6,12)\}\text{.}\) But it's much more valuable to interpret these numbers in context whenever possible: it took \(6\) seconds for the two runners to meet up, and when they met they were \(12\) meters up the track.

###### Remark5.1.4

In Example 5.1.2, we stated that the solution was the point \((6,12)\text{.}\) It makes sense to write this as an ordered pair when we're given a graph. In some cases when we have no graph, particularly when our variables are not \(x\) and \(y\text{,}\) it might not be clear which variable “comes first” and we won't be able to write an ordered pair. Nevertheless, given the context we can write meaningful summary statements.

###### Example5.1.5

Determine the solution to the system of equations graphed in Figure 5.1.6.

The two lines intersect where \(x=-3\) and \(y=-1\text{,}\) so the solution is the point \((-3,-1)\text{.}\) We write the solution set as \(\{(-3,-1)\}\text{.}\)

###### Checkpoint5.1.7

Now let's look at an example where *we* need to make a graph to find the solution.

###### Example5.1.8

Solve the following system of equations by graphing:

Notice that each of these equations is written in slope-intercept form. The first equation, \(y=\frac{1}{2}x+4\text{,}\) is a linear equation with a slope of \(\frac{1}{2}\) and a \(y\)-intercept of \((0,4)\text{.}\) The second equation, \(y=-x-5\text{,}\) is a linear equation with a slope of \(-1\) and a \(y\)-intercept of \((0,-5)\text{.}\) We'll use this information to graph both lines:

The two lines intersect where \(x=-6\) and \(y=1\text{,}\) so the solution of the system of equations is the point \((-6,1)\text{.}\) We write the solution set as \(\{(-6,1)\}\text{.}\)

###### Example5.1.10

Solve the following system of equations by graphing:

Since both line equations are given in standard form, we'll graph each one by finding the intercepts. Recall that to find the \(x\)-intercept of each equation, replace \(y\) with \(0\) and solve for \(x\text{.}\) Similarly, to find the \(y\)-intercept of each equation, replace \(x\) with \(0\) and solve for \(y\text{.}\)

For our first linear equation, we have:

So the \(x\)-intercept is \((-12,0)\) and the \(y\)-intercept is \((0,4)\text{.}\)

For our second linear equation, we have:

So the \(x\)-intercept is \(\left(\frac{3}{2},0\right)\) and the \(y\)-intercept is \((0,1)\text{.}\)

Now we can graph each line by plotting the intercepts and connecting these points:

It appears that the solution of the system of equations is the point of intersection of those two lines, which is \((-3,3)\text{.}\) It's important to check this is correct, because when making a hand-drawn graph, it would be easy to be off by a little bit. To check, we can substitute the values of \(x\) and \(y\) from the point \((-3,3)\) into each equation:

So we have checked that \((-3,3)\) is indeed the solution for the system. We write the solution set as \(\{(-3,3)\}\text{.}\)

###### Example5.1.12

A college has a north campus and a south campus. The north campus has \(18{,}000\) students, and the south campus has \(4{,}000\) students. In the past five years, the north campus lost \(4{,}000\) students, and the south campus gained \(3{,}000\) students. If these trends continue, in how many years would the two campuses have the same number of students? Write and solve a system of equations modeling this problem.

Since all the given student counts are in the thousands, we make the decision to measure student population in thousands. So for instance, the north campus starts with a student population of \(18\) (thousand students).

The north campus lost \(4\) thousand students in \(5\) years. So it is losing students at a rate of \(\frac{4\text{ thousand}}{5\text{ year}}\text{,}\) or \(\frac{4}{5}\,\frac{\text{thousand}}{\text{year}}\text{.}\) This rate of change should be interpreted as a negative number, because the north campus is losing students over time. So we have a linear model with starting value \(18\) thousand students, and a slope of \(-\frac{4}{5}\) thousand students per year. In other words,

where \(y\) stands for the number of students in thousands, and \(t\) stands for the number of years into the future.

Similarly, the number of students at the south campus can be modeled by \(y=\frac{3}{5}t+4\text{.}\) Now we have a system of equations:

We will graph both lines using their slopes and \(y\)-intercepts.

According to the graph, the lines intersect at \((10,10)\text{.}\) So if the trends continue, both campuses will have \(10{,}000\) students \(10\) years from now.

### Subsection5.1.2Special Systems of Equations

Recall that when we solved linear equations in one variable, we had two special cases. In one special case there was no solution and in the other case, there were infinitely many solutions. When solving systems of equations in two variables, we have two similar special cases.

###### Example5.1.14Parallel Lines

Let's look at the graphs of two lines with the same slope, \(y=2x-4\) and \(y=2x+1\text{:}\)

For this system of equations, what is the solution? Since the two lines have the same slope they are parallel lines and will never intersect. This means that there is *no solution* to this system of equations. We write the solution set as \(\emptyset\text{.}\) (This is a special symbol to represent a set with nothing in it, not the number zero.)

###### Example5.1.16Coinciding Lines

Next we'll look at the other special case. Let's start with this system of equations:

To solve this system of equations, we want to graph each line. The first equation is in slope-intercept form and can be graphed easily using its slope of \(2\) and its \(y\)-intercept of \((0,-4)\text{.}\)

The second equation, \(6x-3y=12\text{,}\) can either be graphed by solving for \(y\) and using the slope-intercept form or by finding the intercepts. If we use the intercept method, we'll find that this line has an \(x\)-intercept of \((2,0)\) and a \(y\)-intercept of \((0,-4)\text{.}\) When we graph both lines we have:

Now we can see these are actually the *same* line, or coinciding lines. To determine the solution to this system, we'll note that they overlap everywhere. This means that we have an infinite number of solutions: *all* points that fall on the line. It may be enough to report that there are infinitely many solutions. In order to be more specific, all we can do is say that any ordered pair \((x,y)\) satisfying the line equation is a solution. In set-builder notation, we would write \(\{(x,y)\mid y=2x-4\}\text{.}\)

###### Remark5.1.18

In Example 5.1.16, what would have happened if we had decided to convert the second line equation into slope-intercept form?

This is the literally the same as the first equation in our system. This is a different way to show that these two equations are equivalent and represent the same line. Any time we try to solve a system where the equations are equivalent, we'll have an infinite number of solutions.

###### Warning5.1.19

Notice that for a system of equations with infinite solutions like Example 5.1.16, we didn't say that *every* point was a solution. Rather, every point that falls on that line is a solution. It would be incorrect to state this solution set as “all real numbers” or as “all ordered pairs.”

Let's summarize the three types of systems of equations and their solution sets:

- Intersecting Lines:
If two linear equations have different slopes, the system has one solution.

- Parallel Lines:
If the linear equations have the same slope with different \(y\)-intercepts, the system has no solution.

- Coinciding Lines:
If two linear equations have the same slope and the same \(y\)-intercept (in other words, they are equivalent equations), the system has infinitely many solutions. This solution set consists of all ordered pairs on that line.

### SubsectionExercises

Checking Solutions for System of Equations

###### 1

Decide whether \((4,-4)\) is a solution to the system of equations:

\(\displaystyle{\left\{\begin{aligned} {-5x+2y} \amp = {-28} \\ {-2x+5y} \amp = {-28} \\ \end{aligned}\right.}\)

The point \((4,-4)\)

is

is not

###### 2

Decide whether \((5,3)\) is a solution to the system of equations:

\(\displaystyle{\left\{\begin{aligned} {-2x-2y} \amp = {-16} \\ {-x+4y} \amp = {10} \\ \end{aligned}\right.}\)

The point \((5,3)\)

is

is not

###### 3

Decide whether \((-5,0)\) is a solution to the system of equations:

\(\displaystyle{\left\{\begin{aligned} {4x-5y} \amp = {-20} \\ y \amp = {2x+10} \\ \end{aligned}\right.}\)

The point \((-5,0)\)

is

is not

###### 4

Decide whether \((-4,-4)\) is a solution to the system of equations:

\(\displaystyle{\left\{\begin{aligned} {-2x+3y} \amp = {-6} \\ y \amp = {2x+4} \\ \end{aligned}\right.}\)

The point \((-4,-4)\)

is

is not

###### 5

Decide whether \(\left({{\frac{8}{3}}},{{\frac{7}{3}}}\right)\) is a solution to the system of equations:

\(\displaystyle{\left\{\begin{aligned} {-6x+9y} \amp = {5} \\ {-3x+3y} \amp = {-1} \\ \end{aligned}\right.}\)

The point \(\left({{\frac{8}{3}}},{{\frac{7}{3}}}\right)\)

is

is not

###### 6

Decide whether \(\left({{\frac{5}{3}}},{{\frac{4}{3}}}\right)\) is a solution to the system of equations:

\(\displaystyle{\left\{\begin{aligned} {-6x-3y} \amp = {-14} \\ {9x+6y} \amp = {23} \\ \end{aligned}\right.}\)

The point \(\left({{\frac{5}{3}}},{{\frac{4}{3}}}\right)\)

is

is not

Use a graph to solve the system of equations.

###### 7

\(\left\{\begin{aligned}[t] y\amp=-\frac{7}{2}x-8\\ y\amp=5x+9 \end{aligned}\right.\)

###### 8

\(\left\{\begin{aligned}[t] y\amp=\frac{2}{3}x+5\\ y\amp=-2x-11 \end{aligned}\right.\)

###### 9

\(\left\{\begin{aligned}[t] y\amp=12x+7\\ 3x+y\amp=-8 \end{aligned}\right.\)

###### 10

\(\left\{\begin{aligned}[t] y\amp=-3x+5\\ 4x+y\amp=8 \end{aligned}\right.\)

###### 11

\(\left\{\begin{aligned}[t] x+y\amp=0\\ 3x-y\amp=8 \end{aligned}\right.\)

###### 12

\(\left\{\begin{aligned}[t] 4x-2y\amp=4\\ x+2y\amp=6 \end{aligned}\right.\)

###### 13

\(\left\{\begin{aligned}[t] y\amp=4x-5\\ y\amp=-1 \end{aligned}\right.\)

###### 14

\(\left\{\begin{aligned}[t] 3x-4y\amp=12\\ y\amp=3 \end{aligned}\right.\)

###### 15

\(\left\{\begin{aligned}[t] x+y\amp=-1\\ x\amp=2 \end{aligned}\right.\)

###### 16

\(\left\{\begin{aligned}[t] x-2y\amp=-4\\ x\amp=-4 \end{aligned}\right.\)

###### 17

\(\left\{\begin{aligned}[t] y\amp=-\frac{4}{5}x+8\\ 4x+5y\amp=-35 \end{aligned}\right.\)

###### 18

\(\left\{\begin{aligned}[t] 2x-7y\amp=28\\ y\amp=\frac{2}{7}x-3 \end{aligned}\right.\)

###### 19

\(\left\{\begin{aligned}[t] -10x+15y\amp=60\\ 6x-9y\amp=36 \end{aligned}\right.\)

###### 20

\(\left\{\begin{aligned}[t] 6x-8y\amp=32\\ 9x-12y\amp=12 \end{aligned}\right.\)

###### 21

\(\left\{\begin{aligned}[t] y\amp=-\frac{3}{5}x+7\\ 9x+15y\amp=105 \end{aligned}\right.\)

###### 22

\(\left\{\begin{aligned}[t] 9y-12x\amp=18\\ y\amp=\frac{4}{3}x+2 \end{aligned}\right.\)

Determining the Number of Solutions in a System of Equations

###### 23

Simply by looking at this system of equations, decide the number of solutions it has.

\(\displaystyle{\left\{\begin{aligned} y \amp = {-6x+5} \\ y \amp = {-9x+4} \\ \end{aligned}\right.}\)

The system has

no solution

one solution

infinitely many solutions

###### 24

Simply by looking at this system of equations, decide the number of solutions it has.

\(\displaystyle{\left\{\begin{aligned} y \amp = {{\frac{1}{2}}x+2} \\ y \amp = {-{\frac{5}{2}}x-1} \\ \end{aligned}\right.}\)

The system has

no solution

one solution

infinitely many solutions

###### 25

Without graphing this system of equations, decide the number of solutions it has.

\(\displaystyle{\left\{\begin{aligned} y \amp = {x-1} \\ {2x-2y} \amp = 2 \\ \end{aligned}\right.}\)

The system has

no solution

one solution

infinitely many solutions

###### 26

Without graphing this system of equations, decide the number of solutions it has.

\(\displaystyle{\left\{\begin{aligned} y \amp = {-{\frac{3}{2}}x-4} \\ {6x+4y} \amp = -16 \\ \end{aligned}\right.}\)

The system has

no solution

one solution

infinitely many solutions

###### 27

Without graphing this system of equations, decide the number of solutions it has.

\(\displaystyle{\left\{\begin{aligned} {2x+4y} \amp = 16 \\ {4x+8y} \amp = 32 \\ \end{aligned}\right.}\)

The system has

no solution

one solution

infinitely many solutions

###### 28

Without graphing this system of equations, decide the number of solutions it has.

\(\displaystyle{\left\{\begin{aligned} {3x+3y} \amp = 3 \\ {4x+4y} \amp = -16 \\ \end{aligned}\right.}\)

The system has

no solution

one solution

infinitely many solutions

###### 29

Simply by looking at this system of equations, decide the number of solutions it has.

\(\displaystyle{\left\{\begin{aligned} \amp y=-5 \\ \amp y=-2 \\ \end{aligned}\right.}\)

The system has

no solution

one solution

infinitely many solutions

###### 30

Simply by looking at this system of equations, decide the number of solutions it has.

\(\displaystyle{\left\{\begin{aligned} \amp y=0 \\ \amp y=-5 \\ \end{aligned}\right.}\)

The system has

no solution

one solution

infinitely many solutions