Professional Documents
Culture Documents
Linear_Algebra_and Metric Calculus-1
Linear_Algebra_and Metric Calculus-1
Source: Melvin Wevers, Thomas Smits, The visual digital turn: Using neural networks to study historical images, Digital Scholarship in the Humanities,
Volume 35, Issue 1, April 2020
“Data” as scalar, vector, matrix, and tensor?
What are
we going to learn?
• A system has input and output
System (function, transformation, operator)
“Hello” “Hello”
Linear System
• Linear system have two properties
• 1. Persevering Multiplication
Linear Linear
x y kx ky
System System
• 2. Persevering Addition
Linear
x1 y1
System x1+x2 y1+y2
Linear
Linear System
x2 y2
System
Linear System v.s.
System of Linear Equations
Linear
…
…
…
…
System
? trivial
k k k k
Linear Linear …… Linear
…
…
…
…
…
…
…
…
…
…
…
…
System System System
……
…
…
…
…
…
…
…
…
…
…
…
…
Linear
…
…
System
? 3
? 6
Linear
vector vector
…
…
…
…
System
? 9
■
Basic concepts
We will use lower case letters for vectors The elements are
referred by xi.
■ Vector dot (inner) product:
And
Basic concepts
Remember the good, old Euclidean distance?
Special matrices
diagonal upper-triangular
tri-diagonal lower-triangular
I (identity matrix)
Determinant of a Matrix
● Used for inversion
● If det(A) = 0, then A has no inverse
http://www.euclideanspace.com/maths/algebra/matrix/functi
ons/inverse/threeD/index.htm
Can we find a matrix to multiply the first matrix by to
get the identity?
To
To find
find the
the inverse
inverse of
of a
a matrix
matrix we
we putput the matrix A,
the matrix A, a
a
line
line and
and then
then the identity matrix.
the identity matrix. We We then
then perform
perform row
row
operations
operations onon matrix
matrix A toturn
A to turnititinto
intothe
theidentity.
identity. We
We
carry
carry the
the row
row operations
operations across
across and
and the right hand
the right hand side
side
will
will turn
turn into
into the
the inverse.
inverse.
−r2
r1 − r2
2r1+r2
Check this answer by multiplying. We should
get the identity matrix if we’ve found the
inverse.
We can use A-1 to solve a system of equations
-2r1+r2
r1-3r2
-r2
x This is the
answer to
y the system
Rank and Nullity
• The rank of a matrix is defined as the maximum number of linearly
independent columns in the matrix.
•
• Nullity = Number of columns - rank
If A is a mxn matrix:
NO YES
No
solution
Rank A = n Rank A < n
Nullity A = 0 Nullity A > 0
Unique solution Infinite solution
Conclusion
Rank A = n
Nullity A = 0
NO YES
NO YES NO YES
No Infinite No Unique
solution solution solution solution
Visualizing System of Linear Equations…(every eqn. is a line, plane, or
hyperplane)
Eigenvector
Eigenvalues and Eigenvectors
•
excluding zero vector
Eigen vector
Looking for Eigenvalues
• Example 1: Find the eigenvalues of
=0
t = -3 or 5
■
The Eigen-decomposition :
Matrix calculus is a specialized notation for doing
multivariable calculus, especially over spaces of matrices.
49
1.2 Derivative of a Scalar with Respect to Vector
If y is a scalar
50
Can we “see” the gradients?
Given
and
53
Some useful vector derivative formulas
Homework
54
Important Property of Quadratic Form xTCx
Proof:
If C is symmetric,
55
The Chain Rule for Vector Functions
Let
56
The Chain Rule for Vector Functions (Cont.)
Then
This is the chain rule for vectors (different from the conventional chain
rule of calculus, the chain of matrices builds toward the left)
57
Example 2
x, y are as in Example 1 and z is a function of y defined as
58
Reference
• Matrix calculus, Wiki http://en.wikipedia.org/wiki/Matrix_calculus
59