[선형대수] Lecture 30: Linear transformations and their matrices

이재호·2025년 3월 27일

선형대수

목록 보기
29/31

https://ocw.mit.edu/courses/18-06-linear-algebra-spring-2010/video_galleries/video-lectures/

이번 강의에서는 다음과 같은 내용을 배운다.

  • Linear Transforamtion TT
  • Construct matrix AA that represents TT ( with coordinates cc and basis v,wv,w )

우선 Linear Transformation TT 의 규칙은 다음과 같다.

T(v+w)=T(v)+T(w)T(v+w)=T(v)+T(w)
T(cv)=cT(v)T(cv)=cT(v)

T()T() 를 함수처럼 생각하면 편하다.

예시로 Projection 을 보자.

T:R2R2T:\R^2\to\R^2

위 그림을 봤을 때 Projection은 Linear Transformation 에 해당한다는 것을 알 수가 있다.
왜냐하면 다음과 같은 규칙을 만족하기 때문이다.

  • T(v+w)=T(v)+T(w)T(v+w)=T(v)+T(w)
  • T(cv)=cT(v)T(cv)=cT(v)

그렇다면 Linear Transformation 이 아닌 예시는 어떤 게 있을까? 다음을 보자.

Shift whole plane by v0v_0


위와 같은 벡터에 v0v_0를 더하면 아래와 같이 나온다.

이를 봤을 때, T(2v)2T(v)T(2v)\ne 2T(v) 라는 것을 알 수가 있다.
따라서 이는 linear transformation 이 아니다.

또 다른 예시로, 다음과 같은 Transformation 을 보자.

T(v)=v2,T:R3R1T(v)={||v||}^2, T:\R^3\to\R^1

이 역시 마찬가지로 T(2v)2T(v)T(-2v)\ne-2T(v) 인 것을 알 수가 있다.


그럼 계속해서 Linear Transformation 을 보자.
ex. < Rotation by 45 degrees. >


위 벡터에서 45도를 회전시킨다.

위와 같이 45도가 회전된 벡터가 나왔다.
그리고 T(2v)=2T(v)T(2v)=2T(v) 등도 만족하는 것을 알 수가 있다.


다음으로 행렬에 대해서도 linear transformation 을 보자.

T(v)=AvT(v)=Av

행렬에 대해서 다음 규칙은 만족된다.

  • A(v+w)=Av+AwA(v+w)=Av+Aw
  • A(cv)=cA(v)A(cv)=cA(v)

예시로 다음과 같은 행렬을 보자. A=[1001]A=\begin{bmatrix}1 & 0 \\ 0 & -1\end{bmatrix}


A=[1001]A=\begin{bmatrix}1 & 0 \\ 0 & -1\end{bmatrix} 를 적용하기 전에 위와 같은 모양이었다면, 이를 적용하면, xx는 그대로, yy는 반전된 다음과 같은 모양이 나올 것이다.


그러면 AA 의 차원은 어떻게 구할 수 있을까? 다음을 보자.

T:R3inputR2outputT:\underbrace{\R^3}_{input}\to \underbrace{\R^2}_{output}
T(v)=AvT(v)=Av

이 경우 AvAv 의 차원은 R2\R^2 이고 vv 의 차원은 R3\R^3 이므로, AA의 차원은 3×23\times 2 가 나올 것이다.


다음으로 T(v)T(v) 를 구하기 위한 요소들을 알아보자.

Information needed to know T(v) for all inputs v’s.\text{Information needed to know $T(v)$ for all inputs $v$'s.}
T(v1),T(v2),...,T(vn) for any basis v1,v2,...,vnT(v_1),T(v_2),...,T(v_n) \text{ for any basis $v_1,v_2,...,v_n$}
Every v=c1v1+c2v2+...+cnvnEvery ~ v=c_1v_1+c_2v_2+...+c_nv_n
T(v)=c1T(v1)+...+cnT(vn)T(v)=c_1T(v_1)+...+c_nT(v_n)

coordinates cc's come from a basis. (v=c1v1+c2v2+...+cnvnv=c_1v_1+c_2v_2+...+c_nv_n)

ex. v=[324]=3[100]+2[010]+4[001]v=\begin{bmatrix}3 \\ 2 \\ 4\end{bmatrix}=3\begin{bmatrix}1 \\ 0 \\ 0\end{bmatrix}+2\begin{bmatrix}0 \\ 1 \\ 0\end{bmatrix}+4\begin{bmatrix}0 \\ 0 \\ 1\end{bmatrix}


이제 linear transformation 을 나타내는 행렬 AA 를 구해보자.

Construct matrix A that represents T (T:RnRm)\text{Construct matrix $A$ that represents $T$ ($T:\R^n\to\R^m$)}
  • choose basis v1,...,vnv_1,...,v_n for inputs in Rn\R^n
  • choose basis w1,...,wnw_1,...,w_n for outputs in Rm\R^m

ex. projection

v=c1v1+c2v2v=c_1v_1+c_2v_2

vv 를 아래와 같이 나오도록 linear transformation 을 적용해보자.

이 경우 linear transformation TT 는 다음과 같다.

T(v)=c1v1 (c2=0)=AvT(v)=c_1v_1 ~ (c_2=0) =Av

이를 만족하는 AA 는 무엇일까?

[1000]A[c1c2]input coords.=[c10]output coords.\underbrace{ \begin{bmatrix} 1 & 0 \\ 0 & 0 \end{bmatrix} }_A \underbrace{ \begin{bmatrix} c_1 \\ c_2 \end{bmatrix} }_{input~coords.} = \underbrace{ \begin{bmatrix} c_1 \\ 0 \end{bmatrix} }_{output~coords.}

위 예시와 같은 행렬 AA를 찾는 규칙은 다음과 같다.

Rule to find matrix A (given v1,...,vn , w1,...,wm)\text{Rule to find matrix $A$ (given $v_1,...,v_n$ , $w_1,...,w_m$)}
1st. column of A:write T(v1)=a11w1+...+am1wm\text{1st. column of $A$}: write~T(v_1)=a_{11}w_1+...+a_{m1}w_m
2nd. column of A:write T(v2)=a12w1+...+am2wm\text{2nd. column of $A$}: write~T(v_2)=a_{12}w_1+...+a_{m2}w_m
A(input coordinates)=(ouput coordinates)A(\text{input coordinates})=\text{(ouput coordinates)}

또 다른 예시로 미분을 알아보자. 미분 역시 linear Transformation 에 해당한다.

T=ddx:linear transformationT=\frac{d}{dx} : linear~transformation
  • input : c1+c2x+c3x2c_1+c_2x+c_3x^2 , basis : 1,x,x21,x,x^2
  • output : c2+2c3xc_2+2c_3x , basis : 1,x1,x
A[c1c2c3]=[c22c3]A\begin{bmatrix}c_1\\c_2\\c_3\end{bmatrix}=\begin{bmatrix}c_2\\2c_3\end{bmatrix}
A=[010002]\therefore A=\begin{bmatrix}0 & 1 & 0 \\0 & 0 & 2\end{bmatrix}
profile
천천히, 그리고 꾸준히.

0개의 댓글