No history yet

Matrix Basics

Organizing Numbers

A matrix is simply a grid of numbers, arranged in rows and columns. Think of a spreadsheet, a calendar, or even a tic-tac-toe board. These are all ways of organizing information in a rectangular layout. In mathematics, we use matrices to work with collections of data in a structured way.

Lesson image

We write matrices by enclosing the grid of numbers in brackets. The horizontal lines of numbers are called rows, and the vertical lines are called columns.

A=[123456]A = \begin{bmatrix} 1 & 2 & 3 \\ 4 & 5 & 6 \end{bmatrix}

In this example, the first row is 1 2 3 and the second row is 4 5 6. The first column is 1 4, the second is 2 5, and the third is 3 6.

Dimensions and Notation

The size of a matrix is described by its dimensions: the number of rows and columns it has. We write this as "rows by columns." The matrix above has 2 rows and 3 columns, so its dimensions are 2×32 \times 3.

To talk about a specific number within a matrix, we use subscripts. If we name our matrix AA, the element in the ii-th row and jj-th column is written as AijA_{ij}. The row number always comes first.

For our matrix A, the element A13A_{13} is in the first row and third column, which is the number 3. The element A21A_{21} is in the second row and first column, which is 4.

A general matrix with mm rows and nn columns can be written like this:

A=[A11A12A1nA21A22A2nAm1Am2Amn]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}

Common Matrix Types

Matrices come in a few common shapes and sizes. The names are straightforward and describe their appearance.

Row Matrix

noun

A matrix that has only one row. It's also sometimes called a row vector.

B=[5027]B = \begin{bmatrix} 5 & 0 & -2 & 7 \end{bmatrix}

This is a 1×41 \times 4 row matrix.

Column Matrix

noun

A matrix that has only one column. It can also be called a column vector.

C=[931]C = \begin{bmatrix} 9 \\ 3 \\ 1 \end{bmatrix}

This is a 3×13 \times 1 column matrix.

Square Matrix

noun

A matrix that has the same number of rows and columns.

D=[8152]D = \begin{bmatrix} 8 & 1 \\ -5 & 2 \end{bmatrix}

This is a 2×22 \times 2 square matrix. A tic-tac-toe board could be represented by a 3×33 \times 3 square matrix.

Let's review these new terms.

Ready to check your understanding?

Quiz Questions 1/5

What are the dimensions of the following matrix? A=[837 104]A = \begin{bmatrix} 8 & 3 & 7 \ 1 & 0 & 4 \end{bmatrix}

Quiz Questions 2/5

In the matrix B=[592 167]B = \begin{bmatrix} 5 & 9 & 2 \ 1 & 6 & 7 \end{bmatrix}, what is the value of the element B21B_{21}?

Understanding these basic definitions is the first step. Next, we'll see how to perform calculations with matrices.