
## SectionSystems of Linear Equations

Real-world applications are often modeled using more than one variable and more than one equation. A system of equations consists of a set of two or more equations with the same variables. In this section, we will study linear systems consisting of two linear equations each with two variables. The system

\begin{equation*} \begin{cases} 2x-3y\amp =0\\ -4x+2y\amp =-8 \end{cases} \end{equation*}

is one such system.

A solution to a linear system, or simultaneous solution, is an ordered pair $(x, y)$ that solves both of the equations. In this case, $(3,2)$ is the only solution. To check that an ordered pair is a solution, substitute the corresponding $x$- and $y$-values into each equation and then simplify to see if you obtain a true statement for both equations.

 Check: $(3,2)$ Equation 1: $2x-3y=0$ Equation 2: $-4x+2y=-8$ \begin{align*} 2(\alert{3})-3(\alert{2})\amp =0\\ 6-6\amp =0\\ 0\amp =0 \end{align*} \begin{align*} -4(\alert{3})+2(\alert{2})\amp =-8\\ -12+4\amp =-8\\ -8\amp =-8 \end{align*}
###### Example82

Determine whether or not $(1,0)$ is a solution to the system $\begin{cases} x-y\amp =1\\ -2x+3y\amp =5\\ \end{cases}\text{.}$

Solution

Substitute the appropriate values into both equations.

 Check: $(1,0)$ Equation 1: $x-y=1$ Equation 2: $-2x+3y=5$ \begin{align*} (\alert{1})-(\alert{0})\amp =1\\ 1-0\amp =1\\ 1\amp =1 \end{align*} \begin{align*} -2(\alert{1})+3(\alert{0})\amp =5\\ -2+0\amp =5\\ -2\amp = 5 \end{align*}

Notice that when we check $(1,0)$ in Equation 2, we get a false statement, $-2=5\text{.}$ Although $(1,0)$ satisfies Equation 1, it does not satisfy Equation 2, so $(1,0)$ is not a solution to this system.

Is $(-2,4)$ a solution to the system $\begin{cases} x-y\amp =-6\\ -2x+3y\amp =16\\ \end{cases}\text{?}$

### SubsectionSolving by Graphing

Geometrically, a linear system consists of two lines, where a solution is a point of intersection. To illustrate this, we will graph the following linear system with a solution of $(3,2)\text{:}$

\begin{align*} \begin{cases} 2x-3y\amp =0\\ -4x+2y\amp =-8 \end{cases} \end{align*}

First, we will rewrite the equations in slope-intercept form so that we may easily graph them.

First Equation:

Second Equation:

Next, replace these forms of the original equations in the system to obtain what is called an equivalent system. Equivalent systems share the same solution set.

\begin{align*} \amp\alert{\text{Original System }}\amp\alert{\text{Equivalent System}}\\ \amp\begin{cases} 2x-3y\amp =0\\ -4x+2y\amp =-8 \end{cases} \, \implies \amp\begin{cases} y\amp =\frac{2}{3}x\\ y\amp =2x-4 \end{cases} \end{align*}

If we graph both of the lines on the same set of axes, then we can see that the point of intersection is indeed $(3, 2)\text{,}$ the solution to the system.

To summarize, linear systems described in this section consist of two linear equations each with two variables. A solution is an ordered pair that corresponds to a point where the two lines intersect in the rectangular coordinate plane. Therefore, one way to solve linear systems is by graphing both lines on the same set of axes and determining the point where they cross. This describes the graphing method for solving linear systems.

###### Example84

Solve the system of equations by graphing it.: $\begin{cases} x-y\amp =-4\\ 2x+y\amp =1 \end{cases}\text{.}$

Solution

Rewrite the linear equations in slope-intercept form.

\begin{equation*} \begin{aligned} x-y\amp =-4\\ -y\amp =-x-4\\ \frac{-y}{\alert{-1}}\amp =\frac{-x-4}{\alert{-1}}\\ y\amp = x+4 \end{aligned} \end{equation*}
\begin{equation*} \begin{aligned} 2x+y\amp =1\\ y\amp = -2x+1 \end{aligned} \end{equation*}

Write the equivalent system and graph the lines on the same set of axes.

\begin{align*} \amp\begin{cases} x-y\amp =-4\\ 2x+y\amp =1 \end{cases} \implies \amp\begin{cases} y\amp =x+4\\ y\amp =-2x+1 \end{cases} \end{align*}
 \begin{gather*} \alert{\text{Line 1: }}\, y=x+4\\ y\text{-intercept: }\, (0,4)\\ \text{slope: }m=1=\frac{1}{1}=\frac{\text{rise}}{\text{run}} \end{gather*} \begin{gather*} \alert{\text{Line 2: }}\, y=-2x+1\\ y\text{-intercept: }\, (0,1)\\ \text{slope: }m=-2=\frac{-2}{1}=\frac{\text{rise}}{\text{run}} \end{gather*}

We use the graph to estimate the point where the lines intersect and check to see if it solves the original system. In the above graph, the point of intersection appears to be $(-1, 3)\text{.}$

 Check: $(-1,3)$ Line 1: $x-y=-4$ Line 2: $2x+y=1$ \begin{align*} (\alert{-1})-(\alert{3})\amp =-4\\ -1-3\amp =-4\\ -4\amp =-4 \end{align*} \begin{align*} 2(\alert{-1})+(\alert{3})\amp =1\\ -2+3\amp =1\\ 1\amp =1 \end{align*}

The solution is $(-1,3)\text{.}$

###### Example85

Solve the system of equations by graphing it.: $\begin{cases} 2x+y\amp =2\\ -2x+3y\amp =-18 \end{cases}\text{.}$

Solution

We first rewrite the linear equations in slope-intercept form.

\begin{align*} \amp\begin{cases} 2x+y\amp =2\\ -2x+3y\amp =-18 \end{cases}\implies \amp\begin{cases} y\amp =-2x+2\\ y\amp =\frac{2}{3}x-6 \end{cases} \end{align*}

Now we graph the lines and determine the point of intersection.

We use the graph to estimate the point where the lines intersect and check to see if it solves the original system. In the above graph, the point of intersection appears to be $(3, -4)\text{.}$

 Check: $(3,-4)$ Line 1: $2x+y=2$ Line 2: $-2x+3y=-18$ \begin{align*} 2(\alert{3})+(\alert{-4})\amp =2\\ 6-4\amp =2\\ 2\amp =2 \end{align*} \begin{align*} -2(\alert{3})+3(\alert{-4})\amp =-18\\ -6-12\amp =-18\\ -18\amp =-18 \end{align*}

The solution is $(3,-4)\text{.}$

###### Example86

Solve the system of equations by graphint it.: $\begin{cases} 3x+y\amp =6\\ y\amp =-3 \end{cases}\text{.}$

Solution

We first rewrite the linear equations in slope-intercept form.

\begin{align*} \amp\begin{cases} 3x+y\amp =6\\ y\amp =-3 \end{cases}\implies \amp\begin{cases} y\amp =-3x+6\\ y\amp =-3 \end{cases} \end{align*}

Now we graph the lines and determine the point of intersection.

We use the graph to estimate the point where the lines intersect and check to see if it solves the original system. In the above graph, the point of intersection appears to be $(3, -3)\text{.}$

 Check: $(3,-3)$ Line 1: $-3x+y=6$ Line 2: $y=-3$ \begin{align*} 3(\alert{3})+(\alert{-3})\amp =6\\ 9-3\amp =6\\ 6\amp =6 \end{align*} \begin{align*} (\alert{-3})\amp=-3\\ -3\amp =-3 \end{align*}

The solution is $(3,-3)\text{.}$

###### Example87

Solve the system of equations by graphint it.: $\begin{cases} -x+y\amp =6\\ 5x+2y\amp =-2 \end{cases}\text{.}$

Solution

The solution is $(-2,4)\text{.}$

The graphing method for solving linear systems is not ideal when a solution consists of coordinates that are not integers. The goal of the graphing method is to understand the geometry involved when solving systems. It is important to remember that the solutions to a system correspond to the point, or points, where the graphs of the equations intersect.

### SubsectionThe Substitution Method

In this section, we review a completely algebraic technique for solving systems, the substitution method. The idea is to solve one equation for one of the variables and substitute the result into the other equation. After performing this substitution step, we are left with a single equation with one variable, which can be solved using algebra.

###### Example88

Solve by substitution: $\begin{cases} 2x+y\amp =-3\\ 3x-2y\amp =-8 \end{cases}\text{.}$

Solution

We can solve for either variable in either equation. If we choose the first equation, we can isolate $y$ in one step.

\begin{equation*} \begin{aligned} 2x+y\amp = -3\\ y\amp = -2x-3 \end{aligned} \end{equation*}

Substitute the expression $-2x-3$ for the variable $y$ in the other equation.

This leaves us with an equivalent equation with one variable, which can be solved using the techniques learned up to this point. Solve for the remaining variable.

\begin{equation*} \begin{aligned} 3x-2(\alert{-2x-3})\amp =-8\\ 3x+4x+6\amp = -8\\ 7x+6\amp = -8\\ 7x\amp = -14\\ x\amp = -2 \end{aligned} \end{equation*}

Use this value to find the other coordinate. Substitute $x = -2$ into either of the original equations or their equivalents. Typically, we use the equivalent equation that we found when isolating a variable in the first step.

\begin{equation*} \begin{aligned} y\amp = -2x-3\\ \amp = -2(\alert{-2})-3\\ \amp = 4-3\\ \amp =1 \end{aligned} \end{equation*}

Remember to present the solution as an ordered pair: $(-2,1)\text{.}$ Verify that these coordinates solve both equations of the original system:

 Check: $(-2,1)$ Line 1: $2x+y=-3$ Line 2: $3x-2y=-8$ \begin{align*} 2(\alert{-2})+(\alert{1})\amp =-3\\ -4+1\amp =-3\\ -3\amp =-3 \end{align*} \begin{align*} 3(\alert{-2})-2(\alert{1})\amp=-8\\ -6-2\amp =-8\\ -8\amp =-8 \end{align*}

The graph of the linear system is given below:

The substitution method for solving systems is a completely algebraic method. Thus graphing the lines is not required.

The solution is $(-2,1)\text{.}$

###### Example89

Solve by substitution: $\begin{cases} 3x-5y\amp =9\\ 4x+2y\amp =-1 \end{cases}\text{.}$

Solution

We can solve for either variable in either equation. In this case, we will begin by solving for $x$ in the first equation.

\begin{align*} 3x-5y\amp = 9\\ 3x\amp = 5y+9\\ x\amp = \frac{5y+9}{3}\\ x\amp = \frac{5}{3}y+3 \end{align*}

Substitute into the other equation and solve for $y\text{.}$

\begin{align*} 4\left(\frac{5}{3}y+3\right)+2y\amp = -1\\ \frac{20}{3}y+12+2y\amp =-1\\ \frac{26}{3}y\amp = -13\\ y\amp = -13\left(\frac{3}{26}\right)\\ y\amp=-\frac{3}{2} \end{align*}

Use this value to find the other coordinate. We will substitute into the equivalent equation that we found when isolating a variable in the first step.

\begin{align*} x\amp = \frac{5}{3}y+3\\ \amp = \frac{5}{3}\left(-\frac{3}{2}\right)+3\\ \amp = -\frac{5}{2}+3\\ \amp =\frac{1}{2} \end{align*}

The solution is $\left(\frac{1}{2},-\frac{3}{2}\right)\text{.}$

###### Example90

Solve by substitution: $\begin{cases} 5x-4y\amp =3\\ x+2y\amp =2 \end{cases}\text{.}$

Solution

The solution is $\left(1,\frac{1}{2}\right)\text{.}$

Not all linear systems have only one ordered pair solution. Next, we will explore what happens when using the substitution method to solve a dependent system.

###### Example91

Solve by substitution: $\begin{cases} -5x+y\amp =-1\\ 10x-2y\amp =2 \end{cases}\text{.}$

Solution

We can solve for either variable in either equation. Since the first equation has a term with coefficient $1\text{,}$ we choose to solve for that first.

\begin{align*} -5x+y\amp = -1\\ y\amp = 5x-1 \end{align*}

Substitute into the other equation.

\begin{align*} 10x-2y\amp =2\\ 10x-2(\alert{5x-1})\amp =2\\ 10x-10x+2\amp = 2\\ 2\amp = 2 \end{align*}

In this case, our variables cancelled and we ended up with a true statement. This means the equation is an identity and any real number is a solution. The solutions are of the form $(x,mx+b)\text{,}$ and specifically in this case, our solutions are $(x,5x-1)\text{,}$ where $x$ is any real number.

To have a better understanding of the previous example, rewrite both equations in slope-intercept ($y=mx+b$) form and graph them on the same set of axes.

\begin{align*} \amp\begin{cases} -5x+y\amp =-1\\ 10x-2y\amp =2 \end{cases} \, \implies \amp\begin{cases} y\amp =5x-1\\ y\amp =5x-1 \end{cases} \end{align*}

We can see now that both equations represent the same line.

Now explore what happens when solving an inconsistent system using the substitution method.

###### Example92

Solve by substitution: $\begin{cases} -7x+3y\amp =3\\ 14x-6y\amp =-16 \end{cases}\text{.}$

Solution

We will solve for $y$ in the first equation.

\begin{align*} -7x+3y\amp = 3\\ 3y\amp = 7x+3\\ y\amp =\frac{7x+3}{3}\\ y\amp =\frac{7}{3}x+1 \end{align*}

Substitute into the other equation:

\begin{align*} 14x-6y\amp =-16\\ 14x-6\left(\alert{\frac{7}{3}x+1}\right)\amp =-16\\ 14x-\frac{42}{3}x-6\amp = -16\\ 14x-14x-6\amp = -16\\ -6\amp = -16 \end{align*}

In this case, our variables cancelled and we ended up with a false statement. This means the equation is a contradiction. There is no solution for $x$ and hence no solution to the system.

A false statement indicates that the system is inconsistent, or in geometric terms, that the lines are parallel and do not intersect. To illustrate this, determine the slope-intercept form of each line and graph them on the same set of axes.

In slope-intercept form, it is easy to see that the two lines have the same slope but different y-intercepts.

###### Example93

Solve by substitution: $\begin{cases} 2x-5y\amp =3\\ 4x-10y\amp =6 \end{cases}\text{.}$

Solution

The solutions are ordered pairs of the form $\left(x,\frac{2}{5}x-\frac{3}{5}\right)$ where $x$ is any real number.

### SubsectionThe Elimination Method

In this section, the goal is to learn another completely algebraic method for solving a system of linear equations called the elimination method. This method depends on the addition property of equations: given algebraic expressions $a, b, c\text{,}$ and $d$ we have

\begin{gather*} \text{if }a=b\text{ and }c=d,\text{ then }a+c=b+d. \end{gather*}

Consider the following system:

\begin{align*} \begin{aligned} x+y\amp =5\\ x-y\amp =1 \end{aligned} \end{align*}

We can add the equations together to eliminate the variable $y\text{.}$

\begin{align*} \begin{aligned} x\alert{+y} \amp =5\\ x\alert{-y}\amp =1\\ \hline\\ 2x\amp =6 \end{aligned} \end{align*}

This leaves us with a linear equation with one variable that can be easily solved:

\begin{align*} \begin{aligned} 2x\amp =6\\ x\amp =3 \end{aligned} \end{align*}

At this point, we have the $x$-coordinate of the simultaneous solution, so all that is left to do is to find the corresponding $y$-value. We can do this by back substituting $x=3$ into one of the original equations:

\begin{align*} \begin{aligned} x+y\amp =5\\ 3+y\amp =5\\ y\amp =2 \end{aligned} \end{align*}

The solution to the system is $(3, 2)\text{.}$ Of course, the variable is not always so easily eliminated. Typically, we have to find an equivalent system by applying the multiplication property of equality to one or both of the equations as a means to line up one of the variables to eliminate. The goal is to arrange so that either the $x$ terms or the $y$ terms are additive opposites, so that when the equations are added, the terms eliminate each other.

###### Example94

Solve by elimination: $\begin{cases} 5x-3y\amp =-1\\ 3x+2y\amp =7 \end{cases}\text{.}$

Solution

We choose to eliminate the terms with variable $y$ because the coefficients have different signs. In order to get $3y$ in the second equation we would have to multiply by $\frac{3}{2}\text{.}$ If we instead wanted to multiply the first equation to have $-2y\text{,}$ we would have to multiply it by $\frac{2}{3}\text{.}$

However, we can avoid using fractions at this step altogether. To do this, we first determine the least common multiple of the coefficients that we are trying to match; in this case, we are trying to eliminate the $y$ variable so we compute $\text{LCM}(3, 2)\text{,}$ which is $6\text{.}$ Therefore, multiply both sides of both equations by the appropriate values to obtain coefficients of $-6$ and $6\text{.}$ This results in the following equivalent system:

\begin{equation*} \begin{cases} (\alert{2})(5x-3y\amp =-1)\\ (\alert{3})(3x+2y\amp =7) \end{cases}= \begin{cases} 10x-6y\amp =-2\\ 9x+6y\amp =21 \end{cases} \end{equation*}

The terms involving $y$ are now lined up to eliminate. We add the equations together and solve for $x\text{.}$

\begin{align*} 10x\alert{-6y}\amp = -2\\ 9x\alert{+6y}\amp = 21\\ \hline\\ 19x\amp = 19 \end{align*}

This gives us $x=1\text{.}$ Now we substitute into either one of our beginning equations.

\begin{align*} 3x+2y\amp =7\\ 3(\alert{1})+2y\amp =7\\ 3+2y\amp = 7\\ 2y\amp = 4\\ y\amp = 2 \end{align*}

This means our solution is $(1,2)\text{.}$ We can check this as follows:

 Check: $(1,2)$ Line 1: $5x-3y=-1$ Line 2: $3x+2y=7$ \begin{align*} 5(\alert{1})-3(\alert{2})\amp =-1\\ 5-6\amp =-1\\ -1\amp =-1 \end{align*} \begin{align*} 3(\alert{1})+2(\alert{2})\amp=7\\ 3+4\amp =7\\ 7\amp =7 \end{align*}

Sometimes linear systems are not given in standard form $ax+by=c\text{.}$ When this is the case, it is best to rearrange the equations before beginning the steps to solve by elimination. Also, we can eliminate either variable. The goal is to obtain a solution for one of the variables and then back substitute to find a solution for the other.

###### Example95

Solve by elimination: $\begin{cases} 12x+5y\amp =11\\ 3x\amp =4y+1 \end{cases}\text{.}$

Solution

First, we will rewrite the second equation in standard form to line up the like terms.

\begin{equation*} \begin{aligned} 3x\amp =4y+1\\ 3x-4y\amp =1 \end{aligned} \end{equation*}

We can eliminate the term with variable $x$ if we multiply the second equation by $-4\text{.}$

\begin{equation*} \begin{cases} \amp 12 x\amp+5y\amp =11\\ (\alert{-4})\amp (3 x\amp-4y\amp =1) \end{cases}= \begin{cases} 12x+5y\amp =11\\ -12x+16y\amp =-4 \end{cases} \end{equation*}

Next, we add the equations together.

\begin{align*} \alert{12x}+5y\amp = 11\\ \alert{-12x}+16y\amp = -4\\ 21y\amp = 7\\ y\amp = \frac{7}{21}\\ y\amp = \frac{1}{3} \end{align*}

Now we substitute into either one of our original equations.

\begin{align*} 3x\amp = 4y+1\\ 3x\amp = 4\left(\alert{\frac{1}{3}}\right)+1\\ 3x\amp =\frac{4}{3}+1\\ 3x\amp = \frac{7}{3}\\ x\amp = \frac{7}{3}\cdot\frac{1}{3}\\ x\amp =\frac{7}{9} \end{align*}

The solution is $\left(\frac{7}{9},\frac{1}{3}\right)\text{.}$

###### Example96

Solve by elimination: $\begin{cases} 2x+5y\amp =5\\ 3x+2y\amp =-9 \end{cases}\text{.}$

Solution

The solution is $(-5,3)\text{.}$

###### Example97

Solve by elimination: $\begin{cases} 3x-y\amp =7\\ 6x-2y\amp =14 \end{cases}\text{.}$

Solution

To eliminate the variable $x\text{,}$ we can multiply the first equation by $-2\text{.}$

\begin{equation*} \begin{cases} (\alert{-2})\amp (3 x\amp-y\amp =7)\\ \amp 6 x\amp-2y\amp =14\\ \end{cases}= \begin{cases} -6x+2y\amp =-14\\ 6x-2y\amp =14 \end{cases} \end{equation*}

Next, we add the equations together.

\begin{align*} -6x+2y\amp =-14\\ 6x-2y\amp =14\\ \hline\\ 0\amp = 0 \end{align*}

The true statement we reached indicates that the lines coincide, and we need $y$ in terms of $x$ to present the solution set in the form $(x,mx+b)\text{.}$ We choose one of the original equations and solve for $y\text{.}$ Since the equations are equivalent, it does not matter which equation we choose. We will choose the second since $y$ has a coefficient of $-1\text{.}$

\begin{align*} 3x-y\amp = 7\\ -y\amp = -3x+7\\ \alert{-1}(-y)\amp =\alert{-1}(-3x+7)\\ y\amp = 3x-7 \end{align*}

The solutions take on the form $(x,3x-7)\text{.}$

###### Example98

Solve by elimination: $\begin{cases} 3x+15y\amp =-15\\ 2x+10y\amp =30 \end{cases}\text{.}$

Solution

This system of linear equations has no solution.

Given a linear system where the equations have fractional coefficients, it is usually best to clear the fractions before beginning the elimination method.

###### Example99

Solve by elimination: $\begin{cases} -\frac{1}{10}x\amp +\frac{1}{2}y\amp =\frac{4}{5}\\ \frac{1}{7}x\amp +\frac{1}{3}y\amp =-\frac{2}{21} \end{cases}\text{.}$

Solution

We can clear fractions by multiplying both sides of an equation by the least common multiple of the denominators. Be careful distributing, and then simplify.

First Equation:

Second Equation:

This results in an equivalent system where the equations have integer coefficients, and now we can solve using the elimination method.

\begin{equation*} \begin{cases} (\alert{3})\amp (- x\amp +5y\amp =8)\\ \amp 3 x\amp +7y\amp =-2\\ \end{cases}= \begin{cases} -3x+15y\amp =24\\ 3x+7y\amp =-2 \end{cases} \end{equation*}
\begin{align*} -3x+15y\amp =24\\ 3x+7y\amp =-2\\ \hline\\ 22y\amp = 22 \end{align*}

This gives $y=1\text{,}$ and now we substitute into one of our original equations or an equivalent form of one of our original equations.

\begin{align*} 3x+7y\amp = -2\\ 3x+7(\alert{1})\amp = -2\\ 3x+7\amp = -2\\ 3x \amp = -9\\ x\amp =-3 \end{align*}

The solution is $(-3,1)\text{.}$

###### Example100

Solve by elimination: $\begin{cases} \frac{1}{3}x\amp -\frac{2}{3}y\amp =3\\ \frac{1}{3}x\amp -\frac{1}{2}y\amp =\frac{8}{3} \end{cases}\text{.}$

Solution

The solution is $(5,-2)\text{.}$

### SubsectionComparisons of the Solving Methods

We have reviewed three methods for solving linear systems of two equations with two variables. Each method is valid and can produce the same correct result. In this section, we summarize the strengths and weaknesses of each method.

The graphing method is useful for understanding what a system of equations is and what the solutions must look like. When the equations of a system are graphed on the same set of axes, we can see that the solution is the point where the graphs intersect. The graphing is made easy when the equations are in slope-intercept form. For example,

\begin{align*} \begin{aligned} y\amp =5x+15\\ y\amp =-5x+5. \end{aligned} \end{align*}

The simultaneous solution $(-1, 10)$ corresponds to the point of intersection. One drawback of this method is that it is very inaccurate. When the coordinates of the solution are not integers, the method is practically unusable. If we have a choice, we typically avoid this method in favor of the more accurate algebraic techniques.

The substitution method, on the other hand, is a completely algebraic method. It requires you to solve for one of the variables and substitute the result into the other equation. The resulting equation has one variable for which you can solve. This method is particularly useful when there is a variable within the system with coefficient of 1. For example,

\begin{align*} \begin{aligned} 10x+y\amp =20\\ 7x+5y\amp =14 \end{aligned} \end{align*}

In this case, it is easy to solve for $y$ in the first equation and then substitute the result into the other equation. One drawback of this method is that it often leads to equivalent equations with fractional coefficients, which are tedious to work with. If there is not a coefficient of 1, then it usually is best to choose the elimination method.

The elimination method is a completely algebraic method which makes use of the addition property of equations. We multiply one or both of the equations to obtain equivalent equations where one of the variables is eliminated if we add them together. For example,

\begin{align*} \begin{aligned} 2x-3y\amp =9\\ 5x-8y\amp =-16 \end{aligned} \end{align*}

To eliminate the terms involving $x\text{,}$ we would multiply both sides of the first equation by 5 and both sides of the second equation by $-2\text{.}$ This results in an equivalent system where the variable $x$ is eliminated when we add the equations together. Of course, there are other combinations of numbers that achieve the same result. We could even choose to eliminate the variable $y\text{.}$ No matter which variable is eliminated first, the solution will be the same. Note that the substitution method, in this case, would require tedious calculations with fractional coefficients. One weakness of the elimination method, as we will see later in our study of algebra, is that it does not always work for nonlinear systems.