## Section 2.3 Spaces, Systems, Matrices

ΒΆ### Subsection 2.3.1 A Rose by Any Other Name

Consider the system of equations

Using the techniques we have studied this simplifies to

so that the general solution is

If we write the solutions as vectors we get

so that both

will be solutions with \(z=2\) and \(z=-3\) respectively. However, if we add or subtract these from each other

we get two more solutions. What this tells us is that any multiple of a solution is a solution and any sum of two solutions is another solution; solutions therefore form a vector space of their own. However since not all vectors in \(\mathbb{R}^3\) are solutions to the system, the solutions are a subspace of something larger.

What we see here is another way to think of solutions to a system of equations. The solutions of a homogeneous system of equations form a subspace. Therefore we can talk about a basis for the solutions and the span of the solutions. This is another example of how one idea can be looked at from different perspectives.

### Subsection 2.3.2 A Universe in a Matrix

If we let

then there are three spacial subspaces associated with the matrix. The column space which is the set of all \(\vec{b}\) such that there is a solution for

The row space which is the set of all \(\vec{c}\) such that there is a solution for

And, the null space which is the set of all solutions to the homogeneous equation

#### Subsubsection 2.3.2.1 The Null Space

The null space is the simplest to explain. In this case it is precisely the set of solutions we found above

which is a subspace of \(\mathbb{R}^3\text{.}\) Because of how matrix multiplication works the dimension the null space is in must always be the same as the number of columns in the matrix.

#### Subsubsection 2.3.2.2 The Column Space

The column space is a little harder. Consider the equation

We can write this as a linear combination of vectors from \(\mathbb{R}^2\)

Thus the column space, unlike the null space, is in this case in \(\mathbb{R}^2\text{.}\) In general the dimension the column space is in is the same as the number of rows in the matrix.

If we let \(x_1=2\) and \(x_2=-1\) then

That is we don't really need the third vector, the column space of \(A\) is therefore

With a little work you should be able to, at this point, convince yourself that that includes every point in \(\mathbb{R}^2\text{.}\)

#### Subsubsection 2.3.2.3 The Row Space

The row space is similar to the column space, except you use rows, instead of columns. Consider the equation

which we can also write as a linear combination of vectors

or, finally, as a set

Notice that the row space, like the null space, is in this case a subset of \(\mathbb{R}^3\text{.}\) In general the dimension the row space is in will be equal to the number of columns in the matrix.

###### Pulling Things Together.

Consider the matrix which consists of the two vectors that define the row space and the one vector that defines the null space,

If we row reduce this to its row reduced echelon form we get identity matrix (you should pause for a moment and make sure you can get that.) This means that we could solve any equation of the form \(\mathcal{B}\vec{x}=\vec{b}\) and that it would have a unique solution for any \(\vec{b}\in\mathbb{R}^3\text{.}\) That is, the three vectors that make up the columns of the matrix are linearly independent and form a basis for \(\mathbb{R}^3\text{.}\) This is a result that will actually be true for any matrix.

If you evaluate the code below you can see how the row space and null space complement each other to give us all of \(\mathbb{R}\text{.}\) You can also see that we need three dimensions to draw them which is the number of columns we originally started with. However, the null space here is a line, which is one dimensional. The row space is a plane which is two dimensional. So, the dimension of a space is not the same as the number of dimensions you need to draw or understand it.

###### Theorem 2.3.1.

Given an \(m\times n\) matrix \(A\) the row space is the set of all linear combinations of the rows and the null space is the set of all solutions to \(A\vec{x}=\vec{0}\text{.}\) Bases for each taken together will form a basis for \(\mathbb{R}^n\text{.}\)

###### Section Vocabulary.

Column Space, Row Space, Null Space