Docsity

Algebra Exercise HCMCUT, Exercises of Algebra

Partial preview of the text

Download Algebra Exercise HCMCUT and more Exercises Algebra in PDF only on Docsity!

HCM city University of Technology

Exercises and Problems in Linear Algebra

Phan Thi Khanh Van

0.1 Complex numbers

0.1.1 Summary

z = a + bi ( rectangular form )= r(cos ϕ + i sin ϕ) ( polar form )= r.eiϕ^ ( exponential form ) r = ‖z‖ - modulus ofs z; ϕ = arg(z) - argument of z. z 1 = r 1 (cos ϕ 1 + i sin ϕ 1 ), z 2 = r 1 (cos ϕ 1 + i sin ϕ 1 )

  • Distance between z 1 an z 2 : d(z 1 , z 2 ) = ‖z 1 − z 2 ‖
  • z 1 .z 2 = r 1 r 2 (cos(ϕ 1 + ϕ 2 ) + i sin(ϕ 1 + ϕ 2 ))
  • z z^12 = r r^12 (cos(ϕ 1 − ϕ 2 ) + i sin(ϕ 1 − ϕ 2 ))
  • zn^ = rn(cos nϕ + i sin nϕ)
  • n

z = n

r(cos ϕ+nk 2 π+ i sin ϕ+nk 2 π), k = 0, (n − 1)

Fundamental theorem of algebra : Every non-zero, single-variable, degree n polynomial with complex coefficients has, counted with multiplicity, exactly n complex roots. Corollary : P (z) is a polynomial with real coefficients. If z 0 is a root of P (z), then z¯ 0 is also a root of P (z).

0.1.2 Exercises

  1. Evaluate: z =

3 i)^100 (1 − i)^120

  1. Evaluate 5

3 − i

  1. Solve the equation z^4 + z^3 + 6z^2 − 14 z + 20 = 0, given that z = 1 + i is 1 root of the equation.
  2. Find the modulus of z =

3 + i)^108 (1 − i)^120

  1. Find n such that z = (

1 + i 1 +

3 i

)n^ is

  • an imaginary number.
  • real number.
  1. Find the set of all z satisfying

a) |z − 1 | = |z + 1 + i| b) |z + 2 − i| = 5 c) |z + 1 + i| + |z − 2 − 3 i| = 4 d) |z − 1 − i| − |z + 2 − i| = 3 e) z = ea+2i, a ∈ R f) z = e2+ai, a ∈ R

g) that z is the solution of

|z − 1 | = 3 |z + i| = | 1 − i − z|

  • The system has unique solution ⇔ r(A) = n ⇔ det(A) 6 = 0
  • The system has infinitely many solutions ⇔ det(A) = 0 v`a rank(A|b) = n
  • The system has no solution ⇔ det(A) = 0 v`a rank(A|b) = n + 1

Homogeneous square system b = 0

  • The system has unique solution ⇔ r(A) = n ⇔ det(A) 6 = 0,
  • The system has infinitely many solutions ⇔ r(A) < n ⇔ det(A) = 0

0.2.3 Determinant

Aij cofactor : Deleting the i−th row and the j−th column of A we obtain B.

Aij = (−1)i+j^ |B|

Using the i − th row ( j− column) to expand the determinant

det(A) = ai 1 Ai 1 + ai 2 Ai 2 + ... + ainAin = a 1 j A 1 j + a 2 j A 2 j + ... + anj Anj

Effects of Elementary Row Operations on Determinants

  1. A ri→αri −−−−→ B ⇒ |B| = α|A|
  2. A

ri→ri+αrj −−−−−−→ B⇒ |B| = |A|

  1. A

ri↔rj −−−→ B⇒ |B| = −|A|

The following statements are equivalent

  • A is invertible
  • r(A) = n
  • A ∼ In
  • det(A) 6 = 0

0.2.4 Exercises

  1. Given A =

[

1 m 2 3 1 6

]

, B =

. Find A + 2BT^ , 3 AB, 2 BT^ AT

  1. Given A =

. Find f (A) given that f (x) = 2x^2 + 6x − 2.

  1. A store sells commodities c 1 , c 2 , c 3 in two its branches B 1 , B 2. The quantities of commodities sold in B 1 , B 2 in a week are given in Table 1 , the individual prices of commodities are given in Table 2 , the costs to the store are given in Table 3. Find the store’s profit for a week
  1. (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.
  2. ( Leslie model) A population of rabbits raised in a research laboratory has the characteristics listed below. (a) Half of the rabbits survive their first year. Of those, half survive their second year. The maximum life span is 3 years. (b) During the first year, the rabbits produce no offspring. The average number of offspring is 6 during the second year and 8 during the third year. The laboratory population now consists of 24 rabbits in the first age class, 24 in the second, and 20 in the third. How many rabbits will be in each age class in 1 year, 2 years?
  3. (Markov chain) In a city with 1000 householders there are 3 supermarkets A, B and C. At this month, there are 200 , 500 and 300 householders that go to the supermarkets A, B and C, respectively. After each month, there are 10% of customers of A change to B, 10% of those change to C; 7% of customers of B change to A, 3% of those change to C; 8 .3% of customers of C change to A, 6 .7% of those change to B. Find the numbers of customers of each supermarket after 1 month, 2 months.
  4. (Markov chain) Two competing companies offer satellite television service to

a city with 100 000 households. The transition matrix is

 (^) (see

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. How many subscribers will each company have after 1 year? 2 years?

  1. Given A =

[

]

, B =

[

]

. Find X : AX + XB = 2A + 3BT

  1. Find m such that A =

[

2 m

]

is invertible. With m found, find A−^1.

  1. Given that A =

, B =

Find X : (A + BT^ )X = 3X + 2A − 4 B

  1. Given that A =

, B =

Find X : XA + BT^ = 3X + 2A

  1. Find the currents I 1 , I 2 , I 3
  2. Find the currents I 1 , I 2 , I 3
  3. Find the currents I 1 , I 2 , I 3 , I 4 , I 5 and I 6 in the following electrical network:

final4.png

  1. The figure shows the flow of traffic of a network. The diagram indicates the average 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
  2. Setup and solve a system of linear equations to find the possible flows xi

trafficflow1.png

  1. Setup and solve a system of linear equations to find the possible flows xi

final2.png

  1. (Input-output Leontief model) Consider a very simple economy that runs on 3 different types of output: raw materials, services, and manufacturing. Raw materials 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 industry 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:

Industry Raw materials Services Manufacturing Raw materials 0.02 0.04 0. Services 0.05 0.03 0. Manufacturing 0.2 0.01 0.

The numbers in

the table tell how much output from each industry a given industry requires in order to produce one dollar of its own output. For example, to provide 1$ worth of service, the service sector requires 0 .05$ worth of raw materials, 0 .03$ worth of services, and 0 .01$ worth of manufactured goods. The demand matrix D tells how much ( in billions of dollars) of each type of output is demanded by consumers and others outside the economy

D =

,A =

. Let X denote the production matrix. It

represents the amounts (in billions of dollars of value) produced by each of the three industries. Then, we have X = AX + D. Find X.

  1. (Market equilibrium) Find the equilibrium price, given the supply function: Qs = −2 + 3p, the demand function: Qd = 4 − 5 p.
  2. (Multi-market equilibrium) Find the equilibrium prices in the market of 2 type of commodities, given the supply and demand functions for: Commodity 1: Qs 1 = −2 + 3p 1 ; Qd 1 = 10 − 2 p 1 + p 2. Commodity 2: Qs 2 = −1 + 2p 2 ; Qd 2 = 15 + p 1 − p 2.
  3. Find det(A)

a) A =

2 m − 2 3 5 4

b) A =

Basis= Spanning set + LI

Dimension dim(V ) = number of vectors in a basis. Theorem :

  • M - spanning set ⇔ rank(M ) = dim(V )
  • M - basis ⇔ rank(M ) = dim(V ) = number of vectors of M.
  1. Coordinates

E is a basis of V.

α 1 α 2 ... αn

 = [x]E^ if^ x^ =^ α^1 e^1 +^ α^2 e^2 +^ ...^ +^ αnen.

In Rn:

  • [x]E = E−^1 [x], hay [x] = E[x]E
  • Let E and F be 2 bases: [x] = E[x]E = F [x]F ⇒ [x]F = F −^1 E.[x]E TE→F = F −^1 E - change of basis matrix from E to F.
  1. Subspace The span of a vector set U = span{e 1 , e 2 ...em} = {x ∈ V |x = α 1 e 1 + .. + αmem} (E = {e 1 , e 2 ...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)

Basis of null(A) is a set of n − r(A) independent solutions of the system.

0.3.2 Exercises

LI, LD

Are the following sets LI or LD:

  1. In R 3 given M = {(1, 2 − 1), (3, 1 , 4), (− 2 , 0 , 1), (1, 2 , 3)}
  2. In P 2 (x) given M = { 2 x^2 + 2x + 3, x − 4 , x + 1}
  3. In M 2 (R) given M = {

[

]

[

]

[

]

[

]

  1. Find m such that 2 x^2 + x + m, x^2 − 2 x − m, x + 1 is LI.
  2. 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 − 3 y, x + y}
  2. N = {x + y + z, x − y − z, 2 y − z}
  3. P = {x + y + 3z, 4 x − y + 2z, 2 x − 3 y − 4 z
  4. R = {x + y + 2z, x + y + z, 2 x, 4 y − z}

Spanning set, basis

  1. Is M = {(1, 2 − 1), (3, 1 , 4), (− 2 , 0 , 1), (1, 2 , 3)} a spanning set of R 3?
  2. Is M = {x^2 − 2 x + 3, x − 4 , 2 x + 1} a basis of P 2 (R)?
  3. In V given a spanning set {x, y, z}. Is M = {x + 2y, x − 3 y, x + y, x + 3y} a spanning set?
  4. In V given a basis {x, y, z}. Is M = {x+2y, x− 3 y, x+y +z, x+3y +z} a spanning set?
  5. Let {x, y, z} be a basis of V. Is M = {x + 2y, x + y − z, x + 3y + z} a basis of V?
  6. Let{x, y, z} be a spanning set of V. Is M = {x + 2y − z, x + 2y − z, x + 3y + z} a spanning set of V?
  7. Let {x, y, z} be a spanning set of V. Is M = {x + 2y − z, 2 x + 2y − 3 z, x − 2 z} a spanning set of V?
  8. Let {x, y, z} be a spanning set of V. Is M = {x, 2 y, 3 z} linearly independent?

Coordinates

  1. Let E = {(1, 2 − 1), (3, 1 , 4), (− 2 , 0 , 1)} be a basis of R 3.
    • Given x = (3, 4 , 5). Find [x]E
    • Given x = (a, b, c). Find [x]E
  2. Let E = {x^2 + 2x + 1, 2 x^2 − x − 2 , x + 3}, F = {x^2 − x + 2, x^2 − 1 , 2 x + 3} be 2 bases of P 2 [R]. Given that [x]E = (3, 1 , −4)T^ , find [x]F

Subspaces

  1. In R 3 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 R 3 given V = {x ∈ R 3 | 3 x 1 +5x 2 − 1 x 3 = 0}. Find one basis and the dimension of V.
  3. In R 3 given V = {x ∈ R 3 | 2 x 1 + 3x 2 − 4 x 3 = 0, x 1 − x 2 + 5x 3 = 0}. Find one basis and the dimension of V.
  4. In R 4 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.
  5. In R 4 given V = {x ∈ R 4 |x 1 + 2x 2 − x 3 + x 4 = 0, 2 x 1 − x 2 + 3x 3 + 2x 4 = 0, 4 x 1 + 3 x 2 + x 3 + 4x 4 = 0, x 1 − 3 x 2 + 4x 3 + x 4 = 0. Find one basis and the dimension of V.
  6. In R 3 given U =< (2, 3 , −4), (1, 3 , 2), (5, 12 , 2) >
    • Is x = (3, 4 , 5) in U?
    • Find m such that x = (1, 3 , m) is in U

0.4.2 Exercises

  1. Let (x, y) = x 1 y 1 − 2 x 1 y 2 − 2 x 2 y 1 + 5x 2 y 2 + 7x 3 y 3 be an inner product of R 3. Find:

a) ‖(3, − 2 , 1)‖ b) Find a unit vector u that is parallel to (3, − 2 , 1)

c) (− 1 , 1 ̂, 2), (2, 3 , 4), d((− 1 , 1 , 2), (2, 3 , 4)) d) u = (4, 1 , 2), v = (1, 3 , 4). Find the norm of 3 u − 2 v.

  1. In an inner product space V given 2 vectors x and y satisfying ‖x‖ = 2, ‖y‖ = 3 , x, ŷ = π 6. Find d(2x + 3y, x − 4 y)
  2. In R 4 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
  3. In R 3 with the dot product, given U =< (1, 2 , 3), (− 3 , 4 , 2), (1, 12 , 14) >. u = (4, 5 , 7)

a) Find one basis and the dimension of U ⊥ b) Find one orthonormal basis of U. c) Find the orthogonal projection of u onto U.

  1. In R 4 with the inner product (x, y) = 2x 1 y 1 + 3x 2 y 2 + x 3 y 3 + 4x 4 y 4 , given U =< (1, 3 , 2 , 1), (2, − 1 , 1 , 0) > v`a z = (3, 2 , 11 , 16). Find the orthogonal projection of z onto U.
  2. In R 3 with the inner product (x, y) = 3x 1 y 1 + 2x 2 y 2 + 4x 3 y 3 , given F = {x ∈ R 3 | 2 x 1 − 3 x 2 + x 3 = 0} and u = (2; 1; 1)

a) Find the orthogonal projection of u onto F. b) Find the distance from u to F.

  1. In R 3 with the inner product (x, y) = 4x 1 y 1 + 3x 2 y 2 − x 2 y 3 − x 3 y 2 + 3x 3 y 3 , given U =< (2, 1 − 3), (1, 1 , 3) > and z = (2, 3 , 4).

a) Find m such that (1, 2 , m) is in U b) Find one basis and the dimension of U ⊥. c) Find the orthogonal projection of z onto U ⊥.

  1. In R 4 with the dot product, given U =< (2, 1 , 3 , −1), (3, 2 , 1 , −2) >. Find the orthogonal projection of U ⊥
  2. In R 4 with the dot product, given U =< (1, 1 , 4 , −1), (3, 1 , 1 , −2) >.

a) Find one basis and the dimension of U ⊥ b) Find the orthogonal projection of z = (11, − 7 , 7 , 7) onto U ⊥ c) Find the orthogonal projection of w = (3, 2 , 11 , 16) onto U.

  1. In R 4 with the dot product, given U = {x ∈ R 4 |x 1 + x 2 − 2 x 3 + x 4 = 0, 2 x 1 + x 2 − 3 x 3 + x 4 = 0, 5 x 1 + 4x 2 − 9 x 3 + 4x 4 = 0}.

a) Find one basis and the dimension of U ⊥

b) Find one orthonormal basis of U.

  1. In R 4 with the inner product (x, y) = x 1 y 1 + 2x 1 y 2 + 2x 2 y 1 + 5x 2 y 2 + x 3 y 3 + 2x 4 y 4 , given U =< (1, 2 , 1 , 2), (− 3 , − 1 , 2 , −2), (1, − 3 , − 4 , −2) >.

a) Find one basis and the dimension of U ⊥ b) Find the orthogonal projection of z = (4, 2 , 3 , −1) onto U.

0.5 Linear transformation

0.5.1 Summary

  • Linear transformation : f : U → V : f (ax + by) = af (x) + bf (y)
  • Transformation matrix : Let f : Rm^ → Rn^ be a linear transformation. E is a basis of Rm, F is a basis of Rn. AEF - transformation matrix of f in the bases E, F :

AEF = F −^1 f (E), [f (x)]F = AEF [x]E

  • Transformation matrix in the standard bases : Let f : Rm^ → Rn^ be a linear transformation. A - Transformation matrix of f in the standard bases of Rm and Rn:

[f (x)] = A[x]

Let E = {e 1 , e 2 , ..., em} be a basis of Rm, f : Rm^ → Rn^ be a linear transformation. Given f (e 1 ), f (e 2 ), ...f (em).

A = f (E).E−^1

  • Transformation matrix of f : Rn^ → Rn^ in E:

AE = AEE = E−^1 f (E)

  • Kernel of the linear transformation : Kerf = {x ∈ U |f (x) = 0}
  • Image of the linear transformation : Imf = {y ∈ V |∃x ∈ U : y = f (x)}.

U = span{e 1 , e 2 ...em} ⇒ Imf = span{f (e 1 ), f (e 2 )...f (em)}

(f (E) is a spanning set of Imf )

How is this figure mapped if we use

a) Rotation transformation f 1 about the origin 0 counterclockwise by π 3 o. Find the dimension, one basis for Imf 1 , Kerf 1. b) Reflection transformation f 2 about the line y = 2x. Find the dimension, one basis for Imf 2 , Kerf 2. c) the rotation transformation f 1 followed by the reflection transformation f 2. Find the dimension, one basis for the kernel and image of this composite transformation.

  1. In R^3 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.
  2. In R^3 find the image f (x; y; z), where f is the projection transformation onto the plane x + 2y − 3 z = 0. Find Imf, Kerf.

0.6 Eigenvalues, eigenvectors, diagonalization

0.6.1 Summary

  • λ is one eigenvalue of a square matrix A ⇔ ∃x 6 = 0 : Ax = λx. The column vector x is an eigenvector of A

λ is an eigenvalue ofA ⇔ |A − λI| = 0

  • P (λ) = |A − λI|- characteristic polynomial. If A ∈ M 2 : P (λ) = λ^2 − trace(A)λ + det(A) If A ∈ M 3 : P (λ) = −λ^3 + trace(A)λ^2 − (A 11 + A 22 + A 33 )λ + det(A) Solve P (λ) = 0 we obtain the eigenvalues λ 1 , λ 2 ... where the algebraic multiplicity of λi is the multiplicity of the root in the equation.
  • The set of all eigenvectors x associated with λi: Ax = λix - solution of (A − λuI)x = 0 is called the eigenspace Eλi associated with λi. dim(Eλi ) is called the geometric multiplicity of λi.
  • A is called diagonalizable if A = P DP −^1 , where D-diagonal, P - invertible.

A is invertible ⇔ ∀λi : algebraic multiplicity = geometric multiplicity

If A is diagonalizable, then D = diag(λ 1 , λ 2 , ..., λn) and P = [e 1 , e 2 ..., en]: the corresponding eigenvectors.

  • Properties Let λ be one eigenvalue of A with the corresponding eigenvectorx. 1. An^ one eigenvalue λn^ with the corresponding eigenvector x. 2. If Bm^ = A, m is odd, then B has one eigenvalue m

λ with the corresponding eigenvector x.

  1. If A is invertible then A−^1 has one eigenvalue (^) λ^1 with the corresponding eigenvector x.

If A is diagonalizable A = P DP −^1 then:

  1. Am^ = P DmP −^1 , where Dm^ = diag(λm 1 , λm 2 , ...λmn )
  2. Bm^ = A, (m is odd) then B = P D 1 P −^1 , where D 1 = diag( m

λ 1 , m

λ 2 , ..., m

λn)

0.6.2 Exercises

  1. Given A =

2 2 m 1 3 2 m 2 4 1

a) Find m such that x = (2, − 1 , −1) is an eigenvector of A. b) Find m such that λ = 1 is an eigenvalue of A. c) With m found in b), diagonalize A.

  1. Diagonalize A =
  1. Diagonalize A =

. Find B: B^3 = A

  1. Find B such that B^5 = A =
  1. Given A =

. Find A^2016

  1. Given A =

. Find A^6102

  1. (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.
  2. ( Leslie model) A population of rabbits raised in a research laboratory has the characteristics listed below. (a) Half of the rabbits survive their first year. Of those, half survive their second year. The maximum life span is 3 years. (b) During the first year, the rabbits produce no offspring. The average number of offspring is 6 during the second year and 8 during the third year. The laboratory population now consists of 24 rabbits in the first age class, 24 in the second, and 20 in the third. Find the stable age distribution vector.

- Orthogonally diagonalization

A = P DP −^1 = P DP T

where P - orthogonal matrix. With the quadratic form f (X), using Y = P −^1 X = P T^ X (or X = P Y ) we have: f = XT^ AX = XT^ .P DP T^ .X = (P T^ X)T^ .D.(P T^ X) = Y T^ DY - canonical form.

To orthogonally diagonalization:

  • Find the eigenvalues λ 1 , λ 2 ..., the corresponding eigenspaces Eλ 1 , Eλ 2 ...
  • Find the orthogonal basis for each (Gram-Schmidt): f 1 , f 2 , ..., fn.
  • Normalize: ei = (^) ‖ffii‖.
  • The columns of P are the orthonormal eigenvectors:

P = [e 1 , e 2 , ..., en], D = diag(λ 1 , λ 2 ...λn).

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)

  1. f = x^21 + x^22 + x^23 + 14x 1 x 2 + 14x 1 x 3 + 14x 2 x 3
  2. f = x^21 + 3x^22 − 3 x^23 + 4x 1 x 2 + 2x 1 x 3 + 8x 2 x 3
  3. f = 3x^21 + 3x^22 + 3x^23 − 2 x 1 x 2 − 2 x 1 x 3 − 2 x 2 x 3
  4. f = x^21 + x^22 + x^23 + 4x 1 x 2 + 4x 1 x 3 + 4x 2 x 3
  5. f = 3x^21 + 5x^22 + 3x^23 − 2 x 1 x 2 + 2x 1 x 3 − 2 x 2 x 3