# Column space

## Everything You Need in One PlaceHomework problems? Exam preparation? Trying to grasp a concept or just brushing up the basics? Our extensive help & practice library have got you covered. | ## Learn and Practice With EaseOur proven video lessons ease you through problems quickly, and you get tonnes of friendly practice on questions that trip students up on tests and finals. | ## Instant and Unlimited HelpOur personalized learning platform enables you to instantly find the exact walkthrough to your specific type of question. Activate unlimited help now! |

#### Make math click 🤔 and get better grades! 💯Join for Free

##### Intros

###### Lessons

**Column Space Overview:**__definition of the column space__

• $C(A)=$ column space

• A set of vectors which span{$v_1,v_2,\cdots,v_n$}

• $\vec{b} \;\epsilon \;C(A),$ $\vec{b}= x_1 v_1+x_2 v_2+\cdots+x_n v_n$__A vector in the column space__

• $\vec{b} =x_1 v_1+x_2 v_2+\cdots+x_n v_n$

• Changing to $Ax=b$ and solve__Finding a basis for the column space__

• Row reduce the matrix to echelon form.

• Locate the columns with pivots in the row-reduced matrix.

• Go back to the original matrix and find the columns with the same position.

• Use those columns to write out the basis

##### Examples

###### Lessons

**Finding if a vector is in the column space**

Let and . Determine whether $b$ is in the column space of $A$.- Let and . Determine whether $b$ is in the column space of $A$.
**Finding a Basis for the Column Space**

Here is the matrix $A$, and an echelon form of $A$. Find a basis for $C(A)$ (column space of $A$).

- Find a basis for the column space of $A$ if:

###### Free to Join!

#### Easily See Your Progress

We track the progress you've made on a topic so you know what you've done. From the course view you can easily see what topics have what and the progress you've made on them. Fill the rings to completely master that section or mouse over the icon to see more details.#### Make Use of Our Learning Aids

#### Earn Achievements as You Learn

Make the most of your time as you use StudyPug to help you achieve your goals. Earn fun little badges the more you watch, practice, and use our service.#### Create and Customize Your Avatar

Play with our fun little avatar builder to create and customize your own avatar on StudyPug. Choose your face, eye colour, hair colour and style, and background. Unlock more options the more you use StudyPug.

###### Topic Notes

### Column Space (final)

### What is the column space of a matrix

Going back to the basic definition of a matrix, remember that we can think of a matrix as a collection of column vectors, this collection can be represented easily as:

Where $v_{1}, v_{2}, ..., v_{n}$ are the columns of A, each of them a column vector in itself.

This comes from the simple fact that our standard way to write matrices is in the form m x n, something we already know but is always good to remember, meaning that a matrix has m amount of rows and n amount of columns. This row and column standard gives us a little heads up to understand the notation above, since in order to know how many columns are there into our particular matrix we check for the highest value of n and that is where the range {$v_{1}, v_{2}, ..., v_{n}$} from equation 1 comes from.

The column space of a matrix A (also known as the range of a matrix) is then the set of vectors which contains all of the possible linear combinations of the vectors {$v_{1}, v_{2}, ..., v_{n}$}. Remember linear combinations mean you can have the column vectors multiplied by constant coefficients and the resulting vectors will be part of the column space of the matrix. Simply said, the column space of A can be defined as:

Where a span is the result of the multiplication of a scalar field with a vector field producing all the possible linear combinations of the vectors contained within the matrix in question. Before continuing, make sure you are certain of all the terms we are using so far, the term "linear combinations" happens to be a usual key point since it could be confused on its meaning depending on the importance given to either the value of a combination or the notation of its mathematical expression. In any way, linear combinations will be used in the simplest possible way during all our example exercises for the lesson but it is important that you have reviewed lessons such as linear independence and/or linear combination and vector equations before getting into the core for this topic.

Having looked at the column space definition above, we can identify if a certain vector is part of the column space of a matrix by checking if it is part of a possible linear combination resulting from A and its multiplication with a vector $\bar{x}$.

In other words, if vector $\bar{b}$ belongs to the column space of A (mathematically: if $\bar{b} \in C(A)$, then:

Remember that C(A) is a substape of $R^{n}$, therefore, it fulfills the 3 properties of subspaces as well which we studied on the lesson named properties of subspace.

### How to find the column space of a matrix

Something nice to notice on this topic is that when learning how to find column space for a given matrix, you just need to look for all the possible linear combinations of the column vectors of the matrix. And so we just need to use the matrix equation represented in equation 3 to know that the matrix column space will contain all the range of possible results from the product of matrix A with a vector $\bar{x}$.

But the usual question happens to be if a certain vector belongs to the linear algebra column space of a known matrix. And so, in order to find out if a given vector is part of a column space we need to solve for the vector $\bar{x}$ in the matrix equation Ax=b (equation 3) and see if the result for such equation is consistent. Let us start by working a simple problem in order to come up with a set of steps to follow for our exercises below.

So, how do we check if vector $\bar{b}$ is in the column space of A?

Having:

We check for the condition expressed on equation 3 to see if vector $\bar{b}$ belongs to the column space of A:

We turn this matrix equation into an augmented matrix to solve for vector $\bar{x}$:

Where we now row-reduce the augmented matrix to obtain the components of vector x:

Where you can easily see in the equation resulting from the second row that the whole system is inconsistent since zero plus zero cannot be equal to three!

And thus we can quickly determine that vector $\bar{b}$ does not belong to the column space of A.

After looking solving this simple example, let us write down the main steps to work through this process. And so, having a column vector b and a known matrix A:

- We check if $\bar{b}$ belongs to the column space of A using the matrix equation Ax=b denoted in equation 3. If the result if consistent, then $\bar{b}$ belongs to the column space of A.
- Set up the Matrix equation Ax=b with the given values for the matrix and the vector.
- Turn the equation into an augmented matrix to solve for vector $\bar{x}$
- Row-reduce the augmented matrix.
- Obtain the components $x_{1}$ and $x_{2}$ of vector $\bar{x}$ by transcribing the linear equation system from the row reduction.
- Check if the results are consistent.

We will be using these steps while solving example problems 1 and 2 in the example exercises section below.

### Find basis for column space

The second type of problem we will be solving throughout this lesson is that requiring you to find the basis for the column space of the given matrix.

The basis of column space in a matrix is the minimum set of vectors which are linearly independent in the span of the subspace which conforms the column space. Finding this basis is really simple and can be done following the next four steps:

- Row reduce the matrix A to echelon form
- Circle the columns with pivots in the row-reduced matrix
- Go back to the original matrix and circle the columns with the same positions
- Use these columns to write out the basis for C(A).

This process will be followed in order to find the basis for column space of the matrices given in problem examples 3 and 4 in the next section.

### Example Exercises

__Example 1__

Let A and $\bar{b}$ be as shown below. Determine whether $\bar{b}$ is in the column space of A.

- We start by setting up the condition shown in equation 3 and then we turn the matrix equation into an augmented matrix to solve for vector $\bar{x}$:
- Now we just row-reduce the augmented matrix to see if we find a consistent result.

If we check the set of linear equations obtained from the row-reduction of the augmented matrix, we can clearly see how the values of the components are inconsistent since is impossible for 0+0 to be equal to 4! And so, since this result is incorrect, this means vector $\bar{b}$ does not belong to the column space of A.

__Example 2__

Now let us have A and $\bar{b}$ be as shown below. Determine if $\bar{b}$ is in the column space of A.

- Once again, we set up the condition from the matrix equation Ax=b shown in equation 3 and then we turn it into an augmented matrix to solve for vector $\bar{x}$:
- Now we just row-reduce the augmented matrix to see if we find a consistent result.
- In this case we have as a result a set of three linear equations, we now work through them and find the value for each of the components of the vector x. If the values are consistent, then this means b belongs to the column space of A, if the values do not make sense, then we would obtain the same as in example 1.
- Since the value for $x_{1}$ is already known, we just take the second and third equations from the set found above and solve for $x_{2}$ and $x_{3}$.
- Having found the values of $x_{2}$ and $x_{3}$ we can now construct the whole vector $\bar{x}$.
- The solution to the matrix equation is consistent. Therefore, vector $\bar{b}$ belongs to the column space of A.

__Example 3__

Find a basis for the column space C(A) when the matrix A is as follows:

- For this problem we use the steps described on the section "find basis for column space" above. Notice that for the case of this example problem, the echelon form of matrix A is already given to us (is the right hand side of the equation above), therefore, we do not have to work the row-reduction for this problem and we go directly into step 2: Circle the columns with pivots in the row-reduced matrix
- The we go back to the original matrix and circle the columns with the same positions:
- And finally, we use these columns to write out the basis for C(A).

After looking at this example is important to note that it does not matter how many rows and columns matrix A has, the basis of a matrix column space can always be found since you can row-reduce the matrix into one of its echelon forms. If you want to practice and review row reduction and echelon forms do not hesitate to go back to that lesson and review its videos.

__Example 4__

Find the basis for column space of A if the matrix is as follows:

- We start by transforming matrix A into its row echelon form by row reduction:
- And so, we now have the original matrix and the row echelon form matrix:
- Following step two we circle the columns with pivots in the row-reduced matrix:
- Circling the same positions in the original matrix:
- And so, we use these columns to write out the basis for C(A):

Having seen a few explicit examples, is time to go to the next lesson. If you would like to keep on your practice you can check out this article on row space and column space. Also, for an extra example that you can take a look while studying, we recommend you to look into this column space conditions problem.

Suppose the matrix $A$ is:

where $v_1,v_2,\cdots,v_n$ are the columns of $A$. Then the column space of $A$ is the set of vectors in $C(A)$ which forms a linear combination of the columns of $A$.

To see if a vector $\vec{b}$ is in the column space of $A$, we need to see if $\vec{b}$ is a linear combination of the columns of $A$. In other words,

where $x_1,x_2,\cdots,x_n$ are solutions to the linear equation.

To find a basis for the column space of a matrix A, we:

1) Row reduce the matrix to echelon form.

2) Circle the columns with pivots in the row-reduced matrix.

3) Go back to the original matrix and circle the columns with the same positions.

4) Use those columns to write out the basis for $C(A)$.

Note that the vectors in the basis are linearly independent.

remaining today

remaining today