No history yet

Matrix Basics

What Is a Matrix?

At its core, a matrix is just a grid of numbers, symbols, or expressions arranged in rows and columns. Think of a spreadsheet, a calendar, or even a tic-tac-toe board. They all organize information into a rectangular grid. In mathematics, we use this same idea to handle data in a structured way.

Lesson image

Each item in a matrix is called an element. We describe the size, or dimensions, of a matrix by its number of rows and columns. A matrix with m rows and n columns is called an m×nm \times n matrix (read as "m by n").

To pinpoint a specific element, we use a simple address system. The notation aija_{ij} refers to the element in the ii-th row and the jj-th column. The first number always indicates the row, and the second always indicates the column.

For example, in a 3×43 \times 4 matrix, the element a2,3a_{2,3} would be the number located in the second row and the third column.

Common Matrix Types

Matrices come in various shapes and sizes. While there are many types, a few fundamental forms appear all the time. Let's look at the most common ones.

Row Matrix

noun

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

A row matrix can have any number of columns, but it will always have a single row. Its dimensions are always 1×n1 \times n.

A=[30712]A = \begin{bmatrix} -3 & 0 & 7 & 12 \end{bmatrix}

Similarly, a column matrix is a matrix with only one column. You might also hear this called a column vector. Its dimensions will be m×1m \times 1, meaning it can have multiple rows but only a single column.

B=[415]B = \begin{bmatrix} 4 \\ -1 \\ 5 \end{bmatrix}

Next up is the square matrix. This one is straightforward: it's a matrix with the same number of rows and columns. So, a 2×22 \times 2 matrix, a 4×44 \times 4 matrix, or an n×nn \times n matrix are all square matrices.

C=[925041736]C = \begin{bmatrix} 9 & 2 & -5 \\ 0 & -4 & 1 \\ 7 & 3 & 6 \end{bmatrix}

Finally, there's the zero matrix, also known as a null matrix. This is a matrix where every single element is 0. A zero matrix can be of any size, whether it's a 2×32 \times 3, a 4×14 \times 1, or a square matrix. We often denote it with a bold 0.

0=[000000]\mathbf{0} = \begin{bmatrix} 0 & 0 & 0 \\ 0 & 0 & 0 \end{bmatrix}

That's it for the basics. Understanding what matrices are and recognizing these common types is the first step toward using them to solve more complex problems.