Linear Algebra and Vector Geometry 201-SN4-RE • CEGEP, Montreal
Corrected exercises: linear combinations, linear dependence and bases (201-SN4-RE)
This is the corrected exercise set on linear combinations, linear dependence and bases for 201-SN4-RE (formerly 201-NYC), Linear Algebra and Vector Geometry, the CEGEP course of the Science program; the same chapter is also taught in 201-105, the linear algebra course of the Social Science mathematics profile. Part A covers the basics: components and norm of a vector, writing a vector as a linear combination of two others, the test for linear dependence or independence, bases and the coordinates of a vector relative to a non-standard basis, and how to extract a basis from a dependent spanning set. Part B moves up to exam level: proofs of independence, the role of the zero vector, uniqueness of coordinates, a complete change-of-basis problem, the properties of subsets and supersets, and a true-or-false review of dimension. Part C adds five classics: resolving a force along two cables, coordinates in an orthonormal basis, a set with a parameter that changes rank, the colours a screen can display, and the bases of a crystal lattice.
Exercise 0.1 opens the set with ten direct computations of linear combinations and coordinates, like the drill lists of the textbooks: the coefficients a and b such that w=au+bv in R2, with integer then fractional answers, the way back from a basis to the standard basis, coordinates in an orthogonal basis by dot products, the independent-or-dependent test by the determinant, the value of k that makes two vectors collinear, coordinates relative to a basis of R3 and the value of m that makes three vectors dependent, each with one value to find, checked on the spot.
This is the chapter that opens the semester, and it is also the one students underestimate the most. The computations are short, so everyone believes they have understood. Then the test asks you to justify that a set is linearly independent, or to find the parameter that makes three vectors dependent, and the gap opens. The vocabulary here is not decoration: every word stands for a precise computation.
The reflex to build right away: the question “is this vector a linear combination of the others?” is always the question “does this system have a solution?”. You do not guess the coefficients, you solve for them. And the determinant settles in one line what a system settles in ten.
Self-checking setType 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.
•Linear combination: w is a linear combination of u and v if there are scalars a and b such that w=au+bv. Finding a and b always comes down to solving a system of linear equations, one equation per component.
•Linearly independent set: {v1,…,vn} is linearly independent if the only way to write a1v1+⋯+anvn=0 is to take every ai equal to zero. Otherwise the set is linearly dependent, and at least one vector can be expressed in terms of the others.
•Quick test by the determinant: n vectors of Rn are linearly independent if and only if the determinant of the matrix formed by their components is non-zero. In R2: two vectors are dependent if and only if they are collinear.
•Basis of Rn: a set of n vectors that is both linearly independent and spanning. In Rn, every linearly independent set of n vectors is automatically a basis, so the check comes down to a single non-zero determinant.
•Size and dimension: in Rn, a linearly independent set has at most n vectors, a spanning set at least n, and a basis exactly n. In particular, more than n vectors in Rn always form a linearly dependent set, with no computation at all.
•Coordinates relative to a basis B={e1,…,en}: they are the scalars (a1,…,an) such that v=a1e1+⋯+anen. They are unique, and they depend on the basis chosen: the same vector does not have the same coordinates in two different bases.
•Unit vector with the same direction as v: ∥v∥v. To get a vector of norm k pointing the opposite way, take −k∥v∥v.
Computations: coefficients, coordinates and determinants
Exercise 0.1: Finding the coefficients of a linear combination: ten direct computations
For each line, compute the coefficients, the components, the determinant or the parameter asked for. Give fractions exactly, in the form −43 or −3/4.
One single question hides behind every line: does the system au+bv(+cw)=t have a solution, and which one? Write one equation per component, then solve by substitution, starting with the equation that has the fewest unknowns. The determinant of the vectors settles it in advance: non-zero, the set is linearly independent and the solution is unique; zero, the set is linearly dependent. In an orthogonal basis, each coordinate is read directly from a dot product.
a) u=(3,−2) and v=(1,4): find a and b such that (5,−8)=au+bv.
b) u=(2,5) and v=(−1,3): find a and b such that (4,1)=au+bv.
c) A vector has coordinates (−2,3) relative to the basis {(1,−2),(4,1)}: give its two components in the standard basis.
d) In the orthogonal basis f1=(2,3), f2=(−3,2), give the coordinates a and b of w=(4,19) by two dot products.
e) Compute the determinant of p=(6,−9) and q=(−4,6), then say whether the set {p,q} is linearly independent or dependent.
f) Find the values of k for which (k,3) and (4,k+4) are collinear.
g) In the basis {(1,0,0),(2,1,0),(−1,3,1)} of R3, find a, b, c such that (4,−1,2)=a(1,0,0)+b(2,1,0)+c(−1,3,1), then give a and b.
h) Find a, b, c such that (0,6,6)=a(1,−1,2)+b(2,1,1)+c(0,3,1), then give a and c.
i) Compute the determinant of the vectors (2,−1,1), (1,3,−2) and (5,1,1), then say whether the set is linearly independent or dependent.
j) Find the value of m for which the vectors (1,m,0), (0,1,2) and (2,1,m) are linearly dependent.
Show the solution
Answers
a)(5,−8)=2u−v; a=2, b=−1
b)a=1113, b=−1118
c)−2(1,−2)+3(4,1)=(10,7)
d)a=1365=5, b=1326=2
e)det=0; dependent, q=−32p
f)(k+6)(k−2)=0; k=−6 or k=2
g)c=2, b=−7, a=20
h)a=2, b=−1, c=3
i)det=7; independent
j)5m−2=0; m=52
The move that decides everything: write ONE equation per component before looking for anything. Coefficients are not guessed, they are solved for, and a solution is always checked by rebuilding the target vector.
a)
3a+b=5 and −2a+4b=−8. The first gives b=5−3a; in the second, −2a+20−12a=−8, so −14a=−28, a=2 and b=−1. Check: 2(3,−2)−(1,4)=(5,−8).
b)
2a−b=4 and 5a+3b=1. The first gives b=2a−4; in the second, 5a+6a−12=1, so a=1113 and b=1126−1144=−1118. The determinant 2(3)−(−1)(5)=11 announced that denominator. Pitfall: rounding along the way; keep the fractions to the end.
c)
The coordinates are the coefficients: −2(1,−2)+3(4,1)=(−2+12,4+3)=(10,7). Pitfall: −2×(−2)=+4 in the second component.
d)
f1⋅f2=−6+6=0: the basis is orthogonal, and ∥f1∥2=∥f2∥2=13. So a=∥f1∥2w⋅f1=138+57=5 and b=∥f2∥2w⋅f2=13−12+38=2. Pitfall: dividing by the norm 13 instead of its square.
e)
det(p,q)=6(6)−(−9)(−4)=36−36=0: the set is linearly dependent. Indeed, q=−32p. Pitfall: (−9)(−4)=+36, and it is subtracted.
f)
Collinear if and only if the determinant is zero: k(k+4)−3(4)=k2+4k−12=(k+6)(k−2)=0, so k=−6 or k=2. Check: (2,3) and (4,6), then (−6,3) and (4,−2), are indeed proportional. Pitfall: keeping only one of the two.
g)
The basis is triangular: work back up from the last component. z: c=2. y: b+3c=−1, so b=−7. x: a+2b−c=4, so a=4+14+2=20. Check: 20(1,0,0)−7(2,1,0)+2(−1,3,1)=(4,−1,2). Pitfall: forgetting the −c in the first row, which gives a=18.
h)
a+2b=0, −a+b+3c=6, 2a+b+c=6. The first gives a=−2b; the other two become 3b+3c=6 and −3b+c=6. Subtracting, 4b=−4, so b=−1, c=3 and a=2. Check: 2(1,−1,2)−(2,1,1)+3(0,3,1)=(0,6,6).
i)
Along the first row: 231−21−(−1)15−21+11531=2(5)+1(11)+1(−14)=7. Non-zero: the set is linearly independent. Pitfall: the minus sign in front of the second cofactor.
j)
102m1102m=1(m−2)−m(0−4)+0=5m−2. Dependent if and only if 5m−2=0, so m=52. Pitfall: −m(0−4)=+4m.
Check: on every line, rebuild the combination with the coefficients found; you must land exactly on the target vector. For a zero determinant, look for the multiple or the combination that makes it zero, such as q=−32p in e).
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.
Part A: the basics (/50)
Exercise 1: Components, norm and operations in the plane
Consider the points A(−2,3), B(1,7) and C(−10,9) of the plane.
a) Find the components of the vectors AB and AC, then compute their norms.
b) Find the components of the vector 2AB−3AC.
c) Are the vectors AB and AC collinear? Justify by computation.
d) Find the vector w of norm 15, parallel to AB but pointing the opposite way.
Show the solution
Answers
a)AB=(3,4), norm 5; AC=(−8,6), norm 10
b)(30,−10)
c)No: determinant 50=0
d)w=(−9,−12)
a)
AB=(1−(−2),7−3)=(3,4) and AC=(−10−(−2),9−3)=(−8,6). The norms are ∥AB∥=32+42=9+16=25=5 and ∥AC∥=(−8)2+62=64+36=100=10.
b)
2AB=(6,8) and 3AC=(−24,18), so 2AB−3AC=(6−(−24),8−18)=(30,−10).
c)
Two vectors of the plane are collinear if and only if their determinant is zero: 34−86=(3)(6)−(−8)(4)=18+32=50=0. So they are NOT collinear. Here is the trap of the chapter: ∥AC∥ is exactly twice ∥AB∥, which pushes many students to conclude too fast that AC=2AB. The norm says nothing about the direction. Comparing the ratios of components: 3−8=46, same conclusion.
d)
The unit vector of AB is 5AB=(53,54). For a norm of 15 and the opposite direction, multiply by −15: w=−15(53,54)=(−9,−12). Check: ∥w∥=81+144=225=15, and w=−3AB is indeed collinear with AB, with a negative coefficient, hence pointing the opposite way.
Exercise 2: A linear combination and the system behind it
Consider the vectors u=(2,1) and v=(1,3) of the plane.
a) Write w=(7,11) as a linear combination of u and v, that is, find the scalars a and b such that w=au+bv.
b) Do the same for t=(5,−5).
c) Explain why EVERY vector of the plane can be written as a linear combination of u and v, and say in one sentence what this means for the set {u,v}.
d) Now in space, let p=(1,2,1) and q=(0,1,2). Is the vector r=(1,5,7) a linear combination of p and q? What about the vector s=(2,3,1)?
Show the solution
Answers
a)w=2u+3v
b)t=4u−3v
c)Determinant 5: a basis of R2
d)r=p+3q; s is not
a)
The equality a(2,1)+b(1,3)=(7,11) gives one equation per component: {2a+b=7a+3b=11. From the first, b=7−2a. Substituting: a+3(7−2a)=11, that is a+21−6a=11, so −5a=−10 and a=2, then b=7−4=3. Check: 2(2,1)+3(1,3)=(4+3,2+9)=(7,11). So w=2u+3v.
b)
Same method: {2a+b=5a+3b=−5. From the first, b=5−2a, hence a+15−6a=−5, that is −5a=−20 and a=4, then b=5−8=−3. Check: 4(2,1)−3(1,3)=(8−3,4−9)=(5,−5). So t=4u−3v. A negative coefficient is perfectly normal; it is not a sign of an error.
c)
For an arbitrary vector (x,y), the system reads {2a+b=xa+3b=y. Its determinant is 2113=6−1=5=0, so the system has a unique solution whatever the right-hand side. Every vector of the plane can therefore be written, in exactly one way, as a linear combination of u and v: the set {u,v} spans R2, and since it is linearly independent (non-zero determinant), it is a basis of R2.
d)
For r: a(1,2,1)+b(0,1,2)=(1,5,7) gives three equations. The first forces a=1. The second gives 2(1)+b=5, so b=3. The third, unused so far, must still be CHECKED: a+2b=1+6=7, which is indeed the third component. So r=p+3q: yes.
For s: the first equation forces a=2, the second gives 2(2)+b=3, so b=−1. Test of the third: a+2b=2−2=0, whereas the third component of s is 1. Contradiction: the system is inconsistent, and s is NOT a linear combination of p and q. This is the point not to miss in space: with three equations and two unknowns, there is one equation too many, and that is the one that decides. Never stop as soon as a and b are found.
Exercise 3: Linear dependence and independence
This exercise is about the test for linear independence in R3. Recall that three vectors of R3 are linearly independent if and only if the determinant formed by their components is non-zero.
a) Let u=(1,2,−1), v=(2,−1,3) and w=(4,3,1). Show that w is a linear combination of u and v, and conclude about the set {u,v,w}.
b) Recover the conclusion of a) in a single line, by computing the determinant.
c) Is the set {(1,0,2),(0,1,−1),(2,1,1)} linearly independent or dependent? Justify.
d) Find the value of m for which the set {(1,2,−1),(2,−1,3),(0,5,m)} is linearly dependent.
Show the solution
Answers
a)w=2u+v: dependent
b)Zero determinant
c)Determinant −2: independent
d)m=−5
a)
We look for a and b such that au+bv=w, that is ⎩⎨⎧a+2b=42a−b=3−a+3b=1. The first two give a=4−2b, then 2(4−2b)−b=3, that is 8−5b=3, so b=1 and a=2. Test of the third equation: −2+3(1)=1, it holds. So w=2u+v. Since one of the three vectors is expressed in terms of the other two, the set is linearly DEPENDENT. The dependence relation can also be written in its standard form: 2u+v−w=0, a zero combination whose coefficients are not all zero.
b)
1242−13−131=1((−1)(1)−(3)(3))−2((2)(1)−(3)(4))+(−1)((2)(3)−(−1)(4)). This gives 1(−1−9)−2(2−12)−1(6+4)=−10+20−10=0. The determinant is zero, so the set is linearly dependent. One line is enough where a) needed a full system: on a timed exam, this is the method to use by reflex, keeping the first one for when you are explicitly asked for the dependence relation.
c)
1020112−11=1((1)(1)−(−1)(1))−0((0)(1)−(−1)(2))+2((0)(1)−(1)(2))=1(2)−0+2(−2)=2−4=−2. The determinant is −2=0, so the set is linearly INDEPENDENT. Being independent with three vectors in R3, it is also a basis of R3.
d)
1202−15−13m=1((−1)(m)−(3)(5))−2((2)(m)−(3)(0))+(−1)((2)(5)−(−1)(0)). This gives (−m−15)−2(2m)−1(10)=−m−15−4m−10=−5m−25. The set is dependent when the determinant vanishes: −5m−25=0, so m=−5. Check: with m=−5, the third vector is (0,5,−5), and indeed 2(1,2,−1)−(2,−1,3)=(0,5,−5): the dependence relation is explicit.
Exercise 4: Bases and the coordinates of a vector
In the plane, consider the set B={e1,e2} with e1=(1,1) and e2=(1,−1).
a) Show that B is a basis of R2.
b) Find the coordinates of the vector v=(5,1) relative to the basis B.
c) The vector t has coordinates (−2,4) relative to the basis B. Find its components in the standard basis.
d) In R3, take for granted that C={(1,0,0),(1,1,0),(1,1,1)} is a basis. Find the coordinates of z=(3,5,2) relative to this basis.
Show the solution
Answers
a)Determinant −2=0: a basis
b)(3,2)
c)(2,−6)
d)(−2,3,2)
a)
111−1=(1)(−1)−(1)(1)=−2=0, so the set is linearly independent. Since it has two vectors and R2 has dimension 2, a linearly independent set of two vectors automatically spans it: B is a basis of R2. This is the argument to know; it saves you from proving separately that the set spans.
b)
We look for a and b such that a(1,1)+b(1,−1)=(5,1), that is {a+b=5a−b=1. Adding: 2a=6, so a=3, then b=2. Check: 3(1,1)+2(1,−1)=(3+2,3−2)=(5,1). The coordinates of v relative to B are therefore (3,2). Note that v has not changed: it is the same vector of the plane, described by two different pairs of numbers depending on the basis. (5,1) in the standard basis, (3,2) relative to B.
c)
Here the work goes the other way, and it is a plain substitution: t=−2e1+4e2=−2(1,1)+4(1,−1)=(−2+4,−2−4)=(2,−6). No system to solve. Recognizing which way the question goes saves several minutes on an exam: going from coordinates to components is a direct computation, the reverse requires a system.
d)
We look for c1, c2, c3 such that c1(1,0,0)+c2(1,1,0)+c3(1,1,1)=(3,5,2), that is ⎩⎨⎧c1+c2+c3=3c2+c3=5c3=2. The system is already in echelon form, so work back up: c3=2, then c2=5−2=3, then c1=3−3−2=−2. Check: −2(1,0,0)+3(1,1,0)+2(1,1,1)=(−2+3+2,3+2,2)=(3,5,2). The coordinates are (−2,3,2).
Exercise 5: Too many vectors: a dependent spanning set and the extraction of a basis
In the plane, consider the three vectors v1=(1,2), v2=(3,1) and v3=(1,−3).
a) Without any computation, explain why the set {v1,v2,v3} is necessarily linearly dependent.
b) Express v3 as a linear combination of v1 and v2, then write the dependence relation as a zero combination whose coefficients are not all zero.
c) Does the set {v1,v2,v3} span R2? Justify.
d) Extract from this set a basis of R2, then give the coordinates of v3 relative to the basis you chose.
Show the solution
Answers
a)Three vectors in dimension 2
b)v3=−2v1+v2
c)Yes: spanning and dependent
d)Basis {v1,v2}; (−2,1)
a)
These three vectors live in R2, which has dimension 2. A linearly independent set of R2 has at most two vectors: as soon as there are three, the set must be dependent. This is a counting argument; no computation is required. The reflex to keep: more vectors than the dimension always means dependence.
b)
We look for a and b such that av1+bv2=v3, that is {a+3b=12a+b=−3. Multiplying the first by 2 and subtracting the second: 5b=5, so b=1 and a=1−3=−2. Check: −2(1,2)+(3,1)=(−2+3,−4+1)=(1,−3). So v3=−2v1+v2, and moving everything to one side, the dependence relation reads −2v1+v2−v3=0, a zero combination whose coefficients −2, 1, −1 are not all zero.
c)
The vectors v1 and v2 are not collinear: 1231=(1)(1)−(3)(2)=−5=0. On their own they already form a basis of R2, so they span the whole plane. Adding v3 takes nothing away: the set {v1,v2,v3} therefore spans R2. The same set can be both spanning and dependent: spanning and being independent are two separate properties, and it is precisely the redundant vector v3 that keeps the set from being a basis.
d)
Remove the redundant vector v3 and keep {v1,v2}, independent by c), hence a basis of R2. The coordinates of v3 relative to this basis are read directly from the relation in b): v3=−2v1+1v2, so its coordinates relative to {v1,v2} are (−2,1).
Part B: exam level (/50)
Exercise 6: Proofs: independent sets and the zero vector
This exercise asks for almost no numerical computation: you reason directly from the definition of a linearly independent set. Recall the definition: {v1,…,vn} is linearly independent if the equality a1v1+⋯+anvn=0 implies a1=⋯=an=0.
a) Let {u,v} be a linearly independent set. Prove that the set {u+v,u−v} is linearly independent too.
b) Prove that every set containing the zero vector is linearly dependent, whatever the other vectors are.
c) Prove that if w is a linear combination of u and v, then the set {u,v,w} is linearly dependent.
d) True or false: if three vectors of R3 are pairwise non-collinear, then the set they form is linearly independent. Justify, and give an explicit counterexample if the statement is false.
Show the solution
Answers
a)Coefficients a+b=a−b=0: independent
b)1⋅0=0: dependent
c)Coefficient −1 is non-zero: dependent
d)False: (1,0,0), (0,1,0), (1,1,0)
a)
Start from a zero combination of the new set: a(u+v)+b(u−v)=0. Group the terms along u and v: (a+b)u+(a−b)v=0. Since {u,v} is independent by hypothesis, both coefficients are zero: {a+b=0a−b=0. Adding, 2a=0 so a=0, then b=0. The only zero combination is the trivial one, so {u+v,u−v} is linearly independent. The mechanism of the proof is always the same: start from a zero combination, regroup on the set whose independence you know, and conclude.
b)
Suppose the set is {0,v2,…,vn}. We can write the combination 1⋅0+0⋅v2+⋯+0⋅vn=0. It is indeed a zero combination, and yet its first coefficient is 1, so the coefficients are not all zero. The definition of an independent set fails: the set is linearly dependent. Practical consequence on an exam: as soon as a zero vector appears in a set, the answer is immediate, with no determinant to compute.
c)
By hypothesis, there are scalars a and b such that w=au+bv. Move everything to one side: au+bv−w=0. This is a zero linear combination of the three vectors, with coefficients a, b and −1. The coefficient of w is −1, which is not zero, so the coefficients are not all zero, whatever the values of a and b. The set {u,v,w} is therefore linearly dependent. The coefficient −1 carries the whole proof.
d)
The statement is FALSE. Pairwise collinearity only tests pairs, whereas linear dependence is about the whole set: a vector can depend on the OTHER TWO without being collinear with either of them taken alone.
Explicit counterexample: a=(1,0,0), b=(0,1,0) and c=(1,1,0). No pair is collinear, as the ratios of components show: a and b are clearly not proportional, and c is proportional neither to a (second component) nor to b (first component). Yet c=a+b, so the set is linearly dependent. The determinant confirms it: 101011000=0. Geometrically, the three vectors are coplanar, all in the plane z=0.
The converse, on the other hand, is true: if a set is linearly independent, then its vectors are pairwise non-collinear. It is a one-way implication, and exams often test it in the wrong direction.
Exercise 7: Problem: an oblique basis of space and the uniqueness of coordinates
In a rectangular coordinate system of space, consider the three vectors u1=(2,1,0), u2=(0,1,1) and u3=(1,0,2).
The goal is to show that these three vectors form a basis of R3, to read the coordinates of given vectors relative to it, and to establish that these coordinates are always unique.
a) Show that B={u1,u2,u3} is a basis of R3.
b) Find the coordinates of the vector v=(5,3,8) relative to the basis B.
c) Interpret geometrically the absolute value of the determinant computed in a).
d) Is the basis B orthogonal? Justify with a computation, and say what this changes when reading coordinates.
e) Without solving a system, give the coordinates of w=(4,2,0) relative to the basis B and justify your answer in one sentence.
f) Prove that relative to any basis of R3, the coordinates of a vector are unique.
Show the solution
Answers
a)Determinant 5: a basis
b)(1,2,3)
c)Volume 5
d)No: u1⋅u2=1
e)(2,0,0)
f)Zero difference, independent set: uniqueness
a)
Compute the determinant of the matrix whose columns are the components of the three vectors: 210011102=2((1)(2)−(0)(1))−0((1)(2)−(0)(0))+1((1)(1)−(1)(0))=2(2)−0+1(1)=5. The determinant is 5=0, so the set is linearly independent. Three independent vectors in R3, which has dimension 3, form a basis. So B is indeed a basis of R3.
b)
We look for a, b, c such that au1+bu2+cu3=(5,3,8), that is ⎩⎨⎧2a+c=5a+b=3b+2c=8. From the first, c=5−2a. Substituting into the third: b+2(5−2a)=8, that is b=8−10+4a=4a−2. Substituting into the second: a+4a−2=3, so 5a=5 and a=1. Then b=4−2=2 and c=5−2=3. Full check: 1(2,1,0)+2(0,1,1)+3(1,0,2)=(2+0+3,1+2+0,0+2+6)=(5,3,8). The coordinates of v relative to B are therefore (1,2,3).
c)
The absolute value of the determinant of three vectors of space is the volume of the parallelepiped built on these three vectors. Here this volume is 5 cubic units. The reading is then immediate: a zero determinant would mean a flattened parallelepiped, hence three coplanar vectors, hence a dependent set that cannot span all of space. The algebraic criterion and the geometric criterion say exactly the same thing.
d)
Test orthogonality pair by pair: u1⋅u2=(2)(0)+(1)(1)+(0)(1)=1=0. A single non-zero dot product is enough to conclude: the basis is NOT orthogonal, it is an oblique basis. What this changes: in an orthonormal basis, each coordinate is read directly from a dot product, ai=v⋅ei. That shortcut is invalid here, and using it anyway is a classic error. In an oblique basis, you must solve the system, as in b). Let us check on v: v⋅u1=10+3+0=13, whereas the first coordinate is 1. The shortcut would give nonsense.
e)
Notice that w=(4,2,0)=2(2,1,0)=2u1. The vector w is collinear with u1, so its coordinates relative to B are (2,0,0). No system is needed: spotting a collinearity with a basis vector gives the result directly, and by uniqueness of coordinates (part f), it is necessarily the right answer.
f)
Let B={e1,e2,e3} be a basis of R3 and v any vector. Suppose v can be written in two ways: v=a1e1+a2e2+a3e3 and v=b1e1+b2e2+b3e3. Subtracting side by side: (a1−b1)e1+(a2−b2)e2+(a3−b3)e3=0. A basis is in particular a linearly independent set, so all the coefficients of this zero combination are zero: a1−b1=a2−b2=a3−b3=0, that is a1=b1, a2=b2 and a3=b3. The two expressions are therefore identical: the coordinates are unique.
It is exactly linear independence that carries uniqueness, and spanning that carries existence. A basis serves both at once, and that is why the definition demands both properties.
Exercise 8: Problem: change of basis and coordinates
In R2, consider the two bases B1={f1,f2} and B2={g1,g2}, with f1=(1,1), f2=(1,2), g1=(2,1) and g2=(1,1).
A vector v has coordinates (3,−1) relative to the basis B1.
a) Check that B1 and B2 are indeed two bases of R2, then find the components of v in the standard basis.
b) Find the coordinates of v relative to the basis B2.
c) Express each of the vectors f1 and f2 as a linear combination of g1 and g2.
d) Recover the result of b) starting from v=3f1−f2 and the expressions found in c), without going back through the standard basis. What do you notice?
Show the solution
Answers
a)Two bases; v=(2,1)
b)(1,0)
c)f1=g2; f2=−g1+3g2
d)Same result by substitution
a)
For B1: 1112=2−1=1=0, it is a basis. For B2: 2111=2−1=1=0, it is one too. The coordinates (3,−1) relative to B1 mean v=3f1−f2=3(1,1)−(1,2)=(3−1,3−2)=(2,1). These are the components of v in the standard basis.
b)
We look for a and b such that ag1+bg2=(2,1), that is {2a+b=2a+b=1. Subtracting the second from the first: a=1, then b=0. The coordinates of v relative to B2 are therefore (1,0); in other words v=g1, which is confirmed by the fact that g1=(2,1)=v.
c)
For f1=(1,1): {2a+b=1a+b=1 gives a=0 and b=1, so f1=g2. For f2=(1,2): {2a+b=1a+b=2 gives a=−1 and b=3, so f2=−g1+3g2. Check: −(2,1)+3(1,1)=(−2+3,−1+3)=(1,2).
d)
Substituting: v=3f1−f2=3g2−(−g1+3g2)=g1+3g2−3g2=g1. We do find the coordinates (1,0) relative to B2, without going through the standard basis. The change of coordinates can be done in two equivalent ways: either by going back through the standard components (b), or by substituting directly the expression of one basis in terms of the other (d). It is this substitution mechanism, once made systematic, that gives the transition matrix between two bases. On the figure, the same vector v reads (2,1) in the standard basis, (3,−1) relative to B1 (the dashed path 3f1 then −f2) and (1,0) relative to B2, since it is g1 itself: the coordinates change, never the vector.
Exercise 9: Proofs: subsets, supersets and unions
We work in an arbitrary vector space. Recall that a subset of a set of vectors F is obtained by removing vectors from F, and a superset by adding vectors to it.
a) Prove that every subset of a linearly independent set is linearly independent.
b) Prove that every superset of a linearly dependent set is linearly dependent.
c) Deduce that in a linearly independent set, no vector is zero and no two distinct vectors are collinear.
d) True or false: the union of two linearly independent sets is always linearly independent. Justify, with an explicit counterexample if it is false.
Show the solution
Answers
a)Complete with zero coefficients
b)Contrapositive of a)
c)Subsets {0} and a collinear pair are dependent
d)False: {(1,0)} and {(2,0)}
a)
Let F={v1,…,vn} be linearly independent and G={v1,…,vk} a subset with k≤n (after renumbering if needed). Start from a zero combination of G: a1v1+⋯+akvk=0. Complete it into a zero combination of F by adding the missing vectors with zero coefficients: a1v1+⋯+akvk+0vk+1+⋯+0vn=0. Since F is independent, all the coefficients are zero, in particular a1=⋯=ak=0. So G is linearly independent.
b)
This is the contrapositive of a). Let F be dependent and H a superset of F. Since F is dependent, there is a zero combination of F whose coefficients are not all zero. Adding the extra vectors of H with zero coefficients gives a zero combination of H whose coefficients are not all zero (those inherited from F prove it). So H is linearly dependent. It can also be said in one breath: if the superset H were independent, its subset F would be too by a), which would contradict the hypothesis.
c)
Apply a). If a vector vi of the set were zero, the subset {vi}={0} would be dependent, since 1⋅0=0 is a non-trivial zero combination; that would contradict the independence of the set, by a). Likewise, if two vectors vi and vj were collinear, the subset {vi,vj} would be dependent, the same contradiction. So in a linearly independent set, no vector is zero and the vectors are pairwise non-collinear.
d)
FALSE. Take in R2 the sets F1={(1,0)} and F2={(2,0)}. Each one, made of a single non-zero vector, is linearly independent. But their union {(1,0),(2,0)} is dependent, since (2,0)=2(1,0): the two vectors are collinear. Independence is therefore not preserved by union. What remains true, by a), is that every subset of an independent set is still independent, never the reverse.
Exercise 10: True or false: dimension, sets and coordinates
For each statement, say whether it is true or false. A true statement must be justified; a false statement must come with an explicit counterexample. We work in Rn with its usual structure.
a) In R3, every set of four vectors is linearly dependent.
b) In R3, every set of two vectors is linearly independent.
c) If a set spans R3, then it contains at least three vectors.
d) If {u,v,w} is a basis of R3 and λ=0, then {λu,v,w} is still a basis of R3.
Show the solution
Answers
a)True
b)False: (1,2,3), (2,4,6)
c)True
d)True: the determinant is multiplied by λ
a)
TRUE. R3 has dimension 3: a linearly independent set in it contains at most three vectors. Four vectors exceed this ceiling, so the set is necessarily dependent, whatever the vectors chosen. For example {(1,0,0),(0,1,0),(0,0,1),(1,1,1)} is dependent, since (1,1,1) is the sum of the first three.
b)
FALSE. Two collinear vectors form a dependent set. Counterexample: {(1,2,3),(2,4,6)}, where the second vector is twice the first; the set is dependent. A set of two vectors is independent only if the two vectors are not collinear.
c)
TRUE. A spanning set of R3 contains at least as many vectors as the dimension, that is three. With only two vectors, the set of linear combinations is at best a plane (or a line, or the origin), never the whole space. For example {(1,0,0),(0,1,0)} only produces vectors whose third component is zero: (0,0,1) is never reached.
d)
TRUE. Multiplying a vector of a basis by a non-zero scalar keeps it a basis. The determinant shows it: that of {λu,v,w} is λ times that of {u,v,w}, which is non-zero; since λ=0, the new determinant stays non-zero, the set stays independent, hence a basis. If on the other hand λ=0, the first vector becomes zero and the set is immediately dependent: the hypothesis λ=0 is essential.
Part C: the classics (/50)
Exercise 11: Resolving a force along two given directions
A chandelier weighing 50N hangs from two cables. In a coordinate system where x is horizontal and y vertical, the left cable pulls along the direction u=(−3,4) and the right cable along v=(4,3).
At equilibrium, the tensions in the cables balance the weight: there are a and b such that au+bv=(0,50), and a cable can only PULL, so a and b must be positive.
The figure is not drawn to the scale of the forces: it shows the directions.
a) Show that {u,v} is a basis of R2.
b) Find a and b.
c) Compute the magnitude of the tension in each cable, in newtons.
d) The anchor of the right cable is moved: its direction becomes w=(6,−8). Is equilibrium still possible? Justify with linear algebra.
e) Instead, the right cable is replaced by a horizontal cable, with direction (1,0). Find the new coefficients and the tension in the left cable. Comment.
Show the solution
Answers
a)Determinant −25
b)a=8, b=6
c)40 N and 30 N
d)No: w=−2u
e)a=12.5, b=37.5; 62.5 N
a)
det(u,v)=−3443=−9−16=−25=0: the set is linearly independent, and two independent vectors of R2 form a basis. The weight therefore resolves in a unique way along the two cables.
b)
{−3a+4b=04a+3b=50. The first gives a=34b, then 316b+3b=50, that is 325b=50 and b=6, a=8. Check: 8(−3,4)+6(4,3)=(−24+24,32+18)=(0,50). Both coefficients are positive: the equilibrium can physically be achieved.
c)
∥u∥=∥v∥=5. Left tension: ∥8u∥=40N. Right tension: ∥6v∥=30N. The sum of the magnitudes, 70N, exceeds the weight: only the horizontal components cancel, the vertical ones add up.
d)
w=−2u: the two directions are collinear, det(u,w)=(−3)(−8)−(6)(4)=0. The combinations of u and w stay on the line directed by u, and (0,50) is not on it, since det(u,(0,50))=−150=0. Equilibrium is impossible: two aligned cables cannot hold a load that is not on their line.
e)
a(−3,4)+b(1,0)=(0,50) gives 4a=50, so a=12.5, then b=3a=37.5. Tension in the left cable: 12.5×5=62.5N, more than the weight itself. The closer a cable is to horizontal, the harder it must pull: the useful vertical component is a small share of its tension.
The thread: resolving a force means finding its coordinates relative to the basis of the given directions; the sign of the coordinates tells whether the resolution can be achieved.
Exercise 12: Orthonormal basis: coordinates by dot products
In R2, consider e1=(53,54) and e2=(−54,53), and the vector v=(10,5).
On the figure, e1 and e2 are drawn twice as long, for readability.
a) Show that {e1,e2} is an orthonormal basis of R2.
b) Compute the coordinates of v relative to this basis using two dot products.
c) Check the result by rebuilding v from its coordinates.
d) Compute the norm of v from its coordinates relative to the new basis, to two decimal places, and compare with the one obtained in the standard basis. Why do they agree?
e) Now take the orthogonal but not normalized basis f1=(3,4), f2=(−4,3). Find the coordinates of v relative to this basis without solving a system.
Show the solution
Answers
a)Orthogonal, of norm 1
b)(10,−5)
c)10e1−5e2=(10,5)
d)125≈11.18 in both bases
e)(2,−1)
a)
e1⋅e2=−2512+2512=0: the vectors are orthogonal. ∥e1∥2=259+2516=1 and likewise ∥e2∥=1. Two non-zero orthogonal vectors are linearly independent, so they form a basis of R2, and it is orthonormal.
b)
In an orthonormal basis, the coordinate along ei is v⋅ei. v⋅e1=6+4=10 and v⋅e2=−8+3=−5. The coordinates are (10,−5).
c)
10e1−5e2=(6,8)−(−4,3)=(10,5): we do get v back.
d)
102+(−5)2=125≈11.18, and in the standard basis 102+52=125 as well. In an ORTHONORMAL basis, the norm is computed from the coordinates exactly as from the components, because the cross terms 2abe1⋅e2 are zero and the basis vectors have norm 1. In an oblique basis, this computation would be wrong.
e)
The basis is orthogonal: if v=af1+bf2, then v⋅f1=a∥f1∥2, hence a=∥f1∥2v⋅f1=2530+20=2 and b=25−40+15=−1. Check: 2(3,4)−(−4,3)=(10,5). The trap is to divide by the norm instead of its SQUARE, which would give 10 and −5, the coordinates relative to the normalized basis.
The thread: orthogonality replaces solving a system with dot products; normalization sets the denominator to 1.
Exercise 13: The set with a parameter that changes rank
For every real number t, consider in R3 the vectors v1=(1,1,t), v2=(1,t,1) and v3=(t,1,1).
a) Compute the determinant D(t) of the set {v1,v2,v3} and factor it completely.
b) For which values of t is the set linearly dependent?
c) For t=1, what is the dimension of the subspace spanned by the set?
d) For t=−2, give a dependence relation, the dimension of the spanned subspace and a Cartesian equation of this subspace.
e) For t=0, find the coordinates of the vector (2,2,2) relative to the basis {v1,v2,v3}.
Show the solution
Answers
a)D(t)=−(t−1)2(t+2)
b)t=1 or t=−2
c)Dimension 1
d)v1+v2+v3=0; plane x+y+z=0
e)(1,1,1)
a)
Expanding along the first row: D(t)=1(t−1)−1(1−t)+t(1−t2)=2(t−1)−t(t−1)(t+1). Factor out (t−1): D(t)=(t−1)(2−t−t2)=−(t−1)(t2+t−2)=−(t−1)2(t+2). Check: D(0)=−2, and the factored form gives −(1)(2)=−2.
b)
The set is dependent if and only if D(t)=0, that is t=1 or t=−2. For every other value, it is a basis of R3.
c)
For t=1, the three vectors equal (1,1,1): they are identical, and the spanned subspace is the line directed by (1,1,1), of dimension 1. The double root of the determinant signals here a drop in rank of two steps.
d)
For t=−2: v1=(1,1,−2), v2=(1,−2,1), v3=(−2,1,1), and v1+v2+v3=0. v1 and v2 are not collinear, so the spanned subspace is a plane, of dimension 2. Each vector has components summing to zero, and the plane has equation x+y+z=0.
e)
For t=0: v1=(1,1,0), v2=(1,0,1), v3=(0,1,1), and D(0)=−2=0. Solve a+b=2, a+c=2, b+c=2: adding, 2(a+b+c)=6, so a+b+c=3 and c=b=a=1. The coordinates are (1,1,1).
The thread: the determinant detects the critical values, but only a look at the vectors at those values tells by how much the rank drops.
Exercise 14: Problem: the colours a screen can display
A screen mixes three diodes. Lit at full intensity, each diode excites the three colour sensors of the eye according to a vector of R3: R=(4,1,0), G=(1,5,1) and B=(0,1,4).
Lit at the fraction a of its power, the red diode contributes aR, and so on. A colour T can be displayed if there are a, b, c between 0 and 1 such that aR+bG+cB=T.
a) Show that {R,G,B} is a basis of R3.
b) Can the colour T1=(5,7,5) be displayed? Give the three intensities.
c) Same question for T2=(2,3,2), intensities to three decimal places.
d) Same question for T3=(1,6,1).
e) Since the set is a basis, every colour can be written as a combination of the three diodes. Why do some colours remain impossible to display? What is the volume of the set of displayable colours?
Show the solution
Answers
a)Determinant 72
b)(1,1,1): displayable
c)a=c≈0.389, b≈0.444: displayable
d)b=911>1: no
e)Coefficients outside [0,1]; volume 72
a)
410151014=4(20−1)−1(4−0)+0=76−4=72=0: the set is linearly independent, hence a basis of R3.
b)
The system reads 4a+b=5, a+5b+c=7, b+4c=5. The first and the third give a=c=45−b, then the second gives 25−b+5b=7, that is 9b=9: b=1 and a=c=1. All three diodes at full power: T1 can be displayed, it is the brightest white of the screen.
c)
Likewise a=c=42−b and 22−b+5b=3, that is 2−b+10b=6: b=94≈0.444 and a=c=187≈0.389. The three intensities lie between 0 and 1: T2 can be displayed.
d)
a=c=41−b and 21−b+5b=6, that is 1−b+10b=12: b=911≈1.222 and a=c=−181. The green diode would have to be lit beyond its maximum power and the other two at a NEGATIVE intensity: T3, a green that is too saturated, cannot be displayed.
e)
Being a basis guarantees the EXISTENCE and uniqueness of the coefficients, not that they fall in [0,1]. The displayable colours are the combinations with coefficients in [0,1]: they fill the parallelepiped built on R, G, B, whose volume is ∣det∣=72. This is the “gamut” of the screen; a colour outside the parallelepiped exists mathematically but not on the screen.
The thread: a basis says the coordinates exist; a real problem adds constraints on those coordinates.
Exercise 15: Problem: a crystal lattice and its bases
In a plane crystal, the atoms sit exactly at the points mu+nv, where m and n are INTEGERS, with u=(2,1) and v=(1,3). These points form a lattice, and a point is a lattice point if its coordinates relative to the basis {u,v} are integers.
a) Is the point P=(7,11) a lattice point? Give its coordinates.
b) Same question for Q=(4,5).
c) Compute the area of the unit cell, the parallelogram built on u and v.
d) Consider the basis u′=u+v=(3,4), v′=v. Compute the coordinates of P relative to this basis, then the area of its unit cell. Show that this basis generates exactly the same lattice.
e) Finally, consider the basis {2u,v}. Compute the area of its unit cell and the coordinates of u relative to this basis. Does it generate the same lattice?
Show the solution
Answers
a)(2,3): lattice point
b)(1.4,1.2): not a lattice point
c)Area 5
d)(2,1), area 5: same lattice
e)Area 10; (21,0): a sparser lattice
a)
a(2,1)+b(1,3)=(7,11): 2a+b=7 and a+3b=11. From the first b=7−2a, then a+21−6a=11, so a=2 and b=3. Integer coordinates: P=2u+3v is a lattice point.
b)
2a+b=4 and a+3b=5 give b=4−2a, then a+12−6a=5, that is a=57=1.4 and b=56=1.2. The coordinates exist, since the set is a basis, but they are not integers: Q is not a lattice point, it is a point between the atoms.
c)
∣det(u,v)∣=∣2×3−1×1∣=5.
d)
3a+b=7 and 4a+3b=11 give b=7−3a, then 4a+21−9a=11, that is a=2, b=1: P=2u′+v′, coordinates still integers. det(u′,v′)=9−4=5, the same area. Same lattice: u′ and v′ are integer combinations of u and v, and conversely u=u′−v′ and v=v′ are integer combinations of u′ and v′. Every lattice point of one is a lattice point of the other.
e)
det(2u,v)=4×3−1×2=10: the unit cell is twice as large. u=21(2u)+0v: coordinates (21,0), not integers. The lattice point u is no longer reached: this basis generates a sparser lattice, which keeps only some of the atoms. Two bases generate the same lattice exactly when they have the same unit-cell area and each one is expressed in terms of the other with integer coefficients.
The thread: in a lattice, coordinates must be integers; changing basis without changing the lattice requires a change with integer coefficients and a preserved unit-cell area.
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.
Get in touch for a first session. We work on 201-SN4-RE at the real level of CEGEP tests, from the vocabulary of independent and spanning sets to proofs of linear independence.