Linear Algebra Quiz: Span And Generating Sets
15 questions · exam conditions
0:00
Span And Generating SetsQuestion 1 of 15

Let S={v1,,vk}S = \{\vec{v}_1, \dots, \vec{v}_k\} be a set of vectors in a vector space VV. If span(S)=V\mathrm{span}(S) = V and the dimension of VV is nn, which of the following statements is a necessary condition?

k=nk = n
knk \ge n
SS is a linearly independent set.
Every vector in VV has a unique representation as a linear combination of vectors in SS.
← Back to quizzes

Linear Algebra Quiz

Linear Algebra Quiz: Span And Generating Sets

Practice Span And Generating Sets in Linear Algebra with focused quiz questions that help you check what you know, review explanations, and build confidence with test-style prompts.

What this quiz covers

This quiz focuses on Span And Generating Sets, giving you a quick way to practice the rules, question types, and explanations that matter most for Linear Algebra.

How to use this quiz

Try each quiz question before looking at the correct answer. Use the explanations to review missed ideas, then come back to similar questions until the pattern feels familiar.

All questions

Question 1

Let S={v1,,vk}S = \{\vec{v}_1, \dots, \vec{v}_k\} be a set of vectors in a vector space VV. If span(S)=V\mathrm{span}(S) = V and the dimension of VV is nn, which of the following statements is a necessary condition?

  1. k=nk = n
  2. knk \ge n (correct answer)
  3. SS is a linearly independent set.
  4. Every vector in VV has a unique representation as a linear combination of vectors in SS.
Explanation: A fundamental theorem of linear algebra states that any generating set for a vector space VV must contain at least as many vectors as the dimension of VV. Therefore, if dim(V)=n\mathrm{dim}(V)=n and span(S)=V\mathrm{span}(S)=V, it must be true that knk \ge n. Choice A is only true if SS is a basis. Choice C is not necessary; a generating set can be linearly dependent. Choice D is only true if SS is a basis (linearly independent), as linear dependence implies non-unique representations.

Question 2

Let S1={(12),(24)}S_1 = \{\begin{pmatrix} 1 \\ 2 \end{pmatrix}, \begin{pmatrix} 2 \\ 4 \end{pmatrix}\} and S2={(36)}S_2 = \{\begin{pmatrix} 3 \\ 6 \end{pmatrix}\} be sets of vectors in R2\mathbb{R}^2. Which statement correctly describes the relationship between their spans?

  1. span(S1)=span(S2)\mathrm{span}(S_1) = \mathrm{span}(S_2) (correct answer)
  2. span(S1)\mathrm{span}(S_1) is a proper superset of span(S2)\mathrm{span}(S_2)
  3. span(S2)\mathrm{span}(S_2) is a proper superset of span(S1)\mathrm{span}(S_1)
  4. span(S1)\mathrm{span}(S_1) and span(S2)\mathrm{span}(S_2) intersect only at the origin
Explanation: In set S1S_1, the vector (24)\begin{pmatrix} 2 \\ 4 \end{pmatrix} is a scalar multiple of (12)\begin{pmatrix} 1 \\ 2 \end{pmatrix} (specifically, 2 times the first vector). Therefore, the second vector is redundant, and span(S1)=span({(12)})\mathrm{span}(S_1) = \mathrm{span}(\{\begin{pmatrix} 1 \\ 2 \end{pmatrix}\}). The vector in S2S_2, (36)\begin{pmatrix} 3 \\ 6 \end{pmatrix}, is also a scalar multiple of (12)\begin{pmatrix} 1 \\ 2 \end{pmatrix} (3 times). Thus, span(S2)\mathrm{span}(S_2) is the same set of vectors. Both sets span the same line through the origin in R2\mathbb{R}^2.

Question 3

Consider the set of vectors S={(110),(011),(101),(121)}S = \{\begin{pmatrix} 1 \\ 1 \\ 0 \end{pmatrix}, \begin{pmatrix} 0 \\ 1 \\ 1 \end{pmatrix}, \begin{pmatrix} 1 \\ 0 \\ -1 \end{pmatrix}, \begin{pmatrix} 1 \\ 2 \\ 1 \end{pmatrix}\} in R3\mathbb{R}^3. Which of the following is a minimal generating set for span(S)\mathrm{span}(S)?

  1. {(110)}\{\begin{pmatrix} 1 \\ 1 \\ 0 \end{pmatrix}\}
  2. {(110),(011)}\{\begin{pmatrix} 1 \\ 1 \\ 0 \end{pmatrix}, \begin{pmatrix} 0 \\ 1 \\ 1 \end{pmatrix}\} (correct answer)
  3. {(110),(011),(121)}\{\begin{pmatrix} 1 \\ 1 \\ 0 \end{pmatrix}, \begin{pmatrix} 0 \\ 1 \\ 1 \end{pmatrix}, \begin{pmatrix} 1 \\ 2 \\ 1 \end{pmatrix}\}
  4. {(100),(010)}\{\begin{pmatrix} 1 \\ 0 \\ 0 \end{pmatrix}, \begin{pmatrix} 0 \\ 1 \\ 0 \end{pmatrix}\}
Explanation: First, we check for linear dependencies in SS. Let the vectors be v1,v2,v3,v4\vec{v}_1, \vec{v}_2, \vec{v}_3, \vec{v}_4. We can see that v3=v1v2\vec{v}_3 = \vec{v}_1 - \vec{v}_2 and v4=v1+v2\vec{v}_4 = \vec{v}_1 + \vec{v}_2. This means v3\vec{v}_3 and v4\vec{v}_4 are redundant and can be removed without changing the span. The set {v1,v2}\{\vec{v}_1, \vec{v}_2\} generates span(S)\mathrm{span}(S). Since v1\vec{v}_1 and v2\vec{v}_2 are not scalar multiples of each other, they are linearly independent. A minimal generating set is a basis, which must be linearly independent. Therefore, {v1,v2}\{\vec{v}_1, \vec{v}_2\} is a minimal generating set. Choice A is too small (spans a line, not a plane). Choice C is not minimal because it's linearly dependent. Choice D spans the xy-plane, which is a different subspace from the one spanned by SS.

Question 4

In the vector space M2×2M_{2\times2} of 2×22 \times 2 matrices, consider the subspace WW spanned by S={(1001),(0110)}S = \{\begin{pmatrix} 1 & 0 \\ 0 & 1 \end{pmatrix}, \begin{pmatrix} 0 & 1 \\ 1 & 0 \end{pmatrix}\}. Which of the following matrices is not in WW?

  1. (3553)\begin{pmatrix} 3 & 5 \\ 5 & 3 \end{pmatrix}
  2. (1111)\begin{pmatrix} 1 & -1 \\ -1 & 1 \end{pmatrix}
  3. (2220)\begin{pmatrix} 2 & 2 \\ 2 & 0 \end{pmatrix} (correct answer)
  4. (0000)\begin{pmatrix} 0 & 0 \\ 0 & 0 \end{pmatrix}
Explanation: Any matrix in the subspace WW must be a linear combination of the two generating matrices. A general matrix in WW can be written as: a(1001)+b(0110)=(abba)a\begin{pmatrix} 1 & 0 \\ 0 & 1 \end{pmatrix} + b\begin{pmatrix} 0 & 1 \\ 1 & 0 \end{pmatrix} = \begin{pmatrix} a & b \\ b & a \end{pmatrix}. This means any matrix in WW must be symmetric (which is true for all options except D, which is trivially symmetric) and its diagonal elements must be equal. We check each option: A) Diagonals are both 3. In W. B) Diagonals are both 1. In W. C) Diagonals are 2 and 0. They are not equal. This matrix is not in W. D) The zero matrix is in every subspace. Here, a=0a=0 and b=0b=0.

Question 5

The set S={(101),(011)}S = \{\begin{pmatrix} 1 \\ 0 \\ 1 \end{pmatrix}, \begin{pmatrix} 0 \\ 1 \\ 1 \end{pmatrix}\} generates a plane WW in R3\mathbb{R}^3. Which of the following vectors v\vec{v}, if added to SS, would create a new set that generates all of R3\mathbb{R}^3?

  1. v=(112)\vec{v} = \begin{pmatrix} 1 \\ 1 \\ 2 \end{pmatrix}
  2. v=(211)\vec{v} = \begin{pmatrix} 2 \\ -1 \\ 1 \end{pmatrix}
  3. v=(112)\vec{v} = \begin{pmatrix} -1 \\ -1 \\ -2 \end{pmatrix}
  4. v=(324)\vec{v} = \begin{pmatrix} 3 \\ 2 \\ 4 \end{pmatrix} (correct answer)
Explanation: To generate all of R3\mathbb{R}^3, the new vector v\vec{v} must not lie in the plane WW spanned by SS. A vector (x,y,z)(x,y,z) in WW can be written as a(1,0,1)+b(0,1,1)=(a,b,a+b)a(1,0,1) + b(0,1,1) = (a, b, a+b). So, any vector in WW must satisfy the condition z=x+yz = x+y. We test each option: A) For (1,1,2)(1,1,2), 2=1+12 = 1+1. It is in WW. B) For (2,1,1)(2,-1,1), 1=2+(1)1 = 2+(-1). It is in WW. C) For (1,1,2)(-1,-1,-2), 2=1+(1)-2 = -1+(-1). It is in WW. D) For (3,2,4)(3,2,4), 43+24 \neq 3+2. This vector is not in WW. Adding it to the set will span a 3-dimensional space, which is all of R3\mathbb{R}^3.

Question 6

Let S={u,v}S = \{\vec{u}, \vec{v}\} and T={u,v,u+v}T = \{\vec{u}, \vec{v}, \vec{u}+\vec{v}\} be two sets of vectors in a vector space VV. Let WS=span(S)W_S = \mathrm{span}(S) and WT=span(T)W_T = \mathrm{span}(T). Which statement accurately describes the relationship between WSW_S and WTW_T?

  1. WS=WTW_S = W_T (correct answer)
  2. WSW_S is a proper subspace of WTW_T
  3. WTW_T is a proper subspace of WSW_S
  4. The relationship cannot be determined without knowing if u\vec{u} and v\vec{v} are linearly independent.
Explanation: The span of a set of vectors is the set of all possible linear combinations of those vectors. The vector u+v\vec{u}+\vec{v} is, by its form, a linear combination of u\vec{u} and v\vec{v}. This means u+v\vec{u}+\vec{v} is already in span({u,v})\mathrm{span}(\{\vec{u}, \vec{v}\}). Adding a vector that is already in the span to a generating set does not change the span. Therefore, span(T)=span(S)\mathrm{span}(T) = \mathrm{span}(S), so WS=WTW_S = W_T. This holds true whether or not u\vec{u} and v\vec{v} are linearly independent.

Question 7

Let {v1,,vn}\{\vec{v}_1, \dots, \vec{v}_n\} be a generating set for a non-trivial vector space VV. Suppose u\vec{u} is a vector in VV. What must be true about the set S={v1,,vn,u}S' = \{\vec{v}_1, \dots, \vec{v}_n, \vec{u}\}?

  1. SS' is a basis for VV.
  2. SS' is linearly independent.
  3. span(S)\mathrm{span}(S') is a larger space than VV.
  4. SS' is a linearly dependent generating set for VV. (correct answer)
Explanation: Since {v1,,vn}\{\vec{v}_1, \dots, \vec{v}_n\} is a generating set for VV, its span is VV. Adding any vector u\vec{u} from VV to this set will not change the span, so span(S)=V\mathrm{span}(S') = V. Thus, SS' is also a generating set for VV. Furthermore, because u\vec{u} is in V=span({v1,,vn})V = \mathrm{span}(\{\vec{v}_1, \dots, \vec{v}_n\}), u\vec{u} can be written as a linear combination of {v1,,vn}\{\vec{v}_1, \dots, \vec{v}_n\}. By definition, this makes the set SS' linearly dependent. Therefore, SS' is a linearly dependent generating set for VV.

Question 8

For which value of the scalar kk does the set of vectors S={(102),(011),(22k)}S = \{\begin{pmatrix} 1 \\ 0 \\ 2 \end{pmatrix}, \begin{pmatrix} 0 \\ 1 \\ 1 \end{pmatrix}, \begin{pmatrix} 2 \\ -2 \\ k \end{pmatrix}\} not form a generating set for R3\mathbb{R}^3?

  1. k=2k = -2
  2. k=0k = 0
  3. k=2k = 2 (correct answer)
  4. k=4k = 4
Explanation: A set of three vectors in R3\mathbb{R}^3 fails to be a generating set (i.e., does not span R3\mathbb{R}^3) if and only if the vectors are linearly dependent. This occurs when the matrix formed by these vectors as columns has a determinant of zero. The determinant of the matrix A=(10201221k)A = \begin{pmatrix} 1 & 0 & 2 \\ 0 & 1 & -2 \\ 2 & 1 & k \end{pmatrix} is calculated as 1(k(2))0(...)+2(02)=k+24=k21(k - (-2)) - 0(...) + 2(0 - 2) = k + 2 - 4 = k - 2. Setting the determinant to zero, we get k2=0k - 2 = 0, which gives k=2k = 2. When k=2k=2, the third vector is a linear combination of the first two (2v12v22\vec{v}_1 - 2\vec{v}_2), so the set is linearly dependent and spans only a plane.

Question 9

Let u\vec{u} and v\vec{v} be two non-zero, non-parallel vectors in R3\mathbb{R}^3. Let w=2u3v\vec{w} = 2\vec{u} - 3\vec{v}. Which geometric object best describes the set of all linear combinations of the vectors in S={u,v,w}S = \{\vec{u}, \vec{v}, \vec{w}\}?

  1. A line through the origin
  2. A plane through the origin (correct answer)
  3. The entire space R3\mathbb{R}^3
  4. A single point at the origin
Explanation: The set of all linear combinations is the span of SS, denoted span(S)\mathrm{span}(S). Since w\vec{w} is a linear combination of u\vec{u} and v\vec{v}, it is a redundant vector. Adding a redundant vector to a set does not change its span. Therefore, span({u,v,w})=span({u,v})\mathrm{span}(\{\vec{u}, \vec{v}, \vec{w}\}) = \mathrm{span}(\{\vec{u}, \vec{v}\}). The span of two non-zero, non-parallel vectors is a plane through the origin.

Question 10

Let S={v1,v2,v3}S = \{\vec{v}_1, \vec{v}_2, \vec{v}_3\} be a set of vectors in R3\mathbb{R}^3. You are given that the system Ax=bA\vec{x} = \vec{b}, where A=[v1 v2 v3]A = [\vec{v}_1 \ \vec{v}_2 \ \vec{v}_3], has a unique solution for at least one vector bR3\vec{b} \in \mathbb{R}^3. What can be concluded about span(S)\mathrm{span}(S)?

  1. span(S)\mathrm{span}(S) is a plane in R3\mathbb{R}^3.
  2. span(S)\mathrm{span}(S) contains b\vec{b} but may not be all of R3\mathbb{R}^3.
  3. span(S)\mathrm{span}(S) is all of R3\mathbb{R}^3. (correct answer)
  4. The relationship between span(S)\mathrm{span}(S) and R3\mathbb{R}^3 depends on the specific vector b\vec{b}.
Explanation: The existence of a unique solution to Ax=bA\vec{x} = \vec{b} implies that the null space of matrix AA contains only the zero vector. For a square matrix AA, this is equivalent to saying that AA is invertible. An invertible matrix has linearly independent columns. Therefore, the vectors v1,v2,v3\vec{v}_1, \vec{v}_2, \vec{v}_3 are linearly independent. A set of three linearly independent vectors in R3\mathbb{R}^3 must form a basis for R3\mathbb{R}^3. By definition, a basis for a space spans that entire space. Thus, span(S)=R3\mathrm{span}(S) = \mathbb{R}^3.

Question 11

Let S={1+x2,xx2}S = \{1+x^2, x-x^2\} be a set of polynomials in P2\mathcal{P}_2, the space of polynomials of degree at most 2. Which of the following polynomials p(x)p(x), when added to SS, results in a set that does not generate P2\mathcal{P}_2?

  1. p(x)=1p(x) = 1
  2. p(x)=x2p(x) = x^2
  3. p(x)=1+2xx2p(x) = 1+2x-x^2 (correct answer)
  4. p(x)=2+x+3x2p(x) = 2+x+3x^2
Explanation: The set will fail to generate P2\mathcal{P}_2 if the new polynomial p(x)p(x) is in the span of the original set SS. Using the standard basis {1,x,x2}\{1, x, x^2\}, the vectors for SS are (1,0,1)(1, 0, 1) and (0,1,1)(0, 1, -1). Any vector in their span has the form a(1,0,1)+b(0,1,1)=(a,b,ab)a(1, 0, 1) + b(0, 1, -1) = (a, b, a-b). We test each option:\nA) For p(x)=1p(x)=1, the vector is (1,0,0)(1,0,0). This requires a=1,b=0a=1, b=0, but then ab=10a-b=1 \neq 0. Not in the span.\nB) For p(x)=x2p(x)=x^2, the vector is (0,0,1)(0,0,1). This requires a=0,b=0a=0, b=0, but then ab=01a-b=0 \neq 1. Not in the span.\nC) For p(x)=1+2xx2p(x)=1+2x-x^2, the vector is (1,2,1)(1,2,-1). This requires a=1,b=2a=1, b=2. Then ab=12=1a-b = 1-2 = -1. This matches. Since p(x)p(x) is a linear combination of the other two (p(x)=1(1+x2)+2(xx2)p(x) = 1(1+x^2) + 2(x-x^2)), the set is linearly dependent and cannot span the 3-dimensional space P2\mathcal{P}_2.\nD) For p(x)=2+x+3x2p(x)=2+x+3x^2, the vector is (2,1,3)(2,1,3). This requires a=2,b=1a=2, b=1, but then ab=13a-b=1 \neq 3. Not in the span.

Question 12

Consider the set T={v1,v2,v3}T = \{\mathbf{v}_1, \mathbf{v}_2, \mathbf{v}_3\} where v1=(1,2,0)\mathbf{v}_1 = (1,2,0), v2=(0,1,1)\mathbf{v}_2 = (0,1,1), and v3=(2,3,1)\mathbf{v}_3 = (2,3,-1). For which vector b\mathbf{b} is the equation b=c1v1+c2v2+c3v3\mathbf{b} = c_1\mathbf{v}_1 + c_2\mathbf{v}_2 + c_3\mathbf{v}_3 inconsistent?

  1. (1,4,1)(1,4,1)
  2. (3,7,1)(3,7,1)
  3. (2,5,0)(2,5,0)
  4. (0,1,2)(0,1,2) (correct answer)
Explanation: We need to find which vector is not in span(T). First, let's check if the vectors in T are linearly independent by row reducing the matrix (120011231)\begin{pmatrix} 1&2&0 \\ 0&1&1 \\ 2&3&-1 \end{pmatrix}. Applying R3R32R1R_3 \leftarrow R_3 - 2R_1: (120011011)\begin{pmatrix} 1&2&0 \\ 0&1&1 \\ 0&-1&-1 \end{pmatrix}. Then R3R3+R2R_3 \leftarrow R_3 + R_2: (120011000)\begin{pmatrix} 1&2&0 \\ 0&1&1 \\ 0&0&0 \end{pmatrix}. Since the rank is 2, the vectors span a 2-dimensional subspace. From the reduced form, we see that v3=2v1v2\mathbf{v}_3 = 2\mathbf{v}_1 - \mathbf{v}_2. So span(T) = span{v1,v2\mathbf{v}_1, \mathbf{v}_2}. For (0,1,2)(0,1,2) to be in the span, we need (0,1,2)=c1(1,2,0)+c2(0,1,1)(0,1,2) = c_1(1,2,0) + c_2(0,1,1), giving c1=0c_1 = 0, 2c1+c2=1c2=12c_1 + c_2 = 1 \Rightarrow c_2 = 1, c2=2c_2 = 2. This is inconsistent since c2c_2 cannot be both 1 and 2.

Question 13

Let A={(1,1,0),(1,0,1),(0,1,1)}A = \{(1,1,0), (1,0,1), (0,1,1)\} and B={(2,1,1),(1,2,1),(1,1,2)}B = \{(2,1,1), (1,2,1), (1,1,2)\}. Which statement about span(A)\text{span}(A) and span(B)\text{span}(B) is correct?

  1. span(A)=span(B)\text{span}(A) = \text{span}(B) and both equal R3\mathbb{R}^3 (correct answer)
  2. span(A)=span(B)\text{span}(A) = \text{span}(B) but neither equals R3\mathbb{R}^3
  3. span(A)span(B)\text{span}(A) \neq \text{span}(B) but both equal R3\mathbb{R}^3
  4. span(A)span(B)\text{span}(A) \neq \text{span}(B) and neither equals R3\mathbb{R}^3
Explanation: First, let's check if the vectors in A are linearly independent. The matrix (110101011)\begin{pmatrix} 1&1&0 \\ 1&0&1 \\ 0&1&1 \end{pmatrix} has determinant 1(01)1(10)+0=11=201(0-1) - 1(1-0) + 0 = -1-1 = -2 ≠ 0, so A spans R3\mathbb{R}^3. For B, the matrix (211121112)\begin{pmatrix} 2&1&1 \\ 1&2&1 \\ 1&1&2 \end{pmatrix} has determinant 2(41)1(21)+1(12)=611=402(4-1) - 1(2-1) + 1(1-2) = 6-1-1 = 4 ≠ 0, so B also spans R3\mathbb{R}^3. Since both A and B span R3\mathbb{R}^3, we have span(A)=span(B)=R3\text{span}(A) = \text{span}(B) = \mathbb{R}^3.

Question 14

Let S={v1,v2,v3}S = \{\vec{v}_1, \vec{v}_2, \vec{v}_3\} be a set of vectors in R4\mathbb{R}^4. Let V=span(S)V = \mathrm{span}(S). Which of the following statements about VV must be true?

  1. VV is a 3-dimensional subspace of R4\mathbb{R}^4.
  2. The set SS forms a basis for the subspace VV.
  3. VV cannot be all of R4\mathbb{R}^4. (correct answer)
  4. VV cannot be spanned by any set with only two vectors.
Explanation: To span the entire space R4\mathbb{R}^4, a set must contain at least 4 vectors. Since the set SS only contains 3 vectors, its span, VV, can have a dimension of at most 3. Therefore, VV cannot be the entire 4-dimensional space R4\mathbb{R}^4. The other options are not guaranteed: A) The dimension could be less than 3 if the vectors are linearly dependent. B) SS is a generating set for VV by definition, but it is only a basis if it is also linearly independent. D) If the three vectors are collinear, VV would be a line and could be spanned by a single non-zero vector.

Question 15

Consider the vector space P2\mathbb{P}_2 of polynomials of degree at most 2. Let W=span{1+x2,xx2,2+x+x2}W = \text{span}\{1 + x^2, x - x^2, 2 + x + x^2\}. Which polynomial is NOT in WW?

  1. 32x+4x23 - 2x + 4x^2
  2. 1+2xx21 + 2x - x^2
  3. 4+3x+2x24 + 3x + 2x^2 (correct answer)
  4. 1+x+3x2-1 + x + 3x^2
Explanation: To determine if a polynomial is in W, we need to check if it can be written as a(1+x2)+b(xx2)+c(2+x+x2)=(a+2c)+(b+c)x+(ab+c)x2a(1+x^2) + b(x-x^2) + c(2+x+x^2) = (a+2c) + (b+c)x + (a-b+c)x^2. For option C: 4+3x+2x24+3x+2x^2, we need a+2c=4a+2c=4, b+c=3b+c=3, ab+c=2a-b+c=2. From the first two equations: a=42ca=4-2c and b=3cb=3-c. Substituting into the third: (42c)(3c)+c=42c3+c+c=12(4-2c)-(3-c)+c = 4-2c-3+c+c = 1 ≠ 2. This is inconsistent, so 4+3x+2x2W4+3x+2x^2 ∉ W. We can verify the others work: A gives a=1,b=2,c=1a=1, b=-2, c=1; B gives a=1,b=2,c=1a=-1, b=2, c=1; D gives a=0,b=1,c=2a=0, b=1, c=2.