![]()
MATH347DS L02: Linear Mappings
|
Functions
Measurements: norm, inner product, angles
Linear mappings
Linear mapping representation
Linear mapping composition
Linear mapping examples
Matrix product properties
Block matrix operations
![]()
Functions
|
Definition.
Definition.
Common notation , ,
Examples: ,
Operations defined in are addition and multiplication . Polynomial functions combine these operations .
Definition.
Definition.
Definition.
Definition.
![]()
Linear functionals and mappings are identical to matrices
|
Linear mappings satisfy
The equation of line is , but is not a linear mapping if
Consider effect of linear mapping upon a vector
Introduce notation for effect of linear mapping upon column vectors of
Observe that a linear mapping can be expressed as a matrix-vector product
The mapping can be identified with the matrix
![]()
Measurements: Norm
|
Definition. The norm of a vector is a function that takes a vector argument, returns a positive real number, , and for , ,satisfies properties:
.
A norm embodies the concept of measurement of the magnitude of a vector
Different ways of measuring the magnitude of a vector are most appropriate in various applications, resulting in different definitions of a vector norm for
1-norm |
|
2-norm (Euclidean norm) |
|
inf-norm |
|
Different norms are distinguished by subscripts as above. The most commonly used norm is the Euclidean norm that corresponds to the square root of the scalar product, i.e. , in which case the subscript is often suppressed to simplify notation
![]()
Example: Vector norm
|
∴ |
u=[1 2 3]; v=[3 0 1]; norm(u) |
∴ |
sqrt(dot(u,u)) |
∴ |
e1=[1 0 0]; e2=[0 1 0]; e3=[0 0 1]; norm(e1) |
∴ |
![]()
Measurements: Inner (scalar) product
|
Scalar products prove to useful in many other contexts than real-valued vectors.
Definition. Consider vectors and scalar The function
is a scalar product if:
(Symmetry)
(Linearity in first argument)
(Positive definiteness)
Inner product of ,
Preferred expression is through matrix vector multiplication
![]()
Example: Inner product of two vectors
|
∴ |
u=[1 2 3]; v=[3 0 1]; dot(u,v) |
∴ |
e1=[1 0 0]; e2=[0 1 0]; e3=[0 0 1]; dot(e1,e2) |
∴ |
dot(e1,e3) |
∴ |
dot(e2,e3) |
∴ |
dot(e1,e1) |
∴ |
dot(u,e1) |
∴ |
![]()
Measurements: angle between two vectors
|
Law of cosines
Inner product properties
Combine, and define
In particular if , are said to be orthogonal
![]()
Example: Angle between two vectors
|
∴ |
transpose(e1)*e2/norm(e1)/norm(e2) |
∴ |
acos(0.0) |
∴ |
transpose(e1)*e1/norm(e1)/norm(e1) |
∴ |
acos(1) |
∴ |
u=[1; 0]; v=[1; 1]; transpose(u)*v/norm(u)/norm(v) |
∴ |
acos(0.7071)/pi*180 |
∴ |
![]()
Matrix of a linear transformation
|
, ,
a linear mapping (transformation)
Let , . is the standard matrix of a linear transformation
![]()
Stretching transformation
|
stretches the component of by factor , the component by
In general a diagonal matrix describes stretching with factors
![]()
Projection examples
|
Projection along direction in
Projection along direction of vector in :
First obtain a vector of unit norm
Projection matrix
![]()
Reflection
|
![]()
Reflection example
|
Reflect across
![]()
Rotation in
|
Construct standard rotation matrix by rotating
![]()
Linear mapping composition, matrix-matrix multiplication
|
and , a composite function, , is defined by
(1) |
Matrix-matrix product is a grouping of matrix-vector products
![]()
Transformation composition example: successive rotations in
|
Consider two transformations , . Composition
Matrix of transformation composition is product of the individual transformation matrices
Example: Rotation by followed by rotation by in
![]()
Block matrices
|
is a matrix with 4 rows and 4 columns
It is useful to recognize common structures in a matrix
![]()
Block matrix addition, multiplication, transposition
|
Matrix block addition
Matrix block multiplication
Matrix block transposition
![]()
Transpose of matrix columns
|
contains column vectors with components each
The transpose switches rows and columns
has rows and columns
![]()
Block operation examples: forming blocks, block assembly
|
∴ |
A=[1 2 -1 0; 2 1 0 2; -1 0 1 2; 0 2 2 1] |
(2)
∴ |
B=A[1:2,1:2]; C=A[1:2,3:4]; [B C; C B] |
(3)
∴ |
D=[1 -1 1 0; -1 1 0 1; 1 0 1 -1; 0 1 -1 1]; |
∴ |
E=D[1:2,1:2]; F=D[1:2,3:4]; [D [E F; F E]] |
(4)
∴ |
![]()
Block operation examples: addition
|
∴ |
A+D |
(5)
∴ |
[B C; C B] + [E F; F E] |
(6)
∴ |
![]()
Block operation examples: multiplication
|
∴ |
A*D |
(7)
∴ |
[B*E+C*F B*F+C*E; C*E+B*F C*F+B*E] |
(8)
∴ |
![]()
Block operation examples: transposition
|
∴ |
M=[1 2 3 4; 5 6 7 8; -1 -2 -3 -4; -5 -6 -7 -8] |
(9)
∴ |
U=M[1:2,1:2]; V=M[1:2,3:4]; X=M[3:4,1:2]; Y=M[3:4,3:4]; M' |
(10)
∴ |
[U' X'; V' Y'] |
(11)
∴ |