The third midterm
Practice problems with solutions
Computations with matrices
a. Matrix products: Homework 5, problem 4 & problem 5
b. Consider the following matrices:
A=(1230−11),B=(33)
Compute each of the following matrix expressions, if they are defined:
- AB, BA, AA⊤, A⊤A
ABBAAA⊤A⊤A can’t multiply 2×3 and 1×2=(990)=(11115)=⎝⎜⎛53139−31−32⎠⎟⎞
- BB⊤, B⊤B
BB⊤=(18),B⊤B=(9999)
- A2 is not defined because A is not square
- (AA⊤)2=(122161626)
- A⊤B⊤BA=(8181081810000)
- AA⊤+BB⊤ is undefined because AA⊤ and BB⊤ do not have the same size
- AA⊤+B⊤B=(20101014)
Compute the matrix of T:V→V with respect to a given basis of V
a. V=P4(R), the standard basis {1,x,x2,x3,x4}, Tf(x)=f′′(x)−xf′(x)
T(1)T(x)T(x2)T(x3)T(x4)=0=−x=2−2x2=6x−3x3=12x2−4x4⎭⎪⎪⎪⎪⎪⎪⎪⎬⎪⎪⎪⎪⎪⎪⎪⎫⟹[T]1,x,x2,x3,x4=⎝⎜⎜⎜⎜⎜⎛000000−100020−200060−3000120−4⎠⎟⎟⎟⎟⎟⎞
b. V=R2 and T:R2→R2 is given by T(x1,x2)=(2x1,x2).
- Find the matrix of T with respect to the standard basis {e1,e2} of R2
Te1=2e1Te2=e2}⟹[T]e1,e2=(2001)
- Find the matrix of T with respect to the basis {u,v} where u=(21), v=(12).
Compute Tu,Tv:
Tu=(22)=au+bv,Tv=(14)=cu+dv
Solve for a,b,c,d:
au+bv=(2a+ba+2b)=(22)⟹a=b=32cu+dv=(2c+dc+2d)=(14)⟹c=−32,d=37⎭⎪⎪⎪⎪⎬⎪⎪⎪⎪⎫⟹[T]u,v=(2/32/3−2/37/3)
c. V is the vector space
V={(x1,x2,x3)∈R3∣x1+x2+x3=0},
with basis {u,v} where
u=(1−10), v=(01−1),
and T:V→V is the linear transformation
T(x1,x2,x3)=(x3,x1,x2).
The vector space V is a linear subspace of R3. It contains the two vectors u,v and we are given they form a basis for V, so V is two dimensional: V is a plane.
Compute Tu and Tv and write them as linear combinations of u and v.
Tu=(01−1)=v,Tv=(−101)=−u−v⟹[T]u,v=(01−1−1)
Compute some determinants
a. From the book, page 237,Problem 4
b. For which value of a∈R is
(1a1a11111)
invertible?
Fact: a matrix is invertible if and only if its determinant is not zero.
We compute (subtract the 1st column from the 2nd and 3rd columns)
∣∣∣∣∣∣∣1a1a11111∣∣∣∣∣∣∣=∣∣∣∣∣∣∣1a1a−11−a001−a0∣∣∣∣∣∣∣=−(a−1)2.
So the matrix is always invertible, except when a=1.
c. Subtract the first column from each of the other columns:
∣∣∣∣∣∣∣∣∣∣∣11111123451357914710131591317∣∣∣∣∣∣∣∣∣∣∣=∣∣∣∣∣∣∣∣∣∣∣1111101234024680369120491216∣∣∣∣∣∣∣∣∣∣∣=0.
The last determinant is zero because the third column is twice the second column.
d. Let A=(12−52001−13), and let B=A−1. Compute the cofactor matrix of A. Then use the cofactor formula to compute b11, b12, and b13.
e. Let A=(12−52001−13). Use row reduction (or “Gaussian elimination”) to compute A−1.
f. For which values of t∈R are the vectors
u=⎝⎜⎛12t⎠⎟⎞,v=⎝⎜⎛21t⎠⎟⎞,w=⎝⎜⎛1t0⎠⎟⎞
a basis of R3?
Answer. {u,v,w} is a basis if and only if
0=det(u,v,w)=∣∣∣∣∣∣∣12t21t1t0∣∣∣∣∣∣∣=∣∣∣∣∣∣∣12t1−101t0∣∣∣∣∣∣∣=t∣∣∣∣∣1−11t∣∣∣∣∣=t(t+1)
So {u,v,w} is a basis if and only if t=0 and t=−1.
True/False?
-
For any k×ℓ matrix A, the matrix product AA⊤ is always defined, no matter what k and ℓ are. True: the sizes match.
-
If A=(1230−11), then det(AA⊤)=det(A)det(A⊤) A is not a square matrix so its determinant is not defined: False!
-
If A is a square matrix then det(A⊤A)≥0 det(A⊤A)=det(A⊤)det(A)=det(A)det(A)=(detA)2≥, so True.
-
If A is a square matrix with A=−A⊤, then detA⊤=detA.
For an n×n matrix A one always has det(cA)=cndetA. Therefore det(−A)=(−1)ndet(A). If A⊤=−A then we have det(A)=det(A⊤)=(−1)ndetA.
If n is even then this just says det(A⊤)=det(A) so the statement is true.
If n is odd then we get det(A)=−det(A) so det(A)=0. Thus S\det(A^\top)=\det(A)$ because both are zero.
-
If A is a 3×3 square matrix with A⊤=−A then detA=0 True; see the previous question with n=3.
-
If A is a square matrix with A2=O then A=O. Example: A=(0010). This matrix satisfies A2=O.
-
If A is an n×n matrix and if there is a nonzero vector x∈Fn with Ax=0 then detA=0.True. If Ax=0 and x=0 then x∈N(A) so N(A)={0}. Hence A is not injective, and hence detA=0.
-
If A is a square matrix with A2=O then detA=0. True. If A2=O then det(A)2=det(A)det(A)=det(A⋅A)=det(A2)=det(O)=0. Therefore det(A)=0.
-
From the book: §4.4, page 236, problem 1—if a T/F question claims some equation, and you think it is wrong, say how the equation can be fixed.