No history yet

Matrix Basics

Grids of Numbers

At its heart, a matrix is just a way to organize numbers. Think of a spreadsheet, a calendar, or a tic-tac-toe board. They're all grids that hold information in a structured way. A matrix is simply a rectangular arrangement of numbers, symbols, or expressions, organized into rows and columns.

Lesson image

We describe the size of a matrix by its dimensions: the number of rows and columns it has. The convention is always rows by columns. A matrix with 2 rows and 3 columns is called a "2 by 3" matrix, written as 2×32 \times 3. The numbers that run horizontally form the rows, and the numbers that run vertically form the columns.

A matrix with 5 rows and 2 columns has dimensions 5×25 \times 2, not 2×52 \times 5. The order matters!

Notation and Elements

We typically use a capital letter, like AA, to name a matrix and use square or round brackets to enclose its numbers. Each number inside the matrix is called an element. Here is an example of a 2×32 \times 3 matrix named AA.

A=[153407]A = \begin{bmatrix} 1 & -5 & 3 \\ 4 & 0 & 7 \end{bmatrix}

To talk about a specific element, we use the matrix's name (as a lowercase letter) with a subscript that gives the element's address: first the row number, then the column number. So, aija_{ij} refers to the element in the i-th row and j-th column.

In the 2×32 \times 3 matrix AA we saw earlier, the element a11a_{11} is 1 (first row, first column). The element a23a_{23} is 7 (second row, third column). And a12a_{12} is -5. This simple address system is crucial for performing calculations with matrices.

Let's check your understanding of these basic terms.

Quiz Questions 1/4

What are the dimensions of the following matrix? A=[402193]A = \begin{bmatrix} 4 & 0 & -2 \\ 1 & 9 & 3 \end{bmatrix}

Quiz Questions 2/4

Consider the matrix B=[1025703]B = \begin{bmatrix} 10 & 2 \\ 5 & -7 \\ 0 & 3 \end{bmatrix}. What is the value of the element b21b_{21}?

That's the basic anatomy of a matrix. It's a powerful tool for organizing data, which is the first step toward doing interesting things with it.