The concept of the column space of any specific matrix may well be considered one of the simplest ideas in linear algebra and is, without doubt, one of the crucial ideas in the study of the solutions to linear systems and in the manner that promotes understanding of the effects of linear transformations in the given vector space.
In this article, the main focus will be on illustrating a concept of how one would go about finding the column space of a particular matrix.
What is Column Space of a Matrix?
The column space of a matrix A, also referred to as a range(A), denoted by C(A) is defined as the set of all linear combinations of the given matrix A or more formally it is defined as the number of columns of A. Applications of the idea of column space include those giving information about the rank of the matrix 'A', solutions of systems of linear equations and properties of linear transformation.
The relevance of the column space is also vast in engineering, computer science, and statistics because it is used to solve differential equations and analyze and design algorithms.
Column Space of a MatrixExample of Column Space of a Matrix
A = \begin{bmatrix} 1 & 2 & 3 \\ 4 & 5 & 6 \\ 7 & 8 & 9 \end{bmatrix}
To find the column space of A, we look at the linear combinations of its column vectors:
\mathbf{v}_1 = \begin{bmatrix} 1 \\ 4 \\ 7 \end{bmatrix}, \quad \mathbf{v}_2 = \begin{bmatrix} 2 \\ 5 \\ 8 \end{bmatrix}, \quad \mathbf{v}_3 = \begin{bmatrix} 3 \\ 6 \\ 9 \end{bmatrix}
The column space is the span of {v_1, v_2, v_3}, which represents all vectors that can be expressed as c_1v_1 + c_2v_2 + c_3v_3, where c_1, c_2, and c_3 are scalars.
Methods to Find Column Space of a Matrix
To find the column space of a matrix, the following methods may be used. Here, we will provide an overview of three primary methods:
- Using Gaussian Elimination
- Using Reduced Row Echelon Form or RREF
- Using Singular Value Decomposition or SVD
Each method involves systematic steps to transform the matrix and identify its column space.
Method 1: Using Gaussian Elimination
Gaussian Elimination is a method used to convert a matrix into its row echelon form or REF. Here are the detailed steps:
Convert Matrix to REF:
- Start with matrix A.
- Use row operations (swap rows, multiply a row by a non-zero scalar, add/subtract multiples of rows) to convert A into REF.
Identify Pivot Columns:
- The pivot columns in the REF correspond to the linearly independent columns in the original matrix A.
- These pivot columns form the basis for the column space.
Example: Consider the matrix A:
A = \begin{bmatrix} 1 & 2 & 3 \\ 4 & 5 & 6 \\ 7 & 8 & 9 \end{bmatrix}
Perform row operations to convert A into REF:
\begin{bmatrix} 1 & 2 & 3 \\ 0 & -3 & -6 \\ 0 & 0 & 0 \end{bmatrix}
The pivot columns are the first and second columns of A, hence the basis for the column space is:
.\left\{ \begin{bmatrix} 1 \\ 4 \\ 7 \end{bmatrix}, \begin{bmatrix} 2 \\ 5 \\ 8 \end{bmatrix} \right\}
Reduced Row Echelon Form or RREF is a simplified version of REF where each pivot is 1 and is the only non-zero entry in its column. The steps are:
Convert Matrix to RREF:
- Start with matrix A.
- Apply row operations to transform A into RREF.
Select Pivot Columns:
- Identify the pivot columns in the RREF.
- These correspond to the linearly independent columns in the original matrix A.
Example: Consider the matrix A:
A = \begin{bmatrix} 1 & 2 & 3 \\ 4 & 5 & 6 \\ 7 & 8 & 9 \end{bmatrix}
Convert A to RREF:
\begin{bmatrix} 1 & 0 & -1 \\ 0 & 1 & 2 \\ 0 & 0 & 0 \end{bmatrix}
Pivot columns are the first and second columns of A, hence the basis for the column space is:
\left\{ \begin{bmatrix} 1 \\ 4 \\ 7 \end{bmatrix}, \begin{bmatrix} 2 \\ 5 \\ 8 \end{bmatrix} \right\}
Method 3: By using Singular Value Decomposition or SVD
Singular Value Decomposition or SVD is the procedure that breaks the matrix A into other three matrices commonly known as; U, Σ, and VT. The steps are:
Perform SVD:
- To decompose A, we have A = U ΣVT where U and V are orthogonal matrices while Σ is a diagonal matrix.
Identify Column Space:
- The column space of A is spanned by the columns of U corresponding to the non-zero singular values in Σ.
Example: Consider the matrix A:
A = \begin{bmatrix} 1 & 2 & 3 \\ 4 & 5 & 6 \\ 7 & 8 & 9 \end{bmatrix}
Perform SVD to get:
U = \begin{bmatrix} -0.214 & 0.887 & 0.408 \\ -0.520 & 0.249 & -0.817 \\ -0.826 & -0.389 & 0.408 \end{bmatrix}
\Sigma = \begin{bmatrix} 16.848 & 0 & 0 \\ 0 & 1.068 & 0 \\ 0 & 0 & 0 \end{bmatrix}
V^T = \begin{bmatrix} -0.479 & -0.572 & -0.665 \\ -0.776 & -0.075 & 0.627 \\ -0.408 & 0.816 & -0.408 \end{bmatrix}
Therefore, the corresponding columns in the matrix U are the basis for the column space of A, namely, 16.848 and 1.068.
Applications of Column Space of a Matrix
The applications of column space of a Matrix:
- Solving Linear Systems: Identifies if a system of equations has solutions and determines their nature.
- Data Compression: In techniques like PCA, the column space helps reduce the dimensions of data while preserving significant features.
- Control Theory: Used in designing control systems by determining state reachability and observability.
- Signal Processing: Helps in filtering and reconstructing signals.
- Machine Learning: In algorithms like SVD for recommendation systems and latent semantic analysis.
Conclusion
It is thus important to come up with a good comprehension of the column space of a matrix for different applications in linear algebra as well as others. Understanding how to use methods like Gaussian Elimination, RREF, and SVD, can help students find any matrix’s column space. This helps in solving engineering problems, data analysis and many others; it is therefore an essential part of the mathematics system.
Also Read:
Examples on column space of a matrix
Example 1: Find the column space of the matrix A:
A = \begin{bmatrix} 1 & 2 \\ 3 & 4 \\ 5 & 6 \end{bmatrix}
Solution:
Convert to Row Echelon Form (REF):
Perform row operations to get REF:
\begin{bmatrix} 1 & 2 \\ 3 & 4 \\ 5 & 6 \end{bmatrix}
Row operations:
Resulting in:
\begin{bmatrix} 1 & 2 \\ 0 & -2 \\ 0 & -4 \end{bmatrix}
Further, R3←R3 − 2R2:
\begin{bmatrix} 1 & 2 \\ 0 & -2 \\ 0 & 0 \end{bmatrix}
Identify Pivot Columns:
Pivot columns are the first and second columns.
Column Space:
Basis for the column space is:
\left\{ \begin{bmatrix} 1 \\ 3 \\ 5 \end{bmatrix}, \begin{bmatrix} 2 \\ 4 \\ 6 \end{bmatrix} \right\}
Example 2: Find the column space of the matrix B:
B = \begin{bmatrix} 2 & 4 & 1 \\ 0 & 3 & -1 \\ -2 & 1 & 5 \end{bmatrix}
Solution:
Convert to Reduced Row Echelon Form (RREF):
Perform row operations to get RREF:
B = \begin{bmatrix} 2 & 4 & 1 \\ 0 & 3 & -1 \\ -2 & 1 & 5 \end{bmatrix}
Row operations:
- R3 → R3 + R1
- R2 → R2/3
- R1 → R1 − 2R2
- R3 → R3 − 4R2
Resulting in:
\begin{bmatrix} 2 & 0 & 3 \\ 0 & 1 & -\frac{1}{3} \\ 0 & 0 & 8 \end{bmatrix}
Further, R1 → R1/2, R3 → R3/8:
\begin{bmatrix} 1 & 0 & 1.5 \\ 0 & 1 & -\frac{1}{3} \\ 0 & 0 & 1 \end{bmatrix}
Identify Pivot Columns:
Pivot columns are the first, second, and third columns.
Column Space:
The basis for the column space is:
\left\{ \begin{bmatrix} 2 \\ 0 \\ -2 \end{bmatrix}, \begin{bmatrix} 4 \\ 3 \\ 1 \end{bmatrix}, \begin{bmatrix} 1 \\ -1 \\ 5 \end{bmatrix} \right\}
Example 3: Find the column space of the matrix C using Singular Value Decomposition (SVD):
C = \begin{bmatrix} 1 & 0 & 0 \\ 0 & 1 & 0 \\ 0 & 0 & 0 \\ 1 & 1 & 1 \end{bmatrix}
Solution:
Perform SVD:
Decompose C into U, Σ, and VT.
Suppose U, Σ, and V^T are obtained as:
U = \begin{bmatrix} 0.5 & -0.5 & -0.5 & 0.5 \\ 0.5 & 0.5 & -0.5 & -0.5 \\ 0.5 & 0.5 & 0.5 & 0.5 \\ 0.5 & -0.5 & 0.5 & -0.5 \end{bmatrix}
\Sigma = \begin{bmatrix} 1.732 & 0 & 0 \\ 0 & 1 & 0 \\ 0 & 0 & 0 \end{bmatrix}
V^T = \begin{bmatrix} 0.577 & 0.577 & 0.577 \\ 0.707 & 0 & -0.707 \\ 0 & 1 & 0 \end{bmatrix}
Identify Column Space:
The non-zero singular values in Σ are 1.732 and 1. The corresponding columns of U form the basis for the column space.
Column Space:
The basis for the column space is:
\left\{ \begin{bmatrix} 0.5 \\ 0.5 \\ 0.5 \\ 0.5 \end{bmatrix}, \begin{bmatrix} -0.5 \\ 0.5 \\ 0.5 \\ -0.5 \end{bmatrix} \right\}
Practice Problems on Column Space of a Matrix
P1. Find the column space of the matrix D:
D = \begin{bmatrix} 1 & 2 \\ 3 & 6 \\ 2 & 4 \end{bmatrix}
P2. Find the column space of the matrix E using RREF:
E = \begin{bmatrix} 1 & 3 & 2 \\ 2 & 6 & 4 \\ 1 & 2 & 1 \end{bmatrix}
P3. Find the column space of the matrix F using Gaussian Elimination:
F = \begin{bmatrix} 2 & 1 & 4 \\ 1 & 3 & 2 \\ 0 & 2 & 3 \end{bmatrix}
P4. Find the column space of the matrix G using SVD:
G = \begin{bmatrix} 1 & 1 \\ 0 & 1 \\ 1 & 0 \\ 1 & 1 \end{bmatrix}
Similar Reads
How to find the Diagonal of a Matrix? British Mathematician Arthur Cayley was the first person to develop the algebraic aspect of the matrix. After that, Psychiat Heisenberg used matrices as a tool to explain his famous Quantum principle. The study of matrices originated while solving different types of simple and complex linear problem
6 min read
How to Find Rank of a 3x3 Matrix Rank of a matrix is equal to the number of linear independent rows or columns in it. The rank of the matrix is always less than or equal to the order of the matrix. In this article we will explore how to find rank of 3Ã3 matrix in detail along with the basics of the rank of a matrix. Table of Conten
6 min read
How to find the rank of a matrix in R A matrix is an arrangement of data in a row- and column-wise fashion or a matrix is nothing but a set of particular kinds of data like numbers. It has many applications in mathematics, Physics, engineering, etc. The number of rows and columns defines the matrix size called an order. For example, if
6 min read
How to find number of rows and columns in a matrix in R In this article, we will see how to return the total number of rows and columns in a matrix in R Programming Language. What is Matrix?In R programming, Matrix is a two-dimensional, homogeneous data structure in which rows and columns run horizontally. 1. Getting the number of rowsnrow() function is
3 min read
Program to Interchange or Swap Columns in a Matrix Given a matrix having m rows and n columns, the task is to write a program to interchange any two Columns(i.e. column no. N and M given in the input) in the given matrix. Example: Input : N = 1, M = 2, mat[][] = {{2, 1, 4}, {1, 2, 3}, {3, 6, 2}}Output: mat[][] = {{1, 2, 4}, {2, 1, 3}, {6, 3, 2}} Inp
6 min read