On this concept: Formula

Not sure which lesson to do first? Find your level and get a plan →

Math · Algebra Fundamentals · Grade 9-12

Matrix Addition, Subtraction, and Scalar Multiplication

Matrix addition and subtraction combine matrices of identical dimensions entry by entry; scalar multiplication multiplies every entry by one number.

(A+B)ij=aij+bij, (A−B)ij=aij−bij, (kA)ij=k⋅aij. Requires A and B to have the same dimensions.

Quick Answer

Matrix addition and subtraction combine matrices of identical dimensions entry by entry; scalar multiplication multiplies every entry by one number. Use addition or subtraction when two tables describe the same things in the same layout, such as this month's sales and last month's, and you want totals or changes. Use a scalar when every entry changes by the same factor, such as a 10% price rise, which is 1.1A. If the two matrices have different sizes, their sum or difference is not defined.

Why This Matters

These operations update a whole table in one line: total two months of sales, find the change between them, or apply a price rise to every item at once. They are also the first place where matrix rules differ from number rules: a 2×3 and a 3×2 matrix cannot be added at all, because some entries would have no partner.

Intuitive Explanation

A shop records hoodies and T-shirts sold in sizes S and L. Rows are hoodies and T-shirts, columns are S and L: June is J=[1282015] and July is K=[1092511]. The total for both months is J+K=[22174526]; each entry adds the two numbers in the same position. The change from June to July is K−J=[−215−4], and the −4 shows that four fewer large T-shirts sold.

Adding position by position only makes sense because the two tables share a layout. If July's table had a third column for size M, June's table would have nothing to add to it, so matrices of different sizes cannot be added or subtracted.

A scalar is a single number that multiplies every entry. If a stock table Q counts boxes and each box holds 6 items, then 6Q counts items, and every entry is six times as large. Familiar number rules carry over: A+B=B+A, 2(A+B)=2A+2B, and A−A is the zero matrix.

Multiplying two matrices is a different operation. AB is not found by multiplying matching entries; each entry of AB combines a whole row of A with a whole column of B. So 2A and AB follow different rules, even though both are called multiplication.

Think of it like this. Adding matrices is like laying two transparent spreadsheets with identical grids on top of each other and adding the two numbers in each cell. Scaling is one dial that multiplies every cell at once. If the grids are different sizes the sheets cannot line up, and the sum does not exist.

Core idea. Add or subtract matrices entry by entry (same dimensions required), and scalar multiplication scales every entry.


When to Use

Add or subtract when two matrices have the same size and each position means the same thing in both, and the question asks for a total or a change. Use scalar multiplication when every entry grows or shrinks by one factor, such as converting units or applying a percentage. If two matrices are written side by side with no sign, as in AB, or the question pairs rows with columns, use matrix multiplication instead.

Tip. Ask: For +/−, do the two matrices have exactly the same dimensions?

How to Recognize It

Before adding or scaling, check that each position means the same thing in every matrix involved, and what kind of thing does the multiplying.

  1. Does each position mean the same thing in both tables, such as store 2's sales of product 3?

    Then adding or subtracting position by position gives a meaningful total or change. If the rows of one table match the columns of the other instead, the tables are meant to be chained, which is matrix multiplication.

  2. Is the multiplier a single number rather than another matrix?

    A single number, such as 1.08 for an 8% tax, scales every entry: scalar multiplication. If the multiplier is a matrix, as in AB, use row-by-column matrix multiplication instead.

  3. Should the answer be a whole new table rather than one number?

    Sums, differences and scalar multiples are all matrices of the original size. If the answer should be a single number, such as whether a square matrix has an inverse, you need the determinant.

  4. Are the objects single rows or columns of components, such as velocities?

    The rules are the same, but the objects are vectors, so the topic is vector operations, where a sum can also be drawn as arrows placed tip to tail.

Matrix Addition, Subtraction, and Scalar Multiplication compared with Matrix multiplication, Scalar vs matrix product, and Vector operations

All four rows rescale or combine arrays of numbers, and their notation can differ by as little as a missing plus sign. The deciding question is what the second object is: a same-size matrix, a single number, a matrix to pair rows with columns, or an arrow-like vector.

Matrix Addition, Subtraction, and Scalar Multiplication

Meaning
Use this when you combine two same-dimension matrices entry by entry, or scale one matrix by a number.
Key test
For +/−, do the two matrices have exactly the same dimensions?
Formula
(A+B)ij=aij+bij, (A−B)ij=aij−bij, (kA)ij=k⋅aij. Requires A and B to have the same dimensions.
Example
Compute 2A+B for A=[1023], B=[45−12].

Matrix multiplication

Meaning
Combines matrices by row-times-column dot products, not entrywise.
Key test
Use when forming a product AB, where inner dimensions must match.
Formula
(AB)ij=∑kaikbkj
Example
(2×3)(3×2)=(2×2)

Scalar vs matrix product

Meaning
Scalar multiplication uses ONE number; matrix product uses two matrices.
Key test
Use scalar when multiplying by a plain number like 3.
Formula
(kA)ij=k aij
Example
3[12]=[36]

Vector operations

Meaning
The same entrywise rules for single-row/column matrices.
Key test
Use when the objects are vectors specifically.
Formula
ku=⟨ku1,ku2⟩
Example
2⟨1,3⟩=⟨2,6⟩

Formula & Notation

(A+B)ij=aij+bij, (A−B)ij=aij−bij, (kA)ij=k⋅aij. Requires A and B to have the same dimensions.
For A,B∈Rm×n and k∈R: (A+B)ij=aij+bij and (kA)ij=k⋅aij. These operations make Rm×n a vector space with zero element Om×n and additive inverse −A=(−1)A.

How to read it: A+B is entry-by-entry addition. kA is scalar multiplication (k is a number, A is a matrix). Both A and B must be m×n.

Worked Examples

Example 1 — Scalar multiply then add

Easy

Compute 2A+B for A=[1023], B=[45−12].
Show the steps and the answer
  1. Compare sizes: A and B are both 2×2.

    Equal sizes mean every entry of 2A has a partner in B.

  2. Scale A first: 2A=[2046].

    As with numbers, 2A+B means double A, then add B; the 2 reaches all four entries of A and none of B.

  3. Add matching entries: [2+40+54+(−1)6+2].

    Each entry of the sum uses only the two numbers in that same position.

  4. Simplify: [6538].

    Each position was handled on its own, so the result is again 2×2.

Answer: [6538]

Takeaway: Scale first, then add position by position; the result has the same size as the matrices you started with.

Example 2 — A product, not a sum

Standard

Compute AB for the same 2×2 matrices above.
Show the steps and the answer
  1. Read the notation: AB has no plus sign, so it is a matrix product, not a sum.

    Entry-by-entry rules apply only to +, − and a single-number multiplier.

  2. Top row of AB: row 1 of A with each column of B, 1⋅4+0⋅(−1)=4 and 1⋅5+0⋅2=5.

    Each entry of AB uses a whole row of A and a whole column of B.

  3. Bottom row: 2⋅4+3⋅(−1)=5 and 2⋅5+3⋅2=16, so AB=[45516].

    Multiplying matching entries would have given [40−26], which is not the product.

Answer: Different operation (row-by-column product)

Takeaway: Two matrices written side by side are multiplied row by column; only sums, differences and scalar multiples work entry by entry.

Example 3 — Find the mistake: a scalar reaches every entry

Application

Find 3P−Q for P=[2−104] and Q=[51−23]. Lena writes: "3P=[6−304], so 3P−Q=[1−421]." Find the mistake and correct it.
Show the steps and the answer
  1. Check Lena's 3P entry by entry: 3⋅2=6 and 3⋅(−1)=−3 are right, but 3⋅4=12, not 4.

    She tripled the first row and copied the second; the 0 hid the error because 3⋅0=0.

  2. Correct it: 3P=[6−3012].

    A scalar multiplies every entry of the matrix.

  3. Subtract Q entry by entry: [6−5−3−10−(−2)12−3].

    Subtracting the negative entry −2 adds 2.

  4. Simplify: [1−429].

    Only the bottom-right entry differs from Lena's answer, the one that came from the unscaled 4.

Answer: 3P−Q=[1−429]

Takeaway: A scalar reaches every entry; check the bottom row as carefully as the top.

Where You'll See It

  • Adding retake bonuses to quiz scores

    A teacher stores quiz scores as a matrix with one row per student and one column per quiz. Adding a bonus matrix with the same rows and columns gives every final score in one step. A bonus matrix missing a quiz column could not be added, since some scores would have no bonus entry to pair with.

  • A store-wide 20% sale

    If P holds the prices of 3 items at 4 stores, the sale prices are 0.8P: every entry is multiplied by 0.8, so a $45 jacket becomes $36 in every store at once.

  • Converting a recipe table to millilitres

    A matrix of ingredient amounts in cups for three recipes converts to millilitres with the scalar 240, since a US cup is about 240 mL. An entry of 34 cup becomes 180 mL and 2 cups become 480 mL, with every other entry scaled the same way.

Common Mistakes

  1. The slip: Adding mismatched-size matrices

    Instead: addition/subtraction only works when dimensions are identical.

  2. The slip: Scaling only the first row or entry

    Instead: a scalar multiplies EVERY entry of the matrix.

  3. The slip: Confusing kA with AB

    Instead: a scalar is a single number, not another matrix; do not row-by-column it.


Mini Practice

Try these on your own. Tap Reveal when you want to check.

  1. Compute A+B for A=[2−104] and B=[35−21].

    Hint: Add entries in matching positions.

  2. Compute 3A for A=[1−240].

    Hint: Multiply every entry by 3.

  3. Compute A−2B for A=[7316] and B=[21−13].

    Hint: Find 2B first, then subtract entry by entry.

  4. Solve for X: X+[1234]=[50610].

    Hint: Subtract the known matrix from both sides.

  5. A shop's prices are stored in a 2×3 matrix P. Every price rises by 10%. Is the new matrix 1.1P, or P times another matrix?

    Hint: Is every entry changed by the same single number?

  6. A student computes 2[3145]=[6245]. Find the mistake.

    Hint: Check the second row.

Want the full set?

50 practice questions for this concept — free to try, every one with a complete worked solution showing the why, not just the answer.

Frequently Asked Questions

Is A−B the same as B−A?

No. Each entry of B−AB-A is the negative of the matching entry of A−BA-B, so B−A=−(A−B)B-A=-(A-B). If AA is this month's sales and BB is last month's, A−BA-B shows the increase and B−AB-A shows the decrease. Addition, on the other hand, does not care about order: A+B=B+AA+B=B+A, because adding the two numbers in each cell gives the same result either way round.

What is the zero matrix, and why does it matter?

The zero matrix OO has every entry 0 and plays the role that 0 plays for numbers: A+O=AA+O=A for any AA of the same size. There is a separate zero matrix for each size, so the 2×32\times3 zero matrix and the 2×22\times2 one are different objects. It shows up when you solve matrix equations: A+X=BA+X=B is solved by X=B−AX=B-A, just as with numbers.

Can I solve an equation like 3X+A=B for a matrix X?

Yes, with the same steps you would use for numbers. Subtract AA from both sides to get 3X=B−A3X=B-A, then multiply by 13\frac13 to get X=13(B−A)X=\frac13(B-A). Every step is allowed because subtraction and scalar multiplication work entry by entry. The steps stop working once a matrix multiplies XX, as in AX=BAX=B; then you need an inverse, since you cannot divide by a matrix.

Do spreadsheets really work like this?

Yes. In a spreadsheet, writing a formula such as B2+F2 and filling it across a block adds two tables cell by cell, which is matrix addition. Writing 1.1*B2 and filling it across scales the whole table, which is scalar multiplication. Spreadsheet programs keep a separate function, MMULT, for the row-by-column product, because that is a genuinely different operation.

Learning Path

← Before

Matrix Definition
Matrix Addition, Subtraction, and Scalar Multiplication

You are here

You need Matrix Definition first: size as rows by columns and the address aij of each entry. This concept adds entry-by-entry addition and subtraction for same-size matrices, and scaling a whole matrix by one number. Next, Matrix Multiplication combines rows with columns, and the Determinant turns a square matrix into a single number.

See Also