(1) Warmup: this should perhaps be second nature by now:
(A) If r=m=n, (square), Ax=b has ________ solution(s).
(B) If m>r=n, (tall skinny, full column rank), Ax=b has _____ or ______ solution(s)
(C) If m=r<n, (short wide,full row rank), Ax=b has ____________ solution(s).
(D) If r<m,r<n, Ax=b has ________ or ____________ solutions.
(2) Warmup: A matrix is m x n what are the possible dimensions?
(A) dim(col(A))?
(B) dim(row(A))+dim(null(A))?
(C) the sum of the dimensions of the four fundamental subspaces?
(D) dim(col(A)) + dim(row(A))?
(3) Consider the vector space Poly4 of polynomials of the form $P(x)=a+bx+cx^2+dx^3+ex^4$.
The operator $d/dx$ takes $P(x)$ to $P'(x)$.
(A) What kinds of functions should
we say live in the nullspace of $d/dx$?
(B) What kinds of functions are in the analog
of the column space? (If the column space is {Av} for column vectors, then perhaps it should
be {P' for P in Poly4}.)
(C) What should we call the rank of $d/dx$ acting on Poly4?
(D)
If P(x) is in the "column space", what is the analog of the solution to Ax=b?
(E) are there 0,1, or infinitely
many solutions?
(4) This is GS p. 179 problem 39 with hints. (no need to see the original)
Suppose A is 5 by 4 with rank 4.
(A) The columns of A are necessarily/possibly/never independent? (circle the best answer)
(B) The columns of A necessarily/possibly/never for a basis for $R^5$
(C) Suppose there is a vector $b$ which makes $[A \ b]$ an invertible square matrix. Then the
columns of $[A \ b]$ are necessarily/possibly/never independent?
(D) Under the assumption in (C), $Ax=b$ can not be solved. Why not?
(E) What is the possible rank of $[A \ b]$ if $[A \ b]$ is not invertible? Why?
(F) Show that if $[A \ b]$ is singular (not invertible) that Ax=b must be solvable.
(5) This is exactly GS p. 191 problem 17. This problem is completely doable by eyeballing and pencil and paper, but you may use Julia if you like.
Describe the four subspace of $R^3$ associated with
# (5A)
A = [ 0 1 0;0 0 1;0 0 0]
3×3 Array{Int64,2}: 0 1 0 0 0 1 0 0 0
# and (5B)
I + A
3×3 Array{Int64,2}: 1 1 0 0 1 1 0 0 1
(6) Suppose we have $A=[u \ w][v \ x]^T$ without any assumptions whatsoever on the vectors u,v,w,x other than is required by block notation.
(A) What are the possible ranks of $A$ assuming $A$ is $m \times n$?
(B) Under what conditions is the rank of $A$ 0?
(C) Under what conditions is the rank of $A$ 1?
(7) Write the unique matrices $U_1$ and $U_{-1}$ that makes these equalities: (the row vector contain functions of x)
(A) $[1 \ \ (x+1) \ \ (x+1)^2 \ \ (x+1)^3 \ \ (x+1)^4] \ = \ [1 \ \ x \ \ x^2 \ \ x^3 \ \ x^4] \ U_{1}$
(B) $[1 \ \ (x-1) \ \ (x-1)^2 \ \ (x-1)^3 \ \ (x-1)^4] \ = \ [1 \ \ x \ \ x^2 \ \ x^3 \ \ x^4] \ U_{-1}$
(C) Suppose $p(x)$ is a polynomial of degree at most 4 written as $a+bx+cx^2+dx^3+ex^4$ the polynomial whose coefficients are represented by $$U_1 \begin{pmatrix} a \\ b \\ c \\ d \\ e \end{pmatrix}$$ is (choose one)
a) $p(2x)$ b) $p(x+1)$ c)$p(x-1)$ d)$p(x^2)$
(D) argue without any calculation or mention of the entries of $U_1$ and $U_{-1}$ that $U_1$ and $U_{-1}$ must be inverses of each other. (Remark: Isn't that cool that you can understand an inverse rather than compute it? ) \br
(E) What is the polynomial obtained by applying $U_1^3$ to a vector of coefficients? (no computation please, just brain power)
a) $p(x+3)$ b) $p(x-3)$ c) $p(x)^3$ d)$p(x^3)$
(8) (Exact Copy of Strang p.178 problem 29) What subspace of 3x3 matrices is spanned (take all combinations) by
(A) The invertible matrices?
(B) The rank one matrices?
(C) The identity matrix?
(9) (A) Are the six three by three permutation matrices linearly dependent or linearly independent?
(B) Do they span the nine dimensional space of 3x3 matrices or a subspace (if so, what dimension?)
You can do this with pencil and paper or optionally if you like code you can use the Julia code to help you:
(explanations of all the syntax are provided) (C) Describe the subspace of 3x3 matrices spanned by the permutation matrices.
Note: learning Julia is not required for this course. You can optionally ignore the Julia for this problem, execute the Julia without understanding it, or try to understand the syntax. Your choice depending on your interests and background. The minimial time solution may be the second choice for many of you (look at the output without trying to fully understand the syntax. The maximal time: do it by hand, and learn julia syntax, would be the maximal education opportunity.)
# The following code displays the permutation matrices for your convenience
Permutations = [[1,2,3],[1,3,2],[2,1,3],[2,3,1],[3,1,2],[3,2,1]] # all permutations of 1:3 in 6 vector of 3 vectors
Identity = [1 0 0;0 1 0;0 0 1] # 3x3 identity matrix
PermutationMatrices = [Identity[p,:] for p in Permutations] # 6 vector of PermutationMatrices
display.(PermutationMatrices); # Apply the display function elementwise just to see the Permutation Matrices
3×3 Array{Int64,2}: 1 0 0 0 1 0 0 0 1
3×3 Array{Int64,2}: 1 0 0 0 0 1 0 1 0
3×3 Array{Int64,2}: 0 1 0 1 0 0 0 0 1
3×3 Array{Int64,2}: 0 1 0 0 0 1 1 0 0
3×3 Array{Int64,2}: 0 0 1 1 0 0 0 1 0
3×3 Array{Int64,2}: 0 0 1 0 1 0 1 0 0
# Compute a 9x6 matrix of squashed permutation matrices
#vec flattens a 3x3 matrix to a 9 vector and hcat stores this in a matrix. The three dots are called splat, and collect the arguments.
A = hcat(vec.(PermutationMatrices)...)
9×6 Array{Int64,2}: 1 1 0 0 0 0 0 0 1 0 1 0 0 0 0 1 0 1 0 0 1 1 0 0 1 0 0 0 0 1 0 1 0 0 1 0 0 0 0 0 1 1 0 1 0 1 0 0 1 0 1 0 0 0
# Compute the rank of the above 9x6 matrix
using LinearAlgebra
rank(A)
5
# Compute the full SVD, to identify the nullspace vector
U,s,V = svd(A,full=true)
V
6×6 Adjoint{Float64,Array{Float64,2}}: -0.408248 5.42288e-17 0.816497 -0.0 0.0 -0.408248 -0.408248 0.70636 -3.20494e-17 0.0638053 0.404538 0.408248 -0.408248 -0.270989 1.60247e-16 0.62547 -0.449465 0.408248 -0.408248 -0.345017 -0.408248 0.254573 0.562278 -0.408248 -0.408248 0.345017 -0.408248 -0.254573 -0.562278 -0.408248 -0.408248 -0.435371 1.60247e-16 -0.689276 0.0449263 0.408248
(10) Suppose y₁(x),y₂(x),y₃(x),y₄(x) are four non-zero polynomials of degree at most 2. (This means the functions have the form ax²+bx+c, where at least one of the coefficients is nonzero.) What possibilities are there in the dimension of the vector space spanned by y₁(x),y₂(x),y₃(x),y₄(x)? Give examples for each possibility and explain briefly why no other dimension can happen.
U
9×9 Array{Float64,2}: -0.333333 0.407817 0.471405 … 0.316793 -0.19664 -0.100651 -0.333333 0.0427396 -0.235702 -0.234431 -0.0898219 -0.584161 -0.333333 -0.450557 -0.235702 -0.292684 -0.564301 0.0775894 -0.333333 -0.355651 -0.235702 0.198654 0.439449 0.339693 -0.333333 -0.251361 0.471405 -0.352571 0.546267 -0.143816 -0.333333 0.607013 -0.235702 … -0.410823 0.0717885 0.517934 -0.333333 -0.0521659 -0.235702 0.645255 0.0180334 0.0662264 -0.333333 0.208622 -0.235702 0.0940301 0.124851 -0.417283 -0.333333 -0.156456 0.471405 0.0357774 -0.349627 0.244467
sum(PermutationMatrices.*[1, 1, 10, 0, 30, 0] )
3×3 Array{Int64,2}: 2 10 30 40 1 1 0 31 11
([1 2 3 4 5 6] * PermutationMatrices)[1]
3×3 Array{Int64,2}: 3 7 11 8 7 6 10 7 4
[1 2 3 4 5 6] *[1, 2, 3, 4, 5, 6]
1-element Array{Int64,1}: 91
[1 2 3 4 5 6]
1×6 Array{Int64,2}: 1 2 3 4 5 6
sum( PermutationMatrices[i]*(rand(0:2)) for i=1:6)
3×3 Array{Int64,2}: 2 2 2 1 3 2 3 1 2