Skip to content

Mathematics · Ch 3 — Matrices

Concept and Notation of a Matrix

1

Concept and Notation of a Matrix

What Is a Matrix?

In many real situations we need to record several numbers that are all related to each other in a grid-like way -- for instance, the marks scored by 33 students in 44 subjects, or the number of items of 22 kinds sent from 33 warehouses to 22 shops. Writing such numbers in a rectangular arrangement, enclosed in a single pair of brackets, is far more convenient than listing them one by one in words. This rectangular arrangement is called a matrix.

Definition. A matrix is a rectangular array of numbers (or, more generally, of symbols) arranged in rows and columns, enclosed within a pair of square brackets [ ⋅ ][\,\cdot\,] or round brackets ( ⋅ )(\,\cdot\,). For example,

A=[2−14053]A=\begin{bmatrix}2 & -1 & 4\\0 & 5 & 3\end{bmatrix}

is a matrix with 22 rows and 33 columns. Each number inside the array is called an element or entry of the matrix.

Notation

A matrix is usually named by a single capital letter, such as AA, BB, MM. If a matrix AA has mm rows and nn columns, it is written in general as

A=[a11a12⋯a1na21a22⋯a2n⋮⋮⋱⋮am1am2⋯amn],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},

written compactly as A=[aij]m×nA=[a_{ij}]_{m\times n}, or simply A=[aij]A=[a_{ij}] when the order is understood from context. Here aija_{ij} denotes the entry that sits in the iith row and jjth column of AA -- the row index ii always comes first, the column index jj second. For instance, in the matrix AA above, a12=−1a_{12}=-1 (row 11, column 22) and a23=3a_{23}=3 (row 22, column 33).

Constructing a Matrix from a Formula

A common type of question gives a rule aij=f(i,j)a_{ij}=f(i,j) for the general entry and asks for the matrix itself. To build it, substitute every valid pair (i,j)(i,j) into the formula, keeping the row index ii fixed while the column index jj runs through its full range, then move to the next row. Example 1 and Exercise: Matrix Notation and Types, Q2 both use this construction.

Tip

Always double-check which index is the row and which is the column before substituting -- swapping ii and jj by mistake is one of the most common notation errors when a matrix is built from a formula, and for a non-symmetric formula like aij=i+2ja_{ij}=i+2j it changes almost every entry.