Course contentsShow
← Mathematics
Lesson 1274 of 3,12130. Matrices (Precalculus)Free lesson

Adding and Subtracting Matrices

Learn to add and subtract matrices by combining corresponding entries; matrices must have the same dimensions.

Adding and Subtracting Matrices

What you'll learn: How to combine two matrices by adding or subtracting their corresponding entries, provided they have the same dimensions.

The Core Idea

Adding and subtracting matrices is surprisingly straightforward—you simply work entry by entry. However, there's one critical rule: the matrices must have the same dimensions (same number of rows and columns). You can't add a 2×3 matrix to a 3×2 matrix, just like you can't stack boxes of different shapes neatly.

How It Works

To add or subtract matrices:

  1. Check that both matrices have identical dimensions
  2. Add (or subtract) each pair of corresponding entries
  3. Place the result in the same position in the new matrix

Example: Addition

If A = [2 -1] and B = [5 3], then: [4 0] [-2 1]

A + B = [2+5 -1+3] = [7 2] [4+(-2) 0+1] [2 1]

Example: Subtraction

Using the same matrices:

A - B = [2-5 -1-3] = [-3 -4] [4-(-2) 0-1] [6 -1]

Why Dimensions Matter

Think of matrices like apartment buildings: you can only combine them room-by-room if they have the same floor plan. A 2×3 matrix has 6 entries arranged in 2 rows and 3 columns. A 3×2 matrix also has 6 entries, but they're arranged differently—there's no sensible way to match them up entry by entry.

Key Takeaway: Matrix addition and subtraction are performed entry-by-entry on matrices of equal dimensions; the result has the same dimensions as the originals.