Professional Documents
Culture Documents
Summary of Linear Algebra
Summary of Linear Algebra
Summary of Linear Algebra
Tết đã đến rồi và sau tết chúng ta sẽ có 1 bài thi quan trọng đó là bài thi cuối kì. Do vậy, để giúp
mọi người tranh thủ dịp tết này ôn luyện bộ môn Linear Algebra, chúng mình đã tổng hợp các lý
thuyết cần thiết của môn vào trong tài liệu này. Trong tài liệu chỉ có công thức và những ví dụ,
nên chúng mình cũng chuẩn bị những bài tập tổng hợp theo đề để mọi người có thể làm luyện
tập. Các bạn truy cập vào đây để lấy bài tập nha (có kèm sẵn lời giải cho các bạn luôn �).
OUTLINE:
LINEAR ALGEBRA
- 2 types of matrix:
USTH Learning Support – Math & Physics Department
Example:
Example:
USTH Learning Support – Math & Physics Department
- Trace:
- Addition:
- Scalar multiplication:
USTH Learning Support – Math & Physics Department
- Subtraction:
- Matrix multiplication:
+ The number of columns in A must equals the number of rows in B (số hàng của A
bằng với số cột của B)
+ Simply saying, entry (i,j) of matrix AB equals “row i of A multiply with column j
of B” (lấy hàng của A nhân với cột của B)
+ To multiply a row in A with a column in B, multiply the 1st entry of the row in A
with the 1st entry of the column in B, 2nd of row with 2nd of entry of column, … nth
entry of row with nth entry of column. Finally, take the sum of all of them.
For example:
→ 1st row of matrix A is [-1 3], 1st column of matrix B: [-3 -4]
→ Entry (1,1) of matrix AB = (-1).(-3) + 3.(-4) = -9
Calculate similarly with the other entries of AB.
Note: A + B = B + A but AB ≠ BA
USTH Learning Support – Math & Physics Department
Hiểu đơn giản là đảo hàng thành cột hoặc đảo cột thành hàng.
- Properties of transposes:
USTH Learning Support – Math & Physics Department
3. Inverse of a Matrix
- Definition of inverse matrix (ma trận nghịch đảo):
Example:
III. DETERMINANTS
1. Determinant of a matrix
- Only square matrices have determinants
- Determinant of a 1x1 matrix:
A = [a] → det(A) = a
- Determinant of a 2x2 matrix:
USTH Learning Support – Math & Physics Department
Example:
3. Properties of determinants
- det(AB) = det(A)det(B)
- det(cA) = cn det(A) (n is the order of the matrix)
- det(A-1) = 1/det(A) (if A is invertible)
- det(AT) = det(A)
- det(In) = 1 (In is identity matrix)
- If a matrix A has det(A) ≠ 0
+ A is invertible
+ Ax = b has a unique solution for every matrix b
+ Ax = 0 has only trivial solution
4. Application of determinants
a. Finding inverse matrix:
- Step 1: Find matrix of cofactors:
Matrix form:
- Operations:
● Equal
● Addition
● Scalar multiplication
USTH Learning Support – Math & Physics Department
- Linear combination:
Given a set of vectors (v1,v2,…,vn)
Thường thì trong đề thi sẽ không có những câu cần dùng đến cả 10 tiên đề này, tuy
nhiên các bạn phải học để hiểu hết cả 10 tiên đề này áp dụng như nào.
b. Subspace
- Definition:
USTH Learning Support – Math & Physics Department
- Properties:
Tips:
• Với những dạng bài xác định subspace, có thể thử trước bằng cách nếu tập đó
không có vector 0 thì sẽ không phải là subspace. (Theo tính chất của vector
space).
• Khi cần chứng minh 1 tập là vector space, ta có thể chỉ cần chứng minh tập đó
là subspace của những tập sau ℝ𝑛𝑛 , ℙ𝑛𝑛 , Mat 𝑚𝑚×𝑛𝑛 .
c. Spanning set
- Definition:
Given a vector space (V,+,●)
Given S = {v1,v2,…,vn}
S is a spanning set of V if: ∃v ∈ V, ∃c1,c2,…cn ∈ R s.t.: v = c1 v1 + c2 v2 + … + cn vn
(every vector v ∈ V is a linear combination of vectors in S)
- Properties:
- Step 1: Using row-operations (which do not affect the row space of A) to transform
it into a row-echelon form matrix B
- Step 2: Find column vectors of B that contain the leading 1s
- Step 3: Find the corresponding column vectors of A
- Step 4: Conclude that those column vectors of A form a basis for CS(A)
g. Rank and nullity
- RS(A) and CS(A) always have the same dimension
- The dimension of row/column space of A is called rank:
rank(A) = dim(RS(A)) = dim(CS(A))
- The dimension of null space of A is called nullity:
nullity(A) = dim(NS(A))
- If a matrix A has n column, then: n = rank(A) + nullity(A)
- Note: rank(AT) = rank(A)
h. Coordinates and change of basis
- Coordinate definition:
Given a vector space V
Let B = {v1,v2,…,vn} be a basis of V
Let x = c1 v1 + c2 v2 + … + cn vn
Then c1, c2,… cn are called coordinates of x relative to basis B
Coordinate matrix :
Note: if C is the transition matrix from B to B’ → C-1 is the transition matrix from B’
to B
● Step 1: Find x
● Step 2: Find coordinates of x relative to B’ (by solving system of linear
equations)
V. INNER PRODUCT
1. Inner Product
We have:
u = (u1, ….. un) ∈ Rn.
v = (v1, ….. vn) ∈ Rn
USTH Learning Support – Math & Physics Department
- Inner product:
Rn Inner product
u.v = v.u <u,v> = <v,u>
u.(v+w) = u.v + u.w <u,v+w> = <u,v> + <u,w>
u.(c.v) = c.(u.v) u.<c,v> = c.<u,v>
u.u ≥ 0 <u,u > ≥ 0
u.u = 0 <=> u = 0 <u,u> = 0 <=> u = 0
Cos θ = (u.v)/(∥u∥.∥v∥) Cos θ = <u.v>/(∥u∥.∥v∥)
<u, v>= c1u1v1 + c2u2v2 +…+ cnunvn in which ci >0
We can check for inner product by checking 4 first things (axioms)
All formula in Rn are the same in Inner product.
NOTE: u and v can be in any vector space other than Rn
USTH Learning Support – Math & Physics Department
Example: In M2,2
A = [a11 a22; a21 a22]
B = [b11 b22; b21 b22]
Inner product <A,B> = a11b11 + a12b12 + a21b21 + a22b22
- Orthogonal projections:
Nắm chắc 2 khái niệm trực giao và trực chuẩn. Ngoài ra, khái niệm này có thể hiểu
đơn giản giống việc tìm hình chiếu của 1 vector đối với 1 vector khác (nôm na là kẻ
đường cao �)
Hệ quả:
USTH Learning Support – Math & Physics Department
Ta có thể sử dụng hệ quả này để đi làm dạng bài xác định basis.
- Orthogonal cho inner product space (chiếu nhiều vector)
Example:
V, W − vector spaces
T: V → W, a map from V to W is linear transformation if it satisfies
(1) T (u + v) = T (u) +T (v), ∀u, v ∈V
(2) T(cu) = cT(u), ∀c ∈R
Properties:
Example:
USTH Learning Support – Math & Physics Department
- Range:
Example:
USTH Learning Support – Math & Physics Department
- One to one
Rank(T) = dim(W)
- Isomorphism:
USTH Learning Support – Math & Physics Department
Với transitional matrix, ta có thể áp dụng đi tìm T(v) bên cạnh cách sử dụng standard
matrix
Làm theo indirect để ý lại khái niệm transition matrix cho P(đọc lại trong lecture 4).
Example:
USTH Learning Support – Math & Physics Department
USTH Learning Support – Math & Physics Department
- Similar matrix:
- Eigenspace:
USTH Learning Support – Math & Physics Department
Example:
- Special case:
Hiểu nôm na là các bạn sẽ đi tìm standard matrix A cho T(x) = Ax rồi thay ma trận A
đó vào tìm eigenvalue và eigenvector như bình thường.
2. Diagonalization
- Definition:
Example:
- Step for diagonalizing (đặc biệt chú ý xếp p với 𝜆𝜆 tương ứng):
Example:
USTH Learning Support – Math & Physics Department
- Notes:
USTH Learning Support – Math & Physics Department
Hiển nhiên symmetric matrix thì sẽ chéo hóa được mà không cần điều kiện.
- Orthogonal matrix:
Note: Kiểm tra kĩ điều kiện của orthogonal matrix (mỗi vector cột là unit vector và
tích từng cặp vector cột bằng 0)
- Properties:
USTH Learning Support – Math & Physics Department
- Orthogonal Diagonalization:
Example:
USTH Learning Support – Math & Physics Department
Note: Với trường hợp mà các eigenvalue 𝜆𝜆 khác nhau thì các cặp eigenvector vuông
với nhau(tính chất symmetric matrix) nên khi xác định P chỉ cần đưa các eigenvector
về unit vector. Còn nếu có eigenvalue trùng nhau thì các eigenvector tương ứng sẽ
không vuông với nhau, ta phải dung Gram-Schmidt để đưa về orthonormal.