• Foundation
  • About 16 min
  • 5 practice questions

Adding matrices and multiplying by a scalar

Add and subtract matrices of the same order, multiply a matrix by a number, use the properties of these operations and solve matrix equations such as 2X + A = B.

If something looks wrong, please tell us.

By the end of this lesson you can

  • Add or subtract two matrices of the same order and multiply a matrix by a scalar.
  • State and use the properties of addition and scalar multiplication.
  • Solve matrix equations for an unknown matrix or for unknown entries.

Adding matrices is like adding two spreadsheets of the same shape cell by cell: sales for January plus sales for February gives total sales. Multiplying by a number scales every cell, like converting every price with the same rate. These two operations behave exactly like ordinary addition and multiplication of numbers, which makes them easy to use.

How matrices are written in these lessons: entries in a row are separated by spaces and rows by semicolons, so [2 −1; 3 0] is the 2 × 2 matrix with first row 2, −1 and second row 3, 0.

Addition and subtraction

If A = [aᵢⱼ] and B = [bᵢⱼ] have the same order m × n, then A + B = [aᵢⱼ + bᵢⱼ] and A − B = [aᵢⱼ − bᵢⱼ], both of order m × n. Matrices of different orders cannot be added.

Worked example 1. A = [2 −1; 3 0] and B = [1 4; −2 5]. Working: A + B = [2 + 1, −1 + 4; 3 − 2, 0 + 5] = [3 3; 1 5]. A − B = [2 − 1, −1 − 4; 3 + 2, 0 − 5] = [1 −5; 5 −5].

Multiplying by a scalar

For a number k (a scalar), kA = [k aᵢⱼ]: every entry is multiplied by k. In particular −A = (−1)A is the negative of A, and A − B = A + (−1)B.

Worked example 2. With A and B as above, find 2A − B. Working: 2A = [4 −2; 6 0]. 2A − B = [4 − 1, −2 − 4; 6 + 2, 0 − 5] = [3 −6; 8 −5].

Properties

These follow entry by entry from the rules for real numbers
PropertyStatement (A, B, C of the same order; k, l scalars)
CommutativeA + B = B + A
Associative(A + B) + C = A + (B + C)
Additive identityA + O = O + A = A, where O is the zero matrix of the same order
Additive inverseA + (−A) = (−A) + A = O
Scalar over matricesk(A + B) = kA + kB
Scalars over a matrix(k + l)A = kA + lA
Scalars togetherk(lA) = (kl)A

Add or subtract only matrices of the same order, entry by entry. kA multiplies every entry by k.

— Rule

Solving a linear matrix equation such as 2X + A = B

  1. Check orders X must have the same order as A and B.
  2. Isolate the X term 2X = B − A, using the additive inverse.
  3. Divide by the scalar X = ½(B − A).
  4. Check Substitute X back into the original equation.

Worked examples on equations

Worked example 3. Find X if 2X + A = B, where A = [1 3; 0 −2] and B = [5 −1; 4 6]. Working: 2X = B − A = [5 − 1, −1 − 3; 4 − 0, 6 + 2] = [4 −4; 4 8]. So X = [2 −2; 2 4]. Check: 2X + A = [4 −4; 4 8] + [1 3; 0 −2] = [5 −1; 4 6] = B ✓.

Worked example 4. Find X and Y if X + Y = [5 2; 0 9] and X − Y = [3 6; 0 −1]. Working: adding the equations, 2X = [8 8; 0 8], so X = [4 4; 0 4]. Then Y = (X + Y) − X = [5 − 4, 2 − 4; 0 − 0, 9 − 4] = [1 −2; 0 5]. Check: X − Y = [3 6; 0 −1] ✓.

Worked example 5. Find x and y if 2[x 3; 1 y] + [1 −1; 0 2] = [7 5; 2 10]. Working: the left side is [2x + 1, 6 − 1; 2 + 0, 2y + 2] = [2x + 1 5; 2 2y + 2]. Comparing entries: 2x + 1 = 7 gives x = 3; 2y + 2 = 10 gives y = 4; the other entries agree (5 = 5, 2 = 2).

Worked example 6 (made-up data). A bookshop's sales of maths and science books in its two branches are J = [30 25; 18 40] in June and K = [35 20; 22 45] in July (rows: branches, columns: subjects). Total sales over two months: J + K = [65 45; 40 85]. Increase from June to July: K − J = [5 −5; 4 5], so branch 1 sold 5 fewer science books in July.

Key takeaways: matrix addition, subtraction and scalar multiplication all work entry by entry and need equal orders for addition. They obey the familiar laws (commutative, associative, identity O, inverse −A, distributive). Solve matrix equations exactly as you would with numbers, then compare entries.

Check your understanding

  1. 1. If A = [1 −2; 0 3] and B = [4 1; −1 2], what is 3A − 2B?

    1. [5 −4; −2 5]
    2. [−5 −4; 2 13]
    3. [−5 −8; 2 5]
    4. [−5 −8; 1 5]
    Show answer

    Answer: C. 3A = [3 −6; 0 9] and 2B = [8 2; −2 4]. 3A − 2B = [3 − 8, −6 − 2; 0 + 2, 9 − 4] = [−5 −8; 2 5].

  2. 2. Which of these sums is defined?

    1. [1 2] + [1; 2]
    2. [1 2 3] + [4 5]
    3. [1; 2] + [3 4]
    4. [1 0; 0 1] + [2 3; 4 5]
    Show answer

    Answer: D. Only matrices of the same order can be added. The two 2 × 2 matrices qualify; the other pairs are 1 × 2 and 2 × 1, 1 × 3 and 1 × 2, and 2 × 1 and 1 × 2.

  3. 3. If X + [2 1; 0 −3] = [5 4; 1 0], what is X?

    1. [3 3; 1 3]
    2. [7 5; 1 −3]
    3. [3 3; 1 −3]
    4. [−3 −3; −1 −3]
    Show answer

    Answer: A. X = [5 4; 1 0] − [2 1; 0 −3] = [5 − 2, 4 − 1; 1 − 0, 0 + 3] = [3 3; 1 3].

  4. 4. If 3[x 2] − [4 y] = [5 1], what are x and y?

    1. x = 3, y = 1
    2. x = 3, y = 5
    3. x = 1/3, y = 5
    4. x = 3, y = 7
    Show answer

    Answer: B. Left side: [3x − 4, 6 − y]. So 3x − 4 = 5 gives x = 3, and 6 − y = 1 gives y = 5.

  5. 5. Assertion (A): For matrices A and B of the same order, 2(A + B) = 2A + 2B.
    Reason (R): Scalar multiplication distributes over matrix addition: k(A + B) = kA + kB.

    1. Both A and R are true, and R is the correct explanation of A
    2. Both A and R are true, but R is not the correct explanation of A
    3. A is true but R is false
    4. A is false but R is true
    Show answer

    Answer: A. R is a true general property (it holds entry by entry because k(a + b) = ka + kb for real numbers), and A is its special case k = 2.

Sign in to keep track of the lessons you finish.

Next lesson → Multiplying matrices

Privacy · Terms · Refunds · Delivery