# Systems of Equations in Two Variables

## Introduction to Systems of Equations

A system of equations consists of two or more equations with two or more variables, where any solution must satisfy all of the equations in the system at the same time.### Learning Objectives

Explain what systems of equations can represent### Key Takeaways

#### Key Points

- A system of linear equations consists of two or more linear equations made up of two or more variables, such that all equations in the system are considered simultaneously.
- To find the unique solution to a system of linear equations, we must find a numerical value for each variable in the system that will satisfy all equations in the system at the same time.
- In order for a linear system to have a unique solution, there must be at least as many equations as there are variables.
- The solution to a system of linear equations in two variables is any ordered pair [latex](x, y)[/latex] that satisfies each equation independently. Graphically, solutions are points at which the lines intersect.

#### Key Terms

**system of linear equations**: A set of two or more equations made up of two or more variables that are considered simultaneously.**dependent system**: A system of linear equations in which the two equations represent the same line; there are an infinite number of solutions to a dependent system.**inconsistent system**: A system of linear equations with no common solution because they represent parallel lines, which have no point or line in common.**independent system**: A system of linear equations with exactly one solution pair [latex](x, y)[/latex].

*solution*to a system of linear equations in two variables is any ordered pair that satisfies each equation independently. In this example, the ordered pair (4, 7) is the solution to the system of linear equations. We can verify the solution by substituting the values into each equation to see if the ordered pair satisfies both equations. [latex]2(4) + 7 = 15 \\ 3(4) - 7 = 5[/latex] Both of these statements are true, so [latex](4, 7)[/latex] is indeed a solution to the system of equations. Note that a system of linear equations may contain more than two equations, and more than two variables. For example, [latex]3x + 2y - z = 12 \\ x - 2y + 4z = -2 \\ -x + 12y -z = 0 [/latex] is a system of three equations in the three variables [latex]x, y, z[/latex]. A solution to the system above is given by [latex-display]x = 1 \\ y = -2 \\ z = - 2[/latex-display] since it makes all three equations valid.

### Types of Linear Systems and Their Solutions

In general, a linear system may behave in any one of three possible ways:- The system has a single
*unique solution.* - The system has
*no solution*. - The system has
*infinitely many solutions*.

**Systems of Linear Equations:**Graphical representations of the three types of systems.

## Solving Systems Graphically

A simple way to solve a system of equations is to look for the intersecting point or points of the equations. This is the graphical method.### Learning Objectives

Solve a system of equations in two variables graphically### Key Takeaways

#### Key Points

- To solve a system of equations graphically, graph the equations and identify the points of intersection as the solutions. There can be more than one solution to a system of equations.
- A system of linear equations will have one point of intersection, or one solution.
- To graph a system of equations that are written in standard form, you must rewrite the equations in slope -intercept form.

#### Key Terms

**system of equations**: A set of equations with multiple variables which can be solved using a specific set of values.**The graphical method**: A way of visually finding a set of values that solves a system of equations.

*system of equations*(also known as simultaneous equations) is a set of equations with multiple variables, solved when the values of all variables simultaneously satisfy all of the equations. The most common ways to solve a system of equations are:

- The graphical method
- The substitution method
- The elimination method

### Solving Systems Graphically

Some systems have only one set of correct answers, while others have multiple sets that will satisfy all equations. Shown graphically, a set of equations solved with only one set of answers will have only have one point of intersection, as shown below. This point is considered to be the solution of the system of equations. In a set of linear equations (such as in the image below), there is only one solution.**System of linear equations with two variables**: This graph shows a system of equations with two variables and only one set of answers that satisfies both equations.

**System of equations with multiple answers:**This is an example of a system of equations shown graphically that has two sets of answers that will satisfy both equations in the system.

### Converting to Slope-Intercept Form

Before successfully solving a system graphically, one must understand how to graph equations written in standard form, or [latex]Ax+By=C[/latex]. You can always use a graphing calculator to represent the equations graphically, but it is useful to know how to represent such equations formulaically on your own. To do this, you need to convert the equations to slope-intercept form, or [latex]y=mx+b[/latex], where*m*= slope and

*b*= y-intercept. The best way to convert an equation to slope-intercept form is to first isolate the

*y*variable and then divide the right side by

*B*, as shown below. [latex]\begin{align} \displaystyle Ax+By&=C \\By&=-Ax+C \\y&=\frac{-Ax+C}{B} \\y&=-\frac{A}{B}x+\frac{C}{B} \end{align}[/latex] Now [latex]\displaystyle -\frac{A}{B}[/latex] is the slope

*m,*and [latex]\displaystyle \frac{C}{B}[/latex] is the y-intercept

*b*.

### Identifying Solutions on a Graph

Once you have converted the equations into slope-intercept form, you can graph the equations. To determine the solutions of the set of equations, identify the points of intersection between the graphed equations. The ordered pair that represents the intersection(s) represents the solution(s) to the system of equations.## The Substitution Method

The substitution method is a way of solving a system of equations by expressing the equations in terms of only one variable.### Learning Objectives

Solve systems of equations in two variables using substitution### Key Takeaways

#### Key Points

- A system of equations is a set of equations that can be solved using a particular set of values.
- The substitution method works by expressing one of the variables in terms of another, then substituting it back into the original equation and simplifying it.
- It is very important to check your work once you have found a set of values for the variables. Do this by substituting the values you found back into the original equations.
- The solution to the system of equations can be written as an ordered pair (
*x*,*y*).

#### Key Terms

**substitution method**: Method of solving a system of equations by putting the equation in terms of only one variable**system of equations**: A set of equations with multiple variables which can be solved using a specific set of values.

*substitution method*for solving systems of equations is a way to simplify the system of equations by expressing one variable in terms of another, thus removing one variable from an equation. When the resulting simplified equation has only one variable to work with, the equation becomes solvable. The substitution method consists of the following steps:

- In the first equation, solve for one of the variables in terms of the others.
- Substitute this expression into the remaining equations.
- Continue until you have reduced the system to a single linear equation.
- Solve this equation, and then back-substitute until the solution is found.

### Solving with the Substitution Method

Let's practice this by solving the following system of equations: [latex-display]x-y=-1[/latex-display] [latex-display]x+2y=-4[/latex-display] We begin by solving the first equation so we can express*x*in terms of

*y*. [latex]\begin{align} \displaystyle x-y&=-1 \\x&=y-1 \end{align}[/latex] Next, we will substitute our new definition of

*x*into the second equation: [latex]\displaystyle \begin{align} x+2y&=-4 \\(y-1)+2y&=-4 \end{align}[/latex] Note that now this equation only has one variable (y). We can then simplify this equation and solve for

*y*: [latex]\displaystyle \begin{align} (y-1)+2y&=-4 \\3y-1&=-4 \\3y&=-3 \\y&=-1 \end{align}[/latex] Now that we know the value of

*y*, we can use it to find the value of the other variable,

*x.*To do this, substitute the value of

*y*into the first equation and solve for

*x*. [latex]\displaystyle \begin{align} x-y&=-1 \\x-(-1)&=-1 \\x+1&=-1 \\x&=-1-1 \\x&=-2 \end{align}[/latex] Thus, the solution to the system is: [latex](-2, -1)[/latex], which is the point where the two functions graphically intersect. Check the solution by substituting the values into one of the equations. [latex]\displaystyle \begin{align} x-y&=-1 \\(-2)-(-1)&=-1 \\-2+1&=-1 \\-1&=-1 \end{align} [/latex]

## The Elimination Method

The elimination method is used to eliminate a variable in order to more simply solve for the remaining variable(s) in a system of equations.### Learning Objectives

Solve systems of equations in two variables using elimination### Key Takeaways

#### Key Points

- The steps of the elimination method are: (1) set the equations up so the variables line up, (2) modify one equation so both equations share a consistent variable that can be eliminated, (3) add the equations together to eliminate the variable, (4) solve, and (5) back-substitute to solve for the other variable.
- Always check the answer. This is done by plugging both values into one or both of the original equations.

#### Key Terms

**elimination method**: Process of solving a system of equations by eliminating one variable in order to more simply solve for the remaining variable.**system of equations**: A set of equations with multiple variables which can be solved using a specific set of values.

*elimination method*for solving systems of equations, also known as

*elimination by addition*, is a way to eliminate one of the variables in the system in order to more simply evaluate the remaining variable. Once the values for the remaining variables have been found successfully, they are substituted into the original equation in order to find the correct value for the other variable. The elimination method follows these steps:

- Rewrite the equations so the variables line up.
- Modify one equation so both equations have a variable that will cancel itself out when the equations are added together.
- Add the equations and eliminate the variable.
- Solve for the remaining variable.
- Back-substitute and solve for the other variable.

### Solving with the Elimination Method

The elimination method can be demonstrated by using a simple example: [latex]\displaystyle 4x+y=8 \\ 2y+x=9[/latex] First, line up the variables so that the equations can be easily added together in a later step: [latex]\displaystyle \begin{align} 4x+y&=8 \\x+2y&=9 \end{align}[/latex] Next, look to see if any of the variables are already set up in such a way that adding them together will cancel them out of the system. If not, multiply one equation by a number that allow the variables to cancel out. In this example, the variable*y*can be eliminated if we multiply the top equation by [latex]-2[/latex] and then add the equations together. Multiplication step: [latex]\displaystyle \begin{align} -2(4x+y&=8) \\x+2y&=9 \end{align}[/latex] Result: [latex]\displaystyle \begin{align} -8x-2y&=-16 \\x+2y&=9 \end{align}[/latex] Now add the equations to eliminate the variable

*y*. [latex]\displaystyle \begin{align} -8x+x-2y+2y&=-16+9 \\-7x&=-7 \end{align}[/latex] Finally, solve for the variable

*x*. [latex]\displaystyle \begin{align} -7x&=-7 \\x&=\frac{-7}{-7} \\x&=1 \end{align}[/latex] Then go back to one of the original equations and substitute the value we found for

*x*. It is easiest to pick the simplest equation, but either equation will work. [latex]\displaystyle \begin{align} 4x+y&=8 \\4(1)+y&=8 \\4+y&=8 \\y&=4 \end{align}[/latex] Therefore, the solution of the equation is (1,4). It is always important to check the answer by substituting both of these values in for their respective variables into one of the equations. [latex]\displaystyle \begin{align} 4x+y&=8 \\4(1)+4&=8 \\4+4&=8 \\8&=8 \end{align} [/latex]

## Inconsistent and Dependent Systems in Two Variables

For linear equations in two variables, inconsistent systems have no solution, while dependent systems have infinitely many solutions.### Learning Objectives

Explain when systems of equations in two variables are inconsistent or dependent both graphically and algebraically.### Key Takeaways

#### Key Points

- Graphically, the equations in a dependent system represent the same line. The equations in an inconsistent system represent parallel lines that never intersect.
- We can use methods for solving systems of equations to identify dependent and inconsistent systems: Dependent systems have an infinite number of solutions. Applying methods of solving systems of equations will result in a true identity, such as [latex]0 = 0[/latex]. Inconsistent systems have no solutions. Applying methods of solving systems of equations will result in a contradiction, such as the statement [latex]0 = 1[/latex].

#### Key Terms

**inconsistent system**: A system of linear equations with no common solution because they represent parallel lines, which have no point or line in common.**independent system**: A system of linear equations with exactly one solution pair.**dependent system**: A system of linear equations in which the two equations represent the same line; there are an infinite number of solutions to a dependent system.

- The system has a single unique solution.
- The system has no solution.
- The system has infinitely many solutions.

### Dependent Systems

The equations of a linear system are*independent*if none of the equations can be derived algebraically from the others. When the equations are independent, each equation contains new information about the variables, and removing any of the equations increases the size of the solution set. Systems that are not independent are by definition

*dependent*. Equations in a dependent system can be derived from one another; they describe the same line. They do not add new information about the variables, and the loss of an equation from a dependent system does not change the size of the solution set. We can apply the substitution or elimination methods for solving systems of equations to identify dependent systems. Dependent systems have an infinite number of solutions because all of the points on one line are also on the other line. After using substitution or addition, the resulting equation will be an identity, such as [latex]0 = 0[/latex]. For example, consider the two equations [latex-display]3x+2y = 6 \\ 6x+4y = 12[/latex-display] We can apply the elimination method to evaluate these. If we were to multiply the first equation by a factor of [latex]-2[/latex], we would have: [latex]\displaystyle \begin{align} -2(3x+2y&=6) \\-6x-4y&=-12 \end{align}[/latex] Adding this to the second equation would yield [latex]0=0[/latex]. Thus, the two lines are dependent. Also note that they are the same equation scaled by a factor of two; in other words, the second equation can be derived from the first. When graphed, the two equations produce identical lines, as demonstrated below. Note that there are an infinite number of solutions to a dependent system, and these solutions fall on the shared line.

### Inconsistent Systems

A linear system is consistent if it has a solution, and inconsistent otherwise. Recall that the graphical representation of an inconsistent system consists of parallel lines that have the same slope but different [latex]y[/latex]-intercepts. They will never intersect. We can also apply methods for solving systems of equations to identify inconsistent systems. When the system is inconsistent, it is possible to derive a contradiction from the equations, such as the statement [latex]0 = 1[/latex]. Consider the following two equations: [latex-display]3x+2y = 6 \\ 3x+2y = 12[/latex-display] We can apply the elimination method to attempt to solve this system. Subtracting the first equation from the second one, both variables are eliminated and we get [latex]0 = 6[/latex]. This is a contradiction, and we are able to identify that this is an inconsistent system. The graphs of these equations on the [latex]xy[/latex]-plane are a pair of parallel lines.**Inconsistent system:**The equations [latex]3x + 2y = 6[/latex] and [latex]3x + 2y = 12[/latex] are inconsistent.

## Applications of Systems of Equations

Systems of equations can be used to solve many real-life problems in which multiple constraints are used on the same variables.### Learning Objectives

Apply systems of equations in two variables to real world examples### Key Takeaways

#### Key Points

- If you have a problem that includes multiple variables, you can solve it by creating a system of equations.
- Once variables are defined, determine the relationships between them and write them as equations.

#### Key Terms

**system of equations**: A set of equations with multiple variables which can be solved using a specific set of values.

#### Systems of Equations in the Real World

A system of equations, also known as simultaneous equations, is a set of equations that have multiple variables. The answer to a system of equations is a set of values that satisfies all equations in the system, and there can be many such answers for any given system. Answers are generally written in the form of an ordered pair: [latex]\left( x,y \right)[/latex]. Approaches to solving a system of equations include substitution and elimination as well as graphical techniques. There are several practical applications of systems of equations. These are shown in detail below.### Planning an Event

A system of equations can be used to solve a planning problem where there are multiple constraints to be taken into account: Emily is hosting a major after-school party. The principal has imposed two restrictions. First, the total number of people attending (teachers and students combined) must be [latex]56[/latex]. Second, there must be one teacher for every seven students. So, how many students and how many teachers are invited to the party? First, we need to identify and name our variables. In this case, our variables are teachers and students. The number of teachers will be [latex]T[/latex], and the number of students will be [latex]S[/latex]. Now we need to set up our equations. There is a constraint limiting the total number of people in attendance to [latex]56[/latex], so: [latex-display]T+S=56[/latex-display] For every seven students, there must be one teacher, so: [latex-display]\frac{S}{7}=T[/latex-display] Now we have a system of equations that can be solved by substitution, elimination, or graphically. The solution to the system is [latex]S=49[/latex] and [latex]T=7[/latex].### Finding Unknown Quantities

This next example illustrates how systems of equations are used to find quantities. A group of [latex]75[/latex] students and teachers are in a field, picking sweet potatoes for the needy. Kasey picks three times as many sweet potatoes as Davis—and then, on the way back to the car, she picks up five more! Looking at her newly increased pile, Davis remarks, "Wow, you've got [latex]29[/latex] more potatoes than I do!" How many sweet potatoes did Kasey and Davis each pick? To solve, we first define our variables. The number of sweet potatoes that Kasey picks is [latex]K[/latex], and the number of sweet potatoes that Davis picks is [latex]D[/latex]. Now we can write equations based on the situation: [latex-display]K-5 = 3D[/latex-display] [latex-display]D+29 = K[/latex-display] From here, substitution, elimination, or graphing will reveal that [latex]K=41[/latex] and [latex]D=12[/latex]. It is important that you always check your answers. A good way to check solutions to a system of equations is to look at the functions graphically and then see where the graphs intersect. Or, you can substitute your answers into every equation and check that they result in accurate solutions.### Other Applications

There are a multitude of other applications for systems of equations, such as figuring out which landscaper provides the best deal, how much different cell phone providers charge per minute, or comparing nutritional information in recipes.## Licenses & Attributions

### CC licensed content, Shared previously

- Curation and Revision.
**Authored by:**Boundless.com.**License:**Public Domain: No Known Copyright.

### CC licensed content, Specific attribution

- System of Linear Equations.
**Provided by:**Wikipedia**License:**CC BY-SA: Attribution-ShareAlike. - Systems of Linear Equations: Two Variables.
**Provided by:**OpenStax**Located at:**https://cnx.org/contents/0bb1dacf-671b-4fe5-a5a4-e67ad9a48d54@4.**License:**CC BY: Attribution. - Systems of Linear Equations: Two Variables.
**Provided by:**OpenStax**License:**CC BY: Attribution. - Systems of equations.
**Provided by:**Wikipedia**License:**CC BY-SA: Attribution-ShareAlike. - Linear equation.
**Provided by:**Wikipedia**License:**CC BY-SA: Attribution-ShareAlike. - Boundless.
**Provided by:**Boundless Learning**License:**CC BY-SA: Attribution-ShareAlike. - Boundless.
**Provided by:**Boundless Learning**License:**CC BY-SA: Attribution-ShareAlike. - Systems of Linear Equations: Two Variables.
**Provided by:**OpenStax**Located at:**https://cnx.org/contents/0bb1dacf-671b-4fe5-a5a4-e67ad9a48d54@4.**License:**CC BY: Attribution. - Two linear equation add method.
**Provided by:**Wikibooks**Located at:**https://en.wikibooks.org/wiki/File:Two_linear_equation_add_method.PNG.**License:**CC BY-SA: Attribution-ShareAlike. - Simultaneous equations example 1.
**Provided by:**Wikipedia**Located at:**https://en.wikipedia.org/wiki/File:Simultaneous_equations_example_1.svg.**License:**CC BY-SA: Attribution-ShareAlike. - Systems of equations.
**Provided by:**Wikipedia**License:**CC BY-SA: Attribution-ShareAlike. - Boundless.
**Provided by:**Boundless Learning**License:**CC BY-SA: Attribution-ShareAlike. - Boundless.
**Provided by:**Boundless Learning**License:**CC BY-SA: Attribution-ShareAlike. - Boundless.
**Provided by:**Boundless Learning**License:**CC BY-SA: Attribution-ShareAlike. - Systems of Linear Equations: Two Variables.
**Provided by:**OpenStax**Located at:**https://cnx.org/contents/0bb1dacf-671b-4fe5-a5a4-e67ad9a48d54@4.**License:**CC BY: Attribution. - Two linear equation add method.
**Provided by:**Wikibooks**Located at:**https://en.wikibooks.org/wiki/File:Two_linear_equation_add_method.PNG.**License:**CC BY-SA: Attribution-ShareAlike. - Simultaneous equations example 1.
**Provided by:**Wikipedia**License:**CC BY-SA: Attribution-ShareAlike. - Algebra/Systems of Equations.
**Provided by:**Wikibooks**License:**CC BY-SA: Attribution-ShareAlike. - Systems of equations.
**Provided by:**Wikipedia**License:**CC BY-SA: Attribution-ShareAlike. - Boundless.
**Provided by:**Boundless Learning**License:**CC BY-SA: Attribution-ShareAlike. - Boundless.
**Provided by:**Boundless Learning**License:**CC BY-SA: Attribution-ShareAlike. - Systems of Linear Equations: Two Variables.
**Provided by:**OpenStax**Located at:**https://cnx.org/contents/0bb1dacf-671b-4fe5-a5a4-e67ad9a48d54@4.**License:**CC BY: Attribution. - Two linear equation add method.
**Provided by:**Wikibooks**Located at:**https://en.wikibooks.org/wiki/File:Two_linear_equation_add_method.PNG.**License:**CC BY-SA: Attribution-ShareAlike. - Simultaneous equations example 1.
**Provided by:**Wikipedia**License:**CC BY-SA: Attribution-ShareAlike. - Systems of Linear Equations: Two Variables..
**Provided by:**OpenStax**Located at:**https://cnx.org/contents/0bb1dacf-671b-4fe5-a5a4-e67ad9a48d54@4.**License:**CC BY: Attribution. - System of linear equations.
**Provided by:**Wikipedia**License:**CC BY-SA: Attribution-ShareAlike. - Systems of Linear Equations: Two Variables.
**Provided by:**OpenStax**Located at:**https://cnx.org/contents/0bb1dacf-671b-4fe5-a5a4-e67ad9a48d54@4.**License:**CC BY: Attribution. - Two linear equation add method.
**Provided by:**Wikibooks**License:**CC BY-SA: Attribution-ShareAlike. - Simultaneous equations example 1.
**Provided by:**Wikipedia**License:**CC BY-SA: Attribution-ShareAlike. - Parallel Lines.
**Provided by:**Wikipedia**License:**Public Domain: No Known Copyright. - Original figure by Brittany Meredith. Licensed CC BY-SA 4.0.
**Provided by:**Brittany Meredith**License:**CC BY-SA: Attribution-ShareAlike. - System of equations.
**Provided by:**Wikipedia**License:**CC BY-SA: Attribution-ShareAlike. - constraint.
**Provided by:**Wiktionary**License:**CC BY-SA: Attribution-ShareAlike. - Boundless.
**Provided by:**Boundless Learning**License:**CC BY-SA: Attribution-ShareAlike. - Systems of Linear Equations: Two Variables.
**Provided by:**OpenStax**Located at:**https://cnx.org/contents/0bb1dacf-671b-4fe5-a5a4-e67ad9a48d54@4.**License:**CC BY: Attribution. - Two linear equation add method.
**Provided by:**Wikibooks**Located at:**https://en.wikibooks.org/wiki/File:Two_linear_equation_add_method.PNG.**License:**CC BY-SA: Attribution-ShareAlike. - Simultaneous equations example 1.
**Provided by:**Wikipedia**License:**CC BY-SA: Attribution-ShareAlike. - Parallel Lines.
**Provided by:**Wikipedia**License:**Public Domain: No Known Copyright. - Original figure by Brittany Meredith. Licensed CC BY-SA 4.0.
**Provided by:**Brittany Meredith**License:**CC BY-SA: Attribution-ShareAlike.