Skip to main content
Mathematics LibreTexts

3.3: Algebraic Methods for Solving Systems

  • Page ID
    51455
  • \( \newcommand{\vecs}[1]{\overset { \scriptstyle \rightharpoonup} {\mathbf{#1}} } \) \( \newcommand{\vecd}[1]{\overset{-\!-\!\rightharpoonup}{\vphantom{a}\smash {#1}}} \)\(\newcommand{\id}{\mathrm{id}}\) \( \newcommand{\Span}{\mathrm{span}}\) \( \newcommand{\kernel}{\mathrm{null}\,}\) \( \newcommand{\range}{\mathrm{range}\,}\) \( \newcommand{\RealPart}{\mathrm{Re}}\) \( \newcommand{\ImaginaryPart}{\mathrm{Im}}\) \( \newcommand{\Argument}{\mathrm{Arg}}\) \( \newcommand{\norm}[1]{\| #1 \|}\) \( \newcommand{\inner}[2]{\langle #1, #2 \rangle}\) \( \newcommand{\Span}{\mathrm{span}}\) \(\newcommand{\id}{\mathrm{id}}\) \( \newcommand{\Span}{\mathrm{span}}\) \( \newcommand{\kernel}{\mathrm{null}\,}\) \( \newcommand{\range}{\mathrm{range}\,}\) \( \newcommand{\RealPart}{\mathrm{Re}}\) \( \newcommand{\ImaginaryPart}{\mathrm{Im}}\) \( \newcommand{\Argument}{\mathrm{Arg}}\) \( \newcommand{\norm}[1]{\| #1 \|}\) \( \newcommand{\inner}[2]{\langle #1, #2 \rangle}\) \( \newcommand{\Span}{\mathrm{span}}\)\(\newcommand{\AA}{\unicode[.8,0]{x212B}}\)

    Learning Objectives

    • Use the substitution method
      • Solve a system of equations using the substitution method.
      • Recognize systems of equations that have no solution or an infinite number of solutions
    • Use the elimination method without multiplication
      • Solve a system of equations when no multiplication is necessary to eliminate a variable
    • Use the elimination method with multiplication
      • Use multiplication in combination with the elimination method to solve a system of linear equations
      • Recognize when the solution to a system of linear equations implies there are an infinite number of solutions

    Solve a system of equations using the substitution method

    In the last couple sections, we verified that ordered pairs were solutions to systems, and we used graphs to classify how many solutions a system of two linear equations had. What if we are not given a point of intersection, or it is not obvious from a graph? Can we still find a solution to the system? Of course you can, using algebra!

    In this section we will learn the substitution method for finding a solution to a system of linear equations in two variables. We have used substitution in different ways throughout this course, for example when we were using the formulas for the area of a triangle and simple interest. We substituted values that we knew into the formula to solve for values that we did not know. The idea is similar when applied to solving systems, there are just a few different steps in the process. You will first solve for one variable, and then substitute that expression into the other equation. Let’s start with an example to see what this means.

    Example

    Find the value of x for this system.

    Equation A: \(4x+3y=−14\)

    Equation B: \(y=2\)

    [reveal-answer q=”478211″]Show Solution[/reveal-answer]
    [hidden-answer a=”478211″]The problem asks to solve for x. Equation B gives you the value of y, \(y=2\), so you can substitute 2 into Equation A for y.

    \(\begin{array}{r}4x+3y=−14\\y=2\,\,\,\,\,\,\,\end{array}\)

    Substitute \(y=2\) into Equation A.

    \(4x+3\left(2\right)=−14\)

    Simplify and solve the equation for x.

    \(\begin{array}{r}4x+6=−14\\4x=−20\\x=−5\,\,\,\end{array}\)

    Answer

    \(x=−5\)

    [/hidden-answer]

    You can substitute a value for a variable even if it is an expression. Here’s an example.

    Example

    Solve for x and y.

    Equation A: \(y+x=3\)

    Equation B: \(x=y+5\)

    [reveal-answer q=”300993″]Show Solution[/reveal-answer]
    [hidden-answer a=”300993″]The goal of the substitution method is to rewrite one of the equations in terms of a single variable. Equation B tells us that \(y+5\) into Equation A for x.

    \(\begin{array}{l}y+x=3\\x=y+5\end{array}\)

    Substitute \(y+5\) into Equation A for x.

    \(\begin{array}{r}y+x=3\\y+\left(y+5\right)=3\end{array}\)

    Simplify and solve the equation for y.

    \(\begin{array}{r}2y+5=\,\,\,\,3\\\underline{−5\,\,\,\,\,−5}\\2y=−2\\y=−1\end{array}\)

    Now find x by substituting this value for y into either equation and solve for x. We will use Equation A here.

    \(\begin{array}{r}y+x=3\\−1+x=3\\\underline{+1\,\,\,\,\,\,\,\,\,+1}\\x=4\end{array}\)

    Finally, check the solution \(y=−1\) by substituting these values into each of the original equations.

    \(\begin{array}{r}y+x=3\\−1+4=3\\3=3\\\text{TRUE}\end{array}\)

    \(\begin{array}{l}x=y+5\\4=−1+5\\4=4\\\text{TRUE}\end{array}\)

    Answer

    \(y=−1\)

    The solution is \((4,−1)\).

    [/hidden-answer]

    Remember, a solution to a system of equations must be a solution to each of the equations within the system. The ordered pair \((4,−1)\) does work for both equations, so you know that it is a solution to the system as well.

    Let’s look at another example whose substitution involves the distributive property.

    Example

    Solve for x and y.

    \(\begin{array}{l}y = 3x + 6\\−2x + 4y = 4\end{array}\)

    [reveal-answer q=”240040″]Show Solution[/reveal-answer]
    [hidden-answer a=”240040″]Choose an equation to use for the substitution.

    The first equation tells you how to express y in terms of x, so it makes sense to substitute 3x + 6 into the second equation for y.

    \(\begin{array}{l}y=3x+6\\−2x+4y=4\end{array}\)

    Substitute \(3x+6\) for y into the second equation.

    \(\begin{array}{r}−2x+4y=4\\−2x+4\left(3x+6\right)=4\end{array}\)

    Simplify and solve the equation for x.

    \(\begin{array}{r}−2x+12x+24=4\,\,\,\,\,\,\,\\10x+24=4\,\,\,\,\,\,\,\\\underline{−24\,\,−24\,\,\,\,}\\10x=−20\\x=−2\,\,\,\end{array}\)

    To find y, substitute this value for x back into one of the original equations.

    \(\begin{array}{l}y=3x+6\\y=3\left(−2\right)+6\\y =−6+6\\y=0\end{array}\)

    Check the solution \(y=0\) by substituting them into each of the original equations.

    \(\begin{array}{l}y=3x+6\\0=3\left(−2\right)+6\\0=−6+6\\0=0\\\text{TRUE}\end{array}\)

    \(\begin{array}{r}−2x+4y=4\\−2\left(−2\right)+4\left(0\right)=4\\4+0=4\\4=4\\\text{TRUE}\end{array}\)

    Answer

    \(y=0\)

    The solution is (−2, 0).

    [/hidden-answer]

    In the examples above, one of the equations was already given to us in terms of the variable x or y. This allowed us to quickly substitute that value into the other equation and solve for one of the unknowns.

    Sometimes you may have to rewrite one of the equations in terms of one of the variables first before you can substitute. In the example below, you will first need to isolate one of the variables before you can substitute it into the other equation.

    Example

    Solve for x and y.

    \(\begin{array}{r}2x+3y=22\\3x+y=19\end{array}\)

    [reveal-answer q=”344538″]Show Solution[/reveal-answer]
    [hidden-answer a=”344538″]Choose an equation to use for the substitution. The second equation,

    \(3x+y=19\), can easily be rewritten in terms of y, so it makes sense to start there.

    \(\begin{array}2x+3y=22\\3x+y=19\end{array}\)

    Rewrite \(3x+y=19\) in terms of y.

    \(\begin{array}3x+y=19\\y=19–3x\end{array}\)

    Substitute \(19–3x\) for y in the other equation.

    \(\begin{array}{r}2x+3y=22\\2x+3(19–3x)=22\end{array}\)

    Simplify and solve the equation for x.

    \(\begin{array}{r}2x+57–9x=22\,\,\,\,\\−7x+57=22\,\,\,\,\\−7x=−35\\x=5\,\,\,\,\,\,\,\end{array}\)

    Substitute \(x=5\) back into one of the original equations to solve for y.

    \(\begin{array}{r}3x+y=19\,\,\,\,\,\,\,\,\,\,\,\,\\3\left(5\right)+y=19\,\,\,\,\,\,\,\,\,\,\,\,\\15+y=19\,\,\,\,\,\,\,\,\,\,\,\,\\y=19−15\\y=4\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\end{array}\)

    Check both solutions by substituting them into each of the original equations.

    \(\begin{array}{r}2x+3y=22\\2(5)+3\left(4\right)=22\\10+12=22\\22=22\\\text{TRUE}\\\\3x+y=19\\3\left(5\right)+4= 19\\19=19\\\text{TRUE}\end{array}\)

    Answer

    \(y=4\)

    The solution is (5, 4).

    [/hidden-answer]

    In the following video, you will be given an example of solving a systems of two equations using the substitution method.

    Thumbnail for the embedded element "Ex 2: Solve a System of Equations Using Substitution"

    A YouTube element has been excluded from this version of the text. You can view it online here: pb.libretexts.org/ba/?p=80

    If you had chosen the other equation to start with in the previous example, you would still be able to find the same solution. It is really a matter of preference because sometimes solving for a variable will result in having to work with fractions. As you become more experienced with algebra, you will be able to anticipate what choices will lead to more desirable outcomes.

    Recognize systems of equations that have no solution or an infinite number of solutions

    When we learned methods for solving linear equations in one variable, we found that some equations didn’t have any solutions, and others had an infinite number of solutions. We saw this behavior again when we started describing solutions to systems of equations in two variables.

    Recall this example from Module 1 for solving linear equations in one variable:

    Solve for x. \(12+2x–8=7x+5–5x\)

    \(\displaystyle \begin{array}{l}12+2x-8=7x+5-5x\\\,\,\,\,\,\,\,\,\,\,\,\,\,\,2x+4=2x+5\end{array}\)

    \(\begin{array}{l}\,\,\,\,\,\,\,\,\,\,\,\,2x+4=2x+5\\\,\,\,\,\,\,\,\,\underline{-2x\,\,\,\,\,\,\,\,\,\,-2x\,\,\,\,\,\,\,\,}\\\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,4= \,5\end{array}\)

    This false statement implies there are no solutions to this equation. In the same way, you may see an outcome like this when you use the substitution method to find a solution to a system of linear equations in two variables. In the next example, you will see an example of a system of two equations that does not have a solution.

    Example

    Solve for x and y.

    \(\begin{array}{l}y=5x+4\\10x−2y=4\end{array}\)

    [reveal-answer q=”787022″]Show Solution[/reveal-answer]
    [hidden-answer a=”787022″]Since the first equation is \(5x+4\) in for y in the second equation.

    \(\begin{array}{r}y=5x+4\\10x−2y=4\,\,\,\,\,\,\,\,\,\,\,\,\\10x–2\left(5x+4\right)=4\,\,\,\,\,\,\,\,\,\,\,\,\end{array}\)

    Expand the expression on the left.

    \(10x–10x–8=4\)

    Combine like terms on the left side of equation.

    \(−8=4\).

    \(\begin{array}{r}0–8=4\\−8=4\end{array}\)

    Answer

    The statement \(−8=4\) is false, so there is no solution.

    [/hidden-answer]

    You get the false statement \(−8=4\). What does this mean? The graph of this system sheds some light on what is happening.

    Two parallel lines. One line is y=5x+4, and the other line is 10x-2y=4.

    The lines are parallel, they never intersect and there is no solution to this system of linear equations. Note that the result \(−8=4\) is not a solution. It is simply a false statement and it indicates that there is no solution.

    We have also seen linear equations in one variable and systems of equations in two variables that have an infinite number of solutions. In the next example, you will see what happens when you apply the substitution method to a system with an infinite number of solutions.

    Example

    Solve for x and y.

    \(\begin{array}{l}\,\,\,y=−0.5x\\9y=−4.5x\end{array}\)

    [reveal-answer q=”683508″]Show Solution[/reveal-answer]
    [hidden-answer a=”683508″]

    Substituting −0.5x for y in the second equation, you find the following:

    \(\begin{array}{r}9y=−4.5x\\9(−0.5x)=−4.5\,\,\,\\−4.5x=−4.5x\end{array}\)

    [/hidden-answer]

    This time you get a true statement: \(−4.5x=−4.5x\). But what does this type of answer mean? Again, graphing can help you make sense of this system.

    Two overlapping lines that represent the same line. One line is 9y=-4.5x, and the other line is y=-0.5x.

    This system consists of two equations that both represent the same line; the two lines are collinear. Every point along the line will be a solution to the system, and that’s why the substitution method yields a true statement. In this case, there are an infinite number of solutions.

    In the following video you will see an example of solving a system that has an infinite number of solutions.

    Thumbnail for the embedded element "Ex: Solve a System of Equations Using Substitution - Infinite Solutions"

    A YouTube element has been excluded from this version of the text. You can view it online here: pb.libretexts.org/ba/?p=80

    In the following video you will see an example of solving a system of equations that has no solutions.

    Thumbnail for the embedded element "Ex: Solve a System of Equations Using Substitution - No Solution"

    A YouTube element has been excluded from this version of the text. You can view it online here: pb.libretexts.org/ba/?p=80

    Solve a system of equations using the elimination method

    The elimination method for solving systems of linear equations uses the addition property of equality. You can add the same value to each side of an equation to eliminate one of the variable terms. In this method, you may or may not need to multiply the terms in one equation by a number first. We will first look at examples where no multiplication is necessary to use the elimination method. In the next section you will see examples using multiplication after you are familiar with the idea of the elimination method.

    It is easier to show rather than tell with this method, so let’s dive right into some examples.

    If you add the two equations,

    \(x+y=8\) together, watch what happens.

    \(\displaystyle \begin{array}{l}\,\,\,\,\,x-y=\,-6\\\underline{+\,x+y=\,\,\,8}\\\,2x+0\,=\,\,\,\,2\end{array}\)

    You have eliminated the y term, and this equation can be solved using the methods for solving equations with one variable.

    Let’s see how this system is solved using the elimination method.

    Example

    Use elimination to solve the system.

    \(\begin{array}{r}x–y=−6\\x+y=\,\,\,\,8\end{array}\)

    [reveal-answer q=”403819″]Show Solution[/reveal-answer]
    [hidden-answer a=”403819″]Add the equations.

    \(\displaystyle \begin{array}{r}x-y=\,\,-6\\+\underline{\,\,x+y=\,\,\,\,\,8}\\\,\,\,\,\,\,2x\,\,\,\,\,=\,\,\,\,\,\,2\end{array}\)

    Solve for x.

    \(\begin{array}{r}2x=2\\x=1\end{array}\)

    Substitute \(x=1\) into one of the original equations and solve for y.

    \(\begin{array}{l}x+y=8\\1+y=8\\\,\,\,\,\,\,\,\,\,\,y=8–1\\\,\,\,\,\,\,\,\,\,\,y=7\end{array}\)

    Be sure to check your answer in both equations!

    \(\begin{array}{r}x–y=−6\\1–7=−6\\−6=−6\\\text{TRUE}\\\\x+y=8\\1+7=8\\8=8\\\text{TRUE}\end{array}\)

    The answers check.

    Answer

    The solution is (1, 7).

    [/hidden-answer]

    Unfortunately not all systems work out this easily. How about a system like \(−3x+y=2\). If you add these two equations together, no variables are eliminated.

    \(\displaystyle \begin{array}{l}\,\,\,\,2x+y=12\\\underline{-3x+y=\,\,\,2}\\-x+2y=14\end{array}\)

    But you want to eliminate a variable. So let’s add the opposite of one of the equations to the other equation. This means multiply every term in one of the equations by -1, so that the sign of every terms is opposite.

    \(\begin{array}{l}\,\,\,\,2x+\,\,y\,=12\rightarrow2x+y=12\rightarrow2x+y=12\\−3x+\,\,y\,=2\rightarrow−\left(−3x+y\right)=−(2)\rightarrow3x–y=−2\\\,\,\,\,5x+0y=10\end{array}\)

    You have eliminated the y variable, and the problem can now be solved.

    The following video describe a similar problem where you can eliminate one variable by adding the two equations together.

    Thumbnail for the embedded element "Ex 1: Solve a System of Equations Using the Elimination Method"

    A YouTube element has been excluded from this version of the text. You can view it online here: pb.libretexts.org/ba/?p=80

    CautionCaution! When you add the opposite of one entire equation to another, make sure to change the sign of EVERY term on both sides of the equation. This is a very common mistake to make.

    Example

    Use elimination to solve the system.

    \(\begin{array}{r}2x+y=12\\−3x+y=2\,\,\,\end{array}\)

    [reveal-answer q=”702178″]Show Solution[/reveal-answer]
    [hidden-answer a=”702178″]You can eliminate the y-variable if you add the opposite of one of the equations to the other equation.

    \(\begin{array}{r}2x+y=12\\−3x+y=2\,\,\,\end{array}\)

    Rewrite the second equation as its opposite.

    Add. Solve for x.

    \(\begin{array}{r}2x+y=12\,\\3x–y=−2\\5x=10\,\\x=2\,\,\,\,\end{array}\)

    Substitute \(y=2\) into one of the original equations and solve for y.

    \(\begin{array}{r}2\left(2\right)+y=12\\4+y=12\\y=8\,\,\,\end{array}\)

    Be sure to check your answer in both equations!

    \(\begin{array}{r}2x+y=12\\2\left(2\right)+8=12\\4+8=12\\12=12\\\text{TRUE}\\\\−3x+y=2\\−3\left(2\right)+8=2\\−6+8=2\\2=2\\\text{TRUE}\end{array}\)

    The answers check.

    Answer

    The solution is (2, 8).

    [/hidden-answer]

    The following are two more examples showing how to solve linear systems of equations using elimination.

    Example

    Use elimination to solve the system.

    \(\begin{array}{r}−2x+3y=−1\\2x+5y=\,25\end{array}\)

    [reveal-answer q=”438400″]Show Solution[/reveal-answer]
    [hidden-answer a=”438400″]Notice the coefficients of each variable in each equation. If you add these two equations, the x term will be eliminated since \(−2x+2x=0\).

    \(\begin{array}{r}−2x+3y=−1\\2x+5y=\,25\end{array}\)

    Add and solve for y.

    \(\begin{array}{r}−2x+3y=−1\\2x+5y=25\,\\8y=24\,\\y=3\,\,\,\,\end{array}\)

    Substitute \(y=3\)into one of the original equations.

    \(\begin{array}{r}2x+5y=25\\2x+5\left(3\right)=25\\2x+15=25\\2x=10\\x=5\,\,\,\end{array}\)

    Check solutions.

    \(\begin{array}{r}−2x+3y=−1\\−2\left(5\right)+3\left(3\right)=−1\\−10+9=−1\\−1=−1\\\text{TRUE}\\\\2x+5y=25\\2\left(5\right)+5\left(3\right)=25\\10+15=25\\25=25\\\text{TRUE}\end{array}\)

    The answers check.

    Answer

    The solution is (5, 3).

    [/hidden-answer]

    Example

    Use elimination to solve for x and y.

    \(\begin{array}{r}4x+2y=14\\5x+2y=16\end{array}\)

    [reveal-answer q=”776093″]Show Solution[/reveal-answer]
    [hidden-answer a=”776093″]Notice the coefficients of each variable in each equation. You will need to add the opposite of one of the equations to eliminate the variable y, as \(2y+\left(−2y\right)=0\).

    \(\begin{array}{r}4x+2y=14\\5x+2y=16\end{array}\)

    Change one of the equations to its opposite, add and solve for x.

    \(\begin{array}{r}4x+2y=14\,\,\,\,\\−5x–2y=−16\\−x=−2\,\,\,\\x=2\,\,\,\,\,\,\,\end{array}\)

    Substitute \(x=2\) into one of the original equations and solve for y.

    \(\begin{array}{r}4x+2y=14\\4\left(2\right)+2y=14\\8+2y=14\\2y=6\,\,\,\\y=3\,\,\,\end{array}\)

    Answer

    The solution is (2, 3).

    [/hidden-answer]

    Go ahead and check this last example—substitute (2, 3) into both equations. You get two true statements: 14=14 and 16=16!

    Notice that you could have used the opposite of the first equation rather than the second equation and gotten the same result.

    Recognize systems that have no solution or an infinite number of solutions

    Just as with the substitution method, the elimination method will sometimes eliminate both variables, and you end up with either a true statement or a false statement. Recall that a false statement means that there is no solution.

    Let’s look at an example.

    Example

    Solve for x and y.

    \(\begin{array}{r}-x–y=-4\\x+y=2\,\,\,\,\end{array}\)

    [reveal-answer q=”101540″]Show Solution[/reveal-answer]
    [hidden-answer a=”101540″]Add the equations to eliminate the x-term.

    \(\begin{array}{r}-x–y=-4\\\underline{x+y=2\,\,\,}\\0=−2\end{array}\)

    Answer

    There is no solution.

    [/hidden-answer]

    Graphing these lines shows that they are parallel lines and as such do not share any point in common, verifying that there is no solution.

    Two parallel lines. One line is -x-y=-4. The other line is x+y=2.

    If both variables are eliminated and you are left with a true statement, this indicates that there are an infinite number of ordered pairs that satisfy both of the equations. In fact, the equations are the same line.

    Example

    Solve for x and y.

    \(\begin{array}{r}x+y=2\,\,\,\,\\-x−y=-2\end{array}\)

    [reveal-answer q=”328100″]Show Solution[/reveal-answer]
    [hidden-answer a=”328100″]Add the equations to eliminate the x-term.

    \(\begin{array}{r}x+y=2\,\,\,\,\\\underline{-x−y=-2}\\0=0\,\,\,\,\,\end{array}\)

    Answer

    There are an infinite number of solutions.

    [/hidden-answer]

    Graphing these two equations will help to illustrate what is happening.

    Two overlapping lines. One is -x-y=-2, and the other is x+y=2.

    In the following video, a system of equations which has no solutions is solved using the method of elimination.

    Thumbnail for the embedded element "Ex: System of Equations Using Elimination (No Solution)"

    A YouTube element has been excluded from this version of the text. You can view it online here: pb.libretexts.org/ba/?p=80

    Solve a system of equations when multiplication is necessary to eliminate a variable

    Many times adding the equations or adding the opposite of one of the equations will not result in eliminating a variable. Look at the system below.

    \(\begin{array}{r}3x+4y=52\\5x+y=30\end{array}\)

    If you add the equations above, or add the opposite of one of the equations, you will get an equation that still has two variables. So let’s now use the multiplication property of equality first. You can multiply both sides of one of the equations by a number that will allow you to eliminate the same variable in the other equation.

    We do this with multiplication. Notice that the first equation contains the term 4y, and the second equation contains the term y. If you multiply the second equation by −4, when you add both equations the y variables will add up to 0.

    The following example takes you through all the steps to find a solution to this system.

    Example

    Solve for x and y.

    Equation A: \(3x+4y=52\)

    Equation B: \(5x+y=30\)

    [reveal-answer q=”815377″]Show Solution[/reveal-answer]
    [hidden-answer a=”815377″]Look for terms that can be eliminated. The equations do not have any x or y terms with the same coefficients.

    \(\begin{array}{r}3x+4y=52\\5x+y=30\end{array}\)

    Multiply the second equation by \(−4\) so they do have the same coefficient.

    \(\begin{array}{l}\,\,\,\,\,\,\,\,\,3x+4y=52\\−4\left(5x+y\right)=−4\left(30\right)\end{array}\)

    Rewrite the system and add the equations.

    \(\begin{array}{r}3x+4y=52\,\,\,\,\,\,\,\\−20x–4y=−120\end{array}\)

    Solve for x.

    \(\begin{array}{l}−17x=-68\\\,\,\,\,\,\,\,\,\,\,x=4\end{array}\)

    Substitute \(x=4\) into one of the original equations to find y.

    \(\begin{array}{r}3x+4y=52\\3\left(4\right)+4y=52\\12+4y=52\\4y=40\\y=10\end{array}\)

    Check your answer.

    \(\begin{array}{r}3x+4y=52\\3\left(4\right)+4\left(10\right)=52\\12+40=52\\52=52\\\text{TRUE}\\\\5x+y=30\\5\left(4\right)+10=30\\20+10=30\\30=30\\\text{TRUE}\end{array}\)

    The answers check.

    Answer

    The solution is (4, 10).

    [/hidden-answer]

    CautionCaution! When you use multiplication to eliminate a variable, you must multiply EACH term in the equation by the number you choose. Forgetting to multiply every term is a common mistake.

    There are other ways to solve this system. Instead of multiplying one equation in order to eliminate a variable when the equations were added, you could have multiplied both equations by different numbers.

    Let’s remove the variable x this time. Multiply Equation A by 5 and Equation B by \(−3\).

    Example

    Solve for x and y.

    \(\begin{array}{r}3x+4y=52\\5x+y=30\end{array}\)

    [reveal-answer q=”40585″]Show Solution[/reveal-answer]
    [hidden-answer a=”40585″]Look for terms that can be eliminated. The equations do not have any x or y terms with the same coefficient.

    \(\begin{array}{r}3x+4y=52\\5x+y=30\end{array}\)

    In order to use the elimination method, you have to create variables that have the same coefficient—then you can eliminate them. Multiply the top equation by 5.

    \(\begin{array}{r}5\left(3x+4y\right)=5\left(52\right)\\5x+y =30\,\,\,\,\,\,\,\,\,\,\,\,\\15x+20y=260\,\,\,\,\,\,\\5x+y=30\,\,\,\,\,\,\,\,\,\end{array}\)

    Now multiply the bottom equation by −3.

    \(\begin{array}{r}15x+20y=260\,\,\,\,\,\,\,\,\\-3(5x+y)=−3(30)\\15x+20y=260\,\,\,\,\,\,\,\,\\−15x–3y=−90\,\,\,\,\,\,\,\end{array}\)

    Next add the equations, and solve for y.

    \(\begin{array}{r}15x+20y=260\\−15x–3y=\,–90\\17y=170\\y=\,\,\,10\end{array}\)

    Substitute \(y=10\) into one of the original equations to find x.

    \(\begin{array}{r}3x+4y=52\\3x+4\left(10\right)=52\\3x+40=52\\3x=12\\x=4\,\,\,\end{array}\)

    You arrive at the same solution as before.

    Answer

    The solution is (4, 10).

    [/hidden-answer]

    These equations were multiplied by 5 and \(−3\) respectively, because that gave you terms that would add up to 0. Be sure to multiply all of the terms of the equation.

    In the following video, you will see an example of using the elimination method for solving a system of equations.

    Thumbnail for the embedded element "Ex 2: Solve a System of Equations Using the Elimination Method"

    A YouTube element has been excluded from this version of the text. You can view it online here: pb.libretexts.org/ba/?p=80

    It is possible to use the elimination method with multiplication and get a result that indicates no solutions or infinitely many solutions, just as with the other methods we have learned for finding solutions to systems. In the following example, you will see a system that has infinitely many solutions.

    Example

    Solve for x and y.

    Equation A: \(x-3y=-2\)

    Equation B: \(-2x+6y=4\)

    [reveal-answer q=”815327″]Show Solution[/reveal-answer]
    [hidden-answer a=”815327″]Look for terms that can be eliminated. The equations do not have any x or y terms with the same coefficients.

    \(\begin{array}{r}x-3y=-2\\-2x+6y=4\end{array}\)

    Multiply the first equation by \(2\) so the x terms of cancel out.

    \(\begin{array}{l}\,\,\,\,\,\,\,\,\,2\left(x-3y\right)=2\left(-2\right)\\-2x+6y=4\end{array}\)

    Rewrite the system and add the equations.

    \(\begin{array}{r}2x-6y=-4\\-2x+6y=4\\0x + 0y=0\\\,\,\,\,\,\,\,\,0=0\end{array}\)

    Does this kind of solution look familiar? This represents a solution of all real numbers for linear equations, and it represents the same thing when you get this outcome with systems. If we solve both of these equations for y, you will see that they are the same equation.

    Solve equation A for y:

    \(\begin{array}{r}x-3y=-2\\-3y=-x-2\\y=\frac{1}{3}x+\frac{2}{3}\end{array}\)

    Solve equation B for y:

    \(\begin{array}-2x+6y=4\\6y=2x+4\\y=\frac{2}{6}x+\frac{4}{6}\end{array}\)

    Reduce fractions by dividing the numerator and denominator of both fractions by 2:

    \(y=\frac{1}{3}+\frac{2}{3}\)

    Both equations are the same when written in slope intercept form, and therefore the solution set for the system is all real numbers.

    Answer

    The solution is: x and y can be all real numbers.

    [/hidden-answer]

    In the following video, the elimination method is used to solve a system of equations. Notice that one of the equations needs to be multiplied by a negative one first. Additionally, this system has an infinite number of solutions.

    Thumbnail for the embedded element "Ex: System of Equations Using Elimination (Infinite Solutions)"

    A YouTube element has been excluded from this version of the text. You can view it online here: pb.libretexts.org/ba/?p=80

    Summary

    The substitution method is one way of solving systems of equations. To use the substitution method, use one equation to find an expression for one of the variables in terms of the other variable. Then substitute that expression in place of that variable in the second equation. You can then solve this equation as it will now have only one variable. Solving using the substitution method will yield one of three results: a single value for each variable within the system (indicating one solution), an untrue statement (indicating no solutions), or a true statement (indicating an infinite number of solutions).

    Combining equations is a powerful tool for solving a system of equations. Adding or subtracting two equations in order to eliminate a common variable is called the elimination (or addition) method. Once one variable is eliminated, it becomes much easier to solve for the other one.

    Multiplication can be used to set up matching terms in equations before they are combined to aid in finding a solution to a system. When using the multiplication method, it is important to multiply all the terms on both sides of the equation—not just the one term you are trying to eliminate.

    CC licensed content, Original
    CC licensed content, Shared previously

    3.3: Algebraic Methods for Solving Systems is shared under a not declared license and was authored, remixed, and/or curated by LibreTexts.

    • Was this article helpful?