Skip to main content
Logo image

Elementary Linear Algebra: For University of Lethbridge Math 1410

Section 3.5 Applications of Linear Systems

We’ve started this chapter by addressing the issue of finding the solution to a system of linear equations. In subsequent sections, we defined matrices to store linear equation information; we described how we can manipulate matrices without changing the solutions; we described how to efficiently manipulate matrices so that a working solution can be easily found.
We shouldn’t lose sight of the fact that our work in the previous sections was aimed at finding solutions to systems of linear equations. In this section, we’ll learn how to apply what we’ve learned to actually solve some problems.
Many, problems that are addressed by engineers, businesspeople, scientists and mathematicians can be solved by properly setting up systems of linear equations. In this section we highlight only a few of the wide variety of problems that matrix algebra can help us solve.
We start with a simple example.

Example 3.5.1. Counting marbles, again.

A jar contains 100 blue, green, red and yellow marbles. There are twice as many yellow marbles as blue; there are 10 more blue marbles than red; the sum of the red and yellow marbles is the same as the sum of the blue and green. How many marbles of each color are there?
Solution.
Let’s call the number of blue balls \(b\text{,}\) and the number of the other balls \(g\text{,}\) \(r\) and \(y\text{,}\) each representing the obvious. Since we know that we have 100 marbles, we have the equation
\begin{equation*} b+g+r+y=100\text{.} \end{equation*}
The next sentence in our problem statement allows us to create three more equations.
We are told that there are twice as many yellow marbles as blue. One of the following two equations is correct, based on this statement; which one is it?
\begin{equation*} 2y=b \quad\quad \text{or} \quad\quad 2b=y \end{equation*}
The first equation says that if we take the number of yellow marbles, then double it, we’ll have the number of blue marbles. That is not what we were told. The second equation states that if we take the number of blue marbles, then double it, we’ll have the number of yellow marbles. This is what we were told.
The next statement of “there are 10 more blue marbles as red” can be written as either
\begin{equation*} b=r+10 \quad\quad \text{or} \quad\quad r=b+10\text{.} \end{equation*}
Which is it?
The first equation says that if we take the number of red marbles, then add 10, we’ll have the number of blue marbles. This is what we were told. The next equation is wrong; it implies there are more red marbles than blue.
The final statement tells us that the sum of the red and yellow marbles is the same as the sum of the blue and green marbles, giving us the equation
\begin{equation*} r+y=b+g\text{.} \end{equation*}
We have four equations; altogether, they are
\begin{align*} b+g+r+y \amp = 100\\ 2b \amp =y\\ b \amp =r+10\\ r+y \amp =b+g \text{.} \end{align*}
We want to write these equations in a standard way, with all the unknowns on the left and the constants on the right. Let us also write them so that the variables appear in the same order in each equation (we’ll use alphabetical order to make it simple). We now have
\begin{align*} b+g+r+y \amp =100\\ 2b-y \amp =0\\b-r \amp =10\\ -b-g+r+y \amp =0 \text{.} \end{align*}
To find the solution, let’s form the appropriate augmented matrix and put it into reduced row echelon form. We do so here, without showing the steps.
\begin{equation*} \left[\begin{array}{cccc|c}1 \amp 1 \amp 1\amp 1\amp 100\\2\amp 0\amp 0\amp -1\amp 0\\1\amp 0\amp -1\amp 0\amp 10\\-1\amp -1\amp 1\amp 1\amp 0\\ \end{array}\right] \quad\quad \overrightarrow{\text{rref}} \quad\quad \left[\begin{array}{cccc|c} 1\amp 0\amp 0\amp 0\amp 20\\0\amp 1\amp 0\amp 0\amp 30\\0\amp 0\amp 1\amp 0\amp 10\\0\amp 0\amp 0\amp 1\amp 40\\ \end{array}\right]\text{.} \end{equation*}
We interpret from the reduced row echelon form of the matrix that we have 20 blue, 30 green, 10 red and 40 yellow marbles.
Even if you had a bit of difficulty with the previous example, in reality, this type of problem is pretty simple. The unknowns were easy to identify, the equations were pretty straightforward to write (maybe a bit tricky for some), and only the necessary information was given.
Most problems that we face in the world do not approach us in this way; most problems do not approach us in the form of “Here is an equation. Solve it.” Rather, most problems come in the form of:
Here is a problem. I want the solution. To help, here is lots of information. It may be just enough; it may be too much; it may not be enough. You figure out what you need; just give me the solution.
Faced with this type of problem, how do we proceed? Like much of what we’ve done in the past, there isn’t just one “right” way. However, there are a few steps that can guide us. You don’t have to follow these steps, “step by step,” but if you find that you are having difficulty solving a problem, working through these steps may help. (Note: while the principles outlined here will help one solve any type of problem, these steps are written specifically for solving problems that involve only linear equations.)

Key Idea 3.5.2. Mathematical Problem Solving.

  1. Understand the problem. What exactly is being asked?
  2. Identify the unknowns. What are you trying to find? What units are involved?
  3. Give names to your unknowns (these are your variables).
  4. Use the information given to write as many equations as you can that involve these variables.
  5. Use the equations to form an augmented matrix; use Gaussian elimination to put the matrix into reduced row echelon form.
  6. Interpret the reduced row echelon form of the matrix to identify the solution.
  7. Ensure the solution makes sense in the context of the problem.
Having identified some steps, let us put them into practice with some examples.

Example 3.5.3. Arranging seating.

A concert hall has seating arranged in three sections. As part of a special promotion, guests will receive two of three prizes. Guests seated in the first and second sections will receive Prize A, guests seated in the second and third sections will receive Prize B, and guests seated in the first and third sections will receive Prize C. Concert promoters told the concert hall managers of their plans, and asked how many seats were in each section. (The promoters want to store prizes for each section separately for easier distribution.) The managers, thinking they were being helpful, told the promoters they would need 105 A prizes, 103 B prizes, and 88 C prizes, and have since been unavailable for further help. How many seats are in each section?
Solution.
Before we rush in and start making equations, we should be clear about what is being asked. The final sentence asks: “How many seats are in each section?” This tells us what our unknowns should be: we should name our unknowns for the number of seats in each section. Let \(x_1\text{,}\) \(x_2\) and \(x_3\) denote the number of seats in the first, second and third sections, respectively. This covers the first two steps of our general problem solving technique.
(It is tempting, perhaps, to name our variables for the number of prizes given away. However, when we think more about this, we realize that we already know this — that information is given to us. Rather, we should name our variables for the things we don’t know.)
Having our unknowns identified and variables named, we now proceed to forming equations from the information given. Knowing that Prize A goes to guests in the first and second sections and that we’ll need 105 of these prizes tells us
\begin{equation*} x_1+x_2 = 105\text{.} \end{equation*}
Proceeding in a similar fashion, we get two more equations,
\begin{equation*} x_2+x_3 = 103\quad\text{ and }\quad x_1+x_3 = 88\text{.} \end{equation*}
Thus our linear system is
\begin{equation*} \begin{array}{rcl} x_1+x_2 \amp = \amp 105\\ x_2+x_3 \amp = \amp 103\\ x_1+x_3 \amp =\amp 88 \end{array}\text{,} \end{equation*}
and the corresponding augmented matrix is
\begin{equation*} \left[\begin{array}{ccc|c}1 \amp 1 \amp 0\amp 105\\0\amp 1\amp 1\amp 103\\1\amp 0\amp 1\amp 88\\ \end{array}\right]\text{.} \end{equation*}
To solve our system, let’s put this matrix into reduced row echelon form.
\begin{equation*} \left[\begin{array}{ccc|c}1 \amp 1 \amp 0\amp 105\\0\amp 1\amp 1\amp 103\\1\amp 0\amp 1\amp 88\\ \end{array}\right] \quad \quad \overrightarrow{\text{rref}} \quad\quad \left[\begin{array}{ccc|c}1\amp 0\amp 0\amp 45\\0\amp 1\amp 0\amp 60\\0\amp 0\amp 1\amp 43\\ \end{array}\right]\text{.} \end{equation*}
We can now read off our solution. The first section has 45 seats, the second has 60 seats, and the third has 43 seats.

Example 3.5.4. Determining river speed.

A lady takes a 2-mile motorized boat trip down the Highwater River, knowing the trip will take 30 minutes. She asks the boat pilot “How fast does this river flow?” He replies “I have no idea, lady. I just drive the boat.”
She thinks for a moment, then asks “How long does the return trip take?” He replies “The same; half an hour.” She follows up with the statement, “Since both legs take the same time, you must not drive the boat at the same speed.”
“Naw,” the pilot said. “While I really don’t know exactly how fast I go, I do know that since we don’t carry any tourists, I drive the boat twice as fast.”
The lady walks away satisfied; she knows how fast the river flows. (How fast does it flow?)
Solution.
This problem forces us to think about what information is given and how to use it to find what we want to know. In fact, to find the solution, we’ll find out extra information that we weren’t asked for!
We are asked to find how fast the river is moving (step 1). To find this, we should recognize that, in some sense, there are three speeds at work in the boat trips: the speed of the river (which we want to find), the speed of the boat, and the speed that they actually travel at.
We know that each leg of the trip takes half an hour; if it takes half an hour to cover 2 miles, then they must be travelling at 4 mph, each way.
The other two speeds are unknowns, but they are related to the overall speeds. Let’s call the speed of the river \(r\) and the speed of the boat \(b\text{.}\) (And we should be careful. From the conversation, we know that the boat travels at two different speeds. So we’ll say that \(b\) represents the speed of the boat when it travels downstream, so \(2b\) represents the speed of the boat when it travels upstream.) Let’s let our speed be measured in the units of miles/hour (mph) as we used above (steps 2 and 3).
What is the rate of the people on the boat? When they are travelling downstream, their rate is the sum of the water speed and the boat speed. Since their overall speed is 4 mph, we have the equation \(r+b=4\text{.}\)
When the boat returns going against the current, its overall speed is the rate of the boat minus the rate of the river (since the river is working against the boat). The overall trip is still taken at 4 mph, so we have the equation \(2b-r=4\text{.}\) (Recall: the boat is travelling twice as fast as before.)
The corresponding augmented matrix is
\begin{equation*} \left[\begin{array}{cc|c} 1 \amp 1 \amp 4\\ 2\amp -1\amp 4\\ \end{array}\right]\text{.} \end{equation*}
Note that we decided to let the first column hold the coefficients of \(b\text{.}\)
Putting this matrix in reduced row echelon form gives us:
\begin{equation*} \left[\begin{array}{cc|c} 1 \amp 1 \amp 4\\ 2\amp -1\amp 4\\ \end{array}\right]\quad\quad\overrightarrow{\text{rref}}\quad\quad\left[\begin{array}{cc|c}1\amp 0\amp 8/3\\0\amp 1\amp 4/3\\ \end{array}\right]\text{.} \end{equation*}
We finish by interpreting this solution: the speed of the boat (going downstream) is \(8/3\) mph, or \(2.\overline{6}\) mph, and the speed of the river is \(4/3\) mph, or \(1.\overline{3}\) mph. All we really wanted to know was the speed of the river, at about \(1.3\) mph.

Example 3.5.5. Fitting a quadratic curve.

Find the equation of the quadratic function that goes through the points \((-1,6)\text{,}\) \((1,2)\) and \((2,3)\text{.}\)
Solution.
This may not seem like a “linear” problem since we are talking about a quadratic function, but closer examination will show that it really is.
We normally write quadratic functions as \(y=ax^2+bx+c\) where \(a\text{,}\) \(b\) and \(c\) are the coefficients; in this case, they are our unknowns. We have three points; consider the point \((-1,6)\text{.}\) This tells us directly that if \(x=-1\text{,}\) then \(y=6\text{.}\) Therefore we know that \(6=a(-1)^2+b(-1)+c\text{.}\) Writing this in a more standard form, we have the linear equation
\begin{equation*} a - b+c=6\text{.} \end{equation*}
The second point tells us that \(a(1)^2+b(1)+c = 2\text{,}\) which we can simplify as \(a+b+c=2\text{,}\) and the last point tells us \(a(2)^2+b(2)+c = 3\text{,}\) or \(4a+2b+c=3\text{.}\) Thus our linear system is
\begin{equation*} \begin{array}{rcl} a-b+c \amp = \amp 6\\ a+b+c \amp = \amp 2\\ 4a+2b+c \amp =\amp 3. \end{array}\text{.} \end{equation*}
Again, to solve our system, we find the reduced row echelon form of the corresponding augmented matrix. We don’t show the steps here, just the final result.
\begin{equation*} \left[\begin{array}{ccc|c}1 \amp -1 \amp 1\amp 6\\1\amp 1\amp 1\amp 2\\4\amp 2\amp 1\amp 3\\ \end{array}\right] \quad\quad \overrightarrow{\text{ rref }}\quad\quad \left[\begin{array}{ccc|c}1\amp 0\amp 0\amp 1\\0\amp 1\amp 0\amp -2\\0\amp 0\amp 1\amp 3\\ \end{array}\right] \end{equation*}
This tells us that \(a=1\text{,}\) \(b=-2\) and \(c=3\text{,}\) giving us the quadratic function \(y=x^2-2x+3\text{.}\)
One thing interesting about the previous example is that it confirms for us something that we may have known for a while (but didn’t know why it was true). Why do we need two points to find the equation of the line? Because in the equation of the a line, we have two unknowns, and hence we’ll need two equations to find values for these unknowns.
A quadratic has three unknowns (the coefficients of the \(x^2\) term and the \(x\) term, and the constant). Therefore we’ll need three equations, and therefore we’ll need three points.
What happens if we try to find the quadratic function that goes through 3 points that are all on the same line? The fast answer is that you’ll get the equation of a line; there isn’t a quadratic function that goes through 3 colinear points. Try it and see! (Pick easy points, like \((0,0)\text{,}\) \((1,1)\) and \((2,2)\text{.}\) You’ll find that the coefficient of the \(x^2\) term is 0.)
Of course, we can do the same type of thing to find polynomials that go through 4, 5, etc., points. In general, if you are given \(n+1\) points, a polynomial that goes through all \(n+1\) points will have degree at most \(n\text{.}\)

Example 3.5.6. A money counting problem.

A woman has 32 $\(1\text{,}\) $\(5\text{,}\) and $\(10\) bills in her purse, giving her a total of $100. How many bills of each denomination does she have?
Solution.
Let’s name our unknowns \(x\text{,}\) \(y\) and \(z\) for our ones, fives and tens, respectively (it is tempting to call them \(o\text{,}\) \(f\) and \(t\text{,}\) but \(o\) looks too much like 0). We know that there are a total of 32 bills, so we have the equation
\begin{equation*} x+y+z = 32\text{.} \end{equation*}
We also know that we have $100, so we have the equation
\begin{equation*} x+5y+10z = 100\text{.} \end{equation*}
We have three unknowns but only two equations, so we know that we cannot expect a unique solution. Let’s try to solve this system anyway and see what we get.
Putting the system into a matrix and then finding the reduced row echelon form, we have
\begin{equation*} \left[\begin{array}{ccc|c}1\amp 1\amp 1\amp 32\\ 1\amp 5\amp 10\amp 100 \end{array}\right] \qquad \overrightarrow{\text{rref}}\qquad \left[\begin{array}{ccc|c}1\amp 0\amp -\frac54\amp 15\\0\amp 1\amp \frac94\amp 17 \end{array}\right]\text{.} \end{equation*}
Reading from our reduced matrix, we have the infinite solution set
\begin{align*} x \amp =15+\frac54z\\ y \amp =17 - \frac94z\\ z \amp \text{ is free}\text{.} \end{align*}
While we do have infinitely many solutions, most of these solutions really don’t make sense in the context of this problem. (Setting \(z = \frac12\) doesn’t make sense, for having half a ten dollar bill doesn’t give us $5. Likewise, having \(z = 8\) doesn’t make sense, for then we’d have “\(-1\)” $5 bills.) So we must make sure that our choice of \(z\) doesn’t give us fractions of bills or negative amounts of bills.
To avoid fractions, \(z\) must be a multiple of 4 (\(-4, 0, 4, 8, \ldots\)). Of course, \(z\geq 0\text{,}\) for a negative number wouldn’t make sense. If \(z = 0\text{,}\) then we have 15 one dollar bills and 17 five dollar bills, giving us $100. If \(z = 4\text{,}\) then we have \(x = 20\) and \(y = 8\text{.}\) We already mentioned that \(z=8\) doesn’t make sense, nor does any value of \(z\) where \(z\geq 8\text{.}\)
So it seems that we have two answers; one with \(z=0\) and one with \(z=4\text{.}\) Of course, by the statement of the problem, we are led to believe that the lady has at least one$10 bill, so probably the “best” answer is that we have 20 $1 bills, 8 $5 bills and 4 $10 bills. The real point of this example, though, is to address how infinitely many solutions may appear in a real world situation, and how surprising things may result.

Example 3.5.7. Recreating a football score.

In a football game, teams can score points through touchdowns worth 6 points, extra points (that follow touchdowns) worth 1 point, two point conversions (that also follow touchdowns) worth 2 points and field goals, worth 3 points. You are told that in a football game, the two competing teams scored on 7 occasions, giving a total score of 24 points. Each touchdown was followed by either a successful extra point or two point conversion. In what ways were these points scored?
Solution.
The question asks how the points were scored; we can interpret this as asking how many touchdowns, extra points, two point conversions and field goals were scored. We’ll need to assign variable names to our unknowns; let \(t\) represent the number of touchdowns scored; let \(x\) represent the number of extra points scored, let \(w\) represent the number of two point conversions, and let \(f\) represent the number of field goals scored.
Now we address the issue of writing equations with these variables using the given information. Since we have a total of 7 scoring occasions, we know that
\begin{equation*} t+x+w+f=7\text{.} \end{equation*}
The total points scored is 24; considering the value of each type of scoring opportunity, we can write the equation
\begin{equation*} 6t+x+2w+3f = 24\text{.} \end{equation*}
Finally, we know that each touchdown was followed by a successful extra point or two point conversion. This is subtle, but it tells us that the number of touchdowns is equal to the sum of extra points and two point conversions. In other words,
\begin{equation*} t = x+w\text{.} \end{equation*}
To solve our problem, we put these equations into a matrix and put the matrix into reduced row echelon form. Doing so, we find
\begin{equation*} \left[\begin{array}{cccc|c}1 \amp 1 \amp 1\amp 1\amp 7\\ 6\amp 1\amp 2\amp 3\amp 24\\1\amp -1\amp -1\amp 0\amp 0 \end{array}\right] \quad\quad\overrightarrow{\text{rref}}\quad\quad \left[\begin{array}{cccc|c} 1\amp 0\amp 0\amp 0.5\amp 3.5\\0\amp 1\amp 0\amp 1\amp 4\\ 0\amp 0\amp 1\amp -0.5\amp -0.5 \end{array}\right]\text{.} \end{equation*}
Therefore, we know that
\begin{align*} t \amp =3.5-0.5f\\ x \amp =4-f\\ w \amp =-0.5+0.5f \text{.} \end{align*}
We recognize that this means there are “infinitely many solutions,” but of course most of these will not make sense in the context of a real football game. We must apply some logic to make sense of the situation.
Progressing in no particular order, consider the second equation, \(x = 4-f\text{.}\) In order for us to have a positive number of extra points, we must have \(f\leq 4\text{.}\) (And of course, we need \(f\geq 0\text{,}\) too.) Therefore, right away we know we have a total of only 5 possibilities, where \(f = 0\text{,}\) \(1\text{,}\) \(2\text{,}\) \(3\) or \(4\text{.}\)
From the first and third equations, we see that if \(f\) is an even number, then \(t\) and \(w\) will both be fractions (for instance, if \(f=0\text{,}\) then \(t = 3.5\)) which does not make sense. Therefore, we are down to two possible solutions, \(f = 1\) and \(f=3\text{.}\)
If \(f=1\text{,}\) we have 3 touchdowns, 3 extra points, no two point conversions, and (of course), 1 field goal. (Check to make sure that gives 24 points!) If \(f=3\text{,}\) then we 2 touchdowns, 1 extra point, 1 two point conversion, and (of course) 3 field goals. Again, check to make sure this gives us 24 points. Also, we should check each solution to make sure that we have a total of 7 scoring occasions and that each touchdown could be followed by an extra point or a two point conversion.
We have seen a variety of applications of systems of linear equations. We would do well to remind ourselves of the ways in which solutions to linear systems come: there can be exactly one solution, infinitely many solutions, or no solutions. While we did see a few examples where it seemed like we had only 2 solutions, this was because we were restricting our solutions to “make sense” within a certain context.
We should also remind ourselves that linear equations are immensely important. The examples we considered here ask fundamentally simple questions like “How fast is the water moving?” or “What is the quadratic function that goes through these three points?” or “How were points in a football game scored?” The real “important” situations ask much more difficult questions that often require thousands of equations! (Gauss began the systematic study of solving systems of linear equations while trying to predict the next sighting of a comet; he needed to solve a system of linear equations that had 17 unknowns. Today, this a relatively easy situation to handle with the help of computers, but to do it by hand is a real pain.) Once we understand the fundamentals of solving systems of equations, we can move on to looking at solving bigger systems of equations; this text focuses on getting us to understand the fundamentals.

Span and linear independence.

We mentioned in Section 2.7 that the techniques of this chapter were necessary to answer questions about vectors, including those involving span and linear independence. We complete this section by including a few examples involving these concepts.

Example 3.5.8. Determining which vectors belong to a span.

Let \(\vec{v}_1 = \bbm 1\\-2\\0\ebm\text{,}\) \(\vec{v}_2 = \bbm 3\\4\\8\ebm\text{,}\) and \(\vec{v}_3 = \bbm 3\\-1\\4\ebm\text{.}\) Determine which of the following vectors can be written as a linear combination of the vectors \(\vec{v}_1\text{,}\) \(\vec{v}_2\text{,}\) \(\vec{v}_3\text{.}\)
  1. \(\displaystyle \vec{a} = \bbm 2\\-14\\-8\ebm\)
  2. \(\displaystyle \vec{b} = \bbm 1\\0\\-4\ebm\)
  3. \(\displaystyle \vec{c} = \bbm -4\\3\\1\ebm\)
Solution.
Put another way, this problem is asking us which, if any, of the vectors \(\vec{a}\text{,}\) \(\vec{b}\text{,}\) \(\vec{c}\) belong to the span of the vectors \(\vec{v}_1\text{,}\) \(\vec{v}_2\text{,}\) \(\vec{v}_3\text{.}\) Recall that
\begin{equation*} \vec{a}\in \operatorname{span}\{\vec{v}_1, \vec{v}_2, \vec{v}_3\} \end{equation*}
if and only if there exist scalars \(x_1,x_2,x_3\) such that
\begin{equation*} x_1\vec{v}_1+x_2\vec{v}_2+x_3\vec{v}_3 = \vec{a}\text{.} \end{equation*}
Plugging in values for our vectors, we are trying to solve
\begin{equation*} x_1\bbm 1\\-2\\0\ebm + x_2\bbm 3\\4\\8\ebm + x_3\bbm 3\\-1\\4\ebm = \bbm 2\\-14\\-8\ebm\text{.} \end{equation*}
If we combine the vectors on the left-hand side above into a single vector and equate coefficients, we obtain the system
\begin{equation*} \begin{array}{ccccccc} x_1\amp +\amp 3x_2\amp +\amp 3x_3\amp =\amp 2\\ -2x_1\amp +\amp 4x_2\amp -\amp x_3\amp =\amp -14\\ \amp \amp 8x_2\amp +\amp 4x_3\amp =\amp -8 \end{array}\text{.} \end{equation*}
We now what to do from here: we set up our augmented matrix and reduce:
\begin{equation*} \left[\begin{array}{ccc|c}1\amp 3\amp 3\amp 2\\ -2\amp 4\amp -1\amp -14\\0\amp 8\amp 4\amp -8 \end{array}\right] \qquad \overrightarrow{\text{rref}}\qquad \left[\begin{array}{ccc|c}1\amp 0\amp \frac32\amp 5\\0\amp 1\amp \frac12\amp -1\\0\amp 0\amp 0\amp 0 \end{array}\right].\text{.} \end{equation*}
The reduced row echelon form of our matrix tells us that there are infinitely many solutions; in particular, there is a solution. Our general solution is
\begin{align*} x_1 \amp = 5-\frac32 t\\ x_2 \amp = -1 -\frac12 t\\ x_3 \amp = t\text{,} \end{align*}
but any particular solution will do. Taking \(t=0\text{,}\) we get \(x_1=5\text{,}\) \(x_2=-1\text{,}\) and \(x_3=0\text{,}\) telling us that
\begin{equation*} \vec a = 5\vec{v}_1 - \vec{v}_2 + 0\vec{v}_3\text{.} \end{equation*}
The reader is encouraged to verify that this is indeed the case.
For the vector \(\vec{b}\text{,}\) we proceed as above. It should be clear that the system of equations we obtain differs from the one above only in the constants on the right-hand side (since these are defined by the vector \(\vec{b}\)), so we can proceed by replacing the right-hand column in our augmented matrix above by the vector \(\vec{b}\text{,}\) and reducing:
\begin{equation*} \left[\begin{array}{ccc|c}1\amp 3\amp 3\amp 1\\ -2\amp 4\amp -1\amp 0\\0\amp 8\amp 4\amp -4 \end{array}\right] \qquad \overrightarrow{\text{rref}}\qquad \left[\begin{array}{ccc|c}1\amp 0\amp \frac32\amp \frac25\\0\amp 1\amp \frac12\amp \frac15\\0\amp 0\amp 0\amp -\frac{7}{10} \end{array}\right]\text{.} \end{equation*}
This time, we see that the third row in the reduced row echelon form of our augmented matrix corresponds to the impossible equation \(0=-\frac{7}{10}\text{,}\) so no solution exists. This means that it is impossible to find scalars \(x_1\text{,}\) \(x_2\text{,}\) \(x_3\) such that
\begin{equation*} \vec b = x_1\vec{v}_1+x_2\vec{v}_2+x_3\vec{v}_3\text{,} \end{equation*}
and therefore the vector \(\vec{b}\) cannot be written as a linear combination of the vectors \(\vec{v}_1\text{,}\) \(\vec{v}_2\text{,}\) and \(\vec{v}_3\text{.}\)
The solution for the vector \(\vec{c}\) is similar. We replace the right-hand column in our augmented matrix by \(\vec{c}\) and reduce:
\begin{equation*} \left[\begin{array}{ccc|c}1\amp 3\amp 3\amp -4\\ -2\amp 4\amp -1\amp 3\\0\amp 8\amp 4\amp 1 \end{array}\right] \qquad \overrightarrow{\text{rref}}\qquad \left[\begin{array}{ccc|c}1\amp 0\amp \frac32\amp -\frac52\\0\amp 1\amp \frac12\amp -\frac12\\0\amp 0\amp 0\amp \frac58 \end{array}\right]\text{.} \end{equation*}
Again, the third row in the reduced row echelon form of our augmented matrix tells us that our system of equations is inconsistent, and therefore, the vector \(\vec{c}\) does not belong to the span of the vectors \(\vec{v}_1\text{,}\) \(\vec{v}_2\text{,}\) and \(\vec{v}_3\text{.}\)
Let us make a couple of observations before proceeding to the next example. First, let us write out the result for the vector \(\vec{a}\) using the general solution, written in terms of the parameter \(t\text{,}\) and manipulate things a bit:
\begin{align*} \vec{a} \amp = x_1\vec{v}_1+x_2\vec{v}_2+x_3\vec{v}_3\\ \amp = \left(5-\frac32 t\right)\vec{v}_1 + \left(-1-\frac12 t\right)\vec{v}_3 + t\vec{v}_3\\ \amp = 5\vec{v}_1-\vec{v}_2 + t\left(\vec{v}_3 - \frac{3}{2}\vec{v}_1 - \frac{1}{2}\vec{v}_2\right)\text{.} \end{align*}
Setting \(t=0\) gives us the particular solution we chose. What happens if we choose other values of \(t\text{?}\) Well, nothing happens to the left-hand side of the equation above, so it must be that nothing happens on the right either. How can this be? Look at the vector in parentheses: we have
\begin{equation*} \vec{v}_3-\frac{3}{2}\vec{v}_1-\frac{1}{2}\vec{v}_2 = \bbm 3\\-1\\4\ebm -\frac{3}{2}\bbm 3\\4\\8\ebm +\frac{1}{2}\bbm 3\\-1\\4\ebm = \bbm 0\\ 0\\0\ebm\text{!} \end{equation*}
Of course nothing happens: choosing different values for \(t\) simply means we’re adding different multiples of the zero vector to our particular solution!
The other thing to note, now that we’ve done a few examples, is that once we have our vectors, we can jump straight to our augmented matrix, since the columns of this matrix are simply the vectors we started with. It’s important to do it once the long way, however, so that we understand where everything is coming from. (Otherwise, you’ll find yourself staring at the solution to a system, and having no idea what that solution is telling you!)
On the subject of saving time, if you went through the row operations for each of the vectors above (if you didn’t, maybe you should: working through the examples is good practice if you haven’t yet got the hang of row operations), you probably noticed that you used the exact same row operations for each of the three vectors. This is because the row operations in an augmented matrix \([A|\vec{b}]\) are dictated by the matrix \(A\text{,}\) and not by the vector \(\vec{b}\text{.}\) With this observation in place, we can speed things up considerably by solving the problem for all three vectors at once. We simply set up and reduce an augmented matrix with three columns on the right, like so:
\begin{equation*} \left[\begin{array}{ccc|c|c|c}1\amp 3\amp 3\amp 2\amp 1\amp -4\\ -2\amp 4\amp -1\amp -14\amp 0\amp 3\\0\amp 8\amp 4\amp -8\amp -4\amp 1 \end{array}\right] \quad \overrightarrow{\text{rref}}\quad \left[\begin{array}{ccc|c|c|c} 1\amp 0\amp \frac32\amp 5\amp \frac25 \amp -\frac52 \\0\amp 1\amp \frac12\amp -1\amp \frac15 \amp -\frac 12\\0\amp 0\amp 0\amp 0\amp -\frac{7}{10}\amp \frac58 \end{array}\right]\text{.} \end{equation*}
If we then consider each column on the right of the reduced row echelon form separately, we obtain the same results as before.
We conclude this section with a pair of examples involving linear independence.

Example 3.5.9. Determining linear independence.

Determine whether or not the vectors
\begin{equation*} \vec{v}_1 = \bbm 1\\-3\\4\ebm, \vec{v}_2 = \bbm -2\\1\\-3\ebm, \vec{v}_3 = \bbm 2\\0\\-1\ebm \end{equation*}
are linearly independent.
Solution.
We test for linear independence by setting up and solving Equation (2.7.1): we suppose that there exist scalars \(x_1, x_2, x_3\) such that
\begin{equation*} x_1\vec{v}_1+x_2\vec{v}_2+x_3\vec{v}_3 = \vec{0}\text{,} \end{equation*}
and determine what values of \(x_1, x_2, x_3\) are possible. Putting in our vectors we have
\begin{equation*} x_1\bbm 1\\-3\\4\ebm + x_2\bbm -2\\1\\-3\ebm + x_3 \bbm 2\\0\\-1\ebm = \bbm x_1-2x_2+2x_3\\-3x_1+2x_2\\4x_1-3x_2-x_3\ebm = \bbm 0\\0\\0\ebm\text{,} \end{equation*}
leading to the system of linear equations
\begin{equation*} \begin{array}{ccccccc} x_1\amp -\amp 2x_2\amp +\amp 2x_3\amp =\amp 0\\ -3x_1\amp +\amp 2x_2\amp \amp \amp =\amp 0\\ 4x_1\amp -\amp 3x_2\amp -\amp z_3\amp =\amp 0 \end{array}\text{.} \end{equation*}
As with the examples involving span above, we end up with a system of linear equations. As we’ll see in Section 3.6, this is an example of a homogeneous system of equations. Any problem involving linear independence results in such a system, and as you’ve probably already noticed, we don’t need to worry about whether or not the system is consistent. The so-called trivial solution \(x_1=x_2=x_3=0\) is always a possibility. With linear independence, we don’t care about whether a solution exists; what we want to know is whether or not that solution is unique.
Since a homogeneous system is, after all, a linear system, we know how to proceed: set up the corresponding augmented matrix and reduce.
\begin{equation*} \left[\begin{array}{ccc|c} 1\amp -2\amp 2\amp 0\\-3\amp 1\amp 0\amp 0\\4\amp -3\amp -1\amp 0\end{array}\right] \qquad \overrightarrow{\text{rref}}\qquad \left[\begin{array}{ccc|c} 1\amp 0\amp 0\amp 0\\0\amp 1\amp 0\amp 0\\0\amp 0\amp 1\amp 0\end{array}\right]\text{.} \end{equation*}
From the reduced row echelon form of the augmented matrix, we can see that our system has the unique solution \(x_1=x_2=x_3=0\text{.}\) Since this is the only possible solution, we can conclude that our vectors are linearly independent.

Example 3.5.10. Determining linear independence.

Determine whether the vectors
\begin{equation*} \vec{w}_1 = \bbm 2\\-3\\1\ebm, \vec{w}_2 = \bbm 3\\0\\4\ebm, \vec{w}_3 = \bbm 1\\12\\8\ebm \end{equation*}
in \(\R^3\) are linearly independent.
Solution.
As with Example 3.5.9, we know that Equation (2.7.1) leads to a system of linear equations with zeros on the right-hand sides, and the vectors \(\vec{w}_1\text{,}\) \(\vec{w}_2\text{,}\) \(\vec{w}_3\) make up the columns on the left of the corresponding augmented matrix. We find
\begin{equation*} \left[\begin{array}{ccc|c} 2\amp 3\amp 1\amp 0\\-3\amp 0\amp 12\amp 0\\1\amp 4\amp 8\amp 0\end{array}\right] \qquad \overrightarrow{\text{rref}}\qquad \left[\begin{array}{ccc|c} 1\amp 0\amp -4\amp 0\\0\amp 1\amp 3\amp 0\\0\amp 0\amp 0\amp 0\end{array}\right]\text{.} \end{equation*}
In this case, lack of leading 1 in the \(x_3\) column of the reduced row echelon form of the augmented matrix tells us that we should expect infinitely many solutions. Setting \(x_3=t\) as a free parameter, we have
\begin{gather*} x_1 = 4t\\ x_2 = -3t\\ x_3 = t\text{.} \end{gather*}
Choosing any value of \(t\neq 0\) gives us a non-trivial solution. For example, setting \(t=1\) gives us \(4\vec{w}_1-3\vec{w}_2+\vec{w}_3=\vec{0}\text{,}\) so \(\vec{w}_3\) can be written as the linear combination
\begin{equation*} \vec{w}_3 = -4\vec{w}_1+3\vec{w}_2\text{,} \end{equation*}
which shows that the given vectors are not linearly independent.
In these last examples we’ve started to explore the connection between vectors and systems of linear equations. We’ll continue to do so in the next section, where we begin to write our solutions in vector form.

Exercises Exercises

Exercise Group.

Find the polynomial with the smallest degree that goes through the given points.
1.
\((1,3)\) and \((3,15)\)
2.
\((-2,14)\) and \((3,4)\)
3.
\((1,5)\text{,}\) \((-1,3)\) and \((3,-1)\)
4.
\((-4,-3)\text{,}\) \((0,1)\) and \((1,4.5)\)
5.
\((-2,15)\text{,}\) \((-1,4)\text{,}\) \((1,0)\) and \((2,-5)\)
6.
\((-2,-7)\text{,}\) \((1,2)\text{,}\) \((2,9)\) and \((3,28)\)
7.
\((-1,-8)\text{,}\) \((1,-2)\) and \((3,4)\)
8.
\((-3,3)\text{,}\) \((1,3)\) and \((2,3)\)
9.
\((-3,10)\text{,}\) \((-1,2)\text{,}\) \((1,2)\) and \((2,5)\)
10.
\((0,1)\text{,}\) \((-3,-3.5)\text{,}\) \((-2,-2)\) and \((4,7)\)

11.

The general exponential function has the form \(f(x)= ae^{bx}\text{,}\) where \(a\) and \(b\) are constants and \(e\) is Euler’s constant (\(\approx\) 2.718). We want to find the equation of the exponential function that goes through the points \((1,2)\) and \((2,4)\text{.}\)
  1. Show why we cannot simply subsitute in values for \(x\) and \(y\) in \(y = ae^{bx}\) and solve using the techniques we used for polynomials.
  2. Show how the equality \(y = ae^{bx}\) leads us to the linear equation \(\ln y = \ln a + bx\text{.}\)
  3. Use the techniques we developed to solve for the unknowns \(\ln a\) and \(b\text{.}\)
  4. Knowing \(\ln a\text{,}\) find \(a\text{;}\) find the exponential function \(f(x) = ae^{bx}\) that goes through the points \((1,2)\) and \((2,4)\text{.}\)

12.

In a football game, 24 points are scored from 8 scoring occasions. The number of successful extra point kicks is equal to the number of successful two point conversions. Find all ways in which the points may have been scored in this game.

13.

In a football game, 29 points are scored from 8 scoring occasions. There are 2 more successful extra point kicks than successful two point conversions. Find all ways in which the points may have been scored in this game.

14.

In a basketball game, where points are scored either by a 3 point shot, a 2 point shot or a 1 point free throw, 80 points were scored from 30 successful shots. Find all ways in which the points may have been scored in this game.

15.

In a basketball game, where points are scored either by a 3 point shot, a 2 point shot or a 1 point free throw, 110 points were scored from 70 successful shots. Find all ways in which the points may have been scored in this game.

16.

Describe the equations of the linear functions that go through the point (1,3). Give 2 examples.

17.

Describe the equations of the linear functions that go through the point (2,5). Give 2 examples.

18.

Describe the equations of the quadratic functions that go through the points \((2,-1)\) and (1,0). Give 2 examples.

19.

Describe the equations of the quadratic functions that go through the points \((-1,3)\) and (2,6). Give 2 examples.

Exercise Group.

Determine whether or not the vector \(\vec{x}\) belongs to \(\operatorname{span}\{\vec{v}_1,\vec{v}_2\}\text{.}\)
20.
\(\vec{v}_1 = \bbm 2\\0\\-1\ebm\text{,}\) \(\vec{v}_2 = \bbm -3\\2\\4\ebm\text{,}\) \(\vec{x} = \bbm -5\\6\\10\ebm\)
21.
\(\vec{v}_1 = \bbm 2\\0\\-1\ebm\text{,}\) \(\vec{v}_2 = \bbm -3\\2\\4\ebm\text{,}\) \(\vec{x} = \bbm 8\\-4\\-2\ebm\)
22.
\(\vec{v}_1 = \bbm 1\\3\\-2\ebm\text{,}\) \(\vec{v}_2 = \bbm 0\\5\\-3\ebm\text{,}\) \(\vec{x} = \bbm 3\\4\\0\ebm\)
23.
\(\vec{v}_1 = \bbm 1\\3\\-2\ebm\text{,}\) \(\vec{v}_2 = \bbm 0\\5\\-3\ebm\text{,}\) \(\vec{x} = \bbm -2\\4\\-2\ebm\)

Exercise Group.

Determine whether or not the given vectors are linearly independent.
24.
\(\vec{v}_1 = \bbm 1\\3\\-2\ebm\text{,}\) \(\vec{v}_2 = \bbm 0\\5\\-3\ebm\text{,}\) \(\vec{v}_3 = \bbm -2\\4\\-2\ebm\)
25.
\(\vec{v}_1 = \bbm 1\\0\\-2\ebm\text{,}\) \(\vec{v}_2 = \bbm 0\\2\\-1\ebm\text{,}\) \(\vec{v}_3 = \bbm -2\\1\\0\ebm\)
26.
\(\vec{v}_1 = \bbm 1\\1\\1\ebm\text{,}\) \(\vec{v}_2 = \bbm 2\\0\\3\ebm\text{,}\) \(\vec{v}_3 = \bbm 0\\1\\2\ebm\)
27.
\(\vec{v}_1 = \bbm 1\\2\\3\ebm\text{,}\) \(\vec{v}_2 = \bbm 3\\2\\1\ebm\text{,}\) \(\vec{v}_3 = \bbm -3\\2\\7\ebm\)