Later, you will learn about matrices and how to row reduce which will allow you to solve systems of equations in a new way. In order to set you up so that using matrices is logical and helpful, it is important to first solve a few systems of three equations using a very specific type of variable elimination.

When solving systems, what are you allowed to do to each equation?

#### Watch This

http://www.youtube.com/watch?v=3RbVSvvRyeI James Sousa: Ex 1: System of Three Equations with Three Unknowns Using Elimination

#### Guidance

A system of three equations with three unknowns represents three planes in three dimensional space. When solving the system, you are figuring out how the planes intersect. It is possible that the three planes could intersect in a point:

It is also possible for two or more planes to be parallel or each pair of planes to intersect in a line. In either of these cases the three planes do not intersect at a single point and the system is said to have no solution. If the three planes intersect at a line or a plane, there are an infinite number of solutions.

The following system of equations has the solution (1, 3, 7). You can verify this by substituting 1 for \begin{align*}x\end{align*}, 3 for \begin{align*}y\end{align*}, and 7 for \begin{align*}z\end{align*} into each equation.

\begin{align*}x+2y-z &= 0\\ 7x-0y+z &= 14\\ 0x+y+z &= 10\end{align*}

One thing to be mindful of when given a system of equations is whether or not the equations are linearly independent. Three equations are linearly independent if each equation cannot be produced by a linear combination of the other two.

When solving a system of three equations and three variables, there are a few general guidelines that can be helpful:

- Start by trying to eliminate the first variable in the second row.
- Next eliminate the first and second variables in the third row. This will create zero coefficients in the lower right hand corner.
- Repeat this process for the upper right hand corner and you should end up with a very nice diagonal indicating what \begin{align*}x, y\end{align*} and \begin{align*}z\end{align*} equal.

**Example A**

Even though you know the solution, solve the system of equations below:

\begin{align*}x+2y-z &= 0\\ 7x-0y+z &= 14\\ 0x+y+z &= 10\end{align*}

**Solution: ** There are a number of ways to solve this system. Common techniques involve swapping rows, dividing and multiplying a row by a constant and adding or subtracting a multiple of one row to another.

*Step 1: Swap rows 2 and 3. Change* -0 *to* +0*.*

*\begin{align*}x+2y-z &= 0\\
0x+y+z &= 10\\
7x+0y+z &= 14\end{align*}*

*Step 2: Subtract 7 times row 1 to row 3.*

*\begin{align*}x+2y-z &= 0\\
0x+y+z &= 10\\
0x-14y+8z &= 14\end{align*}*

*Step 3: Add 14 times row 2 to row 3*

*\begin{align*}x+2y-z &= 0\\
0x+y+z &= 10\\
0x+0y+22z &= 154\end{align*}*

*Step 4: Divide row 3 by 22.*

*\begin{align*}x+2y-z &= 0\\
0x+y+z &= 10\\
0x+0y+z &= 7\end{align*}*

*Step 5: Subtract row 3 from row 2*

*\begin{align*}x+2y-z &= 0\\
0x+y+0z &= 3\\
0x+0y+z &= 7\end{align*}*

*Step 6: Add row 3 to row 1*

*\begin{align*}x+2y+0z &= 7\\
0x+y+0z &= 3\\
0x+0y+z &= 7\end{align*}*

*Step 7: Subtract 2 times row 2 to row 1.*

*\begin{align*}x+0y+0z &= 1\\
0x+y+0z &= 3\\
0x+0y+z &= 7\end{align*}*

The solution to the system is (1, 3, 7) exactly as it should be.

**Example B**

Is the following system linearly independent or dependent? How do you know?

\begin{align*}3x+2y+z &= 8\\ x+y+z &= 3\\ 5x+4y+3z &= 14\\ 6x+6y+6z &= 18\end{align*}

**Solution:** With four equations and three unknowns there must be at least one dependent equation. The simplest method of seeing linearly dependence is to notice that one equation is just a multiple of the other. In this case the fourth equation is just six times the second equation and so it is dependent.

Most people will not notice that the third equation is also dependent. It is common to start doing a problem and notice somewhere along the way that all the variables in a row disappear. This means that the original equations were dependent. In this case, the third equation is the first equation plus two times the second equation. This means they are dependent.

**Example C**

Reduce the following system to a system of two equations and two unknowns.

\begin{align*}3x+2y+z &= 7\\ 4x+0y+z &= 6\\ 6x-y+0z &= 5\end{align*}

**Solution: ** Strategically swapping rows so that the zero coefficients do not live on the diagonal is a clever starting move.

*Step 1: Swap rows 2 and 3.*

*\begin{align*}3x+2y+z &= 7\\
6x-y+0z &= 5\\
4x+0y+z &= 6\end{align*}*

*Step 2: Scale row 3 by a factor of 3. Subtract 2 times row 1 from for 2. *

*\begin{align*}3x+2y+z &= 7\\
0x-5y-2z &= -9\\
12x+0y+3z &= 18\end{align*}*

*Step 3: Subtract 4 times row 1 from row 3.*

*\begin{align*}3x+2y+z &= 7\\
0x-5y-2z &= -9\\
0x-8y-z &= -10\end{align*}*

*Step 4: Scale the second row by 8 and the third row by 5.*

*\begin{align*}3x+2y+z &= 7\\
0x-40y-16z &= -72\\
0x-40y-5z &= -50\end{align*}*

*Step 5: Subtract row 2 from row 3.*

*\begin{align*}3x+2y+z &= 7\\
0x-40y-16z &= -72\\
0x+0y+11z &= +22\end{align*}*

*Step 6: Scale row 3 to find z.*

*\begin{align*}3x+2y+z &= 7\\
0x-40y-16z &= -72\\
0x+0y+z &= 2\end{align*}*

Now that \begin{align*}z=2\end{align*}, rewrite the system so it becomes a system of three equations and three unknowns. Any iteration of the first two rows will work. This iteration is from step 6.

\begin{align*}3x+2y+2 &= 7\\ 0x-40y-32 &= -72\end{align*}

**Concept Problem Revisited**

When solving a system of three equations with three unknowns, you are allowed to add and subtract rows, swap rows and scale rows. These three operations should allow you to eliminate the coefficients of the variables in a systematic way.

#### Vocabulary

** Swapping rows** means rewriting the system so that two rows change places. This is purely a visual reorganization and should help you problem solve and see what to do next.

** Eliminating the variable** means making the coefficient equal to zero thereby removing that variable from that particular equation and reducing the number of unknown quantities.

** Scaling a row** means multiplying every coefficient in the row by any number you choose (besides zero). This can be helpful for getting coefficients to match so that they can be eliminated.

** Consistent systems** are systems that have at least one solution. If the equations are

**, then the system will have just one solution.**

*linearly independent*** Inconsistent systems** are systems that have no solution. An example is \begin{align*}x=2, x=3\end{align*}.

#### Guided Practice

1. When Kaitlyn went to the store with ten dollars she saw that she had some choices about what to buy. She could get one apple, one onion and one basket of blueberries for 9 dollars. She could get two apples and two onions for 10 dollars. She could also get two onions and one basket of blueberries for 10 dollars. Write a system of equations with variables \begin{align*}a, o\end{align*} and \begin{align*}b\end{align*} representing each of the three things she can buy.

2. Solve the system described in # 1.

3. Show that the following system is dependent.

\begin{align*}x+y+z &= 9\\ x+2y+3z &= 22\\ 2x+3y+4z &= 31\end{align*}

**Answers:**

1. Here is the system of equations:

\begin{align*}a+o+b &= 9\\ 2a+2o &= 10\\ 2o+b &= 10\end{align*}

2. Rewrite the system using \begin{align*}x, y\end{align*} and \begin{align*}z\end{align*} so that \begin{align*}o\end{align*} and 0 do not get mixed up. Include coefficients of 0 so that each column represents one variable.

*Step 1: Rewrite*

*\begin{align*}1x+1y+1z &= 9\\
2x+2y+0z &= 10\\
0x+2y+1z &= 10\end{align*}*

*Step 2: Subtract 2 times row 1 from row 2.*

*\begin{align*}1x+1y+1z &= 9\\
0x+0y-2z &= -8\\
0x+2y+1z &= 10\end{align*}*

*Step 3: Swap row 2 and row 3. Then scale row 3.*

*\begin{align*}1x+1y+1z &= 9\\
0x+2y+1z &= 10\\
0x+0y+z &= 4\end{align*}*

At this point you can see from the third equation that \begin{align*}z=4\end{align*}. From the second equation, \begin{align*}2y+4=10\end{align*}, so \begin{align*}y=3\end{align*}. Finally you can see from the first equation that \begin{align*}x+3+4=9\end{align*} so \begin{align*}x=2\end{align*}. Apples cost 2 dollars each, onions cost 3 dollars each and blueberries cost 4 dollars each.

3. You could notice that the third equation is simply the sum of the other two. What happens when you do not notice and try to solve the system as if it were independent?

*Step 1: Rewrite the system.*

*\begin{align*}x+y+z &= 9\\
x+2y+3z &= 22\\
2x+3y+4z &= 31\end{align*}*

*Step 2: Subtract 2 times row 1 from row 3.*

*\begin{align*}x+y+z &= 9\\
x+2y+3z &= 22\\
0x+1y+2z &= 13\end{align*}*

*Step 3: Subtract row 1 from row 2.*

*\begin{align*}x+y+z &= 9\\
0x+1y+2z &= 13\\
0x+1y+2z &= 13\end{align*}*

At this point when you subtract row 2 from row 3, all the coefficients in row 3 disappear. This means that you will end up with the following system of only two equations and three unknowns. Since the unknowns outnumber the equations, the system does not have a solution of one point.

\begin{align*}x+y+z &= 9\\ 0x+1y+2z &= 13\end{align*}

#### Practice

1. An equation with three variables represents a plane in space. Describe all the ways that three planes could interact in space.

2. What does it mean for equations to be linearly dependent?

3. How can you tell that a system is linearly dependent?

4. If you have linearly independent equations with four unknowns, how many of these equations would you need in order to get one solution?

5. Solve the following system of equations:

\begin{align*}3x-4y+z &= -17\\ 6x+y-3z &= 4\\ -x-y+5z &= 16\end{align*}

6. Show that the following system is dependent:

\begin{align*}2x-2y+z &= 5\\ 6x+y-3z &= 2\\ 4x+3y-4z &=-3\end{align*}

7. Solve the following system of equations:

\begin{align*}4x+y+z &= 15\\ -2x+3y+4z &= 38\\ -x-y+3z &= 16\end{align*}

8. Solve the following system of equations:

\begin{align*}3x-2y+3z &= 6\\ x+3y-3z &= -14\\ -x+y+5z &= 22\end{align*}

9. Solve the following system of equations:

\begin{align*}3x-y+z &= -10\\ 6x-2y+2z &= -20\\ -x-y+4z &= 12\end{align*}

10. Solve the following system of equations:

\begin{align*}x-3y+6z &= -30\\ 4x+2y-3z &= 18\\ -8x-3y+2z &= -22\end{align*}

11. Solve the following system of equations.

\begin{align*}x+2y+2z+w &= 5\\ 2x+y+2z-0w &= 5\\ 3x+3y+3z+2w &= 12\\ x+0y+z+w &= 1\end{align*}

A parabola goes through (3, -9.5), (6, -32), and (-4, 8).

12. Write a system of equations that you could use to solve to find the equation of the parabola. *Hint: Use the general equation **\begin{align*}Ax^2+Bx+C=y\end{align*}.*

13. Solve the system of equations from #12.

A parabola goes through (-2, 3), (2, 19), and (1, 6).

14. Write a system of equations that you could use to solve to find the equation of the parabola. *Hint: Use the general equation **\begin{align*}Ax^2+Bx+C=y\end{align*}.*

15. Solve the system of equations from #14.

### Answers for Explore More Problems

To view the Explore More answers, open this PDF file and look for section 8.2.