markdown
Basic operations on matricesmd b51eeb4
lecture/math/linear-algebra/matrix-operations.lecture.n.md
Download PDF

Basic operations on matrices行列ぎょうれつ

date2026-07-14document_iddoc_c906c7cb97b9478908ef5d463658ca7ddescription行列をサイズをもつ数表として導入し、和・差・スカラー倍・行ベクトルと列ベクトルの区別を整理する講義である。prerequisitesベクトルの成分表示 / 数の四則演算type講義content_typelecturestatusactiverelateddata/lecture/math/linear-algebra/linear-algebra-portal.lecture.n.md / data/lecture/math/linear-algebra/vector-operations.lecture.n.md / data/lecture/math/linear-algebra/meaning-of-matrix-multiplication.lecture.n.md / data/lecture/math/linear-algebra/identity-zero-and-transpose-matrices.lecture.n.md / data/exercise/math/linear-algebra/matrix-computation-and-linear-transformations.exercise.n.md
mathlinear-algebraundergraduatelecture

1Introduction

A matrix行列ぎょうれつ has a number of rows and a number of columns. Matrix operations are defined only when their size conditions are satisfied. This size discipline comes before interpreting matrices as linear maps.

2Terms and definitions

A matrix is a rectangular array of numbers arranged in rowsぎょう and columnsれつ. A matrix with m rows and n columns is an m×n matrix.

For example,

A=(a11a12a21a22a31a32)

is a 3×2 matrix. A row vectorぎょうベクトル is a matrix with one row, and a column vectorれつベクトル is a matrix with one column.

3Strategy

For matrix operations, first check the size. Sums and differences are defined only for matrices of the same size, while scalar multiplication is defined for matrices of any size.

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

4Intuitive explanation

Adding matrices means adding entries in the same position. Like matching the same seat in two seating charts, only entries with the same row number and column number are paired.

Therefore matrices of different sizes do not have matching positions everywhere. This is why the operation is not defined.

5Addition and scalar multiplication

Let A=(aij) and B=(bij) be matrices of the same size m×n. Then

A+B=(aij+bij),A-B=(aij-bij).

For a scalar c,

cA=(caij).

Two matrices are equal only when they have the same size and all corresponding entries are equal.

6Worked example

Let

A=(1234),B=(50-12).

Then

A+B=(6226),2A=(2468).

A 2×2 matrix and a 2×3 matrix cannot be added because their positions do not correspond.

7Proof checkpoint: why same size is required

The entry (A+B)ij is defined by pairing the (i,j) entry of A with the (i,j) entry of B. If one matrix lacks that position, the rule has no value to assign. The restriction is therefore part of the definition, not a cosmetic convention.

8Common misunderstandings

  • Do not add matrices of different sizes because their entries look similar.
  • A row vectorぎょうベクトル and a column vectorれつベクトル with the same number of components still have different sizes.
  • Square matrices are not the only matrices used in linear algebra; rectangular matrices are central for maps KnKm.

9Scope

Addition and scalar multiplication are entrywise. Matrix multiplication is not entrywise and needs its own definition.

10Final forms

[PARSE ERROR: Undefined("Command(\"boxed\")")]A+B=(aij+bij)whensizesmatch
[PARSE ERROR: Undefined("Command(\"boxed\")")]cA=(caij)
[PARSE ERROR: Undefined("Command(\"boxed\")")]Alwayscheckmatrixsizesfirst[PARSE ERROR: Undefined("RBrace")]
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
タブを全て閉じる