← Back to course
Lesson

Statements and Systems

Linear Algebra

Video

Notes

Statements and Systems of Equations

In this series on linear algebra, we want to offer several different perspectives to make it easier for the student to get a complete picture of what's going on. In many courses, geometry is used to give students intuition; although geometry is an excellent way of visualizing ideas in mathematics, linear algebra frequently deals with dimensions much higher than where our conventional notions of geometry live. For this reason, we want to introduce some perspectives that will allow us to build intuition without relying on visualization: namely, we will learn to think of equations as statements. Later on we will also introduce the function perspective.

Statements

Definition (Declarative Statement): A declarative statement is a statement that is either true or false.

"The sky is blue," is a declarative statement, as is "The sky is brown". The former is usually true, and the latter is almost never true, but both have in common that they are only ever either true or false.

Which of the following is a declarative mathematical statement?

We can craft more complicated declarative statements. For instance, we can add terms like or and and. Here is an example: "It is either raining or not raining." This example is an example of a tautology, which is a statement that is always true. It is always either raining or not raining. Conversely, if we were to use an "and" instead, the statement would become one that is never true: "It is raining and not raining." A statement that's never true is called a contradiction.

You may be wondering what all of this has to do with math, let alone linear algebra. Well, much of the business of a real mathematician is showing that one statement (usually a very complicated one) is, in some way, equivalent to another. To expedite this process, it helps to take some things for granted, called axioms. What you're willing to consider an axiom is ultimately a question of philosophy, and it depends on the level of rigor you want to bring to the subject.

Here are some examples of axioms we will take for granted in this course. Suppose you have three numbers x, y, and z. Then:

  1. x = x (reflexivity)
  2. x + y = y + x (commutativity of addition)
  3. If x = y and y = z, then x = z. (transitivity of equality)
  4. x*(y+z) = xy + xz (distributivity of multiplication)

All of these are statements, and when we say they are axioms it means we are taking for granted that they are true, without having to prove them. If you really want to be mathematically formal, you want to consider your set of axioms as small as possible, but keep in mind that there is a point of diminishing returns. For example, proving trivial facts like the commutativity of addition (the second statement above) involves first defining the type of numbers you're working with in terms of set theory (which has a whole host of other axioms you must take for granted), and then it's a very contrived series of steps from those axioms to show the desired property. For most, this is not worth the effort.

But I digress, the last thing we must discuss for the purposes of this course are quantifiers. There are two types of quantifiers, the universal quantifier and the existential quantifier, and they are very important for crafting statements in mathematics.

I think quantifiers are best understood through examples. Here is an example of an existential statement:

"There exists an integer that is both even and odd."

This is an example of a universal statement:

"Every integer is even or odd."

An existential statement is one that characterizes the existence (or lack thereof) of a certain type of thing. In the case of the example above, the "thing" in question was an integer. A universal statement is one that characterizes something about all members of a certain type of thing.

You may also note that the statements above are opposites, or to use terminology from formal logic, they are each other's negations.

Definition(Negation): P is the negation of Q if P is true whenever Q is false and P is false whenever Q is true.

In mathematics if you prove the negation of a statement true, then that is equivalent to proving the original statement false. This is useful because in many cases it may be easier to prove or disprove the negation of a statement rather than the original statement itself. Here are some trickier examples of negations.

What is the negation of the statement 'If it is raining, then it is pouring.'

What is the negation of the statement 'Every dog is white.'

Statements with Variables

Anyways, that's enough philosophy. Let's start looking at statements that have to do with numbers and variables. These are the simplest kind of statements we will be interested in in this course, and later we will introduce matrices and vectors, and consider statements that involve them.

Consider the following statement:

For two numbers x and y, x + y = 5.

This is an example of a statement, because it is either true or false, but which is it? Well it depends on which numbers x and y are. For instance, if x=2 and y=3, then the statement is true, but if x=2 and y=4, then the statement becomes 6=5, which is false.

As you can imagine, there are infinitely many combinations of x and y that make the statement true. From basic algebra, you probably know that these solutions form a line in the plane, but it's worth understanding why.

Suppose we know one pair of numbers (x,y) make the statement true, i.e. that x+y=5x+y = 5. Then for any number c, the pair (x+c, y-c) must also make the statement true, because

(x+c)+(yc)=x+y=5.(x+c) + (y-c) = x + y = 5.

This means that starting from any solution, you can move to the right by some amount and down by the same amount, and you will still have a solution. Since you can do this for any value of cc, you generate an entire straight path of solutions, which we call a line. We say this line has slope 1-1 because if we increase x by one unit, then y must change by 1-1.

We are trying to understand this idea without drawing a picture, because there are limitations on what we can visualize. For example, you draw an equation of two variables as a line in 2d space, and, with a lot more effort, you can draw an equation of 3 variables as a flat surface in 3d space, but what about a statement involving 4 variables? What about one involving 100? Linear algebra frequently deals in these high dimensional spaces so we want some form of intuition that doesn't collapse whenever we move beyond 3d.

Three Special Operations

In order to go forward with this perspective, it will be useful to have some tools that will let us manipulate statements. Here are three very important tools that we can use when dealing with statements of equality. They're going to sound really simple, but we're going to see that these three tools actually lie at the heart of linear algebra. Here they are:

  1. Multiplying both sides by the same thing.
  2. Adding the same thing to both sides.
  3. Rearranging statements.

You are probably already familiar with the first two. When you took algebra in middle or high school, you probably learned that you can "solve" equations like this:

3x+8=113x + 8 = 11

In order to do so, you would subtract 8 from both sides and divide both sides by 3 and you would get x=1x = 1. It's worth considering what's going on here. You have a statement of the form ``some quantity equals some other quantity''. This statement is declarative, because it is either true or false. Applying any of the three operations above produces a new statement that retains the same truth as the original, but could be easier to interpret.

Let's say that again, because it's important. This is the main idea:

If we apply one of these operations, we do change the statement, but we do not change which values of x make it true.\text{If we apply one of these operations, we do change the statement, but we do not change which values of } x \text{ make it true.}

In this way, we wind up with an equivalent statement. The expression itself changes, but the values of xx that make the statement true or false remain exactly the same.

So when we subtract 8 from both sides, we get

3x+8=113x=3,3x + 8 = 11 \rightarrow 3x = 3,

and when we divide both sides by 3, we get

3x=3x=1.3x = 3 \rightarrow x = 1.

We haven't changed the underlying truth of the statement at any point. We have only rewritten it in a form that makes the value of xx more clear. Just like the statement we started with, this one is also true when x is 1, and false otherwise; it's just much more obvious.

The statement

3x+8=113x + 8 = 11

and the statement

x=1x = 1

contain exactly the same information, but the second is preferable because its meaning is clear.

It may be easy to see with a simple example like this, but it can quickly get more complicated as you add more variables and more statements, which we will see in a second. But before moving on, I want to emphasize the main idea here one more time. When we modify statements in these three ways, we produce an equivalent statement, one that is true or false for the same set of variables.

Which of the following statements are equivalent to either 'x + 3y = 8' or '2x - y = 3'?

Multiple Statements

One way that we can make this more complex is by considering what happens when we have multiple statements at the same time. When we consider multiple statements at the same time, we call them systems of equations.

Consider the following system of equations:

2x+3y=42x + 3y = 4

and,

x+y=6-x + y = 6

If I apply the second operation to the second statement, multiplying both sides by 2, I get the following equivalent system:

2x+3y=42x + 3y = 4

and,

2x+2y=12-2x + 2y = 12

Now I want to apply the first operation to the first statement, but I'm going to do it in a bit of a creative way. I am going to add 2x+2y-2x + 2y to one side, and I'm going to add 1212 to the other side. If we accept that both statements are true, then by the second statement, these quantities are equal so it should produce an equivalent statement. This would give us the following equivalent system:

(2x+2y)+2x+3y=4+(12)5y=16y=165(-2x + 2y) + 2x + 3y = 4 + (12) \rightarrow 5y = 16 \rightarrow y = \frac{16}{5}

and,

2x+2y=12-2x + 2y = 12

Notice what we did there. We had to make an assumption that both statements were true, and we assumed that they were true for the same values of x and y. This assumption is what allowed us to combine like terms when we added (-2x + 2y) to the left side of the first statement, because we assumed that the x and y that satisfied the second statement were the same x and y that satisfied the first.

Now notice what happened. We now have an equivalent system that tells us the identity of one of the variables. Now we have two, equivalent, options: we can plug that value of y into the second equation to tell us what x is, or we could continue with our operations. I'm going to do the latter and then show how these two approaches are the same:

y=1652y=325y = \frac{16}{5} \rightarrow -2y = \frac{-32}{5}

and,

2x+2y+(2y)=12+3252x=285x=145-2x + 2y + (-2y) = 12 + \frac{-32}{5} \rightarrow -2x = \frac{28}{5} \rightarrow x = \frac{-14}{5}

The reason this is the same as substitution is because, in order to solve for x, we would have to multiply the value of y by 2 and then subtract it from both sides, which is exactly what we did using only the three operations.

This is probably a good place to mention what I mean by Operation 3 "Rearranging statements." This is just a way to say that the system:

2x+3y=42x + 3y = 4

and,

x+y=6-x + y = 6

has the same solution set as the system:

x+y=6-x + y = 6

and,

2x+3y=4.2x + 3y = 4.

Free response

Suppose we have the system of equations '2x - 5y = 8' and 'x + y = 4'. What's an equivalent system that tells us the identity of the two variables?

Type \ for LaTeX suggestions. Use Tab or Enter to accept a suggestion.

Which of the following statements are equivalent to the system of equations 'x + 3y = 8' and '2x - y = 3'?

Free response

Suppose we have the system of equations '2x - 5y = 8' and 'x + ay = b', where a and b are some numbers. Under what conditions would this system of equations have an infinite set of solutions? Under would conditions would it be unsolvable?

Type \ for LaTeX suggestions. Use Tab or Enter to accept a suggestion.

You probably remember this from middle/high school, but this is where the story of linear algebra begins. It starts by considering what happens when we have larger systems involving more variables. Let's look at that now.

Larger Systems

First I want to reiterate something. If I have a statement with nn variables, and I know the identity of n1n-1 of those variables, then I also know the identity of the remaining one.

More generally, each new statement we add places an additional restriction on the variables. With one statement in nn variables, I need to know n1n-1 of them to determine the last. With two statements, I only need to know n2n-2 variables to determine the rest. Let's see why.

Suppose we have two general statements with nn variables:

a1x1+a2x2++anxn=ba_1x_1 + a_2x_2 + \dots + a_nx_n = b

and

a1x1+a2x2++anxn=b.a'_1x_1 + a'_2x_2 + \dots + a'_nx_n = b'.

Here x1,x2,,xnx_1, x_2, \dots, x_n are our variables, and the aia_i, aia'_i, and b,bb, b' are just numbers with a10a_1 \neq 0.

Now I know this looks a little obnoxious, but let's try to eliminate one of the variables by being creative. The goal is to produce an equivalent statement that involves only n1n-1 variables.

First, multiply both sides of the first equation by a1a1\frac{-a'_1}{a_1}:

a1x1+a2x2++anxn=ba_1x_1 + a_2x_2 + \dots + a_nx_n = b a1x1+a1a2a1x2++a1ana1xn=a1ba1.\rightarrow -a'_1x_1 + \frac{-a'_1a_2}{a_1}x_2 + \dots + \frac{-a'_1a_n}{a_1}x_n = \frac{-a'_1b}{a_1}.

Now add this new equation to the second equation:

(a1x1+a1a2a1x2++a1ana1xn)+(a1x1+a2x2++anxn)=b+a1ba1.(-a'_1x_1 + \frac{-a'_1a_2}{a_1}x_2 + \dots + \frac{-a'_1a_n}{a_1}x_n) + (a'_1x_1 + a'_2x_2 + \dots + a'_nx_n) = b' + \frac{-a'_1b}{a_1}.

The x1x_1 terms cancel, leaving

(a2a1a2a1)x2++(ana1ana1)xn=ba1ba1.\left(a'_2 - \frac{a'_1a_2}{a_1}\right)x_2 + \dots + \left(a'_n - \frac{a'_1a_n}{a_1}\right)x_n = b' - \frac{a'_1b}{a_1}.

If we multiply both sides by a1a_1, we get a slightly cleaner expression:

(a2a1a1a2)x2++(ana1a1an)xn=a1ba1b.(a'_2a_1 - a'_1a_2)x_2 + \dots + (a'_na_1 - a'_1a_n)x_n = a_1b' - a'_1b.

Now we have a new statement involving only n1n-1 variables. This means that if we know the identity of n2n-2 of the variables, the last one is determined.


When does this fail?

If you look closely, there is one situation where this process breaks down. Suppose that

aia1=a1aia'_ia_1 = a'_1a_i

for every i=1,2,,ni = 1, 2, \dots, n.

In that case, every coefficient on the left-hand side becomes zero, and we are left with

0=a1ba1b.0 = a_1b' - a'_1b.

This new statement is either:

  • a tautology (always true), if a1ba1b=0a_1b' - a'_1b = 0, or
  • a contradiction (never true), otherwise.

Let's interpret what this means.

The condition

aia1=a1aia'_ia_1 = a'_1a_i

for all ii is equivalent to

ai=a1a1ai.a'_i = \frac{a'_1}{a_1} a_i.

So the second equation is just a constant multiple of the first.

  • If the right-hand side is scaled by the same constant, then the two equations are equivalent, carrying the same information. Adding the second equation gives us nothing new, which is why we end up with a tautology.

  • If the right-hand side is not scaled by the same constant, then the two equations are incompatible. They describe different solution sets, and no values of the variables can satisfy both simultaneously, which is why we get a contradiction.

Each new statement is capable of reducing the number of variables that can be chosen freely by one. Later in the course when we discuss linear independence we will solidify exactly what we mean by "new", but for now just consider that if a new statement is just a multiple of an old one, or if it can be formed by some combination of the previous statements, then it isn't actually new. At best it adds no new information, and if it conflicts with the previous statements, then the statements are contradictory and there is no solution at all.

If we have nn unknown variables, then:

  • with 1 new statement, we can make a new statement with n1n-1 variables,
  • with 2 new statements, we can make one with n2n-2 variables,
  • and in general, each additional new statement allows us to craft a statement with one less variable.

Following this pattern, if we want to reduce the system to a single variable, one that directly tells us the identity of that variable, then starting from nn variables, we would need nn statements, each one contributing new information, meaning it cannot be obtained from the previous statements.

Now note that we are typically free to choose which variable we eliminate at each step. So if we can reduce the system down to one variable, then in principle we could repeat this process to isolate each variable individually, producing statements of the form xi=cx_i = c for every ii. We will discuss the most efficient ways to do this in a future lesson when we talk about Gaussian Elimination.

Put simply, to completely determine the identity of all nn variables, we need nn statements that cannot be obtained from each other.

That was a lot of theory, so let's look at an example. Consider the system:

x1+x2x3=8,x_1 + x_2 - x_3 = 8, 2x15x2+3x3=12,2x_1 - 5x_2 + 3x_3 = 12, 4x1x2=20,4x_1 - x_2 = 20,

You may think the last statement doesn't have enough variables, but it does, the coefficient on x3x_3 is just 0. For a trivial example of why this is fine, consider the system:

x1=a1,x2=a2,,xn=anx_1 = a_1, x_2 = a_2, \dots, x_n = a_n

Obviously, this system has a solution, and it's actually the ideal system... the one we want to end up with, but each statement only concerns one variable at a time.

Getting back to the problem, I'm noticing that if I'm able to get rid of the x3x_3 in the second statement, then I could look at the last two equations in isolation and it would just be a 2x2 system, which I know how to solve. I can make this happen by multiplying the first statement by 3 and adding it to the second:

x1+x2x3=8,x_1 + x_2 - x_3 = 8, 2x15x2+3x3=125x12x2=362x_1 - 5x_2 + 3x_3 = 12 \rightarrow 5x_1 - 2x_2 = 36 4x1x2=20,4x_1 - x_2 = 20,

Now we can just look at the system formed by the last two statements, and I'll just solve it since you probably remember this stuff from basic algebra (note there are many ways to do this):

5x12x2=365x_1 - 2x_2 = 36 4x1x2=208x1+2x2=40(5x12x2)+8x1+2x2=40+(36)3x1=4x1=434x_1 - x_2 = 20 \rightarrow -8x_1 +2x_2 = -40 \rightarrow (5x_1 - 2x_2) + -8x_1 +2x_2 = -40 + (36) \rightarrow -3x_1 = -4 \rightarrow x_1 = \frac{4}{3}

This time I'll do substitution to get x2x_2:

5(43)2x2=36x2=4435(\frac{4}{3}) - 2x_2 = 36 \rightarrow x_2 = -\frac{44}{3}

And now I can plug both of these into the first equation with three variables to get:

43443x3=8,x3=643\frac{4}{3} -\frac{44}{3} - x_3 = 8, \rightarrow x_3 = -\frac{64}{3}

Because we were careful to only take actions which preserved the solution set that would satisfy these statements (the three special operations), we can say that the values of x1,x2,x3x_1, x_2, x_3 that satisfy the system:

x1+x2x3=8,x_1 + x_2 - x_3 = 8, 2x15x2+3x3=12,2x_1 - 5x_2 + 3x_3 = 12, 4x1x2=20,4x_1 - x_2 = 20,

are the exact same as the values that satisfy the system:

x1=43,x_1 = \frac{4}{3}, x2=443,x_2 = -\frac{44}{3}, x3=643x_3 = -\frac{64}{3}

but this system is much more interpretable.

I will ask you to solve a larger system of equations maybe only once or twice in this course, because this is a task better delegated to a computer. That said, it is important to understand how computers solve these sorts of problems. This is something we will, again, examine when we discuss Gaussian elimination.

Instead, consider this question. It's a bit more challenging conceptually, but it's much more important to understand.

Free response

Suppose that we have numbers a,b,c,d 0\neq 0, and (a,b) is a constant multiple of (c,d). Show that (a,c) must also be a constant multiple of (b,d).

Type \ for LaTeX suggestions. Use Tab or Enter to accept a suggestion.

Can a System Have More Than One Solution?

The last detail we will touch on is this one. The answer to this question is obviously yes, because we have already seen instances of systems of equations with infinitely many solutions. But you may be interested to discover that this is actually the only way a system can have more than one solution, i.e., a system can't have exactly two solutions. Let's see why with a 2×22 \times 2 example.

Suppose a system of equations,

ax1+bx2=q,ax_1 + bx_2 = q, cx1+dx2=q,cx_1 + dx_2 = q',

had two solutions, (x1,x2)(x_1, x_2) and (x1,x2)(x_1', x_2') that both satisfied both equations.

Then,

ax1+bx2=q,ax_1 + bx_2 = q,

and

ax1+bx2=q,ax_1' + bx_2' = q,

so we can write the equivalent statement:

ax1+bx2(ax1+bx2)=qq,ax_1 + bx_2 - (ax_1' + bx_2') = q - q,

which reduces to:

a(x1x1)+b(x2x2)=0.a(x_1 - x_1') + b(x_2 - x_2') = 0.

Analogously, from the second equation we obtain:

c(x1x1)+d(x2x2)=0.c(x_1 - x_1') + d(x_2 - x_2') = 0.

Now, notice that if (x1,x2)(x1,x2)(x_1, x_2) \neq (x_1', x_2'), then the quantities x1x1x_1 - x_1' and x2x2x_2 - x_2' are both nonzero (you can't have one be nonzero and the other be zero because then neither of the equations above could be true). Thus, we have found a nonzero pair that satisfies both equations when the right-hand side is 00.

Now consider the pair

(t(x1x1),  t(x2x2)),\big(t(x_1 - x_1'),\; t(x_2 - x_2')\big),

where tt is any real number. Then by distributivity,

a(t(x1x1))+b(t(x2x2))=t(a(x1x1)+b(x2x2))=t0=0,a\big(t(x_1 - x_1')\big) + b\big(t(x_2 - x_2')\big) = t\big(a(x_1 - x_1') + b(x_2 - x_2')\big) = t \cdot 0 = 0,

and similarly,

c(t(x1x1))+d(t(x2x2))=0.c\big(t(x_1 - x_1')\big) + d\big(t(x_2 - x_2')\big) = 0.

This means that any multiple of this difference also satisfies both equations.

Thus, if (x1,x2)(x_1, x_2) is a solution, then

(x1+t(x1x1),  x2+t(x2x2))\big(x_1 + t(x_1 - x_1'),\; x_2 + t(x_2 - x_2')\big)

will also satisfy the original system for every value of tt. This shows that if a system of linear equations has more than one solution, it must have infinitely many solutions.

Free response

Show that if the system: ax1+bx2=0,ax_1 + bx_2 = 0, cx1+dx2=0cx_1 + dx_2 = 0 has a nontrivial solution where (x1,x2)(0,0)(x_1, x_2) \neq (0,0), then the system: ax1+bx2=q,ax_1 + bx_2 = q, cx1+dx2=qcx_1 + dx_2 = q' cannot have a unique solution.

Type \ for LaTeX suggestions. Use Tab or Enter to accept a suggestion.