---
title: "Matrix Multiplication and What It Represents"
description: "A matrix records a linear rule. Multiplying matrices composes the rules, which is why the product is defined by rows against columns and why order matters."
canonical: https://lightmysky.com/learn/mathematics/matrix-multiplication-and-what-it-represents-mt_0fJOMPlCxr
source: https://lightmysky.com/learn/mathematics/matrix-multiplication-and-what-it-represents-mt_0fJOMPlCxr.md
retrieved: 2026-09-12
---

> **Agent view.** This is the Markdown twin of the page, for tools and assistants.
> When to use this site, and the call that answers each job: https://lightmysky.com/agent-instructions.md
> API description (OpenAPI 3.1): https://lightmysky.com/openapi.json · Authentication: https://lightmysky.com/auth.md
> Pricing: https://lightmysky.com/pricing.md · Catalog: https://lightmysky.com/llms.txt · Full catalog: https://lightmysky.com/llms-full.txt
> Every machine-readable file on this domain: https://lightmysky.com/.well-known/ai-catalog.json
> Ask for Markdown with `Accept: text/markdown`, a `.md` address, or `?mode=agent`.

# Matrix Multiplication and What It Represents

A matrix records a linear rule. Multiplying matrices composes the rules, which is why the product is defined by rows against columns and why order matters.

Subject: Mathematics · Area: Linear Algebra · Ages 18 to 19
Page: https://lightmysky.com/learn/mathematics/matrix-multiplication-and-what-it-represents-mt_0fJOMPlCxr

## Ready when they can

- Multiply two matrices and state when the product is defined
- Give two matrices whose products in the two orders differ
- Read a matrix-vector product as a combination of the columns

## Lesson: Multiplying matrices in the right order

Think of each matrix as a rule with an input size and an output size. A product AB exists only when the columns of A match the rows of B. Write the shapes side by side, like 2 by 3 next to 3 by 4. The inner pair must agree, and the outer pair gives the answer shape, 2 by 4.

**Example.** Take A with rows (1, 2) and (3, 4), and B with rows (5, 6) and (7, 8). The top left entry of AB pairs row 1 of A with column 1 of B: 1 times 5 plus 2 times 7, which is 19. Every entry works the same way: one row of A dotted with one column of B.

Order matters, so AB and BA are different beasts. One order may exist while the other fails: a 3 by 2 times a 2 by 5 works, but the reverse fails outright. Even when both orders exist, the values can differ, as with rotations and reflections applied in different orders. Never swap the order silently.

**Tip.** Read a matrix vector product Av as a combination of the columns of A, with the entries of v as weights. Each entry of v scales one column, and you add the scaled columns. As a check, the identity matrix leaves any matching matrix unchanged, much like multiplying by 1.

**Recap.** Check shapes first, pair rows with columns, keep the order, and read Av as weighted columns.

## Practice

14 questions on this page, each with its working shown.

## Needs first

- [Transformations of Graphs](https://lightmysky.com/learn/mathematics/transformations-of-graphs-mt_691_c-7Z5M)
- [Gaussian Elimination and Row Echelon Form](https://lightmysky.com/learn/mathematics/gaussian-elimination-and-row-echelon-form-mt_PZBce3UvRm)

## Opens up

- [The Inverse of a Matrix and When It Exists](https://lightmysky.com/learn/mathematics/the-inverse-of-a-matrix-and-when-it-exists-mt_1K6lcfMQ_b)
- [Data as a Matrix: Rows, Features and the Target](https://lightmysky.com/learn/computing/data-as-a-matrix-rows-features-and-the-target-mt_KEN-TU1Gpn)
- [Linear Programming, Duality and Rounding](https://lightmysky.com/learn/computing/linear-programming-duality-and-rounding-mt_rsj6G8iydV)
- [The Lorentz Transformation and Velocity Addition](https://lightmysky.com/learn/science/the-lorentz-transformation-and-velocity-addition-mt_uG3_gArw19)
- [Conformal Maps and Mobius Transformations](https://lightmysky.com/learn/mathematics/conformal-maps-and-mobius-transformations-mt_WtHCbAT4GI)
