markdown
Meaning of the matrix productmd a92c91b
lecture/math/linear-algebra/meaning-of-matrix-multiplication.lecture.n.md
Download PDF

Meaning of the matrix product行列積ぎょうれつせき

date2026-07-14document_iddoc_af269e3f57433a74a4583289ac5163bbdescription行列の積を、サイズ条件・列ベクトルへの作用・線型写像の合成という三つの観点から整理する講義である。prerequisites行列のサイズ / ベクトルの基本演算type講義content_typelecturestatusactiverelateddata/lecture/math/linear-algebra/matrix-operations.lecture.n.md / data/lecture/math/linear-algebra/linear-maps-and-matrices.lecture.n.md / data/lecture/math/linear-algebra/inverse-matrix-basics.lecture.n.md / data/exercise/math/linear-algebra/matrix-computation-and-linear-transformations.exercise.n.md
mathlinear-algebraundergraduatelecture

1Introduction

The product of matrices is not entrywise multiplication. It is defined so that matrices represent composition of linear maps線型写像せんけいしゃぞう in coordinates.

The rule for matrix multiplication can look unnatural at first, but it appears naturally once we require compatibility with the action on column vectors and with composition of maps.

2Terms and definitions

Let A be an m×n matrix行列ぎょうれつ and B an n×p matrix. Then AB is an m×p matrix with entries

(AB)ij=k=1naikbkj.

The inner sizes must match.

This formula is not merely a rule to memorize. If b(j) is the j-th columnれつ of B, then the j-th column of AB is

Ab(j).

Thus B first sends the j-th standard-basis direction to b(j), and then A acts on that result. Reading the i-th component gives

(AB)ij=ai1b1j+ai2b2j++ainbnj=k=1naikbkj.

3Strategy

First calculate matrix products as tables of numbers, then interpret them as actions on column vectorsれつベクトル. Finally, check that matrix multiplication represents composition of linear maps線型写像せんけいしゃぞう.

data/lecture/math/linear-algebra/matrix-operations.lecture.n.md

4Intuitive explanation

Let the columns of A be a1,,an. For x=(x1,,xn)T,

Ax=x1a1++xnan.

A matrix therefore uses the components of the input as coefficients係数けいすう and forms a linear combination線型結合せんけいけつごう of its columns.

Applying this device twice produces matrix multiplication. Thus ABx means: apply B first, then apply A.

5Precise explanation

Regard B:KpKn and A:KnKm. For xKp,

xBxA(Bx).

Therefore the composite map is AB, and its representation matrix表現行列ひょうげんぎょうれつ is AB. Since matrices act from the right on vectors, the matrix applied first appears on the right.

6Column interpretation

If the columns of A are a1,,an and x=(x1,,xn)T, then

Ax=x1a1++xnan.

So a matrix uses the components of the input as coefficients and forms a linear combination線型結合せんけいけつごう of its columns. If b(j) is the j-th column of B, then the j-th column of AB is

Ab(j).

7Composition interpretation

Regard B:KpKn and A:KnKm. Then

xBxA(Bx),

so the composite map is represented by AB. In ABx, B acts first and A acts second.

8Worked example

Let

A=(1201),B=(3012).

Then

AB=(5412),BA=(3614).

Thus AB and BA are generally different because the order of composition is different.

9Theorem and proof: matrix product行列積ぎょうれつせき represents composition

Let A be m×n and B be n×p. Write the columns of B as b1,,bp. For xKp,

Bx=x1b1++xpbp.

Applying A and using linearity gives

A(Bx)=x1Ab1++xpAbp.

The columns of AB are exactly Ab1,,Abp, so (AB)x=A(Bx).

10Common misunderstandings

  • matrix product行列積ぎょうれつせき is not the product of corresponding entries.
  • Size compatibility must be checked before calculating.
  • AB=BA is not expected unless there is a special reason.

11Scope

Matrix multiplication is defined so that it agrees with composition of linear maps線型写像せんけいしゃぞう. There are other operations that multiply corresponding entries componentwise, but those are different from the standard matrix product.

12Final forms

[PARSE ERROR: Undefined("Command(\"boxed\")")](AB)ij=kaikbkj
[PARSE ERROR: Undefined("Command(\"boxed\")")]ABx=A(Bx)
[PARSE ERROR: Undefined("Command(\"boxed\")")]Matrixmultiplicationrepresentscompositionofmaps[PARSE ERROR: Undefined("RBrace")]

13Theorem and proof: matrix product is composition of linear maps

Let A be an m×n matrix and B an n×p matrix. Then AB represents the linear map that applies B first and then A.

To prove this, take xFp. If the columns of B are b1,,bp, then

Bx=x1b1++xpbp.

Applying A and using linearity線型性せんけいせい gives

A(Bx)=x1Ab1++xpAbp.

On the other hand, the j-th column of AB is Abj, so (AB)x has the same expression. Hence

(AB)x=A(Bx).

This proof explains why the order of matrix multiplication reflects the order of composition.

14Exercise links

data/exercise/math/linear-algebra/matrix-computation-and-linear-transformations.exercise.n.md
raw .n.md をコピー
loc をコピー (filepath:line ~ line)
copy share link
copy encoded share link
path をコピー
copy share link
copy encoded share link
copy share link
copy encoded share link
タブを全て閉じる