HCM City University of Technology: Exercises and Problems in Linear Algebra
HCM City University of Technology: Exercises and Problems in Linear Algebra
0.1.2 Exercises
√
(1 − 3i)100
1. Evaluate: z =
(1 − i)120
p5
√
2. Evaluate 3−i
3. Solve the equation z 4 + z 3 + 6z 2 − 14z + 20 = 0, given that z = 1 + i is 1 root of
the equation.
√
(− 3 + i)108
4. Find the modulus of z =
(1 − i)1 20
1+i n
5. Find n such that z = ( √ ) is
1 + 3i
• an imaginary number.
• real number.
6. Find the set of all z satisfying
a) |z − 1| = |z + 1 + i|
b) |z + 2 − i| = 5
c) |z + 1 + i| + |z − 2 − 3i| = 4
d) |z − 1 − i| − |z + 2 − i| = 3
e) z = ea+2i , a ∈ R
f ) z = e2+ai , a ∈ R
(
|z − 1| = 3
g) that z is the solution of
|z + i| = |1 − i − z|
3. (Replacement) Replace one row (column) by the sum of itself and a multiple of
another row (column) ri → ri + α.rj , ∀α
Row equivalent: Two matrices A and B are called row equivalent: A ∼ B (A is row
equivalent to B) if B can be obtained from A after a finite number of elementary row
operations.
elementary operations
Rank of matrices: Given that A ∈ Rm×n . A −−−−−−−−−−−−→ echelon formE. r(A) =
number of nonzero rows of E.
• r(A) = r(AT )
• r(A) ≤ min{m, n}
Inverse of a matrix: A.A−1 = A−1 .A = In
• (A−1 )−1 = A
• (AB)−1 = B −1 A−1
Row elementary operations
Method to find A−1 :[A|In ] −−−−−−−−−−−−−−→ [In |A−1 ]
0.2.3 Determinant
Aij cofactor: Deleting the i−th row and the j−th column of A we obtain B.
det(A) = ai1 Ai1 + ai2 Ai2 + ... + ain Ain = a1j A1j + a2j A2j + ... + anj Anj
• A is invertible
• r(A) = n
• A ∼ In
• det(A) 6= 0
0.2.4 Exercises
2 −1
1 m 2
1. Given A = , B = 1 4 . Find A + 2B T , 3AB, 2B T AT
3 1 6
2 1
1 2 3
2. Given A = 3 1 1 . Find f (A) given that f (x) = 2x2 + 6x − 2.
−2 1 −2
4. (Markov chain) A machine can be either working or broken down on any given
day. If it is working, it will break down in the next day with probability 5%, and
will continue working with probability 95%. If it breaks down on a given day, it
will be repaired and be working in the next day with probability 80%, and will
continue to be broken down with probability 20%. Given that the probability
that the machine works today is 80% (then, the probability that the machine
breaks down is 20%). Find the probability that the machine will work the day
after tomorrow? after 1 week.
1 −3 2 −1
8. Given A = ,B = . Find X : AX + XB = 2A + 3B T
3 6 1 4
1 −2
9. Find m such that A = is invertible. With m found, find A−1 .
2 m
1 −3 −2 3 1 −1
10. Given that A = 3 6 2 , B = 5 3 1 .
4 2 −1 3 1 5
T
Find X : (A + B )X = 3X + 2A − 4B
1 −3 −2 3 1 −1
11. Given that A = 3 6 2 , B = 5 3 1 .
4 2 −1 3 1 5
Find X : XA + B T = 3X + 2A
4 −5 −1 8 4
1 1 1
d) A = 2 m −2
3 5 4
m 1 1
e) A = 1 m 1
1 1 m
1 −2 −1 2
f ) A = 2 −4 m 2
1 10 −6 m
2x1 − x2 − x3 + x4 = 0
15. Solve the system x1 + 2x2 − x3 − 2x5 = 0
7x1 − x2 − 4x3 + x4 + x5 = 0
mx1 − x2 + 2x3 = 3
16. Find m such that x1 − x2 − x3 = −2 has unique solution
3x1 − x2 − 4x3 = 1
x1 + x2 − 2x3 = 0
17. Find m such that mx1 + x2 + x3 = 0 has nontrivial solution
2x1 + 3x2 + mx3 = 0
21. The figure shows the flow of traffic of a network. The diagram indicates the av-
erage number of vehicles per hour entering and leaving the intersections and
the arrows indicate the direction of traffic flows. All streets are one-way. Setup
and solve a system of linear equations to find the possible flows xi
22. Setup and solve a system of linear equations to find the possible flows xi
23. Setup and solve a system of linear equations to find the possible flows xi
24. (Input-output Leontief model) Consider a very simple economy that runs on 3
different types of output: raw materials, services, and manufacturing. Raw ma-
terials include the output of many different industries, agriculture and mining
to name two. Services include retailing, advertising, transportation, etc. The
raw materials industry needs some of the output from the other two industries
to do its job. For example, it needs trucking to get its goods to market, and it
uses some manufactured goods (machines.) The raw materials industry even
needs some of its own output to produce its own output – iron ore to make the
steel to build the rails that carry ore from the mines, for example. Each indus-
try requires some amount of output from each of the three to do its job. All of
these requirements can be summarized in the following table:
25. (Market equilibrium) Find the equilibrium price, given the supply function:
Qs = −2 + 3p, the demand function: Qd = 4 − 5p.
26. (Multi-market equilibrium) Find the equilibrium prices in the market of 2 type
of commodities, given the supply and demand functions for:
Commodity 1: Qs1 = −2 + 3p1 ; Qd1 = 10 − 2p1 + p2 .
Commodity 2: Qs2 = −1 + 2p2 ; Qd2 = 15 + p1 − p2 .
1 2 m
29. Find m such that A is invertible: A = 4 m 3
3 −5 4
a) |2AB|
b) |3(AB)−1 |
c) |3A−1 B 2019 |
d) |P3A B −1 |
LI ⇔ rank(M ) = n
2. Linear dependence
M = {e1 , e2 ...en } is linearly dependent (LD) ⇔ ∃(α1 , α2 , ..., αn ) 6= (0, 0..0) :
α1 e1 + α2 e2 + ... + αn en = 0
LD ⇔ rank(M ) < n
4. Spanning set
M = {e1 , e2 ...en } - spanning set of V ⇔ ∀u ∈ V, ∃(α1 , α2 , ..., αn ) : u = α1 e1 +
α2 e2 + ... + αn en
5. Basis
6. Coordinates
α1
α2
E is a basis of V .
... = [x]E if x = α1 e1 + α2 e2 + ... + αn en .
αn
In Rn :
7. Subspace
The span of a vector set
U = span{e1 , e2 ...em } = {x ∈ V |x = α1 e1 + .. + αm em }
(E = {e1 , e2 ...en } is a spanning set of U )
Nullspace of a homogeneous system
null(A) = {x ∈ Rn |A.x = 0}
dim(null(A)) = n − r(A)
0.3.2 Exercises
LI, LD
5. Find m such that (−2, 1, 3), (2, m, 1)(1, 4, 0), (−2, 2, 1) is LI.
In a vector space V given a LI set {x, y, z}. Are the following set LI or LD:
1. M = {x + 2y, x − 3y, x + y}
2. N = {x + y + z, x − y − z, 2y − z}
3. P = {x + y + 3z, 4x − y + 2z, 2x − 3y − 4z
4. R = {x + y + 2z, x + y + z, 2x, 4y − z}
3. In V given a spanning set {x, y, z}. Is M = {x+2y, x−3y, x+y, x+3y} a spanning
set?
4. In V given a basis {x, y, z}. Is M = {x+2y, x−3y, x+y +z, x+3y +z} a spanning
set?
Coordinates
1. Let E = {(1, 2 − 1), (3, 1, 4), (−2, 0, 1)} be a basis of R3 .
Subspaces
1. In R3 given a subspace U = span{(2, 2, −3), (0, 1, 2), (4, 5, −4), (2, 1, −5)}. Find
one basis and the dimension of U .
2. In R3 given V = {x ∈ R3 |3x1 + 5x2 − 1x3 = 0}. Find one basis and the dimension
of V .
4. In R4 given U =< (1, 2, −1, 4), (3, 1, 2, 4), (1, −3, 4, −4), (4, 3, 1, 8), (1, 2, 3, 4) >.
Find one basis and the dimension of U .
• Is x = (3, 4, 5) in U ?
• Find m such that x = (1, 3, m) is in U
7. In R3 given U = {x ∈ R3 |x1 + x2 − x3 = 0}
• u⊥v ⇔ (u, v) = 0
• u⊥ V ⇔ u⊥ spanning set of V
Orthogonal complement :
Let W be a subspace of V , W ⊥ := {x ∈ V |x⊥W } - is called the orthogonal comple-
ment of W in V .
Projection of a vector onto a subspace:
Let W be a subspace of V . Any vector u ∈ V can be represented uniquely as: u = x +
y, x ∈ W, y ∈ W ⊥ . Then, x - orthogonal projection vector of u onto W : x = prW (u), y
- rejection.
Gram - Schmidt process: Construct an orthogonal set from M = {e1 , ...en }
• f1 = e 1
(e2 ,f1 )
• f2 = e2 − (f 1 ,f1 )
f1 (We can multiply f2 by α so that we don’t have the fractional
elements in f2 .)
• ...
0.4.2 Exercises
1. Let (x, y) = x1 y1 − 2x1 y2 − 2x2 y1 + 5x2 y2 + 7x3 y3 be an inner product of R3 . Find:
3. In R4 with the dot product, given U =< (1, 2, −1, 4), (3, −1, 4, −2) >, V = (1, 2, m, n) >.
Find m, n such that V ⊥U
4. In R3 with the dot product, given U =< (1, 2, 3), (−3, 4, 2), (1, 12, 14) >. u =
(4, 5, 7)
5. In R4 with the inner product (x, y) = 2x1 y1 + 3x2 y2 + x3 y3 + 4x4 y4 , given U =<
(1, 3, 2, 1), (2, −1, 1, 0) > và z = (3, 2, 11, 16). Find the orthogonal projection of z
onto U .
8. In R4 with the dot product, given U =< (2, 1, 3, −1), (3, 2, 1, −2) >. Find the
orthogonal projection of U ⊥
9. In R4 with the dot product, given U =< (1, 1, 4, −1), (3, 1, 1, −2) >.
11. In R4 with the inner product (x, y) = x1 y1 + 2x1 y2 + 2x2 y1 + 5x2 y2 + x3 y3 + 2x4 y4 ,
given U =< (1, 2, 1, 2), (−3, −1, 2, −2), (1, −3, −4, −2) >.
[f (x)] = A[x]
A = f (E).E −1
• Transformation matrix of f : Rn → Rn in E:
AE = AEE = E −1 f (E)
0.5.2 Exercises
1. Given a linear transformation f : R3 → R2 , f (x1 , x2 , x3 ) = (2x1 + x2 − x3 , x1 +
x2 + x3 ).
a) Find f (3, 2, 4)
b) Find one basis, the dimension of Kerf .
c) Find one basis, the dimension of Imf .
2. Let f : R3 → R3 : f (x1 , x2 , x3 ) = (2x1 + x2 − x3 , x1 + x2 + x3 , x1 − 2x3 ) be a linear
transformation
a) Find AEF in 2 bases E = {(1, 1, 1), (1, 1, 2), (1, 0, 0)}, F = {(1, 1, 1), (1, 0, 1), (0, 0, 1)}.
b) Fin AE in the basis E
3. Let f : R3 → R3 be a linear transformation satisfying f (1; 1; 2) = (−1; 2; 1), f (1; 1; 5) =
(2; 2; 3), f (3; 2; 8) = (1; 4; 4)
a) Find f (3; 4; 5)
b) Find f (x1 ; x2 ; x3 )
c) Find one basis, the dimension of Kerf .
d) Find one basis, the dimension of Imf .
4. Let f : R3 → R3 be a linear transformation satisfying f (u1 ) = f (2; 1; 4) =
(1; 2; −1), f (u2 ) = f (1; 1; 5) = (2; 1; 3), f (u3 ) = f (3; 2; 8) = (4; 1; 2).
Find AE of f in the basis E = {(1; 2; 1), (2; 1; 1), (1; 1; 1)}
8. In R3 find the image f (x; y; z), where f is the rotation transformation about the
z axis π4 clockwise from the positive direction of z axis. Find Imf, Kerf .
9. In R3 find the image f (x; y; z), where f is the projection transformation onto
the plane x + 2y − 3z = 0. Find Imf, Kerf .
• Properties
Let λ be one eigenvalue of A with the corresponding eigenvectorx.
If A is diagonalizable A = P DP −1 then:
1. Am = P Dm P −1 , where Dm = diag(λm m m
1 , λ2 , ...λn )
√ √ √
2. B m = A, (m is odd) then B = P D1 P −1 , where D1 = diag( m λ1 , m λ2 , ..., m λn )
0.6.2 Exercises
2 2 m
1. Given A = 1 3 2m
2 4 1
7. (Markov chain) A machine can be either working or broken down on any given
day. If it is working, it will break down in the next day with probability 5%, and
will continue working with probability 95%. If it breaks down on a given day, it
will be repaired and be working in the next day with probability 80%, and will
continue to be broken down with probability 20%. Given that the probability
that the machine works today is 80% (then, the probability that the machine
breaks down is 20%). Find the probability that the machine will work after 1
years.
10. (Markov chain) Two competing companies offer satellite television service to
0.7 0.15 0.15
a city with 100 000 households. The transition matrix is 0.2 0.8 0.15 (see
0.1 0.05 0.7
the figure below for the changes in satellite subscriptions each year). Company
A now has 10 000 subscribers and Company B has 15 000 subscribers.
a) Find the stable distribution vector (the numbers of subscribers won’t change
years after years)
b) Use the model and the method of diagonalization to predict the numbers
of subscribers that each company will have after 50 years.
f (X) = a11 x21 + a22 x22 + ... + ann x2n + 2a12 x1 x2 + 2a13 x1 x3 + ... + 2aij xi xj = X T .A.X
P T = P −1
- Orthogonally diagonalization
A = P DP −1 = P DP T
To orthogonally diagonalization:
• Find the eigenvalues λ1 , λ2 ..., the corresponding eigenspaces Eλ1 , Eλ2 ...
0.7.2 Exercises
Make an orthogonal change of variables to transform the following quadratic form
into the canonical form (the form without cross products)