Professional Documents
Culture Documents
2. The following matrices are the augmented matrices of systems of linear equatioins in variables
x1 , x2 , . . .. Write down the corresponding systems explicitly and solve them.
(a) (c)
1 0 0 5
1 6 0 0 4 −2
0 0 1 0 3 1
0 1 0 −2
0 0 0 1 5 2
0 0 1 4
0 0 0 0 0 0
(b) (d)
1 0 0 4 −1 1 2 0 3 0 7
0 1 0 2 6 0 0 1 0 0 1
0 0 1 3 2 0 0 0 0 1 2
3. Solve the following linear systems using Gaussian or Gauss-Jordan (back-substitution) elimina-
tion. Write clearly all elementary row operations you used.
(a) (d)
x + y + 2z = 0 x − 2y + z − 4t = 1
2x + 4y − 3z = 1 x + 3y + 7z + 2t = 2
3x + 6y − 5z = 0. x − 12y − 11z − 16t = 5.
(e)
(b)
2I1 − I2 + 3I3 + 4I4 = 9
2x + 2y + 2z = 0
I1 − 2I3 + 7I4 = 11
−2x + 5y + 2z = 1
3I1 − 3I2 + I3 + 5I4 = 8
8x + y + 4z = −1.
2I1 + I2 + 4I3 + 4I4 = 10.
(c) (f)
x + 2y − t + w = 1 2u − v =0
3y + z − w = 2 −u + 2v − w =0
z + 7t = 1. − v + 2w − z = 0
− w + 2z= 5.
1
4. For which values of a will the following system have no solutions? Exactly one solution? In-
finitely many solutions?
x + 2y − 3z = 4
3x − y + 5z = 2
4x + y + ( a2 − 14)z = a + 2.
Operations on matrices
Recall:
1) Some special matrices: Identity matrices, zero matrices, symmetric matrices,...
2. Let
3 0 1 5 2 6 1 3
4 −1 1 4 2
A = −1 2 , B = ,C = , D = −1 0 1 , E = −1 1 2 .
0 2 3 1 5
1 1 3 2 4 4 1 3
3. Write down the 2 by 2 matrices A and B that have entries aij = i + j and bij = (−1)i+ j . Multiply
them to find AB and BA. Is the product of A and B commutative?
4. True or false? Give a specific counterexample when false.
(a) If columns 1 and 3 of B are the same, so are columns 1 and 3 of AB.
(b) If rows 1 and 3 of B are the same, so are rows 1 and 3 of AB.
(c) If rows 1 and 3 of A are the same, so are rows 1 and 3 of AB.
(d) ( AB)2 = A2 B2 .
5. Which of the following matrices are guaranteed to equal ( A + B)2
2
(a) A2 + 2AB + B2 (c) ( A + B)( B + A)
(b) A( A + B) + B( A + B) (d) A2 + AB + BA + B2
(a)
x1 − 3x2 + 5x3 = 7
9x1 − x2 + x3 = −1
x1 + 5x2 + 4x3 = 0
(b)
x1 − 3x3 + x4 =7
5x1 + x2 − 8x4 =3
2x1 − 5x2 + 9x3 − x4 =0
3x2 − x3 + 7x4 = 2
3
Triangular factors and row exchanges
Recall: Reduce solving Ax to solving two triangular systems Lc = b and Ux = c, where A = LU and L
is a lower triangular matrix, and U is a upper triangular matrix.
1. Given the triangular factorization of A
1 1 1 1 0 0 1 1 1
A = 1 2 2 = 1 1 0 · 0 1 1 = LU
1 2 3 1 1 1 0 0 1
Inverses of matrices
Recall:
1) Equivalent definitions: A is invertible if one the following equivalent conditions holds.
Exercises:
1. Show that if A and B are invertible matrices then
(a) A T is invertible and ( A T )−1 = ( A−1 ) T
(b) AB are invertible and ( AB)−1 = B−1 A−1 .
2. Use the Gauss-Jordan method to invert the following matrices then solve the equations Ax = b
for b = (−1, 2, 7).
1 0 0 2 −1 0 1 1 1
A1 = 1 1 1 , A2 = −1 2 −1 , A3 = 1 2 2 ,
0 0 1 0 −1 2 1 2 3
4
(d) (e) (f)
√ √ 1 1 −2
0 0 1 √2 3√ 2 0 5 5 5
A4 = 0 1 1 , A5 = −4 2 2 0 , A6 = 1 1 1
5 5 10
1 1 1 0 0 1 1 −4 1
5 5 10
6. For which three numbers c is this matrix not invertible, and why not?
2 c c
A = c c c
8 7 c
5
2 Vector spaces
Vector spaces and subspaces
1. By checking the vector space axioms, determine which sets together with the two operations
(scalar and addition) defined respectively are vector spaces:
(a) The set of all triples of real numbers ( x, y, z) with the following operations ( x, y, z) + ( x 0 , y0 , z0 ) =
( x + x 0 , y + y0 , z + z0 ) and k · ( x, y, z) = (kx, y, z);
(b) The set of all triples of real numbers ( x, y, z) with the following operations ( x, y, z) + ( x 0 , y0 , z0 ) =
( x + x 0 , y + y0 , z + z0 ) and k · ( x, y, z) = (0, 0, 0);
(c) The set of all triples of real numbers ( x, y, z) with the following operations ( x1 , y1 , z1 ) +
( x2 , y2 , z2 ) = ( x1 + x2 + 1, y1 + y2 + 1, z1 + z2 + 1) and k · ( x, y, z) = (kx, ky, kz);
(d) The set of all pairs of real numbers ( x, y) with the following operations ( x, y) + ( x 0 , y0 ) =
( x + x 0 , y + y0 ) and k · ( x, y) = (2kx, 2ky);
(e) The set of all pairs of real numbers of the form ( x, y) where x ≥ 0, with the standard opera-
tions on R2 ;
(f) All 2 by 2 matrices with the matrix addition and scalar multiplication;
(g) The set of singular 2 by 2 matrices with the matrix addition and scalar multiplication;
(h) The set of non-singular 2 by 2 matrices with the matrix addition and scalar multiplication;
(i) All non-singular matrices 2 by 2 with the matrix scalar multiplication and the addition is the
matrix multiplication.
a 1
(j) The set of all 2 by 2 matrices of the form with the matrix addition and scalar multi-
1 b
plications;
a 0
(k) The set of all 2 by 2 matrices of the form with the matrix addition and scalar multi-
0 b
plications;
(l) All one variable polynomials of degree 2 with the scalar multiplication and addition are the
scalar multiplication and additions in polynomials.
6
4. Which of the following descriptions are correct? The solutions x of
x
1 1 1 1
0
Ax = x2 =
1 0 2 0
x3
form
5. Denote by M the vector space of 2 by 2 matrices with matrix addition and scalar multiplication.
1 0 0 0
(a) Describe a subspace of M that contains A = but not B = ;
0 0 0 −1
(b) If a subspace of M contains A and B, must it contain I?
(c) Describe a subspace of M that contains no nonzero diagonal matrices?
6. Describe the smallest subspace of the 2 by 2 matrix space M that contains
1 0 0 1 1 −1
(a) and ; (c) ;
0 0 0 0 1 0
1 0 0 −1 1 2 0 −1 −1 0
(b) and ; (d) , , .
0 0 1 0 0 0 0 2 0 1
7. Describe the column space and the null space of the matrices
1 −1 0 0 3 0 0 0
A = , B = and C = ,
0 0 1 2 3 0 0 0
1 1 −2 −4 6 1
1 1 −2 −1 4 1
D= 1 1 −2 , E = 5 6 7 .
1 1 −2 4 7 1
8. For which vectors (b1 , b2 , b3 ) do these systems have a solution?
1 2 4 x1 b1
(a) 0 3 6 x2 = b2
0 0 0 x3 b3
1 4 2 x1 b1
(b) 2 8 4 x2 = b2 .
−1 −4 −2 x3 b3
1 4 b1
x
(c) 2 9 1 = b2
x2
−1 −4 b3
Solving Ax = 0 and Ax = b
1. Reduce the following matrices to echelon form U and then the reduced row echelon form R.
Find their ranks. Which variable are free? Describe their column
spaces and nullspaces. Solve
1
the complete solution by finding a particular solution of Ax = 0 for each given matrix A.
3
7
1 2 0 1 1 3 −2 2
(a) 0 1 1 0; (c) −1 −2 −1 −1 ;
1 2 0 0 −1 −5 8 −3
1 2 3 1 2 1 2
(b) 4 5 6 . (d) 1 1 4 0 .
7 8 9 −1 −1 −4 1
3. If Ax = b has two distinct solutions x1 and x2 , find two solutions to Ax = 0. Then find another
solution to Ax = b.
4. Suppose that you know x p (free variables of equation Ax = 0) and all special solutions for Ax =
b. Find x p and all special solutions for these systems:
x A b
Ax = 2b, A A = b, x = .
x A b
8
(e) R3 is spanned by the columns of a 3 by 5 echelon matrix with 2 pivots?
(f) All vectors with positive components forms a spanning system for R3 .
4. Let w1 , w2 , w3 be linearly independent vectors. Are the following vectors independent or depen-
dent? If they are dependent, find a their non-zero linear combination that gives zero. Does the
claims hold if the given vectors w1 , w2 , w3 are dependent.
(a) v1 = w1 − w2 , v2 = w2 − w3 , v3 = w3 − w1 ;
(b) v1 = w1 + w2 , v2 = w2 + w3 , v3 = w3 + w1 .
5. Decide whether or not the following vectors are linearly independent, by solving the equation
c1 v1 + c2 v2 + c3 v3 + c4 v4 = 0, where
1 1 0 0
1 0 0 1
v1 = 0 ,
v2 =
1 ,
v3 =
1 ,
v4 =
0 .
0 0 1 1
Then decide also if they span R4 . If it not, find the largest number of independent vectors among
them and find the dimension of the subspace spanned by these vectors.
6. To decide whether b is in the subspace spanned by w1 , w2 , . . . , wm , let A be matrix having column
vectors w and try to solve the equation Ax = b. What is the result for
(a) w1 = (1, 1, 0), w2 = (2, 2, 1), w3 = (0, 0, 2), b = (3, 4, 5);
(b) w1 = (1, 2, 0), w2 = (2, 5, 0), w3 = (0, 0, 2), w4 = (0, 0, 0) and any b?
9
(a)
0 1 4 0 0 1 4 0
A= U=
0 2 8 0 0 0 0 0
(b)
1 2 0 1 1 2 0 1
A = 0 1 1 0 U = 0 1 1 0
1 2 0 1 0 0 0 0
3. Why is there is no matrix whose row space and null space both contain (1, 1, 1).
4. Find a left-inverse and/or a right-inverse (when they exist) for
1 0
1 1 0 a b
A= M = 1 1 T= .
0 1 1 0 a
0 1
5. Let A be m by n matrix such that all columns of A are linearly independent. What is its rank, the
dimension of the four subspaces of A
6. (a) If a 7 by 9 matrix has rank 5, what are the dimension of the four subspaces? What is the sum
of all four dimensions?
(b) If a 3 by 4 matrix has rank 3, what are its column space and left nullspace?
7. Construct a matrix with the required property, or explain why you can’t.
(a) Column space contains (1, 1, 0) and (0, 0, 1), row space contains (1, 2) and 2, 5.
(b) Column space has basis (1, 2, 3), null space has basis (3, 2, 1).
(c) Dimension of null space = 1 + dimension of left null space.
(d) Left null space contains (1, 3), row space contains (3, 1).
(e) Row space = Column space, null-space 6= left null space.
8. Suppose the 3 by 3 matrix A is invertible. Write the bases for the four subspaces for A and also
for the 3 by 6 matrix B = [ A A].
Linear Transformations
Recall: Let T be a map from Rn to Rn . T is linear transformation if T satisfies three properties:
i) T (0) = 0;
ii) T ( x + y) = T ( x ) + T (y) for any x, y ∈ Rn ;
iii) T (cx ) = cT ( x ).
Exercises:
1. Which of these transformations is not linear? The input is v = (v1 , v2 ). Find its matrix with
respect to the standard basis (1, 0) and (0, 1)?
2. Suppose a linear T transforms (1, 1) to (2, 2) and (2, 0) to (0, 0). Find T (v) when
10
(a) v = (2, 2) (b) v = (3, 1) (c) v = (−1, 1) (d) v = ( a, b).
For the linear transformation of ”transposing”, find its matrix A with respect to this matrix. Why
is A2 = I?
Reviews
Goal: Understand the equation Ax = b: the existence of solutions, the space of solutions (or nullspace)
in case it has infinite solutions (find the dimension, the basis of the solution space); For which b the
equation has a solution, the space of the vectors b such that Ax = b (or the column space) has at least
one solution. Find solutions of a linear equation, the inverse matrix, the dimension, the basis...
1. Find the basis and dimension for the following subspaces of R4 :
(a) The vectors for which x1 = 2x4 ;
(b) The vectors for which x1 + x2 + x3 = 0 and x3 + x4 = 0;
(c) The subspace spanned by (1, 1, 1, 1), (1, 2, 3, 4), (2, 3, 4, 5);
2. What is the echelon form U of A? Find the dimensions of its four fundamental subspaces?
1 2 0 2 1
−1 −2 1 1 0 .
1 2 −3 −7 −2
3. (a) Ax = b has a solution under what conditions on b, for the following A and b:
1 2 0 3 b1
A = 0 0 0 0 b = b2 .
2 4 0 1 b3
11
(e) Find the general solution to Ax = b, when a solution exists;
2 −1 0
4. Find the inverse of the matrix A = −1 2 −1. Then solve the equation Ax = (0, 1, 2).
0 −1 2
5. Write down the matrix representation of the following linear maps relative to the natural bases
of Rn :
(a) T : R4 → R2 given by T ( x1 , x2 , x3 , x4 ) = ( x2 , x3 );
(b) T : R4 → R3 given by T ( x1 , x2 , x3 , x4 ) = ( x1 + x2 − x3 , 0, 3x4 );
(c) T : Rn → Rn given by T ( x ) = 3x;
3 Orthogonality
Orthogonal vectors and subspaces
1. Which pairs are orthogonal among the vectors v1 , v2 , v3 , v4 , where v1 = (1, −1, −1, 1), v2 =
(0, 3, 2, 6), v3 = (−1, 2, 3, 6), v4 = (−2, 2, 0, −1).
2. Find a vector x orthogonal to the row space, a vector y orthogonal to the column space and a
vector z orthogonal to the null-space of each of the following matrices:
2 −2 1
1 2 1 1 2 3 −1 −3 1 −1
A = 2 4 3 , B = 3 5 8 −2 , C = 5
,
4 1
3 6 4 1 1 2 0
1 0 0
3. Find the orthogonal complement of the plane spanned by the set of vectors:
Split x = (3, 3, 3) into a row space component xr and a null space component xn .
Gram-Schmidt
1. Which of the following sets of vectors are orthogonal/orthonormal?
(a) ( √1 , 0, √1 ), ( √1 , √1 , − √1 ), (− √1 , 0, √1 )
2 2 3 3 3 2 2
1 1
(b) (1, 0, 0), (0, √ , √ ), (0, 0, 1).
2 2
(c) ( 3 , − 3 , 3 ), ( 3 , 3 , − 32 ), ( 13 , 23 , 23 ).
2 2 1 2 1
(d) ( √1 , √1 , − √2 ), ( √1 , − √1 , 0).
6 6 6 2 2
2. Using Gram-Schmidt process to transform the following bases into orthonormal ones:
12
(a) u1 = (1, 1, 1), u2 = (−1, 1, 0), u3 = (1, 2, 1); Find the coordinate vector of (1, −1, 2) with
respect to that basis;
(b) u1 = (1, 0, 0), u2 = (3, 7, −2), u3 = (0, 4, 1); Find the coordinate vector of (1, −1, 2) with
respect to that basis;
(c) u1 = (0, 2, 1, 0), u2 = (1, −1, 0, 0), u3 = (1, 2, 0, −1), u4 = (1, 0, 0, 1); Find the coordinate
vector of (1, 1, 1, 1) with respect to that basis.
3. Find a basis of the subspace spanned by v1 = (1, −1, 0, 0), v2 = (0, 1, −1, 0), v3 = (0, 0, 1, −1).
Then, using the Gram-Schmidt to find an orthonormal basis of that subspace.
4. Find a basis for the solution space N of the equation x1 + x2 + x3 − 2x4 = 0. Using the Gram-
Schmidt to normalize that basis. Find an orthonormal basis for the orthogonal complement of
N.
5. Which of the following are orthogonal:
" 1
− √1
− √1 √1 √1
#
√
(a) 2 2 2 6 3
1 √ 1 √
−2
√ √1
2 2 (c) 0
6 3
√1 √1 √1
2 6 3
1 1 1 1
√1
2 2 2 2
0 1 1 − 56 1 1
2 2 6 6
(b) 1 0 0 (d) 1 1 1
− 56
2 6 6
0 0 √1 1 1
2 2 6 − 56 1
6
4 Determinants
a b c
1. Let A = d e f . Assume that det( A) = 7, find
g h i
(a) det(3A); (d) det At ; a g d
(b) det(2A−1 ); (f) b h e .
c i f
(c) det((2A)−1 ); (e) det A2 ;
1 k k2
−3 0 7
3 3 1
(a) 2 5 1 (b) 1 0 −4 (c) 1 k k2
−1 0 5 1 −3 5 1 k k2
13
a2
k+1 k−1 7
1 a 1 0 0 1
(d) 2 k − 3 4 (f) 1 b b2 0 1 1 1
(g)
5 k+1 k 1 c c2 1 1 0 1
3 3 0 5
1 0 0 1
2 2 0 −2
(e)
4 1 −3 0
2 10 3 2
1 3 2 2
14
0 1 0 −1 1 −4
(d) A = 6 3 2, v1 = 2 , v2 = 0 , v3 = 0 .
3 0 1 0 −3 1
2. For each of following matrices, find their
i) characteristic polynomials;
ii) eigenvalues;
iii) eigenvectors corresponding to each of eigenvalue;
iv) bases for eigenspaces corresponding to each of eigenvalue.
1 0 4 0 1 0 1 1
(a) A = ;
0 1 (c) C = −1 −6 −2; (e) E = 1 0 1;
5 0 0 1 1 0
6 3 −8 4 0 −1
0 −1 (d) D = 0 −2 0 ; (f) F = 0 3 0 .
(b) B = ;
4 0 1 0 −3 1 0 2
3. If we shift A to A − 7I, what are the eigenvalues and eigenvectors and how are they related to
those of A?
1 4
4. Let A = . Find the eigenvalues and the corresponding eigenvectors of the matrices A, A +
2 3
I, A2 , A−1 , A−1 + A2 , A2015 .
1 −1
5. Find the eigenvalues and eigenvectors of the matrix . Verify that the trace equals the
2 4
sum of the eigenvalues, and the determinant equals their product.
6. Find the eigenvalues and corresponding eigenvectors of
3 4 2 0 0 2
A = 0 1 2 B = 0 2 0 .
0 0 0 2 0 0
15
4 −1 0 1 2 3
(a) A = (b) A = (c) A =
2 1 −1 0 0 2
16