8. Linear Transformations
8.1 Linear Requires
Keys:
A linear transformation T takes vectors v to vectors T(v). Linearity requires:
\[T(cv +dw) = cT(v) + dT(w)
\]The input vectors v and outputs T(v) can be in \(R^n\) or matrix space or function space.
If A is m by n, \(T(x)=Ax\) is linear from the input space \(R^n\) to the output space \(R^m\).
The derivative \(T(f)=\frac{df}{dx}\) is linear.The integral \(T^+(f)=\int^x_0f(t)dt\) is its pseudoinverse.
Derivative: \(1,x,x^2 \rightarrow 1,x\)
\[u = a + bx + cx^2 \\
\Downarrow \\
Au = \left [ \begin{matrix} 0&1&0 \\ 0&0&2 \end{matrix} \right]
\left [ \begin{matrix} a \\ b \\ c \end{matrix} \right]
=\left [ \begin{matrix} b \\ 2c \end{matrix} \right] \\
\Downarrow \\
\frac{du}{dx} = b + 2cx
\]Integration: \(1,x \rightarrow x,x^2\)
\[\int^x_0(D+Ex)dx= Dx + \frac{1}{2}Ex^2 \\
\Downarrow \\
input \ \ v \ \ (D+Ex) \\
A^+v = \left[ \begin{matrix} 0&0 \\ 1&0 \\ 0&\frac{1}{2} \end{matrix} \right]
\left[ \begin{matrix} D \\ E \end{matrix} \right]
=\left[ \begin{matrix} 0 \\D \\ \frac{1}{2}E \end{matrix} \right] \\
\Downarrow \\
T^+(v) = Dx + \frac{1}{2}Ex^2
\]The product ST of two linear transformations is still linear : \((ST)(v)=S(T(v))\)
Linear : rotated or stretched or other linear transformations.

8.2 Matrix instead of Linear Transformation
We can assign a matrix A to instead of every linear transformation T.
For ordinary column vectors, the input v is in \(V=R^n\) and the output \(T(v)\) is in \(W=R^m\), The matrix A for this transformation will be m by n.Our choice of bases in V and W will decide A.
8.2.1 Change of Basis
if \(T(v) = v\) means T is the identiy transformation.
If input bases = output bases, then the matrix \(I\) will be choosed.
If input bases not equal to output bases, then we can construct new matrix \(B=W^{-1}V\).
example:
\[input \ \ basis \ \ [v_1 \ \ v_2] = \left [ \begin{matrix} 3&6 \\ 3&8 \end{matrix} \right] \\
output \ \ basis \ \ [w_1 \ \ w_2] = \left [ \begin{matrix} 3&0 \\ 1&2 \end{matrix} \right] \\
\Downarrow \\
v_1 = 1w_1 + 1w_2 \\
v_2 = 2w_1 + 3w_2 \\
\Downarrow \\
[w_1 \ \ w_2] [B] = [v_1 \ \ v_2] \\
\Downarrow \\
\left [ \begin{matrix} 3&0 \\ 1&2 \end{matrix} \right]
\left [ \begin{matrix} 1&2 \\ 1&3 \end{matrix} \right]
=
\left [ \begin{matrix} 3&6 \\ 3&8 \end{matrix} \right]
\]when the input basis is in the columns of V, and the output basis is in the columns of W, the change of basis matrix for \(T\) is \(B=W^{-1}V\).
Suppose the same vector u is written in input basis of v's and output basis of w's:
\[u=c_1v_1 + \cdots + c_nv_n \\
u=d_1w_1 + \cdots + d_nw_n \\
\left [ \begin{matrix} v_1 \cdots v_n \end{matrix} \right]
\left [ \begin{matrix} c_1 \\ \vdots \\ c_n \end{matrix} \right]
=
\left [ \begin{matrix} w_1 \cdots w_n \end{matrix} \right]
\left [ \begin{matrix} d_1 \\ \vdots \\ d_n \end{matrix} \right]
\\
Vc=Wd \\
d = W^{-1}Vc = Bc \\
\]c is coordinates of input basis, d is coordinates of output basis.
8.2.2 Construction Matrix
Suppose T transforms the space V to space W. We choose a basis \(v_1,v_2,...,v_n\) for V and a basis \(w_1,w_2,...,w_n\) for W.
=a_{1j}w_1 + \cdots + a_{mj}w_m
\]
The \(a_{ij}\) are into A.
T(v) =\frac{dv}{dx} = 1c_2 + 2c_3x + 3c_4x^2 \\
Ac=\left[ \begin{matrix} 0&1&0&0 \\ 0&0&2&0\\ 0&0&0&3 \end{matrix} \right]
\left[ \begin{matrix} c_1 \\ c_2 \\ c_3 \\ c_4 \end{matrix} \right]
=\left[ \begin{matrix} c_2 \\ 2c_3 \\ 3c_4 \end{matrix} \right]
\]
T takes the derivative, A is "derivative matrix".
8.2.3 Choosing the Best Bases
The same T is represented by different matrices when we choose different bases.
Perfect basis
Eigenvectors are the perfect basis vectors.They produce the eigenvalues matrix \(\Lambda = X^{-1}AX\)
Input basis = output basis
The new basis of b's is similar to A in the standard basis:
\]
Different basis
Probably A is not symmetric or even square, we can choose the right singular vectors (\(v_1,...,v_n\)) as input basis and the left singular vectors(\(u_1,...,u_n\)) as output basis.
\]
\(\Sigma\) is "isometric" to A.
Definition : \(C=Q^{-1}_1AQ_{2}\) is isometric to A if \(Q_1\) and \(Q_2\) are orthogonal.
8.2.4 The Search of a Good Basis
Keys: fast and few basis.
- $B_{in} = B_{out} = $ eigenvector matrix X . Then \(X^{-1}AX\)= eigenvalues in \(\Lambda\).
- $B_{in} = V \ , \ B_{out} = U $ : singular vectors of A. Then \(U^{-1}AV\)= singular values in \(\Sigma\).
- $B_{in} = B_{out} = $ generalized eigenvectors of A . Then \(B^{-1}AB\)= Jordan form \(J\).
- $B_{in} = B_{out} = $ Fourier matrix F . Then \(Fx\) is a Discrete Fourier Transform of x.
- The Fourier basis : \(1,sinx,cosx,sin2x,cos2x,...\)
- The Legendre basis : \(1, x, x^2 - \frac{1}{3},x^3 - \frac{3}{5},...\)
- The Chebyshev basis : \(1, x, 2x^2 - 1,4x^3 - 3x,...\)
- The Wavelet basis.
8. Linear Transformations的更多相关文章
- Linear transformations. 线性变换与矩阵的关系
0.2.2 Linear transformations. Let U be an n-dimensional vector space and let V be an m-dimensional v ...
- 线性代数导论 | Linear Algebra 课程
搞统计的线性代数和概率论必须精通,最好要能锻炼出直觉,再学机器学习才会事半功倍. 线性代数只推荐Prof. Gilbert Strang的MIT课程,有视频,有教材,有习题,有考试,一套学下来基本就入 ...
- transformations 变换集合关系 仿射变换
http://groups.csail.mit.edu/graphics/classes/6.837/F03/lectures/04_transformations.ppt https://group ...
- paper 128:奇异值分解(SVD) --- 线性变换几何意义[转]
PS:一直以来对SVD分解似懂非懂,此文为译文,原文以细致的分析+大量的可视化图形演示了SVD的几何意义.能在有限的篇幅把这个问题讲解的如此清晰,实属不易.原文举了一个简单的图像处理问题,简单形象,真 ...
- 特征向量-Eigenvalues_and_eigenvectors#Graphs
https://en.wikipedia.org/wiki/Eigenvalues_and_eigenvectors#Graphs A {\displaystyle A} ...
- 转载:奇异值分解(SVD) --- 线性变换几何意义(上)
本文转载自他人: PS:一直以来对SVD分解似懂非懂,此文为译文,原文以细致的分析+大量的可视化图形演示了SVD的几何意义.能在有限的篇幅把这个问题讲解的如此清晰,实属不易.原文举了一个简单的图像处理 ...
- (转) Deep Learning in a Nutshell: Core Concepts
Deep Learning in a Nutshell: Core Concepts Share: Posted on November 3, 2015by Tim Dettmers 7 Comm ...
- We Recommend a Singular Value Decomposition
We Recommend a Singular Value Decomposition Introduction The topic of this article, the singular val ...
- A geometric interpretation of the covariance matrix
A geometric interpretation of the covariance matrix Contents [hide] 1 Introduction 2 Eigendecomposit ...
- <转>机器学习笔记之奇异值分解的几何解释与简单应用
看到的一篇比较好的关于SVD几何解释与简单应用的文章,其实是有中文译本的,但是翻译的太烂,还不如直接看英文原文的.课本上学的往往是知其然不知其所以然,希望这篇文能为所有初学svd的童鞋提供些直观的认识 ...
随机推荐
- 第一百零四篇:DOM事件流
好家伙,JS基础接着学, 1.事件流 页面哪个部分拥有特定的事件? 可以把页面想象成一个同心圆, 当你戳了其中的一点,其实你同时戳中了很多个圆 当你点击一个页面中的按钮,实际上你同时点击了这个 ...
- MySQL 数据库死锁排查
死锁排查方法 查看进程状态 show processlist; 查看行锁的状态 show status like 'InnoDB_row_lock%'; 查询是否有死锁 show engine inn ...
- 【Azure 环境】前端Web通过Azure AD获取Token时发生跨域问题(CORS Error)
问题描述 前端Web在开发时使用Azure AD中注册Application的方式进行Token获取,遇到了CORS遇到的问题(如下图).随后在AAD增加了单页应用的重定向URL, 依旧还是出现COR ...
- 连接 AI,NebulaGraph Python ORM 项目 Carina 简化 Web 开发
作者:Steam & Hao 本文整理自社区第 7 期会议中 13'21″ 到 44'11″ 的 Python ORM 的分享,视频见 https://www.bilibili.com/vid ...
- 一文了解 NebulaGraph 上的 Spark 项目
本文首发于 Nebula Graph Community 公众号 最近我试着搭建了方便大家一键试玩的 Nebula Graph 中的 Spark 相关的项目,今天就把它们整理成文分享给大家.而且,我趟 ...
- .NET集成DeveloperSharp实现数据分页
数据分页,几乎是任何应用系统的必备功能.但当数据量较大时,分页操作的效率就会变得很低.大数据量分页时,一个操作耗时5秒.10秒.甚至更长时间都是有可能的,但这在用户使用的角度是不可接受的-- 数据分页 ...
- markdown 一键上传发布
工具介绍 工具由来 对于程序员等常常需要写文档的人来说,将本地markdown文档同步到云端博客平台,是一件比较繁琐的事情,首当其冲的是,大量的本地图片需要"互联网"化,即使网络上 ...
- A left join B B表有多条记录,max(create_time)取最新一条
例如:A表合同表t_contract B表合同审核表t_contract_audit.两个表根据contract_id关联.且一条合同有多条审核记录.求:A.合同状态.B.最新审核记录结果. 简单: ...
- FIR滤波器的设计和实现
FIR的作用和价值 FIR(Finite Impulse Response)滤波器:有限长单位冲激响应滤波器,又称为非递归型滤波器,是数字信号处理系统中最基本的元件,它可以在保证任意幅频特性的同时 ...
- Navicat 15下载教程
Navicat 15下载_永久激活注册码(附图文安装教程) 欢迎关注博主公众号「java大师」, 专注于分享Java领域干货文章, 关注回复「资源」, 免费领取全网最热的Java架构师学习PDF, 转 ...