#L04 · Linear Algebra & Manifolds · Lv.2View in 3D Mind-Map

Matrix Multiplication & Linear Transformation

Arthur Cayley · 1858 CE

(AB)ij=∑k=1nAikBkj(AB)_{ij} = \sum_{k=1}^{n} A_{ik} B_{kj}
AB≠BA(Non-commutative)AB \neq BA \quad (\text{Non-commutative})

Computes each entry (i,j) as the dot product of row i of A and column j of B, geometrically representing the composition of two linear transformations.

🧮 Live Formula Calculator & Plotter
A₁₁
A₁₂
B₁₁
B₂₁
[21−12][13]=[5.05.0]\begin{bmatrix}2 & 1\\ -1 & 2\end{bmatrix}\begin{bmatrix}1\\3\end{bmatrix} = \begin{bmatrix}5.0\\5.0\end{bmatrix}
합성 성분 (AB)₁₁ = 1행·1열
5.000
합성 성분 (AB)₂₁ = 2행·1열
5.000
변환 스케일 배율
2.236
B열 (입력)AB열 (변환)

Prerequisite Path (11 STEP)

Full Path Analyzer

Click steps in order to follow the 3D neon path from basics to target.

Geometric & Intuitive Insight

왜 행렬 곱셈은 같은 자리끼리 곱하지 않고 '행 × 열'로 복잡하게 곱할까요? 벡터 x에 변환 B를 먼저 가하고(Bx) 이어서 변환 A를 가한 A(Bx) 의 최종 결과 식을 정리해보면 정확히 (AB)x 의 행×열 내적 규칙이 나오기 때문입니다!

Step-by-Step Derivation

  1. Step 1.1단계: 벡터 x를 y = Bx 로 변환하면 y_k = ∑_j B_{kj} x_j 입니다.
  2. Step 2.2단계: 다시 y를 z = Ay 로 변환하면 z_i = ∑_k A_{ik} y_k = ∑_j (∑_k A_{ik} B_{kj}) x_j 가 됩니다.
  3. Step 3.3단계: 따라서 합성 변환 행렬 C = AB 의 (i, j) 성분은 C_{ij} = ∑_k A_{ik} B_{kj} 로 유일하게 결정됩니다.

AI & Coding Real-World Use

90% of NVIDIA GPU Tensor Core compute in Deep Learning (Y = XW) and 3D graphics MVP pipelines

#GPU Tensor Cores GEMM#Deep Learning Y=XW#3D MVP Pipeline
const matMul2 = (A:number[][], B:number[][]) => [[A[0][0]*B[0][0]+A[0][1]*B[1][0], A[0][0]*B[0][1]+A[0][1]*B[1][1]]];

Linear Algebra & Manifolds — Related Formulas in This Cluster