Ma · Mathematics

How to Determine Whether a Set Spans ℝ²

Published By the 9to5Science editorial team

At a glance

  1. 1. Write the vectors

    Treat each listed vector as a column of a matrix.

  2. 2. Check the rank

    The vectors span ℝ² exactly when the matrix has rank 2.

  3. 3. Use a determinant

    For exactly two vectors, a nonzero 2-by-2 determinant is enough.

  4. 4. Interpret the result

    Rank 2 means every vector in ℝ² is a linear combination of the set.

To determine whether a set of vectors spans R2\mathbb{R}^2, check whether the vectors can produce every point in the plane by taking linear combinations. The specific vectors are not included in the question here, so the method below shows how to test any proposed set.

The central test is simple: the set spans R2\mathbb{R}^2 if and only if its vectors have rank 2. For exactly two vectors, you can use a determinant instead of row reduction.

What it means to span R2\mathbb{R}^2

A set S={v1,…,vk}S=\{v_1,\ldots,v_k\} spans R2\mathbb{R}^2 if every vector (x,y)(x,y) in the plane can be written as a linear combination of the vectors in SS:

(x,y)=c1v1+⋯+ckvk(x,y)=c_1v_1+\cdots+c_kv_k

for some real numbers c1,…,ckc_1,\ldots,c_k. Geometrically, the vectors must provide two independent directions. If all the vectors lie on a single line through the origin, their linear combinations stay on that line and cannot fill the plane.

The rank test for any number of vectors

Write each vector as a column of a matrix. If the set contains kk vectors in R2\mathbb{R}^2, the matrix has two rows and kk columns. Row-reduce it. The set spans R2\mathbb{R}^2 precisely when the reduced matrix has a pivot in each of its two rows—that is, when its rank is 2.

This works whether the set has two vectors or more. A set with more than two vectors can still span the plane, but some of its vectors may be redundant. A set with fewer than two vectors cannot span R2\mathbb{R}^2.

The determinant test for two vectors

If the set has exactly two vectors, write them as

v1=(ab),v2=(cd).v_1=\begin{pmatrix}a\\b\end{pmatrix},\qquad v_2=\begin{pmatrix}c\\d\end{pmatrix}.

Place them in the columns of a matrix and calculate its determinant:

A=(acbd),det⁡(A)=ad−bc.A=\begin{pmatrix}a&c\\b&d\end{pmatrix},\qquad \det(A)=ad-bc.
  • If ad−bc≠0ad-bc\ne 0, the columns are linearly independent and span R2\mathbb{R}^2.
  • If ad−bc=0ad-bc=0, the columns are dependent and do not span R2\mathbb{R}^2.

The determinant is nonzero exactly when the matrix is invertible. In that case, for any target vector w∈R2w\in\mathbb{R}^2, the equation A(rs)=wA\begin{pmatrix}r\\s\end{pmatrix}=w has a solution, so w=rv1+sv2w=rv_1+sv_2.

Worked examples

Consider

v1=(12),v2=(31).v_1=\begin{pmatrix}1\\2\end{pmatrix},\qquad v_2=\begin{pmatrix}3\\1\end{pmatrix}.

The determinant of the matrix with these columns is

det⁡(1321)=1⋅1−3⋅2=−5.\det\begin{pmatrix}1&3\\2&1\end{pmatrix}=1\cdot1-3\cdot2=-5.

Since −5≠0-5\ne0, the vectors span R2\mathbb{R}^2. For example, the target vector (74)\begin{pmatrix}7\\4\end{pmatrix} is their linear combination with coefficients 11 and 22:

(74)=1(12)+2(31).\begin{pmatrix}7\\4\end{pmatrix}=1\begin{pmatrix}1\\2\end{pmatrix}+2\begin{pmatrix}3\\1\end{pmatrix}.

Now consider u1=(12)u_1=\begin{pmatrix}1\\2\end{pmatrix} and u2=(24)u_2=\begin{pmatrix}2\\4\end{pmatrix}. Here u2=2u1u_2=2u_1, and the determinant is 1⋅4−2⋅2=01\cdot4-2\cdot2=0. Every linear combination lies on the line y=2xy=2x, so these vectors do not span the plane. In particular, no combination of them equals (10)\begin{pmatrix}1\\0\end{pmatrix}.

For a set of three vectors, use rank. For example, take v1=(10)v_1=\begin{pmatrix}1\\0\end{pmatrix}, v2=(01)v_2=\begin{pmatrix}0\\1\end{pmatrix}, and v3=(11)v_3=\begin{pmatrix}1\\1\end{pmatrix}. The matrix is

(101011).\begin{pmatrix}1&0&1\\0&1&1\end{pmatrix}.

It has rank 2, so the set spans R2\mathbb{R}^2. The third vector is redundant because it is v1+v2v_1+v_2; the first two already span the plane.

Common mistakes

  • Checking only whether the vectors are nonzero. Two nonzero vectors can point in the same direction, as in the second example. Nonzero vectors do not necessarily span the plane.
  • Using the determinant for a non-square matrix. The determinant test applies directly only when there are exactly two vectors in R2\mathbb{R}^2. With another number of vectors, use row reduction to find the rank.
  • Confusing independence with spanning. Two vectors in R2\mathbb{R}^2 span the plane exactly when they are linearly independent. With more than two vectors, the set may span even though it is dependent.
  • Ignoring the zero vector. Adding the zero vector does not change a span, because it contributes nothing to any linear combination.

If you have a particular set, place its vectors in matrix columns and apply the determinant test or rank test as appropriate.

References

  1. Linear Algebra and Its Applications, David C. Lay, Steven R. Lay, and Judi J. McDonald

Spotted an error? Send a correction. Read how we write and check articles in our editorial policy.