Solve Systems Using Linear Combinations

A “system of equations” is type of math problem in which you have two or more separate equations and you need to find the values of two or more variables. In general, to be able to find a solution, you need to have as many different equations as the number of variables that you wish to find. (There are advanced problems where the number of equations and the number of variables do not match, but that will not be addressed here.)

Steps

Arranging the Equations to Begin Solving

  1. Recognize the standard format. In algebra, the “standard format” for an equation is one that is written as <math>Ax+By=C</math>. When written in this format, the letters A, B and C are commonly chosen to represent numerical values, while x and y are the variables that you need to solve.
    • You could easily work with different variables, but the structure of the standard format will be the same. For example, if you are solving a business-related problem about selling hats and scarves to calculate the total number of items sold, you might choose the variable <math>h</math> to represent the number of hats and <math>s</math> to represent the number of scarves. Your standard format in this case would look like <math>Ah+Bs=T</math>. The steps for solving the problem will still be the same.
  2. Rearrange your equations to put them into standard format. This may require you to combine similar terms, if each variable appears in the equation more than once, for example. You will also need to move the terms so they appear in the proper order.
    • For example, given the equation <math>2x+y+2y+3x+1=4</math>, you need to perform the following steps to get to standard format:
      • <math>2x+y+2y+3x+1=4</math> (given equation)
      • <math>5x+3y+1=4</math> (combine like terms)
      • <math>5x+3y=3</math> (subtract 1 from both sides)
    • You may be familiar with seeing linear equations in the form <math>y=mx+b</math>. This is called the “slope-intercept” form of a line. It is useful for different purposes. It could be used to solve the system by linear combinations, but the standard format Ax+By=C is preferred. If you have your data in the slope-intercept form, you will need to rewrite it algebraically into standard format as follows:
      • <math>y=mx+b</math> (given slope-intercept form)
      • <math>y-mx=b</math> (subtract mx from both sides)
      • -<math>mx+y=b</math> (rearrange terms to get x first)
      • A=-m, B=1, C=b (redefine terms for standard format)
  3. Write your equations so the variables line up. It is helpful to write your equations with one directly over the other, so the similar terms line up.
    • For example, if you have the two equations, in standard format, of <math>2x-2y=5</math> and <math>3x+2y=8</math>, write them in two rows as:
      • <math>2x-2y=5</math>
      • <math>3x+2y=8</math>

Using Linear Combinations if a Pair of Coefficients Match

  1. Examine the equations in standard format. When you have your equations written in standard format, lined up so the similar terms are aligned, check the coefficients. You are looking for one pair of coefficients that match.
    • For example, consider these two equations:
      • <math>2x+y=5</math>
      • <math>2x-3y=1</math>
    • You should see very quickly that the term <math>2x</math> appears identically in each equation.
    • Be very careful when matching the terms. Look for the signs (plus or minus) to match as well. For this method of solving, the terms <math>2x</math> and <math>-2x</math> are NOT considered to be the same.
    • If your system does not have a matching pair of coefficients, you cannot use this method for solving. You will need to go on to the next method.
  2. Subtract corresponding terms. Working across the system from left to right, subtract each term of the second equation from the corresponding term of the first equation.
    • It may be helpful simply to draw a long horizontal line across the bottom of the two equations and subtract downward, as you would with any ordinary subtraction problem.
      • <math>2x+y=5</math>
      • <math>2x-3y=1</math>
      • ------------------------
      • <math>0x+4y=4</math>
  3. Write out the result. If one of your terms matched exactly, as it should, and you subtracted correctly, then one of the variables should be eliminated from the problem. Rewrite what you have left as a single equation.
    • In the example above, you should be left with <math>4y=4</math>.
    • Because one of the variables gets eliminated in this method, some textbooks will refer to this as the “elimination” method of solving a system of equations.
  4. Solve for the remaining variable. What you have left should be a fairly simple, one-variable equation. Solve it by dividing both sides of the equation by the coefficient.
    • In the example above, divide both sides of <math>4y=4</math> by 4. You will be left with the solution <math>y=1</math>.
  5. Replace that solution into one of your original equations. Take that solution, in our example y=1, and substitute it in place of <math>y</math> in either one of the original equations.
    • In this case, we can choose the first example, <math>2x+y=5</math>. When you replace the variable with its solution, you will have <math>2x+1=5</math>.
  6. Solve for the remaining variable. Use basic algebraic steps to solve for the remaining variable. Remember that whatever action you do to one side of the equation, you must also do to the other side. For example:
    • <math>2x+1=5</math> (original equation)
    • <math>2x=4</math> (subtract 1 from both sides)
    • <math>x=2</math> (divide both sides by 2 to get solution)
  7. Check your two solutions. Verify that you have done the work correctly by checking your solutions. You should be able to place your two solutions, in this example <math>x=2</math> and <math>y=1</math>, into each of the original equations. When you then simplify the equations, you will get true statements.
    • For example, check the first equation as follows:
      • <math>2x+y=5</math> (original equation)
      • <math>2*2+1=5</math> (insert values for x and y)
      • <math>4+1=5</math> (simplify multiplication)
      • <math>5=5</math> (simplify addition, to get solution)
      • The true statement 5=5 shows the solution is correct.
    • Check the second equation as follows:
      • <math>2x-3y=1</math> (original equation)
      • <math>2*2-3*1=1</math> (insert values for x and y)
      • <math>4-3=1</math> (simplify multiplication)
      • <math>1=1</math> (simplify subtraction, to get solution)
      • The true statement 1=1 shows the solution is correct.
  8. Write out your solution. The final solution, which you have proven to work in both equations, is <math>x=2</math> and <math>y=1</math>.
    • If you are working on graphing linear functions, you may also write your solution as an ordered pair. Thus, for this example, you would write <math>x=2</math> and <math>y=1</math> in the form <math>(2,1)</math>.

Using Linear Combinations if a Pair of Coefficients are Opposites

  1. Examine the equations in standard format. Set up your two equations in standard format and look at the coefficients of each of your variables. You are looking for the circumstance where the numbers are the same but the signs are different.
    • Consider this example:
      • <math>x-3y=5</math>
      • <math>2x+3y=19</math>
    • By examination, you should see that the first equation contains the term <math>-3y</math>, while the second equation contains the term <math>3y</math>. These two terms are opposites of each other.
  2. Add corresponding terms. Working across the system from left to right, add each term of the first equation to the corresponding term of the second equation. It may be helpful simply to draw a long horizontal line across the bottom of the two equations and add downward, as you would with any ordinary addition problem.
    • The above example works out as follows:
      • <math>x-3y=5</math>
      • <math>2x+3y=19</math>
      • -------------------------
      • <math>3x =24</math>
  3. Write out the result. Because you were adding, and one of your terms contained opposites, then one of the variables should be eliminated from the problem. Rewrite what you have left as a single equation.
    • In the example above, the <math>y</math> variable was eliminated. The remaining equation is <math>3x=24</math>.
    • Because one of the variables gets eliminated in this method, as with the prior subtraction method, some textbooks will refer to this as the “elimination” method of solving a system of equations.
  4. Solve for the remaining variable. What you have left should be a fairly simple, one-variable equation. Solve it by dividing both sides of the equation by the coefficient.
    • In the example above, divide both sides of <math>3x=24</math> by 3. You will be left with the solution <math>x=8</math>.
  5. Solve the second variable. Take that solution, in our example x=8, and substitute it in place of <math>x</math> in either one of the original equations.
    • Choose the first equation:
      • <math>x-3y=5</math> (original equation)
      • <math>8-3y=5</math> (insert value of x)
      • -<math>3y=</math>-<math>3</math> <subtract 8 from both sides)
      • <math>y=1</math> (divide both sides by -3, to get solution)
  6. Check your two solutions. Verify that you have done the work correctly by checking your solutions. You should be able to place your two solutions, in this example <math>x=8</math> and <math>y=1</math>, into each of the original equations. When you then simplify the equations, you will get true statements.
    • For example, start with the first equation:
      • <math>x-3y=5</math> (original equation)
      • <math>8-3*1=5</math> (insert values of x and y)
      • <math>8-3=5</math> (simplify multiplication)
      • <math>5=5</math> (simplify subtraction to get solution)
      • The true statement 5=5 shows that the solution is correct.
    • Now try the second equation:
      • <math>2x+3y=19</math> (original equation)
      • <math>2*8+3*1=19</math> (insert values of x and y)
      • <math>16+3=19</math> (simplify multiplication)
      • <math>19=19</math> (simplify addition to get solution)
      • The true statement 19=19 shows that the solution is correct.
  7. Write out your solution. The final solution, which you have proven to work in both equations, is <math>x=8</math> and <math>y=1</math>.
    • If you are working on graphing linear functions, you may also write your solution as an ordered pair. This for this example, you would write <math>x=8</math> and <math>y=1</math> in the form <math>(8,1)</math>.

Using Linear Combinations for any Coefficients

  1. Examine the equations in standard format. It is more likely that your system of equations will not have a pair of matching or opposite coefficients. When you line up the two equations and compare coefficients, unless two coefficients (the A and B of the standard format) match exactly, you need to take a couple extra steps.
    • For example, consider these two initial equations:
      • <math>3x+2y=6</math>
      • <math>8x-4y=2</math>
    • When you examine them, there are no matching coefficients for similar terms. That is, the 3x does not match the 8x, and the 2y does not match the -4y. There is also no pair of opposites.
  2. Create a pair of matching or opposite coefficients. Examine the two equations and decide what number you could use to multiply one of the equations, to create a pair of matching or opposite coefficients. For example, given the system <math>3x+2y=6</math> and <math>8x-4y=2</math>, you should be able to see that the first equation contains a term <math>2y</math> and the second equation contains a term -<math>4y</math>. If you double the first term, you will have a pair of opposite coefficients.
    • Multiply each term of the equation to create a new equation for solving. In this example, multiply each term of the first equation by <math>2</math>. This will turn the original equation <math>3x+2y=6</math> into <math>6x+4y=12</math>. Notice that you now have a pair of opposite coefficients in the <math>y</math> terms of <math>4y</math> and -<math>4y</math>.
    • In some cases, you may need to do a double multiplication, or use a fraction. For example, in the system <math>2x-3y=2</math> and <math>5x+2y=1</math>, there are no coefficients that are simple integer multiples of each other. You could multiply the first equation by <math>5/2</math> to create <math>5x-\frac{15}{2}y=5</math>, and now the <math>x</math> coefficients are ready to be canceled. Alternatively, if you prefer not to work with fractions, you could multiply the first equation by 5 and the second equation by 2. This would create two completely new equations, as follows:
      • <math>2x-3y=2</math> (first original equation)
      • <math>5x+2y=1</math> (second original equation)
      • Now multiply the first equation by 5, and the second equation by 2
      • <math>5*(2x-3y=2)</math>→→<math>10x-15y=10</math>
      • <math>2*(5x+2y=1)</math>→→<math>10x+4y=2</math>
  3. Either add or subtract the two new equations. If you have created a matching pair of coefficients, you will subtract terms to eliminate one variable. If you have created a pair of opposite coefficients, you will add terms to eliminate one variable. Consider the following example:
      • <math>6x+4y=12</math> (first equation)
      • <math>8x-4y=2</math> (second equation)
      • ----------------------
      • <math>14x =14</math> (add two equations together to cancel y terms)
      • <math>x=1</math> (divide by 14 to get solution)
  4. Replace that solution into one of your original equations. Take that solution, in our example x=1, and substitute it in place of <math>x</math> in either one of the original equations. This works as follows:
    • <math>3x+2y=6</math> (original equation)
    • <math>3*1+2y=6</math> (insert x value)
    • <math>3+2y=6</math> (simplify multiplication)
    • <math>2y=3</math> (subtract 3 from both sides)
    • <math>y=\frac{3}{2}</math> (divide both sides by 2)
  5. Check your two solutions. Verify that you have done the work correctly by checking your solutions. You should be able to place your two solutions, in this example <math>x=1</math> and <math>y=\frac{3}{2}</math>, into each of the original equations. When you then simplify the equations, you should get true statements.
    • For example, check the first equation:
      • <math>3x+2y=6</math> (original equation)
      • <math>3*1+2*\frac{3}{2}=6</math> (insert x and y values)
      • <math>3+3=6</math> (simplify multiplication)
      • <math>6=6</math> (simplify addition to get solution)
      • The true statement <math>6=6</math> shows that the solution is correct.
    • Now check the second equation, as follows:
      • <math>8x-4y=2</math> (original equation)
      • <math>8*1-4*\frac{3}{2}=2</math> (insert x and y values)
      • <math>8-6=2</math> (simplify multiplication)
      • <math>2=2</math> (simplify subtraction)
      • The true statement <math>2=2</math> shows that the solution is correct.
  6. Write out your solution. The final solution, which you have proven to work in both equations, is <math>x=1</math> and <math>y=\frac{3}{2}</math>.
    • If you are working on graphing linear functions, you may also write your solution as an ordered pair. This for this example, you would write <math>x=1</math> and <math>y=\frac{3}{2}</math> in the form <math>(1,\frac{3}{2})</math>.

Dealing with Special Circumstances

  1. Recognize identical equations as having infinite solutions. In some circumstances, your system of linear equations may have infinite solutions. This means that any pair of values that you insert into the two variables will make the two equations correct. This happens when the two equations are really just algebraic variations of the same, single equation.
    • For example, consider these two equations:
      • <math>2x+8y=18</math>
      • <math>x+4y=9</math>
    • If you begin working on this system and try creating a pair of matching coefficients, you will find that by multiplying the second equation by 2 you will create the equation <math>2x+8y=18</math>. This is an exact match of the first equation. If you proceed through the steps, you will eventually get the result <math>0=0</math>.
    • A solution of 0=0 means that you have “infinite” solutions or you can simply say that the two equations are identical.
    • If you consider this system graphically and plot the lines that are represented by the two equations, the “infinite” solution means that the two lines lie exactly one on top of the other. It is really only one line.
  2. Find systems with no solution. Occasionally you may have a system in which the two equations, when written in standard form, are nearly identical except that the constant term C is different. Such a system has no solution.
    • Consider these equations:
      • <math>4x+2y=6</math>
      • <math>2x+y=4</math>
    • At first glance, these look like very different equations. However, when you begin solving and multiply each term of the second equation by 2 to try to create matching coefficients, you will wind up with the two equations:
      • <math>4x+2y=6</math>
      • <math>4x+2y=8</math>
    • This is an impossible situation, since the expression <math>4x+2y</math> cannot equal both 6 and 8 at the same time. If you were to try solving this by subtracting the terms, you would reach the result <math>0=-2</math>, which is an incorrect statement. In such a circumstance, your response is that there is no solution to this system.
    • If you consider what this system means graphically, these are two parallel lines. They will never intersect, so there is no single solution to the system.
  3. Use a matrix for systems with more than two variables. It is possible for a system of linear equations to have more than two variables. You may have 3, 4, or as many variables as the problem dictates. Finding a solution to the system means finding a single value for each variable that makes each equation in the system correct. To find a single, unique solution, you must have as many equations as you have variables. Thus, if you have the variables <math>x, y</math> and <math>z</math>, you need three equations.
    • Solving a system of three or more variables can be done using the linear combinations explained here, but that gets very complicated. The preferred method is using matrices, which is too advanced for this article. You may wish to read Use a Graphing Calculator to Solve a Systems of Equations.

Tips

Warnings

  • Always pay careful attention to the signs of the coefficients. Common mistakes occur when people miss negative signs. Remember that if the signs match, then you will subtract terms to eliminate a variable. If the signs are opposites, then you will add to eliminate a variable.


Related Articles