Skip to article frontmatterSkip to article content
Site not loading correctly?

This may be due to an incorrect BASE_URL configuration. See the MyST Documentation for reference.

선형대수 (Linear Algebra)

스칼라 (Scalar)

n∈Zn \in \mathbb{Z}
x∈Rx \in \mathbb{R}

벡터 (Vector)

x=[x1,x2,…,xn]\mathbf{x} = [x_1, x_2, \dots , x_n]
x∈Rnifxk∈R  (k=1…n)\mathbf{x} \in \mathbb{R}^n \quad\text{if}\quad x_k \in \mathbb{R}\;(k=1 \dots n)

행렬 (Matrix)

A=[A1,1A1,2A1,3A2,1A2,2A2,3]\mathbf{A} = \begin{bmatrix} A_{1,1} & A_{1,2} & A_{1,3} \\ A_{2,1} & A_{2,2} & A_{2,3} \end{bmatrix}
A∈Rm×nifAi,j∈R\mathbf{A} \in \mathbb{R}^{m\times n} \quad\text{if}\quad A_{i,j} \in \mathbb{R}

전치 (Transpose)

사칙 연산

NumPy

행렬곱

C=AB\mathbf{C}=\mathbf{A}\mathbf{B}
A∈Rm×n,  B∈Rn×p,  C∈Rm×p\mathbf{A}\in\mathbb{R}^{m \times n},\;\mathbf{B}\in\mathbb{R}^{n \times p},\;\mathbf{C}\in\mathbb{R}^{m \times p}
Ci,j=∑kAi,kBk,jC_{i,j}=\sum_{k} A_{i,k}B_{k,j}

스칼라곱

내적 (dot product)

c=aTb,c∈Rifa,b∈Rnc = \mathbf{a}^T\mathbf{b}, \quad c \in \mathbb{R} \quad \text{if} \quad \mathbf{a},\mathbf{b} \in \mathbb{R}^n

원소별 곱 (element-wise product; Hadamard product)

$$

\mathbf{a} =

[a1a2⋮an]\begin{bmatrix} a_1 \\ a_2 \\ \vdots \\ a_n \end{bmatrix}

\ \mathbf{a} \circ \mathbf{b} = \begin{bmatrix} a_1 \cdot b_1 \ a_2 \cdot b_2 \ \vdots \ a_n \cdot b_n \end{bmatrix}

$$

행렬-벡터 곱하기 (Matrix-Vector Multiplication)

행별 내적 (Dot Product)

$$ (\mathbf{A}\mathbf{x}){j}=\sum{k=1}^{n}\mathbf{A}{j,k}x{k} \

\mathbf{A}\mathbf{x} =

[∑A1kxk∑A2kxk⋮∑Amkxk]\begin{bmatrix} \sum \mathbf{A}_{1k}x_k \\ \sum \mathbf{A}_{2k}x_k \\ \vdots \\ \sum \mathbf{A}_{mk}x_k \end{bmatrix}

$$

열별 조합 (Linear Combination of Columns)

Ax=∑ixiA:,i \mathbf{A}\mathbf{x} = \sum_{i}x_i\mathbf{A}_{:,i}

A(B+C)=AB+ACA(BC)=(AB)C\begin{align*} A(B+C) &= AB+AC \\ A(BC) &= (AB)C \end{align*}
ATB=BTA(AB)T=BTAT\begin{align*} A^TB &= B^TA \\ (AB)^T &= B^TA^T \end{align*}

선형 방정식 (Linear System)

x∈RnwhereA∈Rm×n, b∈Rm\mathbf{x}\in\mathbb{R}^n\quad\text{where}\quad A\in\mathbb{R}^{m \times n},\,\mathbf{b}\in\mathbb{R}^m

Ax=bA\mathbf{x}=\mathbf{b} \\

예시

System of Linear Equations

  1. 2x1+3x2−x3=52x_1 + 3x_2 - x_3 = 5

  2. −x1+4x2+2x3=6-x_1 + 4x_2 + 2x_3 = 6

  3. x1−2x2+3x3=−3x_1 - 2x_2 + 3x_3 = -3

Ax=bA\mathbf{x} = \mathbf{b}:

[23−1−1421−23][x1x2x3]=[56−3]\begin{bmatrix} 2 & 3 & -1 \\ -1 & 4 & 2 \\ 1 & -2 & 3 \end{bmatrix} \begin{bmatrix} x_1 \\ x_2 \\ x_3 \end{bmatrix} = \begin{bmatrix} 5 \\ 6 \\ -3 \end{bmatrix}

Where:

A=[23−1−1421−23]x=[x1x2x3]b=[56−3]A = \begin{bmatrix} 2 & 3 & -1 \\ -1 & 4 & 2 \\ 1 & -2 & 3 \end{bmatrix} \quad \mathbf{x} = \begin{bmatrix} x_1 \\ x_2 \\ x_3 \end{bmatrix} \quad \mathbf{b} = \begin{bmatrix} 5 \\ 6 \\ -3 \end{bmatrix}

항등 행렬(Identity Matrix)과 역행렬(Inverse Matrix)

행렬식 (determinant)

Ax=bA−1Ax=A−1bIx=A−1bx=A−1b\begin{align*} A\mathbf{x} &= \mathbf{b} \\ A^{-1}A\mathbf{x} &= A^{-1}\mathbf{b} \\ I\mathbf{x}&=A^{-1}\mathbf{b} \\ \mathbf{x}&=A^{-1}\mathbf{b} \end{align*}

특이 행렬 (Singular Matrix)

행렬식(determinant)이 0인 경우, 역행렬이 존재하지 않는다.