A matrix is a rectangular array of numbers, symbols, or expressions arranged in rows and columns. Matrices help organize information that has two directions, such as data tables, coordinate transformations, or systems of equations. They matter because many problems in science, engineering, economics, and computer graphics become easier to describe and solve when written in matrix form.
A matrix gives a compact way to store many related values under one name, such as A.
Understanding Math: Introduction to Matrices
The position of a value matters just as much as the value itself. Think of a seating chart. A student in the second row and third seat is not in the same place as a student in the third row and second seat.
Matrix subscripts work in this same ordered way. The first subscript tells you the row, and the second tells you the column.
A useful habit is to trace across first for the row, then trace down for the column. This prevents one of the most common mistakes, which is reading the two position numbers in the wrong order.
The size of a matrix controls which calculations make sense. To add or subtract two matrices, every position in one matrix must line up with exactly one position in the other. If one has an extra row or column, there is no matching value for part of the calculation.
Multiplication follows a different rule. The number of columns in the first matrix must match the number of rows in the second matrix. This rule can feel arbitrary at first, but it comes from combining groups of values.
Each result is built by pairing one row from the first matrix with one column from the second matrix, then adding the products. Careful size checking should happen before any arithmetic.
Matrices often represent relationships between quantities. In a system of equations, each row can represent one equation. The entries record the coefficients of the variables, while a separate column can hold the answers.
This structure lets people solve many equations using a repeatable method instead of rewriting every variable each time. In computer graphics, a matrix can describe a movement, turn, stretch, or flip of points on a screen.
A game character, a phone image, or a three dimensional model can be changed by applying the same matrix to many coordinates. Scientists use similar ideas when tracking measurements, predicting changes, or studying connected systems.
Square matrices deserve extra attention because they can represent transformations that take a space back into the same kind of space. For instance, a matrix with two rows and two columns can act on two dimensional coordinates. Some square matrices have special behavior.
The identity matrix leaves values unchanged when it is used in multiplication, much like multiplying an ordinary number by one. A zero matrix can show that no effect or no connection is being recorded. When learning matrices, write their dimensions beside them, keep row and column order clear, and do not assume multiplication can be swapped.
In general, changing the order of matrix multiplication changes the result. That fact is important in both algebra and graphics.
Key Facts
- A matrix with m rows and n columns has dimensions m x n.
- An entry in row i and column j is written as a_ij.
- For A = [[4, -2, 7], [0, 5, 1]], the dimensions are 2 x 3.
- Two matrices are equal only if they have the same dimensions and all corresponding entries are equal.
- A square matrix has the same number of rows and columns, so m = n.
- The zero matrix has every entry equal to 0.
Vocabulary
- Matrix
- A matrix is a rectangular arrangement of entries organized into rows and columns.
- Entry
- An entry is one value inside a matrix, identified by its row and column position.
- Dimensions
- Dimensions describe the size of a matrix as number of rows by number of columns.
- Row
- A row is a horizontal line of entries in a matrix.
- Column
- A column is a vertical line of entries in a matrix.
Common Mistakes to Avoid
- Writing dimensions as columns x rows is wrong because matrix size is always listed as rows x columns.
- Calling two matrices equal just because they contain the same numbers is wrong because matching entries must be in the same positions.
- Confusing a_ij with a_ji is wrong because a_ij means row i, column j, while a_ji reverses the order.
- Assuming every matrix is square is wrong because many matrices have different numbers of rows and columns.
Practice Questions
- 1 For A = [[4, -2, 7], [0, 5, 1]], state the dimensions of A and find a_23.
- 2 Let B = [[3, 8], [-1, 0], [6, 5]]. State the dimensions of B, find b_31, and find b_12.
- 3 Explain why the matrices [[1, 2], [3, 4]] and [[1, 3], [2, 4]] are not equal, even though they contain the same four numbers.