Fiveable

🍬Honors Algebra II Unit 4 Review

QR code for Honors Algebra II practice questions

4.1 Matrix Operations and Applications

4.1 Matrix Operations and Applications

Written by the Fiveable Content Team • Last updated August 2025
Written by the Fiveable Content Team • Last updated August 2025
🍬Honors Algebra II
Unit & Topic Study Guides
Pep mascot

Matrices and Their Components

A matrix is a rectangular array of numbers (or expressions) arranged in rows and columns. Matrices give you a structured way to organize data and perform operations on entire sets of numbers at once. They show up everywhere: solving systems of equations, transforming shapes in computer graphics, and modeling real-world systems in economics and science.

Pep mascot
more resources to help you study

Definition and Elements

Each individual number in a matrix is called an element (or entry). You identify a specific element by its row and column position. For example, A23A_{23} refers to the element in the 2nd row and 3rd column of matrix AA.

Matrix Size and Types

The dimensions of a matrix are written as m×nm \times n, where mm is the number of rows and nn is the number of columns. A 3×23 \times 2 matrix has 3 rows and 2 columns, giving it 6 elements total.

  • A square matrix has the same number of rows and columns (like 3×33 \times 3). The main diagonal runs from the top-left element to the bottom-right element.
  • A row vector is a matrix with only one row (1×n1 \times n).
  • A column vector is a matrix with only one column (m×1m \times 1).

Matrix Operations

Matrix Addition and Subtraction

You can only add or subtract matrices that have the same dimensions. If AA is 2×32 \times 3 and BB is 2×42 \times 4, the operation A+BA + B is undefined.

When the dimensions do match, you simply add (or subtract) corresponding elements:

(A+B)ij=Aij+Bij(A + B)_{ij} = A_{ij} + B_{ij}

So the element in row ii, column jj of the result is just the sum of the elements at that same position in AA and BB.

Two properties to know:

  • Commutative: A+B=B+AA + B = B + A
  • Associative: (A+B)+C=A+(B+C)(A + B) + C = A + (B + C)

Note: Subtraction is commutative only in the sense that AB=(BA)A - B = -(B - A). The order still matters for the sign.

Scalar Multiplication

Scalar multiplication means multiplying every element of a matrix by a single number (the scalar). If cc is a scalar and AA is a matrix:

(cA)ij=cAij(cA)_{ij} = c \cdot A_{ij}

For example, if c=3c = 3 and A=[2104]A = \begin{bmatrix} 2 & -1 \\ 0 & 4 \end{bmatrix}, then 3A=[63012]3A = \begin{bmatrix} 6 & -3 \\ 0 & 12 \end{bmatrix}.

Scalar multiplication distributes over matrix addition: c(A+B)=cA+cBc(A + B) = cA + cB.

Definition and elements, Matrix (mathematics) - Wikipedia

Matrix Multiplication

Conditions for Matrix Multiplication

Matrix multiplication has a strict compatibility requirement: the number of columns in the first matrix must equal the number of rows in the second matrix.

If AA is m×nm \times n and BB is n×pn \times p, then the product ABAB exists and has dimensions m×pm \times p. If those inner dimensions don't match, the multiplication is undefined.

Process of Matrix Multiplication

To find element (i,j)(i, j) of the product matrix C=ABC = AB:

  1. Take the entire iith row of AA.
  2. Take the entire jjth column of BB.
  3. Multiply corresponding entries together.
  4. Add all those products.

In summation notation:

Cij=k=1nAikBkjC_{ij} = \sum_{k=1}^{n} A_{ik} B_{kj}

Quick example: Suppose AA is 2×32 \times 3 and BB is 3×23 \times 2. To find C11C_{11}, you multiply each element in row 1 of AA by the corresponding element in column 1 of BB, then sum: C11=A11B11+A12B21+A13B31C_{11} = A_{11}B_{11} + A_{12}B_{21} + A_{13}B_{31}.

Three properties to remember:

  • Associative: (AB)C=A(BC)(AB)C = A(BC)
  • Distributive: A(B+C)=AB+ACA(B + C) = AB + AC
  • NOT commutative: ABBAAB \neq BA in general. This is one of the biggest differences from regular number multiplication. Even when both ABAB and BABA are defined, they usually produce different results.

Identity Matrix

The identity matrix II is a square matrix with 1s on the main diagonal and 0s everywhere else. For a 3×33 \times 3 identity:

I=[100010001]I = \begin{bmatrix} 1 & 0 & 0 \\ 0 & 1 & 0 \\ 0 & 0 & 1 \end{bmatrix}

It acts like the number 1 in multiplication: AI=IA=AAI = IA = A, as long as the dimensions are compatible. Think of it as the "do nothing" matrix.

Applications of Matrices

Definition and elements, Matrix: Values arranged in rows and columns.

Systems of Linear Equations

Matrices provide a compact way to represent and solve systems of equations. The coefficients of the variables form a coefficient matrix, the variables form a column vector, and the constants form another column vector. A system like:

2x+3y=72x + 3y = 7 xy=1x - y = 1

becomes the matrix equation AX=BAX = B. You can then solve using techniques like Gaussian elimination, inverse matrices, or Cramer's rule (covered later in this unit).

Computer Graphics

In computer graphics, transformation matrices handle translations, rotations, and scaling of objects in 2D or 3D space. Applying a transformation to every point of an object is just matrix multiplication. Combining multiple transformations (rotate then scale, for instance) means multiplying their matrices together, which is one reason matrix multiplication order matters.

Economics

Input-output models in economics use matrices to describe how industries depend on each other. The input-output matrix tracks the flow of goods and services between sectors, making it possible to analyze how a change in one industry ripples through the rest of the economy.

Physics and Engineering

Matrices represent systems in electric circuit analysis, stress analysis in structural engineering, and quantum mechanics. In quantum mechanics specifically, the states of a system and the operators acting on those states are represented as matrices and vectors.

Population Dynamics

The Leslie matrix models how a population's age structure changes over time, incorporating birth rates and survival rates for each age group. Multiplying the Leslie matrix by a population vector gives you the predicted population distribution for the next time period.

Cryptography

The Hill cipher is a classic example of matrices in cryptography. It uses matrix multiplication to encrypt blocks of letters and the inverse matrix to decrypt them. The security depends on keeping the encryption matrix secret.