Column of a Matrix
Key Formula
A=a11a21⋮am1a12a22⋮am2⋯⋯⋱⋯a1na2n⋮amn⇒Column j=a1ja2j⋮amj
Where:
- A = An m × n matrix (m rows and n columns)
- aij = The element in row i and column j of the matrix
- j = The column number, ranging from 1 to n
- m = The total number of rows in the matrix
- n = The total number of columns in the matrix
Worked Example
Problem: Given the matrix B, identify the second column and state its entries.
Step 1: Write out the matrix B.
B=524376819
Step 2: Identify column 2 by reading down the second vertical position (j = 2) from top to bottom. The entries are the elements where the column index is 2: b₁₂, b₂₂, and b₃₂.
b12=3,b22=7,b32=6
Step 3: Write the second column as a column vector.
Column 2=376
Answer: The second column of B is the column vector [3, 7, 6]ᵀ.
Another Example
This example differs by involving a non-square matrix and extracting all columns rather than just one, reinforcing how the matrix dimensions determine the number and length of columns.
Problem: A matrix C has dimensions 2 × 4. List all of its columns.
Step 1: Write out the matrix C.
C=[13054728]
Step 2: Since C is a 2 × 4 matrix, it has 4 columns. Each column has 2 entries (one from each row).
Step 3: Extract each column by reading downward at each position.
Col 1=[13],Col 2=[05],Col 3=[47],Col 4=[28]
Step 4: Notice that the number of columns (4) equals the second dimension of the matrix size (2 × 4), and each column vector has a length equal to the number of rows (2).
Answer: Matrix C has four columns: [1, 3]ᵀ, [0, 5]ᵀ, [4, 7]ᵀ, and [2, 8]ᵀ.
Frequently Asked Questions
What is the difference between a row and a column of a matrix?
A row is a horizontal set of numbers running left to right across the matrix, while a column is a vertical set of numbers running top to bottom. In the notation a_{ij}, the first subscript i identifies the row and the second subscript j identifies the column. A matrix with m rows and n columns has m row vectors and n column vectors.
How do you find the number of columns in a matrix?
The number of columns equals the second number in the matrix's dimensions. If a matrix is described as m × n, then n is the number of columns. For example, a 3 × 5 matrix has 5 columns, and each column contains 3 entries.
What is a column vector?
A column vector is a matrix that has only one column. It has dimensions m × 1, where m is the number of entries. Every column of a larger matrix can be treated as a column vector on its own. Column vectors are fundamental in linear algebra for representing points, directions, and solutions to systems of equations.
Column of a Matrix vs. Row of a Matrix
| Column of a Matrix | Row of a Matrix | |
|---|---|---|
| Direction | Vertical (top to bottom) | Horizontal (left to right) |
| Notation | Fixed column index j; varies row index i | Fixed row index i; varies column index j |
| Count in an m × n matrix | n columns | m rows |
| Length of each vector | m entries per column | n entries per row |
| As a standalone vector | Column vector (m × 1) | Row vector (1 × n) |
Why It Matters
Columns appear constantly in linear algebra: when you multiply a matrix by a vector, the result is a combination of the matrix's columns. Understanding columns is also essential for matrix operations like finding determinants, performing Gaussian elimination, and computing matrix–matrix products. In data science and statistics, each column of a data matrix typically represents a different variable or feature, so recognizing columns is crucial for interpreting real-world datasets.
Common Mistakes
Mistake: Confusing the row index and the column index in double-subscript notation. For example, reading a_{23} as "column 2, row 3" instead of "row 2, column 3."
Correction: Always remember the convention: the first subscript is the row, the second is the column. So a_{23} is in row 2, column 3. A helpful mnemonic: think "RC" — Row first, Column second — like the abbreviation for a remote control.
Mistake: Thinking the number of columns equals the first dimension. For instance, calling a 4 × 3 matrix one that has 4 columns.
Correction: The first number in m × n gives the rows, and the second gives the columns. A 4 × 3 matrix has 4 rows and 3 columns, not the other way around.
Related Terms
- Row of a Matrix — Horizontal counterpart of a column
- Matrix — The rectangular array containing columns
- Element of a Matrix — Individual entry within a column
- Vertical — Direction that columns run in a matrix
- Dimensions of a Matrix — Determines how many columns exist
- Square Matrix — Matrix where row count equals column count

![3x3 matrix with second column [2, 5, 8] highlighted, illustrating a column of a matrix.](c_assets/c49.gif)