# Systems of Linear Equations

## Solve Systems of Linear Equations with Two Variables


### Determine Whether an Ordered Pair is a Solution of a System of Equations

In Solving Linear Equations, we learned how to solve linear equations with one variable. Now we will work with two or more linear equations grouped together, which is known as a system of linear equations.
In this section, we will focus our work on systems of two linear equations in two unknowns. We will solve larger systems of equations later in this chapter.
An example of a system of two linear equations is shown below. We use a brace to show the two equations are grouped together to form a system of equations.
A linear equation in two variables, such as  has an infinite number of solutions. Its graph is a line. Remember, every point on the line is a solution to the equation and every solution to the equation is a point on the line.
To solve a system of two linear equations, we want to find the values of the variables that are solutions to both equations. In other words, we are looking for the ordered pairs  that make both equations true. These are called the solutions of a system of equations.
To determine if an ordered pair is a solution to a system of two equations, we substitute the values of the variables into each equation. If the ordered pair makes both equations true, it is a solution to the system.

### Solve a System of Linear Equations by Graphing

In this section, we will use three methods to solve a system of linear equations. The first method we’ll use is graphing.
The graph of a linear equation is a line. Each point on the line is a solution to the equation. For a system of two equations, we will graph two lines. Then we can see all the points that are solutions to each equation. And, by finding what the lines have in common, we’ll find the solution to the system.
Most linear equations in one variable have one solution, but we saw that some equations, called contradictions, have no solutions and for other equations, called identities, all numbers are solutions.
Similarly, when we solve a system of two linear equations represented by a graph of two lines in the same plane, there are three possible cases, as shown.
Each time we demonstrate a new method, we will use it on the same system of linear equations. At the end of the section you’ll decide which method was the most convenient way to solve this system.
The steps to use to solve a system of linear equations by graphing are shown here.
In the next example, we’ll first re-write the equations into slope–intercept form as this will make it easy for us to quickly graph the lines.
In all the systems of linear equations so far, the lines intersected and the solution was one point. In the next two examples, we’ll look at a system of equations that has no solution and at a system of equations that has an infinite number of solutions.
Sometimes the equations in a system represent the same line. Since every point on the line makes both equations true, there are infinitely many ordered pairs that make both equations true. There are infinitely many solutions to the system.
When we graphed the second line in the last example, we drew it right over the first line. We say the two lines are coincident. Coincident lines have the same slope and same y-intercept.
The systems of equations in  and  each had two intersecting lines. Each system had one solution.
In , the equations gave coincident lines, and so the system had infinitely many solutions.
The systems in those three examples had at least one solution. A system of equations that has at least one solution is called a consistent system.
A system with parallel lines, like , has no solution. We call a system of equations like this inconsistent. It has no solution.
We also categorize the equations in a system of equations by calling the equations independent or dependent. If two equations are independent, they each have their own set of solutions. Intersecting lines and parallel lines are independent.
If two equations are dependent, all the solutions of one equation are also solutions of the other equation. When we graph two dependent equations, we get coincident lines.
Let’s sum this up by looking at the graphs of the three types of systems. See below and .
Solving systems of linear equations by graphing is a good way to visualize the types of solutions that may result. However, there are many cases where solving a system by graphing is inconvenient or imprecise. If the graphs extend beyond the small grid with x and y both between  and 10, graphing the lines may be cumbersome. And if the solutions to the system are not integers, it can be hard to read their values precisely from a graph.

### Solve a System of Equations by Substitution

We will now solve systems of linear equations by the substitution method.
We will use the same system we used first for graphing.
We will first solve one of the equations for either x or y. We can choose either equation and solve for either variable—but we’ll try to make a choice that will keep the work easy.
Then we substitute that expression into the other equation. The result is an equation with just one variable—and we know how to solve those!
After we find the value of one variable, we will substitute that value into one of the original equations and solve for the other variable. Finally, we check our solution and make sure it makes both equations true.
Be very careful with the signs in the next example.

### Solve a System of Equations by Elimination

We have solved systems of linear equations by graphing and by substitution. Graphing works well when the variable coefficients are small and the solution has integer values. Substitution works well when we can easily solve one equation for one of the variables and not have too many fractions in the resulting expression.
The third method of solving systems of linear equations is called the Elimination Method. When we solved a system by substitution, we started with two equations and two variables and reduced it to one equation with one variable. This is what we’ll do with the elimination method, too, but we’ll have a different way to get there.
The Elimination Method is based on the Addition Property of Equality. The Addition Property of Equality says that when you add the same quantity to both sides of an equation, you still have equality. We will extend the Addition Property of Equality to say that when you add equal quantities to both sides of an equation, the results are equal.
For any expressions a, b, c, and d.
To solve a system of equations by elimination, we start with both equations in standard form. Then we decide which variable will be easiest to eliminate. How do we decide? We want to have the coefficients of one variable be opposites, so that we can add the equations together and eliminate that variable.
Notice how that works when we add these two equations together:
The y’s add to zero and we have one equation with one variable.
Let’s try another one:
This time we don’t see a variable that can be immediately eliminated if we add the equations.
But if we multiply the first equation by  we will make the coefficients of x opposites. We must multiply every term on both sides of the equation by 
Then rewrite the system of equations.
Now we see that the coefficients of the x terms are opposites, so x will be eliminated when we add these two equations.
Once we get an equation with just one variable, we solve it. Then we substitute that value into one of the original equations to solve for the remaining variable. And, as always, we check our answer to make sure it is a solution to both of the original equations.
Now we’ll see how to use elimination to solve the same system of equations we solved by graphing and by substitution.
The steps are listed here for easy reference.
Now we’ll do an example where we need to multiply both equations by constants in order to make the coefficients of one variable opposites.
When the system of equations contains fractions, we will first clear the fractions by multiplying each equation by the LCD of all the fractions in the equation.
When we solved the system by graphing, we saw that not all systems of linear equations have a single ordered pair as a solution. When the two equations were really the same line, there were infinitely many solutions. We called that a consistent system. When the two equations described parallel lines, there was no solution. We called that an inconsistent system.
The same is true using substitution or elimination. If the equation at the end of substitution or elimination is a true statement, we have a consistent but dependent system and the system of equations has infinitely many solutions. If the equation at the end of substitution or elimination is a false statement, we have an inconsistent system and the system of equations has no solution.

### Choose the Most Convenient Method to Solve a System of Linear Equations

When you solve a system of linear equations in in an application, you will not be told which method to use. You will need to make that decision yourself. So you’ll want to choose the method that is easiest to do and minimizes your chance of making mistakes.

### Key Concepts

1. How to solve a system of linear equations by graphing.


2. How to solve a system of equations by substitution.


3. How to solve a system of equations by elimination.



### Practice Makes Perfect

Determine Whether an Ordered Pair is a Solution of a System of Equations
In the following exercises, determine if the following points are solutions to the given system of equations.
Solve a System of Linear Equations by Graphing
In the following exercises, solve the following systems of equations by graphing.
Without graphing, determine the number of solutions and then classify the system of equations.
Solve a System of Equations by Substitution
In the following exercises, solve the systems of equations by substitution.
Solve a System of Equations by Elimination
In the following exercises, solve the systems of equations by elimination.
Choose the Most Convenient Method to Solve a System of Linear Equations
In the following exercises, decide whether it would be more convenient to solve the system of equations by substitution or elimination.

### Writing Exercises


### Self Check

After completing the exercises, use this checklist to evaluate your mastery of the objectives of this section.
If most of your checks were:
…confidently. Congratulations! You have achieved the objectives in this section. Reflect on the study skills you used so that you can continue to use them. What did you do to become confident of your ability to do these things? Be specific.
…with some help. This must be addressed quickly because topics you do not master become potholes in your road to success. In math every topic builds upon previous work. It is important to make sure you have a strong foundation before you move on. Whom can you ask for help?Your fellow classmates and instructor are good resources. Is there a place on campus where math tutors are available? Can your study skills be improved?
…no - I don’t get it! This is a warning sign and you must not ignore it. You should get help right away or you will quickly be overwhelmed. See your instructor as soon as you can to discuss your situation. Together you can come up with a plan to get you the help you need.