Linear Algebra and Vector Geometry 201-SN4-RE • CEGEP, Montreal

Corrected exercises: vector spaces and subspaces (201-SN4-RE)

This is the corrected exercise set on vector spaces and subspaces for the CEGEP linear algebra course 201-SN4-RE (formerly 201-NYC), the chapter where the course stops being computational and becomes abstract. Part A sets up the definitions: the eight axioms and the check that an unexpected set (polynomials, matrices, functions) really is a vector space, the subspace test in three points with the zero vector check that eliminates half the candidates in ten seconds, and the span of a set of vectors with the computation of its dimension. Part B moves up to exam level: the kernel and the image of a linear transformation as subspaces in their own right, the rank-nullity theorem proved and then applied, a complete problem identifying the geometric nature of a subspace of R3\mathbb{R}^{3}, the sum and intersection of two subspaces with Grassmann's formula, the rank of a matrix and its null space, and differentiation on polynomials seen as a linear transformation. Part C adds five classics: the direct sum of symmetric and skew-symmetric matrices, the polynomials that vanish at 1, extending a linearly independent set to a basis, two descriptions of the same subspace of R4\mathbb{R}^{4}, and the space of linear recurrence sequences.

The set is written for CEGEP students in the Science program (Sciences de la nature) taking linear algebra 201-SN4-RE, and for Social Science students in the mathematics profile, whose linear algebra course is 201-105.

It is the chapter that unsettles students most, because it asks you to reason about objects that cannot be drawn. The remedy fits in one principle: a vector space is not a set of arrows, it is a set equipped with two operations that obey rules. As soon as you accept that a polynomial, a matrix or a function can be a vector, the difficulty collapses and the proofs become mechanical.

15 corrected exercises • 150 points • 225 minutes

This chapter is part of 201-SN4-RE, every chapter with its set and sheet Before you start Revision sheet: the traps and the method for this chapter

Self-checking set Type your answers and check them question by question: the page tells you right or wrong before you open the solution. With an account, every answer right on the first try earns points, and your right answers stay filled in when you come back.

Course recap

  • • A vector space over R\mathbb{R} is a set VV equipped with an addition and a scalar multiplication satisfying eight axioms: associativity and commutativity of addition, existence of a ZERO vector, existence of a negative, and four compatibility axioms, including λ(u+v)=λu+λv\lambda(u+v)=\lambda u+\lambda v and 1⋅u=u1\cdot u=u.
  • • Examples of vector spaces that are not arrows: Rn\mathbb{R}^{n}, the set PnP_{n} of polynomials of degree at most nn, the set Mm×nM_{m\times n} of matrices, the set of continuous functions on an interval.
  • • SUBSPACE TEST: W⊆VW\subseteq V is a subspace if and only if 1) 0⃗∈W\vec{0}\in W; 2) WW is closed under addition (u,v∈W⇒u+v∈Wu,v\in W\Rightarrow u+v\in W); 3) WW is closed under scalar multiplication (u∈W,λ∈R⇒λu∈Wu\in W,\lambda\in\mathbb{R}\Rightarrow\lambda u\in W).
  • • Quick check: if 0⃗∉W\vec{0}\notin W, it is NOT a subspace, and the question is settled in one line. That is the first thing to check.
  • • SPAN: span⁡{v1,…,vk}\operatorname{span}\{v_{1},\ldots,v_{k}\} is the set of all linear combinations of the viv_{i}. It is always a subspace, whatever the set of vectors.
  • • DIMENSION: the number of vectors in a basis, that is, in a set that is both linearly independent and spanning. All bases of the same space have the same number of elements.
  • • KERNEL and IMAGE: ker⁡T={v:T(v)=0⃗}\ker T=\{v : T(v)=\vec{0}\} is a subspace of the domain; im⁡ T={T(v)}\operatorname{im}\,T=\{T(v)\} is a subspace of the codomain. RANK-NULLITY THEOREM: dim⁡(ker⁡T)+dim⁡(im⁡ T)=dim⁡V\dim(\ker T)+\dim(\operatorname{im}\,T)=\dim V, where VV is the domain.

Part A: the basics (/50)

Exercise 1: The axioms, and spaces that do not look like spaces

A vector space is not a set of arrows: it is a set equipped with two operations that obey the axioms. The whole chapter rests on this change of viewpoint.

  • a) Show that P2P_{2}, the set of polynomials of degree at most 2, is a vector space: identify the zero vector and the negative of p(x)=3x2−x+5p(x)=3x^{2}-x+5, and check closure under both operations.
  • b) Give a basis of P2P_{2} and its dimension. Same question for M2×2M_{2\times 2}, the set of 2×22\times 2 matrices.
  • c) Is the set of polynomials of degree EXACTLY 2 a vector space? Justify with a specific counterexample.
  • d) Why is R2\mathbb{R}^{2} with the usual addition but the scalar multiplication λ⊙(x,y)=(λx,0)\lambda\odot(x,y)=(\lambda x,0) not a vector space? Which axiom fails?

Type your answers, the page tells you right or wrong 0/5

a)
b)
c)
d)
Show the solution

Answers

  • a) Zero polynomial; negative −3x2+x−5-3x^2+x-5; closure checked
  • b) dim⁡P2=3\dim P_2=3; dim⁡M2×2=4\dim M_{2\times 2}=4
  • c) No: (x2+x)+(−x2+3)=x+3(x^2+x)+(-x^2+3)=x+3
  • d) 1⊙u=u1\odot u=u fails
a)

An element of P2P_{2} is written ax2+bx+cax^{2}+bx+c. ZERO vector: the zero polynomial 0x2+0x+00x^{2}+0x+0, which does satisfy p+0=pp+0=p for every pp. Negative of p(x)=3x2−x+5p(x)=3x^{2}-x+5: the polynomial −p(x)=−3x2+x−5-p(x)=-3x^{2}+x-5, whose sum with pp is the zero polynomial ✓. Closure under addition: the sum of two polynomials of degree at most 2 has degree at most 2, since the coefficients are added term by term and no higher degree is ever created ✓. Closure under scalar multiplication: λ(ax2+bx+c)=(λa)x2+(λb)x+λc\lambda(ax^{2}+bx+c)=(\lambda a)x^{2}+(\lambda b)x+\lambda c, still of degree at most 2 ✓. The other axioms (associativity, commutativity, distributivity) follow from those of the real numbers, applied coefficient by coefficient. So P2P_{2} is indeed a vector space, and its “vectors” are polynomials.

b)

Standard basis of P2P_{2}: {1,  x,  x2}\left\{1,\;x,\;x^{2}\right\}. It SPANS P2P_{2}, since every polynomial ax2+bx+cax^{2}+bx+c can be written c⋅1+b⋅x+a⋅x2c\cdot 1+b\cdot x+a\cdot x^{2}; it is LINEARLY INDEPENDENT, since c+bx+ax2=0c+bx+ax^{2}=0 for every xx forces a=b=c=0a=b=c=0 (the zero polynomial has all its coefficients equal to zero). Hence dim⁡P2=3\dim P_{2}=3. For M2×2M_{2\times 2}, the standard basis consists of the four matrices with a single 1 and 0 everywhere else, so dim⁡M2×2=4\dim M_{2\times 2}=4. General rule to remember: dim⁡Pn=n+1\dim P_{n}=n+1 (watch the +1+1, forgotten very often) and dim⁡Mm×n=mn\dim M_{m\times n}=mn.

c)

NO. Counterexample: take p(x)=x2+xp(x)=x^{2}+x and q(x)=−x2+3q(x)=-x^{2}+3, both of degree exactly 2. Their sum is p+q=x+3p+q=x+3, of degree 1: it does NOT belong to the set, so closure under addition fails. A second argument, even faster, settles the question on its own: the zero polynomial does not have degree exactly 2, so the zero vector is missing and the test fails at once. This is the decisive difference between “degree at most nn” and “degree exactly nn”: only the first wording gives a vector space, and exam questions play on this distinction all the time.

d)

The axiom that fails is 1⋅u=u1\cdot u=u. Indeed 1⊙(x,y)=(1⋅x,0)=(x,0)1\odot(x,y)=(1\cdot x,0)=(x,0), which differs from (x,y)(x,y) as soon as y≠0y\neq 0. For example 1⊙(3,7)=(3,0)≠(3,7)1\odot(3,7)=(3,0)\neq(3,7). This axiom looks like the most harmless of the eight, so much so that one is tempted to call it superfluous, and that is exactly why textbooks single it out: without it, scalar multiplication could destroy information, as it does here to the second coordinate. One can check that distributivity, λ⊙(u+v)=λ⊙u+λ⊙v\lambda\odot(u+v)=\lambda\odot u+\lambda\odot v, still holds, which shows that a single failed axiom is enough to disqualify the structure, even when all the others are satisfied.

Tick the exercises you have done or want to review: a free account, no password, keeps your ticks and your right answers from one visit to the next, tells you which chapter to tackle next and lets you ask for the exercise you are missing. Create your space, an email is enough.

Exercise 2: The subspace test and the zero vector check

Three checks are enough, and the first one eliminates half the candidates in ten seconds. You still have to start with it.

  • a) State the subspace test, then show that W={(x,y,z)∈R3  :  x+2y−z=0}W=\left\{(x,y,z)\in\mathbb{R}^{3}\;:\;x+2y-z=0\right\} is a subspace.
  • b) Is the set U={(x,y,z)  :  x+2y−z=3}U=\left\{(x,y,z)\;:\;x+2y-z=3\right\} a subspace? Answer in one line.
  • c) The set S={(x,y)  :  xy=0}S=\left\{(x,y)\;:\;xy=0\right\} contains the zero vector. Does that make it a subspace of R2\mathbb{R}^{2}? Describe SS geometrically.
  • d) Show that the set of 2×22\times 2 matrices with trace zero is a subspace of M2×2M_{2\times 2}, and give its dimension.

Type your answers, the page tells you right or wrong 0/4

a)
b)
c)
d)
Show the solution

Answers

  • a) Three conditions; a plane of dimension 2
  • b) No: 0⃗∉U\vec 0\notin U
  • c) No: (1,0)+(0,1)∉S(1,0)+(0,1)\notin S; two axes
  • d) Subspace of dimension 3
a)

Test: WW is a subspace of VV if 1) 0⃗∈W\vec{0}\in W; 2) u,v∈W⇒u+v∈Wu,v\in W\Rightarrow u+v\in W; 3) u∈Wu\in W and λ∈R⇒λu∈W\lambda\in\mathbb{R}\Rightarrow\lambda u\in W. Checking WW. 1) (0,0,0)(0,0,0) gives 0+0−0=00+0-0=0 ✓. 2) If u=(x1,y1,z1)u=(x_{1},y_{1},z_{1}) and v=(x2,y2,z2)v=(x_{2},y_{2},z_{2}) each satisfy the equation, their sum gives (x1+x2)+2(y1+y2)−(z1+z2)=(x1+2y1−z1)+(x2+2y2−z2)=0+0=0(x_{1}+x_{2})+2(y_{1}+y_{2})-(z_{1}+z_{2})=(x_{1}+2y_{1}-z_{1})+(x_{2}+2y_{2}-z_{2})=0+0=0 ✓. 3) λu\lambda u gives λx+2λy−λz=λ(x+2y−z)=λ⋅0=0\lambda x+2\lambda y-\lambda z=\lambda(x+2y-z)=\lambda\cdot 0=0 ✓. So WW is a subspace: it is the PLANE through the origin with normal vector (1,2,−1)(1,2,-1), and its dimension is 2.

b)

NO: the zero vector (0,0,0)(0,0,0) gives 0+0−0=0≠30+0-0=0\neq 3, so 0⃗∉U\vec{0}\notin U and the test fails on its very first condition. Geometrically, UU is a plane that does NOT pass through the origin, that is, a translate of WW. The general rule shows here: a HOMOGENEOUS equation (right-hand side zero) defines a subspace, a non-homogeneous equation never does. This is the test to apply first to any set defined by an equation.

c)

NO, even though it contains the zero vector. The condition xy=0xy=0 means x=0x=0 OR y=0y=0: geometrically, SS is the UNION of the two coordinate axes, a cross shape. Counterexample to closure under addition: u=(1,0)∈Su=(1,0)\in S (because 1×0=01\times 0=0) and v=(0,1)∈Sv=(0,1)\in S, but u+v=(1,1)u+v=(1,1) gives 1×1=1≠01\times 1=1\neq 0, so u+v∉Su+v\notin S ✓. The example is instructive: SS is closed under scalar multiplication (multiplying a point of an axis keeps it on that axis) and contains the zero vector, yet it fails on addition. The three conditions are therefore INDEPENDENT and must all be checked; passing the zero vector check guarantees nothing. More generally, the union of two subspaces is almost never a subspace, whereas their intersection always is.

d)

Let T={A∈M2×2:tr⁡(A)=0}T=\left\{A\in M_{2\times 2}:\operatorname{tr}(A)=0\right\}, where tr⁡(abcd)=a+d\operatorname{tr}\begin{pmatrix}a&b\\c&d\end{pmatrix}=a+d. 1) The zero matrix has trace zero ✓. 2) tr⁡(A+B)=tr⁡(A)+tr⁡(B)=0+0=0\operatorname{tr}(A+B)=\operatorname{tr}(A)+\operatorname{tr}(B)=0+0=0 ✓. 3) tr⁡(λA)=λtr⁡(A)=0\operatorname{tr}(\lambda A)=\lambda\operatorname{tr}(A)=0 ✓. So it is a subspace, and the check is immediate because the trace is a LINEAR map: any set defined by “a linear map equals zero” is automatically a subspace, which is exactly the notion of kernel met later on. Dimension: the condition d=−ad=-a leaves aa, bb and cc free, so a basis is {(100−1),(0100),(0010)}\left\{\begin{pmatrix}1&0\\0&-1\end{pmatrix},\begin{pmatrix}0&1\\0&0\end{pmatrix},\begin{pmatrix}0&0\\1&0\end{pmatrix}\right\} and dim⁡T=3\dim T=3. This matches intuition: one non-trivial linear constraint removes exactly one dimension, here from 4 to 3.

OUWO in W, not in U(1, 0)(0, 1)(1, 1) not in SS: the two axes

Exercise 3: Span and dimension

Every set of vectors spans a subspace. The interesting question is never whether it is one, but what its DIMENSION is.

  • a) Describe geometrically span⁡{(1,2,1)}\operatorname{span}\left\{(1,2,1)\right\}, then span⁡{(1,2,1),(0,1,1)}\operatorname{span}\left\{(1,2,1),(0,1,1)\right\} in R3\mathbb{R}^{3}.
  • b) Find the dimension of span⁡{(1,2,1),(0,1,1),(2,5,3)}\operatorname{span}\left\{(1,2,1),(0,1,1),(2,5,3)\right\}. Does the third vector add anything?
  • c) Does the vector (3,7,4)(3,7,4) belong to the subspace of part b)? Justify with a system.
  • d) Explain why the span of any set of vectors is ALWAYS a subspace, whatever set is chosen.

Type your answers, the page tells you right or wrong 0/6

a)
b)
c)
Show the solution

Answers

  • a) A line, then a plane
  • b) Dimension 2: (2,5,3)(2,5,3) redundant
  • c) Yes: 3(1,2,1)+(0,1,1)3(1,2,1)+(0,1,1)
  • d) Combinations are closed under sums and multiples
a)

span⁡{(1,2,1)}\operatorname{span}\left\{(1,2,1)\right\} is the set of multiples λ(1,2,1)\lambda(1,2,1): it is the LINE through the origin with direction vector (1,2,1)(1,2,1), of dimension 1. For the second one, the two vectors (1,2,1)(1,2,1) and (0,1,1)(0,1,1) are not scalar multiples of each other (the second has a zero first component, the first does not), so they are linearly independent and span a PLANE through the origin, of dimension 2. In general, kk linearly independent vectors span a subspace of dimension kk: a line for 1, a plane for 2, the whole space for 3 in R3\mathbb{R}^{3}.

b)

Test whether (2,5,3)(2,5,3) is a linear combination of the first two: look for aa and bb such that a(1,2,1)+b(0,1,1)=(2,5,3)a(1,2,1)+b(0,1,1)=(2,5,3). The first component gives a=2a=2; the third gives a+b=3a+b=3, so b=1b=1; check on the second: 2a+b=4+1=52a+b=4+1=5 ✓. So (2,5,3)=2(1,2,1)+1(0,1,1)(2,5,3)=2(1,2,1)+1(0,1,1): the third vector is REDUNDANT, it adds nothing. The set spans the same plane as in part a), and dim⁡=2\dim=2. Lesson: the number of vectors in a spanning set is NOT the dimension; the dimension is the number of vectors in a linearly INDEPENDENT spanning set, that is, the rank of the set.

c)

Look for a,ba,b with a(1,2,1)+b(0,1,1)=(3,7,4)a(1,2,1)+b(0,1,1)=(3,7,4). First component: a=3a=3. Third: a+b=4a+b=4, so b=1b=1. Check on the second: 2a+b=6+1=72a+b=6+1=7 ✓. The system is CONSISTENT, so (3,7,4)=3(1,2,1)+(0,1,1)(3,7,4)=3(1,2,1)+(0,1,1) does belong to the subspace. A note on method: two equations find the unknowns, and the third serves as a consistency TEST. Had it failed, for example with (3,7,9)(3,7,9), which gives a=3a=3, then b=6b=6 and 2a+b=12≠72a+b=12\neq 7, the vector would not have been in the subspace. This is the standard procedure for any membership question.

d)

It is enough to check the three conditions of the test, and each one follows from the very structure of linear combinations. 1) The zero vector is obtained by taking every coefficient equal to zero, 0v1+⋯+0vk=0⃗0v_{1}+\cdots+0v_{k}=\vec{0} ✓. 2) The sum of two linear combinations of the viv_{i} is again a linear combination of the viv_{i}, by adding the coefficients term by term ✓. 3) A multiple of a linear combination is a linear combination, by multiplying each coefficient by λ\lambda ✓. The conclusion therefore holds for any set at all, even a dependent one, even a single vector, and even the empty set (in which case the convention is span⁡∅={0⃗}\operatorname{span}\emptyset=\left\{\vec{0}\right\}, the zero subspace). This is what makes the span the universal construction tool: to build a subspace, pick some vectors and take all their linear combinations; what you get is in fact the SMALLEST subspace containing the original set.

Exercise 4: Kernel and image of a linear transformation

Every linear transformation automatically produces two subspaces: one in the domain, the other in the codomain. They are the most important subspaces of the course.

  • a) Let T:R3→R2T:\mathbb{R}^{3}\to\mathbb{R}^{2} be defined by T(x,y,z)=(x+y,  y+z)T(x,y,z)=(x+y,\;y+z). Check that TT is linear.
  • b) Find ker⁡T\ker T: solve the system, give a basis and the dimension. What is it geometrically?
  • c) Find im⁡ T\operatorname{im}\,T and its dimension. Is the transformation onto (surjective)?
  • d) Prove that ker⁡T\ker T is always a subspace of the domain, for any linear transformation TT.

Type your answers, the page tells you right or wrong 0/3

b)
c)
Show the solution

Answers

  • a) Additive and homogeneous
  • b) ker⁡T=span⁡{(−1,1,−1)}\ker T=\operatorname{span}\{(-1,1,-1)\}, a line
  • c) im⁡ T=R2\operatorname{im}\,T=\mathbb{R}^2: onto
  • d) T(0⃗)=0⃗T(\vec 0)=\vec 0, closure by linearity
a)

Let u=(x1,y1,z1)u=(x_{1},y_{1},z_{1}), v=(x2,y2,z2)v=(x_{2},y_{2},z_{2}) and λ∈R\lambda\in\mathbb{R}. Additivity: T(u+v)=((x1+x2)+(y1+y2),  (y1+y2)+(z1+z2))=((x1+y1)+(x2+y2),  (y1+z1)+(y2+z2))=T(u)+T(v)T(u+v)=\left((x_{1}+x_{2})+(y_{1}+y_{2}),\;(y_{1}+y_{2})+(z_{1}+z_{2})\right)=\left((x_{1}+y_{1})+(x_{2}+y_{2}),\;(y_{1}+z_{1})+(y_{2}+z_{2})\right)=T(u)+T(v) ✓. Homogeneity: T(λu)=(λx+λy,  λy+λz)=λ(x+y,  y+z)=λT(u)T(\lambda u)=(\lambda x+\lambda y,\;\lambda y+\lambda z)=\lambda(x+y,\;y+z)=\lambda T(u) ✓. So TT is linear. Its matrix with respect to the standard bases is (110011)\begin{pmatrix}1&1&0\\0&1&1\end{pmatrix}, of size 2×32\times 3, consistent with a map from R3\mathbb{R}^{3} to R2\mathbb{R}^{2}.

b)

ker⁡T\ker T is the set of (x,y,z)(x,y,z) such that T(x,y,z)=(0,0)T(x,y,z)=(0,0), that is, the system x+y=0x+y=0 and y+z=0y+z=0. The first equation gives x=−yx=-y; the second gives z=−yz=-y. Taking y=ty=t as a free parameter: (x,y,z)=(−t,t,−t)=t(−1,1,−1)(x,y,z)=(-t,t,-t)=t(-1,1,-1). A basis of ker⁡T\ker T is therefore {(−1,1,−1)}\left\{(-1,1,-1)\right\} and dim⁡(ker⁡T)=1\dim(\ker T)=1. Geometrically, it is the LINE through the origin with direction (−1,1,−1)(-1,1,-1): the vectors on this line, and only those, are sent to the zero vector by TT.

c)

im⁡ T\operatorname{im}\,T is spanned by the images of the standard basis vectors: T(1,0,0)=(1,0)T(1,0,0)=(1,0), T(0,1,0)=(1,1)T(0,1,0)=(1,1), T(0,0,1)=(0,1)T(0,0,1)=(0,1). These three vectors live in R2\mathbb{R}^{2}, so they cannot be linearly independent; but (1,0)(1,0) and (0,1)(0,1) already span all of R2\mathbb{R}^{2}. So im⁡ T=R2\operatorname{im}\,T=\mathbb{R}^{2} and dim⁡(im⁡ T)=2\dim(\operatorname{im}\,T)=2. The transformation is therefore ONTO: every vector of R2\mathbb{R}^{2} is reached. Check with the rank-nullity theorem: dim⁡(ker⁡T)+dim⁡(im⁡ T)=1+2=3=dim⁡R3\dim(\ker T)+\dim(\operatorname{im}\,T)=1+2=3=\dim\mathbb{R}^{3} ✓, which confirms both computations at once.

d)

Let T:V→WT:V\to W be linear. 1) Zero vector: linearity gives T(0⃗)=T(0⋅0⃗)=0⋅T(0⃗)=0⃗T(\vec{0})=T(0\cdot\vec{0})=0\cdot T(\vec{0})=\vec{0}, so 0⃗∈ker⁡T\vec{0}\in\ker T ✓. 2) Addition: if u,v∈ker⁡Tu,v\in\ker T, then T(u+v)=T(u)+T(v)=0⃗+0⃗=0⃗T(u+v)=T(u)+T(v)=\vec{0}+\vec{0}=\vec{0}, so u+v∈ker⁡Tu+v\in\ker T ✓. 3) Scalar multiplication: if u∈ker⁡Tu\in\ker T and λ∈R\lambda\in\mathbb{R}, then T(λu)=λT(u)=λ0⃗=0⃗T(\lambda u)=\lambda T(u)=\lambda\vec{0}=\vec{0}, so λu∈ker⁡T\lambda u\in\ker T ✓. All three conditions hold, so ker⁡T\ker T is a subspace of VV. Notice that each step uses ONLY the linearity of TT: the proof is valid for every linear transformation, between any spaces, including spaces of polynomials or of matrices. This is the model of abstract proof that the exam asks you to reproduce.

R³, the domainkernel: dim 1TR², the codomainimage = R², rank 21 + 2 = 3 = dim R³

Exercise 5: Sets of polynomials: independence, basis and coordinates

We work in P2P_{2}, the space of polynomials of degree at most 2, of dimension 3. A polynomial a0+a1x+a2x2a_{0}+a_{1}x+a_{2}x^{2} is identified with its coefficients, which turns every question into a computation in R3\mathbb{R}^{3}.

Let p1=1+xp_{1}=1+x, p2=x+x2p_{2}=x+x^{2} and p3=1+x2p_{3}=1+x^{2}.

  • a) Is the set {p1, p2, p3}\left\{p_{1},\,p_{2},\,p_{3}\right\} linearly independent in P2P_{2}? Justify with a determinant.
  • b) Deduce that this set is a basis of P2P_{2}, without checking separately that it spans P2P_{2}.
  • c) Find the coordinates of the polynomial q=2+3x+x2q=2+3x+x^{2} with respect to the basis {p1, p2, p3}\left\{p_{1},\,p_{2},\,p_{3}\right\}.
  • d) Now let r1=1+xr_{1}=1+x, r2=x+x2r_{2}=x+x^{2} and r3=1+2x+x2r_{3}=1+2x+x^{2}. Show that {r1, r2, r3}\left\{r_{1},\,r_{2},\,r_{3}\right\} is linearly dependent, and give the dependence relation.

Type your answers, the page tells you right or wrong 0/6

a)
c)
d)
Show the solution

Answers

  • a) Determinant 2: independent
  • b) Three independent vectors in dimension 3
  • c) (2,1,0)(2, 1, 0)
  • d) r3=r1+r2r_3=r_1+r_2
a)

Write each polynomial as its coefficient vector: p1=(1,1,0)p_{1}=(1, 1, 0), p2=(0,1,1)p_{2}=(0, 1, 1), p3=(1,0,1)p_{3}=(1, 0, 1). The set is linearly independent if the determinant of these three rows is non-zero: ∣110011101∣=1(1−0)−1(0−1)+0=1+1=2≠0\begin{vmatrix} 1 & 1 & 0 \\ 0 & 1 & 1 \\ 1 & 0 & 1 \end{vmatrix}=1(1-0)-1(0-1)+0=1+1=2\neq 0. The determinant is 22, so the set is linearly independent: a vanishing combination ap1+bp2+cp3=0ap_{1}+bp_{2}+cp_{3}=0 has only the trivial solution a=b=c=0a=b=c=0.

b)

P2P_{2} has dimension 3. A linearly independent set of three vectors in a space of dimension 3 is automatically a basis: it necessarily spans the space, with nothing more to check. This is the counting argument, valid in every finite-dimensional space, and here it saves solving a general system.

c)

Look for aa, bb, cc such that ap1+bp2+cp3=qap_{1}+bp_{2}+cp_{3}=q, that is, in coefficients, a(1,1,0)+b(0,1,1)+c(1,0,1)=(2,3,1)a(1, 1, 0)+b(0, 1, 1)+c(1, 0, 1)=(2, 3, 1). The system is {a+c=2a+b=3b+c=1\begin{cases} a+c=2 \\ a+b=3 \\ b+c=1 \end{cases}. Subtracting the third equation from the second: a−c=2a-c=2; together with the first, a+c=2a+c=2, this gives a=2a=2 and c=0c=0, then b=3−a=1b=3-a=1. Check on the third: b+c=1+0=1b+c=1+0=1 ✓. The coordinates of qq with respect to the basis are therefore (2,1,0)(2, 1, 0), that is, q=2p1+p2q=2p_{1}+p_{2}. Check: 2(1+x)+(x+x2)=2+3x+x22(1+x)+(x+x^{2})=2+3x+x^{2} ✓.

d)

In coefficients: r1=(1,1,0)r_{1}=(1, 1, 0), r2=(0,1,1)r_{2}=(0, 1, 1), r3=(1,2,1)r_{3}=(1, 2, 1). Notice that r1+r2=(1,2,1)=r3r_{1}+r_{2}=(1, 2, 1)=r_{3}, so r3=r1+r2r_{3}=r_{1}+r_{2}: one of the three polynomials is a combination of the other two, and the set is linearly dependent. The dependence relation is r1+r2−r3=0r_{1}+r_{2}-r_{3}=0, a vanishing combination with coefficients (1,1,−1)(1, 1, -1), not all zero. The determinant confirms it: ∣110011121∣=1(1−2)−1(0−1)+0=−1+1=0\begin{vmatrix} 1 & 1 & 0 \\ 0 & 1 & 1 \\ 1 & 2 & 1 \end{vmatrix}=1(1-2)-1(0-1)+0=-1+1=0. The reasoning on polynomials is exactly the reasoning in R3\mathbb{R}^{3}: that is the payoff of translating each polynomial into its coefficient vector.

Part B: exam level (/50)

Exercise 6: Proofs: the rank-nullity theorem and the intersection of subspaces

The abstract proofs of the chapter all follow the same pattern: go back to the definition, apply linearity, conclude. The exam always asks for one.

  • a) State the rank-nullity theorem and illustrate it on the projection P(x,y,z)=(x,y,0)P(x,y,z)=(x,y,0) from R3\mathbb{R}^{3} to R3\mathbb{R}^{3}.
  • b) Prove that if UU and WW are two subspaces of VV, then U∩WU\cap W is a subspace of VV.
  • c) Show with an explicit counterexample in R2\mathbb{R}^{2} that U∪WU\cup W is in general NOT a subspace.
  • d) Let T:R5→R3T:\mathbb{R}^{5}\to\mathbb{R}^{3} be linear and onto. What is dim⁡(ker⁡T)\dim(\ker T)? Can TT be one-to-one? Justify without any matrix computation.

Type your answers, the page tells you right or wrong 0/4

a)
d)
Show the solution

Answers

  • a) Kernel: the zz-axis; image: the xyxy-plane; 1+2=31+2=3
  • b) Three conditions checked
  • c) Two axes: (1,1)(1,1) is missing
  • d) dim⁡ker⁡T=2\dim\ker T=2: not one-to-one
a)

RANK-NULLITY THEOREM: for T:V→WT:V\to W linear with VV finite-dimensional, dim⁡(ker⁡T)+dim⁡(im⁡ T)=dim⁡V\dim(\ker T)+\dim(\operatorname{im}\,T)=\dim V. The number dim⁡(im⁡ T)\dim(\operatorname{im}\,T) is called the RANK of TT and dim⁡(ker⁡T)\dim(\ker T) its NULLITY. Illustration on the projection P(x,y,z)=(x,y,0)P(x,y,z)=(x,y,0): the kernel is the set of (x,y,z)(x,y,z) such that (x,y,0)=(0,0,0)(x,y,0)=(0,0,0), that is, x=y=0x=y=0 with zz free, which is the zz-AXIS, of dimension 1. The image is the set of all (x,y,0)(x,y,0), which is the xyxy-PLANE, of dimension 2. Result: 1+2=3=dim⁡R31+2=3=\dim\mathbb{R}^{3} ✓. The interpretation is geometric and vivid: the projection flattens one direction (that of the kernel, lost for good) and keeps the other two (the image). What is lost and what is kept share out exactly the dimensions of the domain.

b)

Let UU and WW be two subspaces of VV. 1) Zero vector: 0⃗∈U\vec{0}\in U and 0⃗∈W\vec{0}\in W since each is a subspace, so 0⃗∈U∩W\vec{0}\in U\cap W ✓. 2) Addition: let u,v∈U∩Wu,v\in U\cap W. Then u,v∈Uu,v\in U, and since UU is a subspace, u+v∈Uu+v\in U; likewise u,v∈Wu,v\in W gives u+v∈Wu+v\in W. So u+vu+v belongs to both, that is, u+v∈U∩Wu+v\in U\cap W ✓. 3) Scalar multiplication: let u∈U∩Wu\in U\cap W and λ∈R\lambda\in\mathbb{R}. Then λu∈U\lambda u\in U and λu∈W\lambda u\in W by the same argument, so λu∈U∩W\lambda u\in U\cap W ✓. The intersection is therefore a subspace. The argument extends without change to the intersection of any number of subspaces, even infinitely many.

c)

In R2\mathbb{R}^{2}, take the two lines U=span⁡{(1,0)}U=\operatorname{span}\left\{(1,0)\right\} (the xx-axis) and W=span⁡{(0,1)}W=\operatorname{span}\left\{(0,1)\right\} (the yy-axis), which are indeed two subspaces. Their union U∪WU\cup W is the cross formed by the two axes. Now (1,0)∈U⊆U∪W(1,0)\in U\subseteq U\cup W and (0,1)∈W⊆U∪W(0,1)\in W\subseteq U\cup W, but their sum (1,1)(1,1) lies on NEITHER axis, so (1,1)∉U∪W(1,1)\notin U\cup W: closure under addition fails ✓. This is exactly the set S={xy=0}S=\{xy=0\} of Exercise 2, in different clothing. The general principle: the union of two subspaces is a subspace only in the degenerate case where one contains the other. The asymmetry with the intersection makes sense: the intersection RESTRICTS (the conditions pile up, and closure is preserved), whereas the union ENLARGES without any control over what the cross sums produce.

d)

TT is onto, so im⁡ T=R3\operatorname{im}\,T=\mathbb{R}^{3} and dim⁡(im⁡ T)=3\dim(\operatorname{im}\,T)=3. The rank-nullity theorem gives dim⁡(ker⁡T)+3=dim⁡R5=5\dim(\ker T)+3=\dim\mathbb{R}^{5}=5, so dim⁡(ker⁡T)=2\dim(\ker T)=2. TT CANNOT be one-to-one: a linear transformation is one-to-one if and only if its kernel contains only the zero vector, that is, has dimension 0; here the kernel has dimension 2, strictly positive. There is therefore a whole plane of non-zero vectors sent to 0⃗\vec{0}, and, for example, two distinct vectors of this plane have the same image. The general argument is worth remembering in its broadest form: a linear map from a space of dimension 5 to a space of dimension 3 can never be one-to-one, because the rank-nullity theorem forces dim⁡(ker⁡T)≥5−3=2>0\dim(\ker T)\geq 5-3=2>0. You cannot squeeze a space into a smaller one without losing information, and the rank-nullity theorem is the precise statement of that impossibility.

Exercise 7: Problem: identifying the nature of a subspace of R³

A complete end-of-exam problem: start from a system, extract a subspace from it, then find its dimension, a basis and finally its geometric nature. Each step uses the previous one.

  • a) Let WW be the solution set of the homogeneous system {x+2y−z=02x+4y−2z=0\begin{cases}x+2y-z=0\\2x+4y-2z=0\end{cases}. Without any computation, why must WW be a subspace?
  • b) Solve the system and give a basis of WW and its dimension. What is it geometrically?
  • c) Repeat the question with the system {x+2y−z=0x−y+z=0\begin{cases}x+2y-z=0\\x-y+z=0\end{cases}. Compare the two dimensions obtained and explain the difference.
  • d) How many independent constraints does it take to cut R3\mathbb{R}^{3} down to a line? To the origin alone? State the general rule and connect it to the rank-nullity theorem.

Type your answers, the page tells you right or wrong 0/4

b)
c)
d)
Show the solution

Answers

  • a) Homogeneous system: a kernel
  • b) Plane: basis (−2,1,0)(-2,1,0), (1,0,1)(1,0,1)
  • c) Line: basis (1,−2,−3)(1,-2,-3)
  • d) 2 for a line, 3 for the origin
a)

The solution set of a HOMOGENEOUS system (all right-hand sides zero) is always a subspace. Three equivalent arguments. First the direct one: 0⃗\vec{0} is a solution ✓, a sum of solutions is a solution (by linearity of each equation) ✓, a multiple of a solution is a solution ✓. Next the structural one: WW is exactly the KERNEL of the linear transformation with matrix A=(12−124−2)A=\begin{pmatrix}1&2&-1\\2&4&-2\end{pmatrix}, and a kernel is always a subspace by Exercise 4. Finally the geometric one: each homogeneous equation defines a plane through the origin, and an intersection of subspaces is a subspace by Exercise 6. This also explains why a NON-homogeneous system never has a subspace as its solution set, since 0⃗\vec{0} is not a solution.

b)

The second equation is exactly TWICE the first: it carries no information and disappears during row reduction. The system reduces to the single equation x+2y−z=0x+2y-z=0, that is, x=−2y+zx=-2y+z. With two free parameters y=sy=s and z=tz=t: (x,y,z)=(−2s+t,  s,  t)=s(−2,1,0)+t(1,0,1)(x,y,z)=(-2s+t,\;s,\;t)=s(-2,1,0)+t(1,0,1). A basis of WW is therefore {(−2,1,0),  (1,0,1)}\left\{(-2,1,0),\;(1,0,1)\right\}, two vectors that are clearly not scalar multiples of each other, and dim⁡W=2\dim W=2. Geometric nature: a PLANE through the origin, with normal vector (1,2,−1)(1,2,-1). Check: both basis vectors are indeed orthogonal to the normal, since (−2)(1)+(1)(2)+(0)(−1)=0(-2)(1)+(1)(2)+(0)(-1)=0 ✓ and (1)(1)+(0)(2)+(1)(−1)=0(1)(1)+(0)(2)+(1)(-1)=0 ✓.

c)

Here the two equations are not proportional: they are INDEPENDENT. Solving: adding the two equations gives 2x+y=02x+y=0, so y=−2xy=-2x; substituting into the second, x−(−2x)+z=0x-(-2x)+z=0, that is, 3x+z=03x+z=0 and z=−3xz=-3x. With x=tx=t: (x,y,z)=t(1,−2,−3)(x,y,z)=t(1,-2,-3). A basis is {(1,−2,−3)}\left\{(1,-2,-3)\right\} and dim⁡W=1\dim W=1: it is a LINE through the origin. Comparison: two equations gave a plane (dimension 2) in the first case and a line (dimension 1) in the second. The difference does not come from the NUMBER of equations, which is the same, but from the number of INDEPENDENT equations: only one in part b), two here. A redundant equation constrains nothing more, and it is the rank of the coefficient matrix that measures the real constraint.

d)

In R3\mathbb{R}^{3}: one independent constraint gives a plane (dimension 2), two independent constraints give a line (dimension 1), three independent constraints leave only the origin (dimension 0). It therefore takes TWO independent constraints to get a line, and THREE to keep only the origin. General rule: dim⁡W=n−r\dim W=n-r, where nn is the number of unknowns and rr the RANK of the system, that is, its number of independent equations. Each independent constraint costs exactly one dimension. The connection with the rank-nullity theorem is direct: WW is the kernel of the transformation TT with matrix AA, the rank of AA is dim⁡(im⁡ T)=r\dim(\operatorname{im}\,T)=r, and the theorem reads dim⁡(ker⁡T)+r=n\dim(\ker T)+r=n, which is exactly dim⁡W=n−r\dim W=n-r ✓. The two formulations, the one about systems and the one about transformations, are therefore the same statement seen from two sides: it is the central result of the chapter, and it pays to be able to switch from one reading to the other.

dim 0the origindim 1a linedim 2a planethe subspaces of R³, plus R³ itself (dim 3)they all CONTAIN the origin: test that first

Exercise 8: Sum and intersection of two subspaces, and Grassmann's formula

In R3\mathbb{R}^{3}, consider the subspaces U=span⁡{(1,1,0), (1,0,1)}U=\operatorname{span}\left\{(1, 1, 0),\,(1, 0, 1)\right\} and W=span⁡{(0,1,1), (1,1,1)}W=\operatorname{span}\left\{(0, 1, 1),\,(1, 1, 1)\right\}.

  • a) Show that UU and WW are two planes (dimension 2 each).
  • b) Find U∩WU\cap W: give a basis and the dimension.
  • c) Find dim⁡(U+W)\dim(U+W) and conclude that U+W=R3U+W=\mathbb{R}^{3}. Check Grassmann's formula dim⁡(U+W)=dim⁡U+dim⁡W−dim⁡(U∩W)\dim(U+W)=\dim U+\dim W-\dim(U\cap W).
  • d) Is the sum U+WU+W direct? State the criterion and apply it here.

Type your answers, the page tells you right or wrong 0/5

a)
b)
c)
d)
Show the solution

Answers

  • a) Two planes
  • b) U∩W=span⁡{(2,1,1)}U\cap W=\operatorname{span}\{(2,1,1)\}
  • c) dim⁡(U+W)=3=2+2−1\dim(U+W)=3=2+2-1
  • d) No: the intersection is not zero
a)

The two vectors of UU, (1,1,0)(1, 1, 0) and (1,0,1)(1, 0, 1), are not scalar multiples of each other (the ratio of the first components is 11, that of the second components is 00), so they are linearly independent and dim⁡U=2\dim U=2: UU is a plane through the origin. Likewise (0,1,1)(0, 1, 1) and (1,1,1)(1, 1, 1) are not scalar multiples of each other, so dim⁡W=2\dim W=2: WW is a plane too.

b)

A vector of U∩WU\cap W can be written both as a(1,1,0)+b(1,0,1)=(a+b,a,b)a(1, 1, 0)+b(1, 0, 1)=(a+b, a, b) and as c(0,1,1)+d(1,1,1)=(d,c+d,c+d)c(0, 1, 1)+d(1, 1, 1)=(d, c+d, c+d). Equating component by component gives {a+b=da=c+db=c+d\begin{cases} a+b=d \\ a=c+d \\ b=c+d \end{cases}. The last two equations give a=ba=b; then the first gives d=2ad=2a, and a=c+d=c+2aa=c+d=c+2a implies c=−ac=-a. The common vector is therefore (a+b,a,b)=(2a,a,a)=a(2,1,1)(a+b, a, b)=(2a, a, a)=a(2, 1, 1). A basis of U∩WU\cap W is {(2,1,1)}\left\{(2, 1, 1)\right\} and dim⁡(U∩W)=1\dim(U\cap W)=1: the two planes meet along a line. Check: (2,1,1)=(1,1,0)+(1,0,1)∈U(2, 1, 1)=(1, 1, 0)+(1, 0, 1)\in U and (2,1,1)=−(0,1,1)+2(1,1,1)∈W(2, 1, 1)=-(0, 1, 1)+2(1, 1, 1)\in W ✓.

c)

U+WU+W is spanned by the four vectors. The first three, (1,1,0)(1, 1, 0), (1,0,1)(1, 0, 1), (0,1,1)(0, 1, 1), have determinant ∣110101011∣=1(0−1)−1(1−0)+0=−2≠0\begin{vmatrix} 1 & 1 & 0 \\ 1 & 0 & 1 \\ 0 & 1 & 1 \end{vmatrix}=1(0-1)-1(1-0)+0=-2\neq 0: they already form a basis of R3\mathbb{R}^{3}. So dim⁡(U+W)=3\dim(U+W)=3 and U+W=R3U+W=\mathbb{R}^{3}. Grassmann's formula checks out: dim⁡U+dim⁡W−dim⁡(U∩W)=2+2−1=3=dim⁡(U+W)\dim U+\dim W-\dim(U\cap W)=2+2-1=3=\dim(U+W) ✓. It is a safe way to find dim⁡(U∩W)\dim(U\cap W) when the intersection is tedious to compute directly: dim⁡(U∩W)=dim⁡U+dim⁡W−dim⁡(U+W)\dim(U\cap W)=\dim U+\dim W-\dim(U+W).

d)

Criterion: a sum U+WU+W is DIRECT, written U⊕WU\oplus W, if and only if U∩W={0⃗}U\cap W=\left\{\vec{0}\right\}, that is, dim⁡(U∩W)=0\dim(U\cap W)=0. Here the intersection is a line of dimension 11, so the sum is NOT direct: although U+WU+W fills all of R3\mathbb{R}^{3}, splitting a vector into a part in UU and a part in WW is not unique, since any vector of the common line can be moved from one side to the other. For a direct sum that fills R3\mathbb{R}^{3}, you would need, for example, a plane and a line not contained in that plane, whose dimensions 2+1=32+1=3 add up without overlap.

U ∩ WUW

Exercise 9: Rank of a matrix, column space and null space

Consider the matrix A=(121324371224)A=\begin{pmatrix} 1 & 2 & 1 & 3 \\ 2 & 4 & 3 & 7 \\ 1 & 2 & 2 & 4 \end{pmatrix}, of size 3×43\times 4. The rank, the column space and the null space can all be read from its echelon form.

  • a) Reduce AA to echelon form with row operations and find its rank.
  • b) Give a basis of the column space of AA, and its dimension.
  • c) Find the null space of AA (the set of XX such that AX=0⃗AX=\vec{0}): give a basis and the dimension.
  • d) Check the relation rank plus nullity, and recall why the row rank equals the column rank.

Type your answers, the page tells you right or wrong 0/4

a)
b)
c)
d)
Show the solution

Answers

  • a) Rank 2
  • b) Basis (1,2,1)(1,2,1), (1,3,2)(1,3,2)
  • c) Basis (−2,1,0,0)(-2,1,0,0), (−2,0,−1,1)(-2,0,-1,1)
  • d) 2+2=42+2=4
a)

Reduce: R2→R2−2R1R_{2}\to R_{2}-2R_{1} gives (0,0,1,1)(0, 0, 1, 1), and R3→R3−R1R_{3}\to R_{3}-R_{1} gives (0,0,1,1)(0, 0, 1, 1). These two new rows are identical, so R3→R3−R2R_{3}\to R_{3}-R_{2} gives a zero row. The echelon form is (121300110000)\begin{pmatrix} 1 & 2 & 1 & 3 \\ 0 & 0 & 1 & 1 \\ 0 & 0 & 0 & 0 \end{pmatrix}: two non-zero rows remain, so the rank of AA is 22. The pivots are in columns 1 and 3.

b)

The column space is spanned by the columns of AA in the pivot positions, taken from the ORIGINAL matrix: columns 1 and 3, that is, (1,2,1)(1, 2, 1) and (1,3,2)(1, 3, 2). They are linearly independent (not scalar multiples of each other), so a basis of the column space is {(1,2,1), (1,3,2)}\left\{(1, 2, 1),\,(1, 3, 2)\right\} and its dimension is 22, equal to the rank. Columns 2 and 4, which have no pivot, are combinations of the previous ones.

c)

Solve AX=0⃗AX=\vec{0} from the echelon form. The columns without a pivot, 2 and 4, give the free variables x2=sx_{2}=s and x4=tx_{4}=t. Row 2, x3+x4=0x_{3}+x_{4}=0, gives x3=−tx_{3}=-t. Row 1 of the echelon form, x1+2x2+x3+3x4=0x_{1}+2x_{2}+x_{3}+3x_{4}=0, gives x1=−2s−x3−3t=−2s+t−3t=−2s−2tx_{1}=-2s-x_{3}-3t=-2s+t-3t=-2s-2t. So X=(−2s−2t,s,−t,t)=s(−2,1,0,0)+t(−2,0,−1,1)X=(-2s-2t, s, -t, t)=s(-2, 1, 0, 0)+t(-2, 0, -1, 1). A basis of the null space is {(−2,1,0,0), (−2,0,−1,1)}\left\{(-2, 1, 0, 0),\,(-2, 0, -1, 1)\right\} and its dimension, the nullity, is 22.

d)

The number of columns is 44. We have rank ++ nullity =2+2=4=2+2=4, which confirms the rank-nullity theorem applied to the matrix: rank⁡(A)+dim⁡(null space)=\operatorname{rank}(A)+\dim(\text{null space})= number of columns. Finally, the row rank equals the column rank, here 2=22=2: this is a fundamental theorem of linear algebra, which lets you compute the rank by reducing either the rows or the columns. It is what allows you to read both the dimension of the row space and that of the column space from one and the same reduction.

Exercise 10: Problem: differentiation on polynomials, kernel, image and the rank-nullity theorem

Consider the differentiation map D:P2→P2D:P_{2}\to P_{2}, defined by D(p)=p′D(p)=p'. Here the “vectors” are polynomials, and DD is a linear transformation from an abstract space to itself.

  • a) Check that DD is linear, and write its matrix with respect to the standard basis {1, x, x2}\left\{1,\,x,\,x^{2}\right\}.
  • b) Find ker⁡D\ker D: give a basis and the dimension. Interpret.
  • c) Find im⁡ D\operatorname{im}\,D and its dimension. Is DD onto? One-to-one?
  • d) Check the rank-nullity theorem for DD, then find ker⁡(D2)\ker(D^{2}) and im⁡(D2)\operatorname{im}(D^{2}) in the same way, where D2=D∘DD^{2}=D\circ D.

Type your answers, the page tells you right or wrong 0/6

b)
c)
d)
Show the solution

Answers

  • a) Matrix (010002000)\begin{pmatrix}0&1&0\\0&0&2\\0&0&0\end{pmatrix}
  • b) The constants: dimension 1
  • c) P1P_1, dimension 2: neither onto nor one-to-one
  • d) ker⁡D2=P1\ker D^2=P_1; im⁡ D2\operatorname{im}\,D^2: the constants
a)

For two polynomials pp, qq and a scalar λ\lambda, differentiation satisfies (p+q)′=p′+q′(p+q)'=p'+q' and (λp)′=λp′(\lambda p)'=\lambda p': these are the rules of differentiation, and they say exactly that DD is additive and homogeneous, hence linear. On the basis: D(1)=0D(1)=0, D(x)=1D(x)=1, D(x2)=2xD(x^{2})=2x. In coordinates (a0,a1,a2)(a_{0}, a_{1}, a_{2}), the images are (0,0,0)(0, 0, 0), (1,0,0)(1, 0, 0) and (0,2,0)(0, 2, 0), so the matrix of DD is (010002000)\begin{pmatrix} 0 & 1 & 0 \\ 0 & 0 & 2 \\ 0 & 0 & 0 \end{pmatrix}, the images of the basis vectors forming its columns.

b)

ker⁡D\ker D is the set of p=a0+a1x+a2x2p=a_{0}+a_{1}x+a_{2}x^{2} such that p′=a1+2a2x=0p'=a_{1}+2a_{2}x=0 for every xx, which forces a1=0a_{1}=0 and a2=0a_{2}=0, while the coefficient a0a_{0} remains free. So ker⁡D={a0⋅1}=span⁡{1}\ker D=\left\{a_{0}\cdot 1\right\}=\operatorname{span}\left\{1\right\}, with basis {1}\left\{1\right\} and dimension 11. Interpretation: these are the constant polynomials, exactly those whose derivative is zero, as the calculus course already tells you.

c)

im⁡ D\operatorname{im}\,D is spanned by the images of the basis: D(1)=0D(1)=0, D(x)=1D(x)=1, D(x2)=2xD(x^{2})=2x. These images span span⁡{1, x}=P1\operatorname{span}\left\{1,\,x\right\}=P_{1}, the set of polynomials of degree at most 11, of dimension 22. So DD is NOT onto P2P_{2}: the polynomial x2x^{2}, for example, is not the derivative of any polynomial of P2P_{2} (that would take 13x3\tfrac{1}{3}x^{3}, of degree 33). It is not one-to-one either, since its kernel, of dimension 11, is not just the zero polynomial: two polynomials that differ by a constant have the same derivative.

d)

Rank-nullity theorem: dim⁡(ker⁡D)+dim⁡(im⁡ D)=1+2=3=dim⁡P2\dim(\ker D)+\dim(\operatorname{im}\,D)=1+2=3=\dim P_{2} ✓. For D2D^{2}, differentiate twice: D2(a0+a1x+a2x2)=(a1+2a2x)′=2a2D^{2}(a_{0}+a_{1}x+a_{2}x^{2})=(a_{1}+2a_{2}x)'=2a_{2}, a constant polynomial. The kernel ker⁡(D2)\ker(D^{2}) is therefore the set of pp such that 2a2=02a_{2}=0, that is, a2=0a_{2}=0: these are the polynomials of degree at most 11, ker⁡(D2)=P1\ker(D^{2})=P_{1}, of dimension 22. The image im⁡(D2)={2a2}\operatorname{im}(D^{2})=\left\{2a_{2}\right\} is the set of constants, span⁡{1}\operatorname{span}\left\{1\right\}, of dimension 11. Once again dim⁡(ker⁡D2)+dim⁡(im⁡ D2)=2+1=3\dim(\ker D^{2})+\dim(\operatorname{im}\,D^{2})=2+1=3 ✓. Differentiating once more makes the kernel bigger and the image smaller, but their dimensions still add up to the dimension of the domain: the rank-nullity theorem holds at every step.

Part C: the classics (/50)

Exercise 11: Symmetric and skew-symmetric matrices: a direct sum

In the space M2×2M_{2\times 2} of 2×22\times 2 matrices, let SS be the set of SYMMETRIC matrices, AT=AA^{T}=A, and KK the set of SKEW-SYMMETRIC matrices, AT=−AA^{T}=-A.

  • a) Show that SS is a subspace of M2×2M_{2\times 2}, then give a basis of SS and its dimension.
  • b) Give a basis and the dimension of KK.
  • c) Find S∩KS\cap K.
  • d) Write M=(1423)M=\begin{pmatrix} 1 & 4 \\ 2 & 3 \end{pmatrix} as the sum of a symmetric matrix and a skew-symmetric matrix.
  • e) Show that M2×2=S⊕KM_{2\times 2}=S\oplus K. What would the dimensions of SS and KK be in M3×3M_{3\times 3}?

Type your answers, the page tells you right or wrong 0/7

a)
b)
c)
d)
e)
Show the solution

Answers

  • a) dim⁡S=3\dim S=3
  • b) dim⁡K=1\dim K=1
  • c) S∩K={0}S\cap K=\{0\}
  • d) (1333)+(01−10)\begin{pmatrix}1&3\\3&3\end{pmatrix}+\begin{pmatrix}0&1\\-1&0\end{pmatrix}
  • e) 3+1=43+1=4; in 3×33\times 3: 6 and 3
a)

The zero matrix is symmetric; (A+B)T=AT+BT=A+B(A+B)^{T}=A^{T}+B^{T}=A+B and (λA)T=λAT=λA(\lambda A)^{T}=\lambda A^{T}=\lambda A: the three conditions of the test hold. A symmetric matrix can be written (abbd)=a(1000)+b(0110)+d(0001)\begin{pmatrix} a & b \\ b & d \end{pmatrix}=a\begin{pmatrix} 1 & 0 \\ 0 & 0 \end{pmatrix}+b\begin{pmatrix} 0 & 1 \\ 1 & 0 \end{pmatrix}+d\begin{pmatrix} 0 & 0 \\ 0 & 1 \end{pmatrix}, and these three matrices are linearly independent: a basis with three elements, dim⁡S=3\dim S=3.

b)

AT=−AA^{T}=-A forces zeros on the diagonal, a=−aa=-a and d=−dd=-d, and c=−bc=-b: A=b(01−10)A=b\begin{pmatrix} 0 & 1 \\ -1 & 0 \end{pmatrix}. Basis {(01−10)}\left\{\begin{pmatrix} 0 & 1 \\ -1 & 0 \end{pmatrix}\right\}, dim⁡K=1\dim K=1.

c)

If A∈S∩KA\in S\cap K, then A=AT=−AA=A^{T}=-A, so 2A=02A=0 and A=0A=0: S∩K={0}S\cap K=\{0\}, of dimension 00.

d)

Set M+MT2=12(2666)=(1333)\frac{M+M^{T}}{2}=\frac{1}{2}\begin{pmatrix} 2 & 6 \\ 6 & 6 \end{pmatrix}=\begin{pmatrix} 1 & 3 \\ 3 & 3 \end{pmatrix}, which is symmetric, and M−MT2=12(02−20)=(01−10)\frac{M-M^{T}}{2}=\frac{1}{2}\begin{pmatrix} 0 & 2 \\ -2 & 0 \end{pmatrix}=\begin{pmatrix} 0 & 1 \\ -1 & 0 \end{pmatrix}, which is skew-symmetric. Their sum gives back MM.

e)

Grassmann: dim⁡(S+K)=3+1−0=4=dim⁡M2×2\dim(S+K)=3+1-0=4=\dim M_{2\times 2}, so S+K=M2×2S+K=M_{2\times 2}, and the zero intersection makes the sum direct: the decomposition of d) is UNIQUE. In Mn×nM_{n\times n}, a symmetric matrix is determined by its entries on and above the diagonal, n(n+1)2\frac{n(n+1)}{2} of them, and a skew-symmetric matrix by those strictly above, n(n−1)2\frac{n(n-1)}{2} of them. For n=3n=3: dim⁡S=6\dim S=6 and dim⁡K=3\dim K=3, and 6+3=96+3=9.

The thread: two subspaces with zero intersection whose dimensions add up to that of the whole space form a direct sum; the formula M+MT2+M−MT2\frac{M+M^{T}}{2}+\frac{M-M^{T}}{2} gives the decomposition.

Exercise 12: The polynomials that vanish at 1

In P3P_{3}, the space of polynomials of degree at most 3, of dimension 4, consider W1={p∈P3  :  p(1)=0}W_{1}=\{p\in P_{3}\;:\;p(1)=0\} and W2={p∈P3  :  p(1)=0 and p′(1)=0}W_{2}=\{p\in P_{3}\;:\;p(1)=0\ \text{and}\ p'(1)=0\}.

  • a) Show that W1W_{1} is the kernel of the map φ(p)=p(1)\varphi(p)=p(1), from P3P_{3} to R\mathbb{R}, and deduce its dimension from the rank-nullity theorem.
  • b) Show that {x−1, x2−1, x3−1}\{x-1,\ x^{2}-1,\ x^{3}-1\} is a basis of W1W_{1}.
  • c) Find the coordinates of q=x3−2x2+xq=x^{3}-2x^{2}+x with respect to this basis.
  • d) Find the dimension of W2W_{2} and give a basis of it.
  • e) Does the polynomial qq belong to W2W_{2}? What about x3−1x^{3}-1?

Type your answers, the page tells you right or wrong 0/8

a)
b)
c)
d)
e)
Show the solution

Answers

  • a) dim⁡W1=3\dim W_1=3
  • b) Distinct degrees: a basis
  • c) (1,−2,1)(1, -2, 1)
  • d) dim⁡W2=2\dim W_2=2; basis (x−1)2(x-1)^2, x(x−1)2x(x-1)^2
  • e) qq yes; x3−1x^3-1 no
a)

φ(p+q)=p(1)+q(1)\varphi(p+q)=p(1)+q(1) and φ(λp)=λp(1)\varphi(\lambda p)=\lambda p(1): φ\varphi is linear, so W1=ker⁡φW_{1}=\ker\varphi is a subspace. The image is all of R\mathbb{R}, since the constant polynomial cc is sent to cc: dim⁡(im⁡ φ)=1\dim(\operatorname{im}\,\varphi)=1. Rank-nullity theorem: dim⁡W1=4−1=3\dim W_{1}=4-1=3.

b)

All three polynomials vanish at 11, so they lie in W1W_{1}. Their degrees, 11, 22 and 33, are distinct: a vanishing combination a(x−1)+b(x2−1)+c(x3−1)=0a(x-1)+b(x^{2}-1)+c(x^{3}-1)=0 forces c=0c=0 through the x3x^{3} term, then b=0b=0, then a=0a=0. Three linearly independent vectors in a space of dimension 3: it is a basis.

c)

q(1)=1−2+1=0q(1)=1-2+1=0, so q∈W1q\in W_{1}. Match a(x−1)+b(x2−1)+c(x3−1)=x3−2x2+xa(x-1)+b(x^{2}-1)+c(x^{3}-1)=x^{3}-2x^{2}+x: x3x^{3} gives c=1c=1, x2x^{2} gives b=−2b=-2, xx gives a=1a=1, and the constant term −a−b−c=−1+2−1=0-a-b-c=-1+2-1=0 does check out. Coordinates (1,−2,1)(1, -2, 1).

d)

For p=a0+a1x+a2x2+a3x3p=a_{0}+a_{1}x+a_{2}x^{2}+a_{3}x^{3}: p(1)=a0+a1+a2+a3=0p(1)=a_{0}+a_{1}+a_{2}+a_{3}=0 and p′(1)=a1+2a2+3a3=0p'(1)=a_{1}+2a_{2}+3a_{3}=0. Two independent constraints, since the first contains a0a_{0} and the second does not: dim⁡W2=4−2=2\dim W_{2}=4-2=2. The polynomials (x−1)2(x-1)^{2} and x(x−1)2x(x-1)^{2} have 11 as a double root, so they lie in W2W_{2}; of degrees 2 and 3, they are linearly independent: basis {(x−1)2, x(x−1)2}\{(x-1)^{2},\ x(x-1)^{2}\}.

e)

q=x(x−1)2q=x(x-1)^{2}: yes, q∈W2q\in W_{2}, with coordinates (0,1)(0, 1) in this basis. On the other hand x3−1x^{3}-1 satisfies p(1)=0p(1)=0 but p′(1)=3≠0p'(1)=3\neq 0: it lies in W1W_{1} but not in W2W_{2}.

The thread: a linear condition on a polynomial defines a kernel, and each independent condition costs one dimension.

Exercise 13: Extending a linearly independent set to a basis

In R4\mathbb{R}^{4}, consider u1⃗=(1,2,0,1)\vec{u_{1}}=(1, 2, 0, 1) and u2⃗=(0,1,1,0)\vec{u_{2}}=(0, 1, 1, 0). The basis extension theorem states that every linearly independent set can be extended to a basis.

  • a) Is the set {u1⃗, u2⃗}\{\vec{u_{1}},\ \vec{u_{2}}\} linearly independent?
  • b) How many vectors must be added to it to obtain a basis of R4\mathbb{R}^{4}?
  • c) Someone suggests adding e3⃗=(0,0,1,0)\vec{e_{3}}=(0, 0, 1, 0) and e4⃗=(0,0,0,1)\vec{e_{4}}=(0, 0, 0, 1). Compute the determinant of the four vectors and conclude.
  • d) A student suggests e3⃗\vec{e_{3}} and w⃗=(1,3,1,1)\vec{w}=(1, 3, 1, 1) instead. Do these give a basis?
  • e) Find the coordinates of (2,5,3,2)(2, 5, 3, 2) with respect to the basis {u1⃗, u2⃗, e3⃗, e4⃗}\{\vec{u_{1}},\ \vec{u_{2}},\ \vec{e_{3}},\ \vec{e_{4}}\}.

Type your answers, the page tells you right or wrong 0/8

a)
b)
c)
d)
e)
Show the solution

Answers

  • a) Linearly independent
  • b) Two vectors
  • c) Determinant 1: a basis
  • d) No: w⃗=u1⃗+u2⃗\vec w=\vec{u_1}+\vec{u_2}
  • e) (2,1,2,0)(2, 1, 2, 0)
a)

Yes: u2⃗\vec{u_{2}} has a zero first component and u1⃗\vec{u_{1}} does not, so they are not scalar multiples of each other, and two non-parallel vectors form a linearly independent set.

b)

dim⁡R4=4\dim\mathbb{R}^{4}=4 and the set contains two linearly independent vectors: two more are needed, chosen outside the plane they span.

c)

With the vectors as rows, the matrix (1201011000100001)\begin{pmatrix} 1 & 2 & 0 & 1 \\ 0 & 1 & 1 & 0 \\ 0 & 0 & 1 & 0 \\ 0 & 0 & 0 & 1 \end{pmatrix} is upper triangular: its determinant is the product of the diagonal entries, 11. It is non-zero, so the four vectors form a basis of R4\mathbb{R}^{4}.

d)

No: u1⃗+u2⃗=(1,3,1,1)=w⃗\vec{u_{1}}+\vec{u_{2}}=(1, 3, 1, 1)=\vec{w}. The added vector already lies in the plane spanned by u1⃗\vec{u_{1}} and u2⃗\vec{u_{2}}, so the set is linearly dependent. Extending to a basis does not mean adding just any vectors: it means adding vectors that leave the subspace already spanned.

e)

au1⃗+bu2⃗+ce3⃗+de4⃗=(a,2a+b,b+c,a+d)=(2,5,3,2)a\vec{u_{1}}+b\vec{u_{2}}+c\vec{e_{3}}+d\vec{e_{4}}=(a, 2a+b, b+c, a+d)=(2, 5, 3, 2). Read off a=2a=2, then b=5−4=1b=5-4=1, c=3−1=2c=3-1=2 and d=2−2=0d=2-2=0. Coordinates (2,1,2,0)(2, 1, 2, 0).

The thread: extend a linearly independent set with vectors of the standard basis, and a non-zero determinant certifies the choice.

Exercise 14: Problem: two descriptions of the same subspace of R⁴

In R4\mathbb{R}^{4}, define W={(x1,x2,x3,x4)  :  x1+x2−x3=0 and x2+x4=0}W=\{(x_{1}, x_{2}, x_{3}, x_{4})\;:\;x_{1}+x_{2}-x_{3}=0\ \text{and}\ x_{2}+x_{4}=0\} by two equations, and V=span⁡{(1,0,1,0), (0,1,1,−1)}V=\operatorname{span}\{(1, 0, 1, 0),\ (0, 1, 1, -1)\} by two spanning vectors.

  • a) Find the dimension of WW and a basis of WW.
  • b) Show that V⊆WV\subseteq W.
  • c) Deduce that V=WV=W.
  • d) Does the vector (3,−2,1,2)(3, -2, 1, 2) belong to WW? If so, give its coordinates with respect to the basis of VV.
  • e) Which equation must be added to those of WW to obtain the line directed by (1,0,1,0)(1, 0, 1, 0): x1=0x_{1}=0, x2=0x_{2}=0 or x3=0x_{3}=0?

Type your answers, the page tells you right or wrong 0/8

a)
b)
c)
d)
e)
Show the solution

Answers

  • a) dim⁡W=2\dim W=2
  • b) The spanning vectors lie in WW
  • c) Same dimension: V=WV=W
  • d) Yes: (3,−2)(3, -2)
  • e) x2=0x_2=0: a line
a)

Two independent equations, since only the first contains x1x_{1}: dim⁡W=4−2=2\dim W=4-2=2. Solve: x4=−x2x_{4}=-x_{2} and x1=x3−x2x_{1}=x_{3}-x_{2}. With x2=sx_{2}=s and x3=tx_{3}=t: (t−s,s,t,−s)=s(−1,1,0,−1)+t(1,0,1,0)(t-s, s, t, -s)=s(-1, 1, 0, -1)+t(1, 0, 1, 0). Basis {(−1,1,0,−1), (1,0,1,0)}\{(-1, 1, 0, -1),\ (1, 0, 1, 0)\}.

b)

(1,0,1,0)(1, 0, 1, 0): 1+0−1=01+0-1=0 and 0+0=00+0=0. (0,1,1,−1)(0, 1, 1, -1): 0+1−1=00+1-1=0 and 1−1=01-1=0. Both spanning vectors of VV lie in WW, and WW is a subspace, so all their linear combinations lie in it too: V⊆WV\subseteq W.

c)

The two spanning vectors of VV are not scalar multiples of each other, so dim⁡V=2=dim⁡W\dim V=2=\dim W. A subspace contained in another subspace of the same finite dimension is equal to it: V=WV=W. This avoids proving the reverse inclusion.

d)

3−2−1=03-2-1=0 and −2+2=0-2+2=0: yes. a(1,0,1,0)+b(0,1,1,−1)=(a,b,a+b,−b)a(1, 0, 1, 0)+b(0, 1, 1, -1)=(a, b, a+b, -b), so a=3a=3, b=−2b=-2, and the last two components agree: a+b=1a+b=1 and −b=2-b=2. Coordinates (3,−2)(3, -2).

e)

The line must contain (1,0,1,0)(1, 0, 1, 0), which rules out x1=0x_{1}=0 and x3=0x_{3}=0. With x2=0x_{2}=0, the equations of WW give x4=0x_{4}=0 and x1=x3x_{1}=x_{3}: we get {(t,0,t,0)}\{(t, 0, t, 0)\}, the required line, of dimension 4−3=14-3=1.

The thread: a subspace can be described by equations or by spanning vectors; inclusion plus equal dimensions is enough to prove that two descriptions agree.

Exercise 15: Problem: the space of linear recurrence sequences

Let EE be the set of real sequences (un)(u_{n}) that satisfy, for every n≥0n\geq 0, the relation un+2=5un+1−6unu_{n+2}=5u_{n+1}-6u_{n}. We work in the vector space of all real sequences, with term-by-term addition and multiplication by a real number.

  • a) Show that EE is a subspace of the space of sequences.
  • b) A sequence of EE is completely determined by its first two terms u0u_{0} and u1u_{1}. Deduce the dimension of EE.
  • c) Find the non-zero real numbers qq for which the geometric sequence (qn)(q^{n}) belongs to EE.
  • d) Show that the two geometric sequences found form a basis of EE, then express the sequence of EE with u0=1u_{0}=1 and u1=4u_{1}=4 in this basis.
  • e) Compute u5u_{5} with the formula obtained, then check it with the recurrence relation.

Type your answers, the page tells you right or wrong 0/6

b)
c)
d)
e)
Show the solution

Answers

  • a) Linear relation: a subspace
  • b) dim⁡E=2\dim E=2
  • c) q=2q=2 or q=3q=3
  • d) un=−2n+2⋅3nu_n=-2^n+2\cdot 3^n
  • e) u5=454u_5=454
a)

The zero sequence satisfies 0=5⋅0−6⋅00=5\cdot 0-6\cdot 0. If (un)(u_{n}) and (vn)(v_{n}) satisfy the relation, then un+2+vn+2=5(un+1+vn+1)−6(un+vn)u_{n+2}+v_{n+2}=5(u_{n+1}+v_{n+1})-6(u_{n}+v_{n}), and λun+2=5λun+1−6λun\lambda u_{n+2}=5\lambda u_{n+1}-6\lambda u_{n}. The relation is LINEAR in the sequence: EE is a subspace.

b)

The map that sends a sequence of EE to the pair (u0,u1)(u_{0}, u_{1}) is linear; it is one-to-one, since two sequences with the same first terms coincide by induction, and onto, since every starting pair generates a sequence of EE. It is an isomorphism onto R2\mathbb{R}^{2}: dim⁡E=2\dim E=2.

c)

qn+2=5qn+1−6qnq^{n+2}=5q^{n+1}-6q^{n} for every nn is equivalent, after dividing by qnq^{n}, to q2−5q+6=0q^{2}-5q+6=0, that is, (q−2)(q−3)=0(q-2)(q-3)=0: q=2q=2 or q=3q=3.

d)

The pairs of first terms of (2n)(2^{n}) and (3n)(3^{n}) are (1,2)(1, 2) and (1,3)(1, 3), with determinant 3−2=1≠03-2=1\neq 0: the two sequences are linearly independent, and two linearly independent vectors in a space of dimension 2 form a basis. Write un=a 2n+b 3nu_{n}=a\,2^{n}+b\,3^{n}: a+b=1a+b=1 and 2a+3b=42a+3b=4, hence b=2b=2 and a=−1a=-1. So un=−2n+2⋅3nu_{n}=-2^{n}+2\cdot 3^{n}.

e)

u5=−32+2×243=454u_{5}=-32+2\times 243=454. With the recurrence: u2=20−6=14u_{2}=20-6=14, u3=70−24=46u_{3}=70-24=46, u4=230−84=146u_{4}=230-84=146, u5=730−276=454u_{5}=730-276=454. The two computations agree.

The thread: a linear recurrence defines a subspace whose dimension equals its order; the geometric sequences provide a basis.

Something missing from this set? A type of exercise your teacher gives, a problem you are stuck on, a mistake you spotted: tell me, I read every request.

Sending goes through your free space: that is how I can answer you and tell you when the exercise is added. An email is enough, no password. Create your space. Rather not create an account? Write to me directly.

What is it about?
I read every request myself, nobody else sees it. No need to write your name or your school.
When your request is dealt with, you hear about it by email and in your space.

By sending, you agree that I read your request to answer it. It is kept with your account, erased with it, and never published: privacy policy.

Previous chapter Linear combinations, linear dependence and bases, 201-SN4-RE Next chapter Linear transformations of the plane, 201-SN4-RE

© Ahmed Squalli Houssaini. Exercise set published at www.letuteurscientifique.ca/en/exercices/cegep-sn4-vector-spaces-subspaces. Free for personal and classroom use; republishing it elsewhere requires written permission (legal notice).

See also

Looking for a linear algebra tutor in Montreal?

Get in touch for a first session. We work on 201-SN4-RE linear algebra at the real level of CEGEP tests, including the abstract chapter on vector spaces, where most students lose their footing.

Site by Studio Squalli