Rows and Columns in a Matrix
Simple reminder of the dimension order for matrices.
Main Idea
When referring to the dimensions of a matrix we normally see them written in the following form:
\[m\times n=\text{rows}\times\text{columns}\]Rows are the first dimension (the $m$ value above) and it counts how many horizontal rows exist in the matrix.
Columns are the second dimension (the $n$ value above) and it counts how many vertical columns exist in the matrix.
For example, consider the following matrix
\[A= \begin{bmatrix} 1 & 4 \\ 2 & 5 \\ 3 & 6 \end{bmatrix}\]This matrix has $3$ rows and $2$ columns, so its dimensions are
\[3\times 2\]Watch this section: matching $m$ by $n$ to rows and columns at 0:00.
General Matrix Form
Consider a general matrix $A$ with $m$ rows and $n$ columns
\[A= \begin{bmatrix} a_{11} & a_{12} & \cdots & a_{1n} \\ a_{21} & a_{22} & \cdots & a_{2n} \\ \vdots & \vdots & \ddots & \vdots \\ a_{m1} & a_{m2} & \cdots & a_{mn} \end{bmatrix}\]The $i$ and $j$ contained within a given subscript on an entry $a_{ij}$ also uses the rows-first convention
\[a_{ij}=\text{entry in row } i \text{ and column } j\]So $a_{23}$ refers to the entry found at the intersection of row $2$ and column $3$.
Watch this section: general matrix form overview at 0:15.
Matching an Index to an Entry
Consider the following matrix
\[A= \begin{bmatrix} 1 & 4 \\ 2 & 5 \\ 3 & 6 \end{bmatrix}\]the entries are read by row first and column second.
| Entry | How to read it | Value |
|---|---|---|
| $a_{11}$ | Row $1$, column $1$ | $1$ |
| $a_{12}$ | Row $1$, column $2$ | $4$ |
| $a_{21}$ | Row $2$, column $1$ | $2$ |
| $a_{22}$ | Row $2$, column $2$ | $5$ |
| $a_{31}$ | Row $3$, column $1$ | $3$ |
| $a_{32}$ | Row $3$, column $2$ | $6$ |
Watch this section: match index to value in a matrix examples at 1:07.
Timestamp Guide
Related Matrix Work
This quick reminder fits before the Matrix Addition and Subtraction companion, the Matrix Multiplication companion, and the Augmented Matrices companion.
For more matrix lessons, use the JoeCMath Linear Algebra playlist.