KEVOS
ArticlesServicesCase studiesAboutContact
ArticlesServicesCase studiesAboutContact
← ArticlesMatrix Multiplication and Matrix AlgebraEngineering · Engineering MathematicsLesson 4/6← PrevNext →
GuidePublished 15 Aug 20265 min readBy Kevin Joginmatrix multiplicationconformabilityidentity matrixnon-commutative
On this page

Ask about this page

KEVOS AIMatrix Multiplication and Matrix Algebra

KEVOS knowledge first · trusted web sources when needed

Matrices and Determinants

Matrix Multiplication and Matrix Algebra

Row into column, why the inner dimensions must agree, and the two familiar laws that fail.

Category Engineering / MathematicsStream Matrices and DeterminantsLevel CoreReading 6 minSource Week 11, pages 11-12; Week 12, pages 1-3; supplementary notes

What this page covers

  • Decide whether two matrices can be multiplied and in which order
  • Compute a matrix product entry by entry
  • State which algebraic laws hold and which fail
  • Use the identity matrix
On this page
  1. Conformability
  2. How the entries are computed
  3. Why systems can be written Ax = b
  4. The identity matrix
  5. Which laws hold and which fail
  6. Common mistakes
  7. Frequently asked questions

Conformability

When multiplication is defined

AB exists only when the number of columns of A equals the number of rows of B. The product then has as many rows as A and as many columns as B.

(m × n)(n × p) = (m × p)The inner dimensions must match and disappear; the outer survive

The source arrives at the rule by experiment. It tries multiplying a 1 × 2 row by a 3 × 1 column and notes does not work — we need the right number of elements, before stating the general condition.

The source's own examples
FirstSecondProduct exists?Order
2 × 33 × 3Yes2 × 3
2 × 22 × 1Yes2 × 1
2 × 33 × 1Yes2 × 1
1 × 23 × 1No2 ≠ 3
2 × 32 × 3No3 ≠ 2
A quick test

Write the two orders side by side. If the inner pair matches the product exists, and the outer pair gives its order. (2 × 3)(3 × 3): inner 3 = 3 ✓, outer gives 2 × 3.

How the entries are computed

Row into column

The entry (AB)ij is obtained by taking row i of A and column j of B, multiplying corresponding entries, and adding.

The typed notes phrase it as multiply each element of the row by the corresponding element of the column, then add them all up to give a single value. It is exactly a dot product of a row with a column.

A single entry — the source's example

[3   -2] × column(1, 7) = 3(1) + (-2)(7) = 3 - 14 = -11Source, Week 12, page 1
[7   3   -1] × column(1, 2, 1) = 7 + 6 - 1 = 12Source, Week 12, page 1

A full product — the source's case

Multiply

1-3
21
A

by

-2-1
41
B
Each entry in turn
EntryRow × columnValue
(1,1)(1)(-2) + (-3)(4)-2 - 12 = -10
(1,2)(1)(-1) + (-3)(1)-1 - 3 = -4
(2,1)(2)(-2) + (1)(4)-4 + 4 = 0
(2,2)(2)(-1) + (1)(1)-2 + 1 = -1
-10-4
0-1
Source result, Week 11, page 12
Note

The source records this product as [[-10, -4], [8, -1]] on page 12, where the (2,1) entry is given as 8. Recomputing that entry from row 2 of A and column 1 of B gives (2)(-2) + (1)(4) = 0. The value 8 appears elsewhere on the same page in a different product, so the two have most likely been transcribed across.

Why systems can be written Ax = b

Matrix multiplication was defined the way it was precisely so that a linear system becomes a single matrix equation. The source shows the equivalence directly.

The product

1-3
21
times the column (x, y)

gives the column with entries x - 3y and 2x + y. Setting that equal to the column (7, 2) reproduces the system x - 3y = 7, 2x + y = 2.

A x = bSource, Week 11, page 8. Coefficient matrix, column of variables, column of constants

The source's phrasing is worth keeping: solving the system of equations is solving the matrix equation. That reformulation is what makes the inverse method possible.

The identity matrix

Identity

The square matrix with 1s on the main diagonal and 0s elsewhere, written I. It satisfies AI = IA = A.

10
01
I of order 2 × 2

The source's demonstration

Multiplying [[2, 3], [1, -2]] by I on either side returns the same matrix. The source computes both orders, noting the result for an identity matrix, AI = IA = A.

For a non-square matrix the two identities differ in size. The source multiplies a 2 × 3 matrix by the 2 × 2 identity on the left and the 3 × 3 identity on the right, and both give the original back.

The identity plays the role that 1 plays for numbers, and it is what defines the inverse: A-1 is the matrix with AA-1 = A-1A = I.

Which laws hold and which fail

Matrix multiplication against ordinary arithmetic
LawReal numbersMatricesSource note
CommutativeHoldsFailsAB ≠ BA usually
AssociativeHoldsHoldsA(BC) = (AB)C
Distributive over +HoldsHoldsA(B + C) = AB + AC
Identity1IAI = IA = A
InverseAll except 0Only sometimesSquare matrices with non-zero determinant
Zero productab = 0 forces a or b zeroFailsNon-zero matrices can multiply to zero
Non-commutativity, demonstrated

The source computes both orders for the same pair. With A = [[0, 1], [1, 1]] and B = [[-1, 2], [1, 2]] it obtains AB = [[1, 2], [0, 4]] and BA = [[2, 1], [2, 3]]. Different matrices. Its conclusion: AB ≠ BA usually.

Worse, one of the two products may not exist at all. A 2 × 3 times a 3 × 4 is defined; the reverse order is not. The source flags this too.

Note

The zero-product failure is a genuine consequence. [[1, 0], [0, 0]] · [[0, 0], [0, 1]] = O with neither factor zero. The proof of the zero-product property for real numbers used the multiplicative inverse, and matrices need not have one — which is exactly where the argument breaks.

Common mistakes

Errors and checks
MistakeCorrectCheck
Multiplying entry by entryRow into columnEntry-wise would need equal orders
Assuming AB = BAIt generally does notCompute both and compare
Multiplying non-conformable matricesInner dimensions must matchWrite the orders side by side
Getting the product's order wrongIt is the outer dimensions(2×3)(3×3) = 2×3
Cancelling a matrix from both sidesOnly valid if it is invertibleAB = AC does not force B = C
Column into rowRow of the first, column of the secondOrder matters throughout

Frequently asked questions

When can two matrices be multiplied?

When the number of columns in the first equals the number of rows in the second. The source states the rule directly: the number of columns equals the number of rows.

What order is the product?

The outer dimensions. An m × n times an n × p gives an m × p matrix.

Is AB = BA?

Generally no. The source's conclusion is blunt: AB ≠ BA usually. Often one of the two products does not even exist.

What is the identity matrix?

The square matrix with 1s down the main diagonal and 0s elsewhere. It satisfies AI = IA = A, playing the role that 1 plays for numbers.

Related pages

  • Matrices: Order, Equality, Addition and Scalar Multiplication
  • Matrix Inverses and Solving Linear Systems
  • The Dot Product and the Angle Between Vectors
  • Gauss-Jordan Reduction

Source. Handwritten teaching notes, Week 11 pages 11-12 and Week 12 pages 1-3, with the typed supplementary notes on matrix multiplication.

This page is an original exposition prepared for the KEVOS® knowledge library. It restates, reorganises and verifies the mathematics of the supplied teaching notes; it is not a reproduction of them. Numerical values taken from the notes are identified as source examples and are not presented as engineering standards.

Continue learning

Matrices: Order, Equality, Addition and Scalar MultiplicationGuide · Engineering MathematicsNEXT LESSON →Matrix Inverses and Solving Linear SystemsGuide · Engineering MathematicsGauss-Jordan ReductionGuide · Engineering MathematicsDeterminants, Minors and CofactorsGuide · Engineering Mathematics
KEVOS · Engineering, manufacturing and project improvement
ArticlesServicesCase studiesAboutContact
© 2026 KEVOS®