Linear Algebra - Fanyu Zhao

P.S. 3B1B in YouTube gives a complete new and clear understanding about the matrix transformation. Higly Highly Recommended.

v=(v1v2v3)vR3

For better understanding, we consider a vector as a combination between the direction and the distance.

Key Points

1. Properties

1.1 Dot Product
vu=v1u1+v2u2+v3u3R

Dimension of One.

and, vu=uv. The sequence is irrelevant.

1.2 Length

A vector has two important characteristics, one is the direction and the other is the length.

v=||v||v^

, where we define ||v|| As the lengh, and v^ as a unit vector, for which the length is one and is used to show the direction.

The length of v is coined as the norm,

||v||=v12+v22+v32

The distance between two vectors

||vu||=(v1u1)2+(v2u2)2+(v3u3)2
1.3 Two Vectors
vu=||v||||u||cos θso,cos θ=vu||v||||u||

We can solve the angle between two vectors, θ.

2. Matrix

A=(a11a12a1na21a22a2nam1am2...amn)ARm×n
2.1 Matrix Multiplication
C=AB

, then an element of matrix C Is,

Cij=k=1NAikBkj
2.2 Transpose
AT
2.3 Solve Linear Equations & Determinant
Ax=p(a11a12a13a21a22a23a31a32a33)(x1x2x3)=(p1p2p3)a11x1+a12x2+a13x3=p1a21x2+a22x2+a23x3=p2a31x3+a32x3+a33x3=p3

, where the matrix A, and the vector p are known, we aim to calculate the unknow vector x.

Three unknowns and three equations, we can solve the vector x if we say A is invertible. That is equivalent to say that A has a determinant of none zero.

The determinant of A Is,

|abcd|=adbd0
Key implication of matrix:
  1. Matrix, as shown as a set of combined equations, could represent the direction of linear transformation, A, for a vector, x. Solving x is like finding a unknown vector that, after applying the linear transformation, A, we can get our target vector, p.
  2. The row of A is the number of equations, M, and the dimension of x is the number of unknowns, N, we are planing to solve with. If M=N, then we have a solution for sure, and matrix A is squared. If M>N, then there are more equations available to solve those unknows, we would also have a solution. The last case is M<N, and in that case, there are more free variables.
  3. The determinant is pretty much like collasping a matrix, A, into dimension one, a number.
  4. The determinant <=> collapse the dimension
To solve it,
2.4 Matrix Inverse
(abcd)1=1adbd(dbca)

Clearly, inverse of matrix requires the denominator to be non-zero, which is equivalent to having a non-zero determinant.

For a m×n matrix A, the inverse is defined as,

A1=1|A|adj A

, where adjA=(1)i+j MijT, and Mij is the squared sub-matrix.

Why we calculate the inverse?

Because the computer is good at matrix calculation. By using the invese, we could quickly get the solution.

Ax=px=A1p
2.5 Orthogonal Matrix

The orthogonal matrix is defined as,

PPT=Iso,PT=P1
2.6 Eigenvalues and Eigenvectors

Recall that a matrix could be considered as a linear transformation. Exactly, it transfer a N-dimension space.

For example,

(1001)

A matrix could be considered as a panel, with two unit axis. In a two-dimension space, the firtst column sates the x-axis, and the second states the y-axis. The unit is one.

(10)&(01)

Similarly,

M=(2134)

There is another matrix as shown above, and could also represent a space, with the first column (23) and the second (14) consisting another space. The unit x-axis has a angle and length of 13, and the y-axis has also a different angle and length is 3.

Now, if we have a vector v, and we want to fit it into that space, what we do is Mv. Graphically, we may see it as a vector undergoes a linear transformation and have a different lengh and direction.

2.6.1 Eigenvalue
Av=λv

The λ here is called the eigenvalue. (A needs to be squared)

To solve it,

(AλI)v=0

, coz v is non-zero, AλI must be zero to let the equation hold. Therefore we would let

det(AλI)=0

The above equation is also called, characterisitic polynomial.

For example, if A=(3113)

AλI=(3λ1113λ2)det(AλI)=0(3λ1)(3λ2)1=0

We solve it could get the solution, λ1=2,λ2=4.

Some Propertities of Eigenvalue

  1. λi is the sum of diagnoal elements.
  2. λi=det(M)
2.6.2 Eigenvector

The eigenvector is just the solution of our equation, v, once we plug λ inside.

(AλI)v=0

For example, if A=(3113)

If λ=4,[(3113)(4004)]]v=0(1111)(v1v2)=0We could solve, v1=(11)After normalising it, v1=(1/21/2)If λ=2(1111)(v1v2)=0We could solve, v1=(11)
2.7 Diagonalisation and Powers of A

Let matrix Q be a matrix whose columns are the eigenvectors of A.

Q=(v1viv2)e.g.Q=(1111)

Let Λ ( \Lambda ) be a matrix whose diagnals are each eigenvalues.

Λ=(λ1000λ20 00λn)

We define that

AQ:=QΛso, A=QΛQ1

The implication is that matrix A could be decomposed by its eigenvalue, Λ, and its eigenvector, Q.

Therefore,

A2=QΛQ1QΛQ1=QΛ2Q1Ak=QΛkQ1

The it could be represented by the recursive substitution, being useful under certain circumstances.

For example, (by simply applying the previous matrix)

AQ=(4242)QΛ=(4242)

By Fanyu Zhao