Linear Algebra: Project - Class CC11
Linear Algebra: Project - Class CC11
Linear Algebra: Project - Class CC11
LINEAR ALGEBRA
Project - Class CC11
June, 2021
CONTENTS
INTRODUCTION
PROBLEM
REFERENCES
INTRODUCTION
This report is a list of 3 problems that have been designed to understand
linear algebra in combination with Matlab programs that are customarily designed
to solve the problems
Problem 2: Write a program to input any number of vector in R n and return the
orthogonal basis and orthonormal basis of the subspace spanned by these vectors.
(Use Gram - Schmidt process)
A vector operation that allows us to define length and angle for vectors in
an arbitrary vector space. This operation is called the “inner product between two
vectors”, and is a generalization of the dot product that was introduced in the
Matrices lecture.
〈·,·〉:V ×V →R
(x, y) −→ 〈x, y〉− which is called inner product of 2 vectors.
The following 4 axioms are satisfied
1.〈x,y〉=〈y,x〉, ∀x,y ∈V
2.〈x + y, z〉 = 〈x, z〉 + 〈y, z〉, ∀x, y, z ∈ V
2. ∀u ∈ U, α ∈ K : f (αu) = αf (u).
Let f : U → V be a linear transformation. Let E = {e1, e2, ..., en} and F = {f1,
f2, ..., fm} be bases of U and V , respectively.An m × n matrix whose the i -th
column is the coordinate vector of f (ei ) with respect to the basis F is called the
transformation matrix of f with respect to E,F. Denote:
AEF =F−1.f(E)
AE =E−1.f(E)
2. Solve in matlab
Ex 1: Plan (P): x - 2y + 5z = 4
Answer the question:
Ex 2: Plan (P): 9x + 2y - z = -3
1. Theory
2.1.1 Introduction
Orthogonality can help us sove the problem of checking whether the angle
π
between vectos is 2 . Accordingly, we make the following definition which is
applicable even if one or both of the vectorss is zero.
where ⟨ u , v ⟩ denotes the inner product of the vectors u and v. This operator projects
the vector v orthogonally onto the line spanned by vector u
1. f1 = e1
(e 2, f 1)
2. f2=e2 − prf (e2)=e2− f
(f 1, f 1) 1
(e 3 , f 1) (e 3 , f 2)
3. f3=e3−prf (e3)−prf (e3)=e3− f− f
(f 1, f 1) 1 (f 2, f 2) 2
2. Solve in matlab
Problem : Write a program to input any number of vector in R n and return the
orthogonal basis and orthonormal basis of the subspace spanned by these vectors.
(Use Gram - Schmidt process)
Explain: the codes have one biggest con that is it is unable to generate a set of
orthogonal or orthonormal vectors if the matrix has LD vectors. Therefore, the user
has to choose a matrix that its rank equals to the number of vectors.
1=>15: Create a square matrix
Ex 1(Square matrix) : 3 vectors (1, 3, 5), (7, 9, 11), (13, 17, 19)
In real arithmetic every nonzero number a has a reciprocal A −1(= 1/A) with
the property A.A−1 = A−1.A= 1
The number A−1 is sometimes called the multiplicative inverse of A. Our next
objective is to develop an analog of this result for matrix arithmetic. For this
purpose we make the following definition.
1. A is invertible
2. A
⃗ Elementary Row Operations I
n
3. r(A) = n
Inversion Algorithm:
-1
⇒ A = En.En-1.....E2E1.
2. Solve in matlab
Problem : Write a program to find the inverse of a given matrix
Explain:
8=>9: If matrix cannot inverse => Print “ not invertable “ on the screen
5 1
−1
( )
3 3
−16 1
A−1= 2
3 3
10 −1
−1
3 3
1 2 3
(
Example 2: Find the invertable matrix of A= 4 5 6
2 4 6 )
(6
Example 3: Find the invertable matrix of A= 1
1
3
8
3
1
2
6
2
1
8
)
Answer the question
(0.0665 −0.036
A−1= −0.3653 0.0829
0.132
0.0294
−0.0491
0.2039
0.2563 −0.0731 −0.0654 −0.0087
)
REFERENCES
1. “INNER PRODUCT” https://users.math.msu.edu/users/gnagy/teaching/05-
fall/Math20F/w9-F.pdf
2. “INNER PRODUCT SPACE”
https://en.wikipedia.org/wiki/Inner_product_space
3. “ORTHOGONALITY”
https://en.wikipedia.org/wiki/Orthogonality#Definitions
4. Book “Elementary Linear Algebra” – Howard Anton Chris Rorres
5. “Gram-Schmitd Process”https://en.wikipedia.org/wiki/Gram–
Schmidt_process#Properties
6. “LINEAR TRANSFORMATION” https://brilliant.org/wiki/linear-
transformations/
7. Teaching slide of lecture Phan Thị Khánh Vân
8. Teaching slide of lecture Hoàng Hải Hà