Solving systems of three linear equations

 
 
Systems of three equations blog post.jpeg
 
 
 

You can use substitution, elimination, or graphing to solve a system of three linear equations

In this lesson we’ll look at how to solve systems of three equations with three different variables.

Remember that a solution to a system of equations is the set of numbers that makes all of the equations true. If a three variable system has a solution, it’ll have a solution for each variable.

Krista King Math.jpg

Hi! I'm krista.

I create online courses to help you rock your math class. Read more.

 
 
 

Step-by-step example of solving a system of three linear equations


 
Krista King Math Signup.png
 
Algebra 2 course.png

Take the course

Want to learn more about Algebra 2? I have a step-by-step course for that. :)

 
 

 
 

Solving the system of three equations using elimination

Example

Solve the system of equations.

x5y+z=17-x-5y+z=17

5x5y+5z=5-5x-5y+5z=5

2x+5y3z=102x+5y-3z=-10


So that we can stay organized, let’s number the equations.

[1]  x5y+z=17-x-5y+z=17

[2]  5x5y+5z=5-5x-5y+5z=5

[3]  2x+5y3z=102x+5y-3z=-10

Notice that equations [1] and [3] have 5y-5y and 5y5y. We can add these two equations to cancel out a yy-term.

(x5y+z)+(2x+5y3z)=17+10(-x-5y+z)+(2x+5y-3z)=17+-10

Remove parentheses and combine like terms.

x5y+z+2x+5y3z=17+10-x-5y+z+2x+5y-3z=17+-10

x+2x5y+5y+z3z=17+10-x+2x-5y+5y+z-3z=17+-10

x2z=7x-2z=7

You might have also noticed that equations [2] and [3] have 5y-5y and 5y5y. So let’s add those together to get another xx and zz equation.

(5x5y+5z)+(2x+5y3z)=5+10(-5x-5y+5z)+(2x+5y-3z)=5+-10

Remove parentheses and combine like terms.

5x5y+5z+2x+5y3z=5+10-5x-5y+5z+2x+5y-3z=5+-10

5x+2x5y+5y+5z3z=5+10-5x+2x-5y+5y+5z-3z=5+-10

3x+2z=5-3x+2z=-5

Let’s add these new equations together because one has 2z2z and one has 2z-2z.

x2z=7x-2z=7

3x+2z=5-3x+2z=-5

(x2z)+(3x+2z)=7+5(x-2z)+(-3x+2z)=7+-5

Remove parentheses and combine like terms.

x2z+3x+2z=75x-2z+-3x+2z=7-5

x3x2z+2z=2x-3x-2z+2z=2

2x=2-2x=2

x=1x=-1

Choose one of the new equations to plug in x=1x=-1 to solve for zz. We’ll choose x2z=7x-2z=7.

12z=7-1-2z=7

2z=8-2z=8

z=4z=-4

Choose an original equation to plug in x=1x=-1 and z=4z=-4 to solve for yy. We’ll choose x5y+z=17-x-5y+z=17.

(1)5y+(4)=17-(-1)-5y+(-4)=17

Simplify and solve for yy.

15y4=171-5y-4=17

5y+14=17-5y+1-4=17

5y3=17-5y-3=17

5y=20-5y=20

y=4y=-4

The solution is (1,4,4)(-1,-4,-4) or x=1x=-1, y=4y=-4 and z=4z=-4.


Let’s do one more.


Systems of three equations for Algebra 2.jpg

If a three variable system has a solution, it’ll have a solution for each variable.

Deciding which method to use to solve the system, and what to do when the system has no solution

Example

Use any method to find the unique solution to the system of equations.

3a3b+4c=233a-3b+4c=-23

a+2b3c=25a+2b-3c=25

4ab+c=254a-b+c=25

So that we can stay organized, let’s number the equations.

[1]  3a3b+4c=233a-3b+4c=-23

[2]  a+2b3c=25a+2b-3c=25

[3]  4ab+c=254a-b+c=25

None of the terms have the same coefficients so we’ll need to multiply an equation to eliminate a variable. Let’s multiply equation [2] by 33 so we can eliminate the aa term by subtracting it from equation [1]

Let’s call the new form of equation [2], equation [2a].

3(a+2b3c=25)3(a+2b-3c=25)

[2a]  3a+6b9c=753a+6b-9c=75

Now let’s subtract [2a] from equation [1] to eliminate the aa term.

(3a3b+4c)(3a+6b9c)=2375(3a-3b+4c)-(3a+6b-9c)=-23-75

Distribute the minus sign through the parentheses.

3a3b+4c3a6b+9c=983a-3b+4c-3a-6b+9c=-98

3a3a3b6b+4c+9c=983a-3a-3b-6b+4c+9c=-98

[1.2a]  9b+13c=98-9b+13c=-98

We’ll call this new equation [1.2a].

Now we need to get another equation with only bb and cc terms. Let’s use equations [2] and [3].

This time we need to multiply equation [2] by 44 so we can subtract it from equation [3] and get rid of the aa term. We’ll call the new form of equation [2][2b].

4(a+2b3c=25)4(a+2b-3c=25)

[2b]  4a+8b12c=1004a+8b-12c=100

Now we subtract equation [2b] from equation [3] and call the result [3.2b].

[3]  4ab+c=254a-b+c=25

(4ab+c)(4a+8b12c)=25100(4a-b+c)-(4a+8b-12c)=25-100

Distribute the minus sigh through the parentheses.

4ab+c4a8b+12c=251004a-b+c-4a-8b+12c=25-100

Simplify.

4a4ab8b+c+12c=251004a-4a-b-8b+c+12c=25-100

[3.2b]  9b+13c=75-9b+13c=-75

Now use the two equations with bb and cc to solve.

[1.2a]  9b+13c=98-9b+13c=-98

[3.2b]  9b+13c=75-9b+13c=-75

Now we can subtract the two equations, and we get

(9b+13c)(9b+13c)=98(75)(-9b+13c)-(-9b+13c)=-98-(-75)

0=230=-23

Isn’t that impossible?

If something like this happens it means that there are no real solutions that can make the three equations true.

 
Krista King.png
 

Get access to the complete Algebra 2 course