The Chinese University of Hong Kong · FACULTY OF MATHEMATICS

MATH1550 Chap.4 Matrix Products and the Laws of Matrix Algebra

- one subject, every graph, every model, every mark
8 Chapters3-page Bible
Our own words - no uploaded lecturer files
Updated for this semester
Chapter 4 of 10 · MATH1550

Matrix Products and the Laws of Matrix Algebra

Entrywise operations, and one that is not

Matrices of the same size are added entry by entry and multiplied by a scalar entry by entry, and both operations obey the laws of ordinary arithmetic: commutativity and associativity of addition, a zero matrix that changes nothing, a unique additive inverse, and distributive laws for scalars. Multiplying two matrices is different.

The notes first define the product of a matrix and a vector as a combination of the matrix's columns, weighted by the vector's entries, and that definition is what makes the compact form Ax = b equivalent to the original system.

The product and its rules

The product AB is defined column by column, each column being A times a column of B, and written out this gives the entry formula: row of A against column of B, multiply matching entries and add.

It needs the number of columns of A to equal the number of rows of B, and the result has the outer sizes. Associativity, the identity laws and the distributive laws survive, provided every factor stays on its own side.

Commutativity does not: AB and BA are usually different, may have different sizes, or one may not exist, and two nonzero matrices can multiply to zero.

These facts drive the questions in this part of the course. Finding the values that make two matrices commute means equating their products entry by entry. Expanding a product of sums keeps AB and BA as separate terms.

Powers of a single matrix, with A to the zero defined as the identity, do commute with each other, which is why some expansions telescope neatly.

In this chapter

What this chapter covers

  • 01

    Matrix addition and scalar multiplication with their laws

  • 02

    The matrix-vector product as a combination of columns

  • 03

    Why Ax = b has the same solutions as the system

  • 04

    Equal action on every vector forces equal matrices

  • 05

    The product AB, column by column and entry by entry

  • 06

    Matrix multiplication is not commutative

  • 07

    Associative and distributive laws, identity and zero

  • 08

    Powers of a square matrix and expanding products

Worked example · free

Multiply two square matrices in both orders

Q [5 marks]. Let A have rows (2, -1) and (0, 3), and B have rows (1, 4) and (5, -2). Compute AB and BA and say whether A and B commute. The marks shown are a study allocation, not a University marking scheme.
The product of A with u = (1, 2), where A has columns (2, 1) and (-1, 1).The product of A with u = (1, 2), where A has columns (2, 1) and (-1, 1). One copy of the first column, then two copies of the second placed tip to tail, end at the point (0, 3), which is Au.1·A*12·A*2Au = (0, 3)
The product of A with u = (1, 2), where A has columns (2, 1) and (-1, 1). One copy of the first column, then two copies of the second placed tip to tail, end at the point (0, 3), which is Au.
  • 1Check sizes: both are 2 by 2, so both products exist and are 2 by 2.
  • 2Compute each entry of AB as a row of A against a column of B.
  • 1Compute BA the same way, with B on the left.
  • 1Compare entry by entry and conclude.
AB has rows (2 - 5, 8 + 2) = (-3, 10) and (0 + 15, 0 - 6) = (15, -6). BA has rows (2 + 0, -1 + 12) = (2, 11) and (10 + 0, -5 - 6) = (10, -11). Already the top left entries differ, -3 against 2, so AB is not equal to BA and the matrices do not commute. One recomputed entry, such as row 2 of A against column 2 of B giving -6, confirms the arithmetic.
Sia tip — Say row of the left factor, column of the right factor, before computing each entry; swapping them silently computes BA instead of AB.
Glossary

Key terms

Scalar Multiple
The matrix cA obtained by multiplying every entry of A by the real number c.
Matrix-Vector Product
The combination of the columns of A weighted by the entries of the vector, defined when the vector has as many entries as A has columns.
Additive Inverse
The unique matrix that adds to A to give the zero matrix, written minus A and equal to (-1)A.
Commuting Matrices
Two square matrices A and B of the same order with AB = BA, which is the exception rather than the rule.
Matrix Power
The product of n copies of a square matrix A, with A to the zero taken to be the identity.
FAQ

Matrix Products and the Laws of Matrix Algebra FAQ

When is the product of two matrices defined?

When the number of columns of the left factor equals the number of rows of the right factor. If A is m by n and B is n by p, then AB exists and is m by p. Check this before computing, because BA may then fail to exist, or exist with a different size, which settles any comparison immediately.

Why does the course define Au as a combination of columns?

Because it shows what the product means. The entries of u say how much of each column of A to take, and Au is the total. Solving Ax = b then asks which combination of the columns of A produces b, a reading that returns when the course studies consistency. It is also the fastest way to compute a matrix times a vector with simple entries.

Can I cancel a matrix from both sides of AB = AC?

Not in general. Two nonzero matrices can multiply to the zero matrix, so A times (B minus C) can be zero while B and C differ. Cancelling becomes legitimate when A is invertible, which Chapter 10 develops: multiplying both sides on the left by the inverse of A then gives B = C.

How do I expand a product such as (2A + 3B)(A - B)?

Use the distributive laws, keeping each factor on its original side: multiply 2A + 3B by A, then by minus B, and collect. The result is 2A squared minus 2AB plus 3BA minus 3B squared. The middle terms cannot be combined unless the question tells you that A and B commute.

Study strategy

Exam move

Compute every product in the tutorial sheet twice, once entry by entry and once column by column as A times each column of B, and confirm they agree. Then take any two square matrices and compute both orders; seeing AB differ from BA on your own numbers makes the warning stick far better than reading it.

Working through Matrix Products and the Laws of Matrix Algebra in MATH1550? Sia is AskSia’s AI Mathematics tutor — ask any MATH1550 Matrix Products and the Laws of Matrix Algebra question and get a clear, step-by-step explanation grounded in how MATH1550 is taught and assessed. Read this chapter free, then take your hardest questions to Sia.

A+Everything unlocked
Unlocks this Bible + all 13 of your subjects at The Chinese University of Hong Kong, plus 1,000+ more Bibles across the AskSia library.
Sia - your MATH1550 tutor, unlimited, worked the way the exam marks it
The full 3-page Bible + practice bank with worked solutions
Chrome extension - sync your LMS so Sia knows your deadlines
Bilingual EN / Chinese on every Bible and every Sia answer
$0.99 Trial
30-day money-back · cancel in one tap · how it works