Linear Algebra Problem Set
Linear Algebra Problem Set
GAURAV BHATNAGAR
1. Problem Set 1
Problem 1 (Herstein p. 8).
(a.) If A is a subset of B and B is a subset of C, prove that A is a subset of C.
(b.) If B ⊂ A, prove that A ∪ B = A. Prove the converse. (The converse of “If P
then Q’ is ‘If Q then P .)
(c.) If B ⊂ A, prove that for any set C both B ∪ C ⊂ A ∪ C and B ∩ C ⊂ A ∩ C.
Remark 1. Herstein refers to Topics in Algebra by I. N. Herstein,
Problem 2 (Herstein p. 8). Prove: A ∪ (B ∩ C) = (A ∪ B) ∩ (A ∪ C).
1
2 G. BHATNAGAR
a ∗ b = ab .
2. Problem Set 2
Exercise 1 (Really exercise). Go for a long walk, alone, lasting at-least one hour,
and mentally go over all the definitions and theorems done in linear algebra so
far. You may make and carry a crib sheet; you may talk to yourself during this
time—but otherwise stay silent. No music on headphones allowed and if possible,
leave your phone behind. This needs to be repeated at least once every week.
Problem 10. Let S = {u1 , u2 , . . . , um } be a set of vectors in a Vector Space V
over F. Show that X m
< S >:= ai ui : ai ∈ F
i=1
is a subspace of V . (This is what we defined to be < S >, the linear span of S.
We have done this, but you should do it on your own once.)
Problem 11. Let U1 and U2 be subspaces of a vector space V over a field F.
(a.) Show that U1 ∩ U2 is a subspace of V .
(b.) Show that U1 ∪ U2 may not be a subspace.
Problem 12. Let S be a set of vectors in a vector space V and let W be defined
as the intersection of all subspaces of V which contain S. Show that < S >= W ;
that is (in symbols):
\
< S >= U.
S⊂U
U subspace of V
3. Problem Set 3
Note. For problems involving matrices, solve the problems by hand, and also
using Sage.
Problem 17. For all the vector spaces mentioned in Problem 5, Problem Set 1,
find an elementary basis (if you can).
Problem 18. For each of the following augmented matrices, write down the cor-
responding system of equations and solve them (if possible). Use the symbols x,
y, z, u as required.
(a)
1 0 0 0 1
0 2 0 0 2
M1 =
0 0 3 0 3
0 0 0 −1 −4
(b)
1 0 0 0 1
0 2 0 0 2
M2 =
0 0 3 0 3
0 0 0 0 −1
Problem 19.
6 G. BHATNAGAR
(a) Solve the system of equations represented by this augmented matrix using back
substitution. (Solve the last equation, then use solution in the previous one,
and so on.) Use x, y and z for variable names.
1 0 2 0
M3 = 0 −2 3 2
0 0 1 3
(b) Use row operations to reduce the matrix M3 to the following form, and then
solve the corresponding systems of equations.
1 0 0 ∗
M3 = 0 −2 0 ∗
0 0 1 3
Here ∗ are ‘wildcards’. They stand for ‘some numbers’.
Problem 20. The following questions are all related.
(a) Solve the following system of equations.
x+y =2
y−z =3
x + z = −1
(b) Write the vector v (below) as a linear combination of vectors in the set S :=
{v1 , v2 , v3 }. (The underlying field is R.) Here
2
v = 3 ;
−1
1 1 0
v1 = 0 , v2 = 1 , v3 = −1 .
1 0 1
(c) Find a vector u which is not a linear combination of vectors in S.
(d) For v2 and v3 above, show that if av2 + bv3 = 0, then a = 0 and b = 0.
(e) For v1 , v2 and v3 above, find a1 , a2 , a3 , not all 0, such that
a1 v1 + a2 v2 + a3 v3 = 0.
Problem 21. Let V be a finite dimensional vector space, with dim V = n. Then
prove the following.
(a.) If U ⊂ V is a subspace of V , then dim U < dimV .
(b.) Let S = {u1 , u2 , . . . , un }. If < S >= V , then S is a basis (that is, S is linearly
independent).
PROBLEM SETS SPRING 2023: LINEAR ALGEBRA (MAT-1001) 7
4. Problem Set 4
Problem 25.
(a.) Do any 10 problems from any linear algebra book solving systems of linear
equations using Sage. Use matrix operations to do them, and also find out
commands to solve the equations directly. For each of the solutions, if there
are infinite number of solutions, find the dimension of the solution space.
(b.) For each matrix A considered above, consider the transformation T : Rm →
Rn defined by the matrix, i.e., T : X 7→ AX. For each matrix A, identify m
and n. Find the dimension of the null space of the matrix (i.e., the dimension
of the null space of T and the dimension of the range space of T . (The
dimension of the range space is called the column rank of the matrix.)
Problem 26. Let T : V → W be a linear transformation, where V is a finite
dimensional vector space.
(a.) Show that if dim V > dim W , then T is not injective.
(b.) If dim V < dim W , then T is not surjective.
(c.) Write the contrapositive of (a).
8 G. BHATNAGAR
5. Problem Set 5
Remarks. Some parts in these questions require definition of matrix multiplication
which we will do this week. You should attempt these parts on Sage as well as by
hand.
Problem 33. Suppose I = {u1 , u2 , . . . , um }} is a linearly independent set in a
vector space U , and T : U → V is injective (or one-one). Show that
{T u1 , T u2 , . . . , T um }
PROBLEM SETS SPRING 2023: LINEAR ALGEBRA (MAT-1001) 9
is linearly independent.
Problem 34. Let U , V and W be vector spaces and S : U → V and T : V → W
be linear transformations. Show the following:
Nullity(T S) ≤ Nullity T + Nullity S.
Consider matrices corresponding to the transformations S and T w.r.t the standard
basis for all of U , V and W . Interpret this result in terms of the matrices obtained.
Problem 35 (RB). Given a vector x = (x1 , . . . , xn ), let
x1 + · · · + xn
x̄ :=
n
n n
be the “mean” of x. Let A : R → R be the map
Ax = (x̄, x̄, . . . , x̄).
Is this a linear map? Is so, what is the matrix corresponding to A (in the standard
basis). What is the null space of A. (The null space of A is the space of solutions
of Ax = 0.)
Problem 36. Let V be a vector space and §V = {u1 , u2 , . . . , un } be a basis of V .
Let Ui =< {ui }, for i = 1, 2, . . . , n. Then show that
V = U1 ⊕ U2 ⊕ · · · ⊕ Un .
Give an explcit isomorphism and show its an isomorphism.
Problem 37. Let T1 and T2 be linear transformations, and a ∈ F. Let some
basis be fixed, Let m(T ) denote the matrix of T in wrt that basis for all linear
transformations T in this problem. Prove that:
(i.) m(T1 + T2 ) = m(T1 ) + m(T2 ), and;
(ii.) m(aT1 ) = am(T1 ).
Given that every matrix is the matrix of a linear transformation, this implies that
m × n matrices with entries in F form a vector place over F.
Problem 38. A square matrix A is called nilpotent if Ak = 0 (the zero matrix)
for some k > 0.
(a) (RB) Make an n × n matrix A such that A, A2 , . . . , An−1 are not zero, but
An = 0.
(b) Prove that
1
= 1 + x + x2 + · · · ,
1−x
for suitable values of x.
(c) Show that if A is nilpotent, then I + A is invertible.
Problem 39 (RB). Let e1 , e2 , . . . , e5 be the standard basis in R5 and let S :
R5 → R5 be the linear map defined by
S(e1 ) = e2 , S(e2 ) = e3 , S(e3 ) = e4 , S(e4 ) = e5 , S(e5 ) = e1 .
10 G. BHATNAGAR
6. Problem Set 6
Problem 41. Let v ∈ V , U =< v >. Define S : U → V such that m(S) = m(v)
and show it is well-defined and a linear transformation. Using this and the theorem
in Lecture 11, show that for T : V → W a linear transformation, and v ∈ V , we
must have
M (T v) = M (T )M (v).
Problem 42. Find two distinct examples of matrices that commute and one which
doesn’t.
Problem 43. All the following problems are about a Hilbert Hotel. In each case
you have to give a bijection. These problems are taken from my QRMT class.
(a.) The Hilbert Hotel has an infinite number of rooms and they are all full. A
new guest comes. But the hotel manager manages to find a room for the new
guest. How?
(b.) Again, the Hilbert Hotel is full and a long bus, carrying a 1000 guests arrives.
The tour leader sees the sign that the hotel is full, and asks the manager if he
can suggest another nearby hotel.
The manager says: “No problem. We have space for 1000 more guests”
How does the manager accommodate 1000 more guests?
(c.) The Hilbert Hotel is full, and this time a really very, very long bus comes.
The bus contains an infinite number of guests. Say the guests are numbered
1, 2, 3, . . . .
Again, the manager says: “No problem.” How does the manager find rooms
for the new guests this time?
(d.) For a change, the Hilbert Hotel is empty. All the guests have left, and the
manager is looking forward to some free time. As you can imagine, looking
after an infinite number of guests can get tiring. So the manager heaves a
sigh of relief as a bus containing all his guests leaves for the airport!
But the relief is short-lived. An infinite number of buses (numbered 1, 2, 3,
. . . ) come in and each of them contain an infinite number of guests (named
1, 2, 3, . . . ).
PROBLEM SETS SPRING 2023: LINEAR ALGEBRA (MAT-1001) 11
u − v + 2w + 3x = 1
2u + 2v + 2x = 1
(7.1)
4u + v − w − x = 1
u + 2v − w − x = 1
12 G. BHATNAGAR
u + 2v + 4w + x = 4
2u − w + 3x = 4
(7.2)
u − 2v − w =0
3u + v − w − 5x = 7
2u
+ w−x+ y =2
(7.3) u + w−x+ y =1
12u + 2v + 8w + 2y = 12
2u + 2v − w − x = 0
(7.4) 2u + 4v + 2w + 4x = 4
3u + 6v + 3w + 6x = 6
u −w =1
2u + v + w =2
(7.5) v−w =3
u+ v+w =4
2v − w =0
u + 2w =1
2u + v + 2w =1
(7.6) v − 2w =1
u+v =1
u − v + 4w =1
2u + v + w + x = 2
3u − v + w − x = 2
(7.7)
u + 2v − w + x = 1
6u + 2v + w + x = 5
u + 3v − 3w + 2x = 1
4u + v − 2w + x = 1
(7.8)
6u + 5v + 10w + 3x = 15
u + 2v + 3w + x = 6
PROBLEM SETS SPRING 2023: LINEAR ALGEBRA (MAT-1001) 13
8. Problem Set 8
Problem 48. The following will help you figure out the arithmetic of permuta-
tions.
(a.) Express the following permutation as a product of disjoint cycles as well as a
product of transpositions; in addition, find the inverse.
!
1 2 3 4 5 6
5 3 2 6 4 1
(b.) Express the following product of permutations as a product of disjoint cycles.
(1, 2, 3, 4, 5)(6, 7)(1, 3, 5, 7)(1, 6, 3)
(c.) Write the m-cycle (1, 2, 3, . . . , m) as a product of transpositions of the form
(1, 2), (1, 3), (1, 4), . . . .
(d.) Write the m-cycle (1, 2, 3, . . . , m) as a product of transpositions of the form
(i, i + 1).
(e.) Prove that Sn is generated by the cycles:
(1, 2, 3, . . . , n − 1) and (n − 1, n),
that is any permutation can be written as a product of these two permutations.
(f.) Show that transpositions of the form (i, i + 1), for i = 1, 2, . . . , n − 1, generate
Sn ; that is, any permutation can be written as a product of transpositions of
this form.
Problem 49. (a.) Find all the inversions of (i, j)
(b.) Show that sgn(σ) = sgn(σ −1 ).
(c.) Show that sgn(στ ) = sgn(σ) sgn(τ ).
(d.) Show that |Sn | = n!.
Problem 50. Let Pσ be a permutation matrix corresponding to the permutation
σ; that is, it is obtained by permuting the columns of the n × n identity matrix.
(a.) Show that |Pσ | = sgn(σ)
(b.) Show that P T = P −1 .
Problem 51. List all the 24 elements of S4 and give their pictorial representation.
Find the inverse of each element and find the sign of each element. (You do a few
by hand, and then use Sage. Verify all entries mentally once you have listed using
Sage.)
Problem 52. Let B be a matrix obtained from A (an n × n matrix) by replacing
Row i (denoted Ri ) of A by Ri + cRj , for some other row index j. Show that
det B = det A.
Problem 53. Let A be an n × n matrix.
(a.) Make a matrix E such that EA gives the matrix obtained by interchanging
the ith row with the jth row of A.
14 G. BHATNAGAR
(b.) Make a matrix E such that EA gives the matrix obtained by performing the
row operation Ri ← cRi .
(c.) Make a matrix E such that EA gives the matrix obtained by performing the
row operation Rj ← Rj + cRi .
Problem 54 (RB). Let A be the matrix
1 2 3 4 ... 10
11 12 . . . . . . . . . . . 20
. . .
. . .
A= . . ........... . .
.. .. ..
. . ........... .
91 . . . . . . . . . . . . . . . 100
(a) Calculate det A for the matrix. You may use Sage to make experiments. How-
ever, since RB has given this problem, it means it can be guessed without
computer experiments.
(b) Find the rank of the matrix A.
Problem 55. This problem is about a number theoretic matrix. Let Gn be the
n × n matrix with (i, j)th entry given by the GCD (greatest common divisor) of i
and j, denoted gcd(i, j).
(a) Write down what are G1 , G2 , G3 .
(b) Compute the determinants of G1 , G2 , G3 by hand.
(c) Use Sage to calculate det(Gn ) for several small values of n.
(d) Go to OEIS.org to guess what the value of det(Gn ).
(e) Prove your guess.
Problem 56 (Vandermonde determinant). The Vandermonde determinant ∆(x)
is the determinant of the n × n matrix
∆(x) := (xn−j
i )1≤i,j≤n .
Here x represents the variables (x1 , x2 , . . . , xn ). Show that
xn−1
1 x1n−2 . . . . . . x1 1
xn−1
2 x2n−2 . . . . . . . . x2 1
. .. . ..
∆(x) = .. . . . . . . . . ..
Y
. . = (xi − xj ).
.. .. . ..
. . . . . . . . ..
i<j
. . .
n−1 n−2
xn xn . . . . . . . . xn 1
The product on the right is over all 1 ≤ i, j ≤ n such that i < j. For example,
when n = 3, the product is
(x1 − x2 )(x1 − x3 )(x2 − x3 ).
PROBLEM SETS SPRING 2023: LINEAR ALGEBRA (MAT-1001) 15
9. Problem Set 9
Problem 57. List the three types of elementary matrices. Find inverses of each
type.
Problem 58. Show that the inverse of a lower-triangular matrix is also lower-
triangular.
Problem 59. Show that sin x and cos x are linearly independent over R.
Problem 60 (RB). The vector space considered here is of continuous functions
on R.
(a) Show that if a ̸= b, then the functions f1 (x) = eax and f2 (x) = ebx are linearly
independent.
(b) Show that if a1 , a2 , . . . , an are distinct real numbers, then the functions
fi (x) = eai x , i = 1, 2, . . . , n
are linearly independent. (Hint. You may need to use one of the problems
above.)
(c) Consider the differential equation y ′′ − 3y ′ + 2y = 0. If you assume that y = eax
is a solution, what values must a take? Find two linearly independent solutions
of this differential equation.
Problem 61. Suppose U is invariant under T and dim U = 1. Then prove that
we must have a λ ∈ F and u such that T u = λu.
16 G. BHATNAGAR
Problem 66 (RB). Let α be any real number. What is the relation between the
eigenvalues of A and A + αI.?
Problem 67 (RB). If the eigenvalues of A are λ1 , λ2 , . . . , λn , what are the
eigenvalues of
B = 2I + 7A + 4A2 .
Problem 68 (Inverses). Use elementary matrices to prove the following. Let A,
B be square matrices such that BA = I, where I is a suitable identity matrix.
Then AB = I. Thus “left-inverses” are also “right-inverses”.
PROBLEM SETS SPRING 2023: LINEAR ALGEBRA (MAT-1001) 17
(a.) Let C1 and C2 be columns of Rθ . Show that they are linearly independent.
This shows that the columns form a basis for R2 .
(b.) Draw a picture of the columns which shows intuitively these form a basis.
(c.) Find Rθ−1 .
(d.) Let P be the change of basis from the elementary basis to Rθ (in the notation
of Lecture 20). Given coordinates (x, y) of a point in R2 , find the coordinates
of a point in the new basis Rθ .
(e.) Interpret now Rθ as a linear transformation. Describe its action on e1 and e2 ,
the vectors "which
# form the elementary basis. How would you describe Rθ X
x
where X = ?
y
(f.) Now we consider eigenvalues. Show that the characteristic polynomial of Rθ
is given by
p(λ) = λ2 − 2λ cos θ + 1.
(g.) To find roots of p(λ) (over C) , recall that
eiθ = cos θ + i sin θ.
and thus:
eiθ + e−iθ eiθ − e−iθ
cos θ = and sin θ = .
2 2i
Show that the roots over C are
λ = e±iθ .
From here, find the values of θ when Rθ has eigenvalues in R.
(h.) Now we interpret Rθ : C → C by taking (x, y) ∈ R2 to be the same as
x + iy ∈ C. Argue that Rθ corresponds to
z 7→ zeiθ .
What is the inverse of this transformation? Does this explain your answer in
part (c.)?
(i.) Finally, note that z will be an eigenvector if
Rθ z = λz = e±iθ z.
Does this explain the values of θ when you get eigenvalues in part (g.)?
Problem 74 (Binomial Coefficients). Let V = Fn [x] made up of polynomials of
degree ≤ n, so of the form
p(x) = a0 + a1 x + · · · + an xn , for ai ∈ F.
(a) Let p0 (x), p1 (x), . . . , pn (x) be such that:
(i) deg pk (x) = k, for k = 0, 1, . . . , n.
(ii) They are monic, that is, the coefficient of the highest degree term is 1.
Show that {pk (x) : k = 0, 1, . . . , n} is a linearly independent set in V .
20 G. BHATNAGAR
assuming you can treat infinite series like finite sums, that is, integral of a sum
of terms is equal to the sum of integrals.
(d) Now we take a specific function. Let g : [−π, π] → R be defined as
(
x if 0 ≤ x ≤ π,
g(x) = |x| =
−x if − π ≤ x ≤ 0.
and,
∞
X 1 π2
2
= .
n=1
n 6
and
∥v∥∞ := max(|v1 |, |v2 |).
(a) Show that ∥v∥1 and ∥v∥∞ are norms on R2 .
(b) Show that for any vector v in R2 , we have
√
∥v∥ ≤ ∥v∥1 ≤ 2 ∥v∥
and
√
∥v∥∞ ≤ ∥v∥ ≤ 2 ∥v∥∞ .
(c) The “unit ball” for any norm ∥ · ∥ on R2 is the set
D = {v ∈ R2 : ∥v∥ ≤ 1}.
Draw a picture of the unit balls for the norms ∥v∥, ∥v∥1 and ∥v∥∞ .
(d) Do the above for R3 .
(e) Is the function
f (v) = min(|v1 |, |v2 |)
2
a norm on R .
Problem 80 (RB). Let u, v be any two points in Rn . Show that
4⟨u, v⟩ = ∥u + v∥2 − ∥u − v∥2 .
Problem 81. Prove or disprove the following statements.
(i) The product of two orthogonal matrices is orthogonal.
(ii) The sum of two orthogonal matrices is orthogonal.
(iii) Every orthogonal matrix is invertible and its inverse is an orthogonal matrix.
(iv) If U is a 2 × 2 orthogonal matrix, then there exists a 2 × 2 orthogonal matrix
V such that V 2 = U .
Problem 82. Prove the following inequalities.
(a.) Suppose a1 , a2 , . . . are positive numbers. Show that:
a + a + · · · + a 2 a2 + a2 + · · · + a2
1 2 n
≤ 1 2 n
.
n n
Try out the inequality for n = 2 and 3 for some choice of ai .
(b.) Suppose a1 , a2 , . . . , an are positive numbers. Then show that
1 1 1
(a1 + a2 + · · · + an ) + + ··· + ≥ n2 .
a1 a2 an
Try out the inequality for n = 2 and 3 for some choice of ai .
Problem 83 (Roots of unity). This problem is based on some central ideas of
mathematics which you will encounter a million times if you choose a scientific
career. If you follow the steps, you can discover them on your own.
24 G. BHATNAGAR
2πi
(e) Again let w = e n . Let F be the n × n matrix (it helps to have rows and
columns indexed from 0 to n − 1, like it is done in Sage):
1 1 1 ... 1
1 w w2 . . . wn−1
n−1 2 4 2(n−1)
F = wij i,j=0 = 1 w w . . . w
.. .. .. .. ..
. . . . .
2
1 wn−1 w2(n−1) . . . w(n−1)
That above system of equations can be written F C = Y , where
C = (c0 , . . . , cn−1 )T and Y = (y0 , . . . , yn−1 )T .
PROBLEM SETS SPRING 2023: LINEAR ALGEBRA (MAT-1001) 25
(a)
1
⟨T u, w⟩ = ⟨T (u + w), u + w⟩ − ⟨T (u − w), u − w⟩
4
+ i⟨T (u + iw), u + iw⟩ − i⟨T (u − iw), u − iw⟩
B = {v1 , . . . , vn }
C = {w1 , . . . , wm }
be the matrix of the linear transformation from B to C (see Lecture 8). The
matrix A is an m × n matrix. Let B ′ and C ′ be two other bases and let P and Q
PROBLEM SETS SPRING 2023: LINEAR ALGEBRA (MAT-1001) 27
be such that
BP = B ′ = v1′ , . . . , vn′ ;
CQ = C ′ = w1′ , . . . , wm ′
.
Thus P and Q are the respective change of basis matrices. By following the steps
below, we find the matrix of T with respect to B ′ and C ′ . Let this matrix be
denoted A′ , that is,
A′ = a′ij = m(T )B ′ -C ′ .
joined to itself) or parallel edges (i.e., two edges between a pair of vertices). We
can represent a graph by using the adjacency matrix. The rows and columns
are indexed by the vertices and we place a 1 if there is an edge between vi and vj .
Here is an example of a graph on 5 vertices.
4 2
1
5
3
1
3
5
Make several trees and write their corresponding matrices. What is the
maximum number of 1’s in any row? Calculate the powers of the matrices
30 G. BHATNAGAR
for several examples. Can you write the powers of the matrices without any
calculation, just by looking at the tree?
(d) A Directed graph or a network has edges i → j (so each edge has a direction).
How will you represent a directed graph as a matrix?
(e) A weighted graph is a (possibly directed) graph with wieghts on edges. You
can represent this as a matrix by putting weight wij on the edge i → j and 0
in case there is no edge. Write down a few weighted graphs and examine how
various matrix operations work.
Remarks. Graph theory is a large area of mathematics (and computer science).
Graphs may be implemented using matrices and there is a large body of literature
on “spectral graph theory” where linear algebra methods are used to study graphs.
This problem is just a chance for you to discover stuff for yourself. You can learn
more by following your curiosity along with google and Chat GPT.
A wish for the future. For many of you, this may be the last math course you
take; your chosen career may not require much interaction with mathematics. But
I hope you have got a taste of the joy there is in problem solving. Here is a quote
from a mathematician who won the Steele prize for his work (google him). He spoke
about why he is a mathematician. But his remarks are applicable more widely.
Chinese poems by a decadent Japanese monk of the fifteenth cen-
tury greatly impressed me; they could be interpreted to suggest the
purpose of one’s life could be found only in an enjoyable pastime
(or more precisely, a way to kill time), lasting until one’s demise.
From that time on, I tried in earnest to find such a way to kill time.
∼ Haruzo Hida on why he does math; response to the Steele Prize (No-
tices, April 2019)
Whatever the problems you choose to solve in real life, if you enjoy solving math
problems, nothing can prevent you from making some time to do so as an enjoyable
pastime. All the best.
Ashoka University, Sonipat, Haryana 131029, India
Email address: [email protected]