This is a beta course, so its structure, chapters, and examples may continue to change.
Comprehensive Exercises on Vectors
This set of exercises covers the key knowledge points of the vectors chapter: definitions and norms, the two basic operations, linear combinations, spans, linear dependence and independence, bases and dimension, vector spaces, change of basis, inner products, and orthogonalization. Every exercise comes with a full solution.
Exercises
Exercise 1
Let v=(3,4). Compute the norm of v and the unit vector in the direction of v.
vectornormunit vector
Approach:
Use the Euclidean norm, which is the square root of the sum of the squared components, and then divide the vector by that norm to obtain the vector of length 1 pointing in the same direction.
Steps:
Norm: ∥v∥=vx2+vy2=32+42=9+16=25=5
Unit vector: v^=∥v∥v=51(3,4)=(53,54)
Check: ∥v^∥=259+2516=1=1
Answer:∥v∥=5 and v^=(53,54)
Exercise 2
Let v=(2,1) and w=(1,3). Compute (1) v+w, (2) 2v−w, and (3) the area of the parallelogram spanned by v and w.
Approach:
Addition and scalar multiplication act component by component, and the parallelogram rule says that the area of the parallelogram spanned by two vectors is the absolute value of their two-dimensional determinant.
Steps:
v+w=(2+1,1+3)=(3,4)
2v−w=(4,2)−(1,3)=(3,−1)
Area: S=∣vxwy−vywx∣=∣2⋅3−1⋅1∣=∣6−1∣=5
Answer:(1) v+w=(3,4);(2) 2v−w=(3,−1);(3) the area is 5
Exercise 3
Let v1=(1,0), v2=(0,1) and v3=(1,1). Express the vector (3,2) as a linear combination of these three vectors, and decide whether the representation is unique.
linear combinationspanlinear dependence
Approach:
Set up the component equations for the coefficients and see how many free parameters they leave. A free parameter means the representation is not unique, which happens precisely because the three vectors are linearly dependent.
Steps:
Write av1+bv2+cv3=(a+c,b+c)=(3,2)
This gives a+c=3 and b+c=2, so a=3−c and b=2−c
The parameter c is free, so there are infinitely many representations. For instance:
c=0: (3,2)=3v1+2v2
c=1: (3,2)=2v1+1v2+1v3
Answer:(3,2)=3v1+2v2=2v1+v2+v3; the representation is not unique
Exercise 4
Decide whether the set {(1,2),(2,4)} is linearly dependent or linearly independent, and exhibit the relation that settles the question.
linear dependencelinear independencelinear combination
Approach:
Look for scalars that are not all zero and that make the linear combination vanish. Since one vector is a multiple of the other, such a relation must exist.
Steps:
Let c1(1,2)+c2(2,4)=(0,0)
Both component equations give the same condition: c1+2c2=0
Take c1=2, c2=−1: 2(1,2)−(2,4)=(2,4)−(2,4)=(0,0)
The coefficients are not all zero, so the set is linearly dependent
Answer:The set is linearly dependent, with the relation 2v1−v2=0
Exercise 5
Decide whether the set {(1,0),(0,1),(1,1)} is linearly independent, and describe its span.
linear dependencespanbasis
Approach:
Compare the third vector with the first two. If one of them can be written as a combination of the others, the set is dependent and the span is already determined by the remaining vectors.
Steps:
Notice that (1,1)=(1,0)+(0,1), that is, v3=v1+v2
This is a nontrivial relation, so the three vectors are linearly dependent
The vectors (1,0) and (0,1) are not collinear, so they already span the whole plane
Adding a dependent vector does not enlarge the span, so span{(1,0),(0,1),(1,1)}=R2
Answer:The set is linearly dependent and its span is the whole plane R2
Exercise 6
Find a basis for the span of {(1,2,0),(0,1,1),(1,3,1)} and give the dimension of that span.
basisdimensionspan
Approach:
Look for a vector that is a combination of the others, discard it, and check that the remaining vectors are not collinear. The number of surviving vectors is the dimension, which is also the rank of the original set.
Steps:
Compare the third vector with the first two: (1,2,0)+(0,1,1)=(1,3,1), so v3=v1+v2
The set is therefore dependent, and v3 may be removed without changing the span
The remaining vectors (1,2,0) and (0,1,1) are not multiples of each other, so they are linearly independent and span the same space
Hence a basis is {(1,2,0),(0,1,1)}, and the dimension (the rank of the original set) is 2
Answer:A basis is {(1,2,0),(0,1,1)} and the dimension is 2
Exercise 7
Prove that {(1,1,0),(0,1,1),(1,0,1)} is a basis of R3, and find the coordinates of β=(2,3,4) in that basis.
linear independencebasiscoordinates
Approach:
A set of three vectors in R3 is a basis when its column matrix has a nonzero determinant. Once that is settled, write down the coordinate system and solve it.
Steps:
Form the matrix whose columns are the three vectors:
110011101
Its determinant is 1(1⋅1−0⋅1)−0(1⋅1−0⋅0)+1(1⋅1−1⋅0)=1+0+1=2=0, so the vectors are linearly independent and form a basis of R3
Solve for the coordinates:
⎩⎨⎧x1+x3=2x1+x2=3x2+x3=4
Adding the three equations gives 2(x1+x2+x3)=9, so x1+x2+x3=29
Hence x3=29−3=23, x2=29−2=25 and x1=29−4=21
Answer:The set is a basis of R3, and the coordinates of β are (21,25,23)
Exercise 8
Show that the set of all real polynomials of degree at most 2 forms a vector space, give a basis for it, and state its dimension.
vector spaceaxiomspolynomial space
Approach:
Check the closure requirements and the eight axioms, noting that they are inherited from the real numbers through the usual arithmetic of polynomials. Then count the free coefficients.
Steps:
Closure under addition: the sum of two polynomials of degree ≤2 still has degree ≤2
Closure under scalar multiplication: c⋅p(x) still has degree ≤2
Associativity, commutativity, the zero element, additive inverses, distributivity and the identity element all hold because they hold for real coefficients
Hence the set is a vector space
Every polynomial a0+a1x+a2x2 is uniquely a0⋅1+a1⋅x+a2⋅x2, so a basis is {1,x,x2} and the dimension is 3
Answer:It is a vector space with basis {1,x,x2} and dimension 3
Exercise 9
Give a basis for the space of all 2×2 real matrices and state its dimension.
dimensionmatrix spacebasis
Approach:
A 2×2 matrix has four free entries, and each entry can be isolated in a matrix unit. Those four matrix units span the space and are independent.
Steps:
Every 2×2 matrix can be written as
A=a11(1000)+a12(0010)+a21(0100)+a22(0001)
The four coefficients a11,a12,a21,a22 are recovered from the entries of A, so the representation is unique and the four matrix units are linearly independent
The dimension equals the number of basis vectors, that is, the number of free entries
Answer:A basis is {(1000),(0010),(0100),(0001)} and the dimension is 4
Exercise 10
In the new basis B={b1,b2} with b1=(1,1) and b2=(1,−1), find the coordinates of the vector v=(3,2). Give the change-of-basis matrix B and its inverse.
change of basistransition matrixcoordinates
Approach:
The columns of B are the new basis vectors written in standard coordinates, and the new coordinates are obtained by multiplying by B−1.
Steps:
The change-of-basis matrix is B=(111−1)
Its inverse is B−1=−21(−1−1−11)=(0.50.50.5−0.5)
The new coordinates are [v]B=B−1v=(0.5⋅3+0.5⋅20.5⋅3−0.5⋅2)=(2.50.5)
Check: 2.5b1+0.5b2=2.5(1,1)+0.5(1,−1)=(3,2)
Answer:B=(111−1), B−1=(0.50.50.5−0.5), and [v]B=(2.5,0.5)T
Exercise 11
Let v=(1,2,3) and w=(4,−1,2). Compute the inner product v⋅w, the two norms, and decide whether the vectors are orthogonal. Give the cosine of the angle between them.
inner productorthogonal vectorsnorm
Approach:
The inner product multiplies the components pairwise and adds the results; the norms are the square roots of the self inner products; orthogonality means the inner product vanishes.
Steps:
Inner product: v⋅w=1⋅4+2⋅(−1)+3⋅2=4−2+6=8
Norms: ∥v∥=12+22+32=14, ∥w∥=42+(−1)2+22=21
Orthogonality: since v⋅w=8=0, the vectors are not orthogonal
Angle: cosθ=∥v∥∥w∥v⋅w=14218=2948
Answer:v⋅w=8, ∥v∥=14, ∥w∥=21; the vectors are not orthogonal, and cosθ=2948
Exercise 12
Use the Gram-Schmidt process to orthogonalize {(1,1,0),(1,0,1)}, and then turn the result into an orthonormal set.
Approach:
Keep the first vector and subtract the projection of the second one onto it. Once the orthogonal set is known, divide each vector by its own length to make it orthonormal.