In linear algebra, the span of a subset
M
{\displaystyle M}
of a vector space
V
{\displaystyle V}
over a field
K
{\displaystyle K}
is the set of all linear combinations with vectors from
M
{\displaystyle M}
and scalars from
K
{\displaystyle K}
. The span is often called the linear hull of
M
{\displaystyle M}
or the span of
M
{\displaystyle M}
.
The span forms a subspace of the vector space
V
{\displaystyle V}
, namely the smallest subspace that contains
M
{\displaystyle M}
.
Generating vectors of the
x
y
{\displaystyle xy}
-plane[ edit | edit source ]
We consider the vector space
R
3
{\displaystyle \mathbb {R} ^{3}}
and restrict to the
x
y
{\displaystyle xy}
-plane. I.e., the set of all vectors of the form
(
a
,
b
,
0
)
T
{\displaystyle (a,b,0)^{T}}
with
a
,
b
∈
R
{\displaystyle a,b\in \mathbb {R} }
:
The xy-plane in three-dimensional space
Each vector of this plane can be written as a linear combination of the vectors
(
1
,
0
,
0
)
T
{\displaystyle (1,0,0)^{T}}
and
(
0
,
1
,
0
)
T
{\displaystyle (0,1,0)^{T}}
:
(
a
b
0
)
=
a
⋅
(
1
0
0
)
+
b
⋅
(
0
1
0
)
{\displaystyle {\begin{pmatrix}a\\b\\0\end{pmatrix}}=a\cdot {\begin{pmatrix}1\\0\\0\end{pmatrix}}+b\cdot {\begin{pmatrix}0\\1\\0\end{pmatrix}}}
With the set of these linear combinations, every point of the
x
y
{\displaystyle xy}
-plane can be reached. In particular, the two vectors
(
1
,
0
,
0
)
T
{\displaystyle (1,0,0)^{T}}
and
(
0
,
1
,
0
)
T
{\displaystyle (0,1,0)^{T}}
lie in the
x
y
{\displaystyle xy}
-plane.
Furthermore, all linear combinations of the two vectors
(
1
,
0
,
0
)
T
{\displaystyle (1,0,0)^{T}}
and
(
0
,
1
,
0
)
T
{\displaystyle (0,1,0)^{T}}
lie in the
x
y
{\displaystyle xy}
-plane. This is because the
z
{\displaystyle z}
component of the two vectors under consideration is
0
{\displaystyle 0}
and thus the third component of the linear combination of the vectors must also be
0
{\displaystyle 0}
.
In summary, we can state: Every vector of the
x
y
{\displaystyle xy}
-plane is a linear combination of
(
1
,
0
,
0
)
T
{\displaystyle (1,0,0)^{T}}
and
(
0
,
1
,
0
)
T
{\displaystyle (0,1,0)^{T}}
. Every linear combination of these two vectors is also an element of this plane. So the vectors
(
1
,
0
,
0
)
T
{\displaystyle (1,0,0)^{T}}
and
(
0
,
1
,
0
)
T
{\displaystyle (0,1,0)^{T}}
generate the
x
y
{\displaystyle xy}
-plane. Or as a mathematician would say, they span the
x
y
{\displaystyle xy}
-plane (like two rods spanning a side of a tent).
The
x
y
{\displaystyle xy}
-plane is a subspace of the vector space
R
3
{\displaystyle \mathbb {R} ^{3}}
. We call this subspace
U
{\displaystyle U}
. Our two vectors span the subspace (=plane)
U
{\displaystyle U}
. So we write
U
=
span
{
(
1
0
0
)
,
(
0
1
0
)
}
.
{\displaystyle U=\operatorname {span} \left\{{\begin{pmatrix}1\\0\\0\end{pmatrix}},{\begin{pmatrix}0\\1\\0\end{pmatrix}}\right\}.}
We say that "
U
{\displaystyle U}
is subspace generated by the two vectors
(
1
,
0
,
0
)
T
{\displaystyle (1,0,0)^{T}}
and
(
0
,
1
,
0
)
T
{\displaystyle (0,1,0)^{T}}
" or that "
U
{\displaystyle U}
is the linear hull of the two vectors
(
1
,
0
,
0
)
T
{\displaystyle (1,0,0)^{T}}
and
(
0
,
1
,
0
)
T
{\displaystyle (0,1,0)^{T}}
or even better:
U
{\displaystyle U}
is the span of the two vectors
(
1
,
0
,
0
)
T
{\displaystyle (1,0,0)^{T}}
and
(
0
,
1
,
0
)
T
{\displaystyle (0,1,0)^{T}}
.
Are these generating vectors unique? The answer is no, because the plane
U
{\displaystyle U}
can also be spanned by two vectors like
(
1
,
0
,
0
)
T
{\displaystyle (1,0,0)^{T}}
and
(
1
,
1
,
0
)
T
{\displaystyle (1,1,0)^{T}}
:
(
a
b
0
)
=
(
a
−
b
)
⋅
(
1
0
0
)
+
b
⋅
(
1
1
0
)
.
{\displaystyle {\begin{pmatrix}a\\b\\0\end{pmatrix}}=(a-b)\cdot {\begin{pmatrix}1\\0\\0\end{pmatrix}}+b\cdot {\begin{pmatrix}1\\1\\0\end{pmatrix}}.}
There is hence also
U
=
span
{
(
1
0
0
)
,
(
1
1
0
)
}
.
{\displaystyle U=\operatorname {span} \left\{{\begin{pmatrix}1\\0\\0\end{pmatrix}},{\begin{pmatrix}1\\1\\0\end{pmatrix}}\right\}.}
Thus, the two vectors spanning a plane are not necessarily unique.
Intuitively, we can think of the span of vectors as the set of all possible linear combinations that can be built from these vectors. In our example this means
span
{
(
1
0
0
)
,
(
0
1
0
)
}
=
{
a
⋅
(
1
0
0
)
+
b
⋅
(
0
1
0
)
|
a
,
b
∈
R
}
.
{\displaystyle \operatorname {span} \left\{{\begin{pmatrix}1\\0\\0\end{pmatrix}},{\begin{pmatrix}0\\1\\0\end{pmatrix}}\right\}=\left\{a\cdot {\begin{pmatrix}1\\0\\0\end{pmatrix}}+b\cdot {\begin{pmatrix}0\\1\\0\end{pmatrix}}{\Bigg |}\,a,b\in \mathbb {R} \right\}.}
Another intuition is the following: The span of a set
M
{\displaystyle M}
describes the vector space where all combinations of directions represented by elements from
M
{\displaystyle M}
are merged.
We now examine a slightly more complicated example: Consider the vector space
V
{\displaystyle V}
of polynomials over
R
{\displaystyle \mathbb {R} }
. Let
M
=
{
x
n
|
n
∈
N
0
is even
}
⊂
V
{\displaystyle M=\{x^{n}|\,n\in \mathbb {N} _{0}{\text{ is even}}\}\subset V}
. The elements from
M
{\displaystyle M}
are the monomials
1
{\displaystyle 1}
,
x
2
{\displaystyle x^{2}}
,
x
4
{\displaystyle x^{4}}
,
x
6
{\displaystyle x^{6}}
and so on. In other words, all monomials that have an even exponent. For odd exponents, however
x
,
x
3
,
x
5
,
.
.
.
∉
M
{\displaystyle x,x^{3},x^{5},...\notin M}
. We consider
span
(
M
)
{\displaystyle \operatorname {span} (M)}
, the set of all linear combinations with vectors of
M
{\displaystyle M}
. For example
2
x
2
+
5
x
4
+
9
x
8
+
7
x
12
{\displaystyle 2x^{2}+5x^{4}+9x^{8}+7x^{12}}
is an element in
span
(
M
)
{\displaystyle \operatorname {span} (M)}
. In particular,
span
(
M
)
{\displaystyle \operatorname {span} (M)}
is a subspace of
V
{\displaystyle V}
since it contains polynomials.
Further, the set
span
(
M
)
{\displaystyle \operatorname {span} (M)}
is not empty, since it contains for instance
x
2
∈
M
{\displaystyle x^{2}\in M}
.
Let us now consider two polynomials
p
,
q
∈
span
(
M
)
{\displaystyle p,q\in \operatorname {span} (M)}
. By construction of
span
(
M
)
{\displaystyle \operatorname {span} (M)}
,
p
{\displaystyle p}
and
q
{\displaystyle q}
consist exclusively of monomials with an even exponent. Thus, of addition of
p
{\displaystyle p}
and
q
{\displaystyle q}
also results in a polynomial with exclusively even exponents. The set
span
(
M
)
{\displaystyle \operatorname {span} (M)}
is therefore closed with respect to addition.
The same argument gives us completeness with respect to scalar multiplication. Thus, the set
span
(
M
)
{\displaystyle \operatorname {span} (M)}
is a subspace of the vector space of all polynomials. As we will see later, it is even the smallest subspace that contains
M
{\displaystyle M}
.
Above, we found out that the span of a set
M
{\displaystyle M}
is the set of all linear combinations with vectors from
M
{\displaystyle M}
. Intuitively, the span is the subspace resulting from the union of all directions given by vectors from
M
{\displaystyle M}
. Now, we make this intuition mathematically precise.
Definition (Span of a set)
Let
V
{\displaystyle V}
be a vector space over the field
K
{\displaystyle K}
. Let
M
⊆
V
{\displaystyle M\subseteq V}
be a non-empty set. We define the span of
M
{\displaystyle M}
as the set of all vectors from
V
{\displaystyle V}
which can be represented as a finite linear combination of vectors from
M
{\displaystyle M}
and denote it as
span
(
M
)
{\displaystyle \operatorname {span} (M)}
:
span
(
M
)
=
{
∑
i
=
1
n
λ
i
⋅
m
i
|
n
∈
N
,
λ
1
,
…
,
λ
n
∈
K
,
m
1
,
…
,
m
n
∈
M
}
{\displaystyle \operatorname {span} (M)=\left\{\sum _{i=1}^{n}\lambda _{i}\cdot m_{i}{\Bigg |}\ n\in \mathbb {N} ,\,\lambda _{1},\ldots ,\lambda _{n}\in K,\,m_{1},\ldots ,m_{n}\in M\right\}}
For the empty set we define:
span
(
∅
)
=
{
0
}
{\displaystyle \operatorname {span} (\emptyset )=\{0\}}
Alternatively, one can call the span of a set the generated subspace or linear hull .
Hint
The sum always has only finitely many summands, even if M is infinite.
Example (plane through the origin as a span)
Let
(
5
,
0
,
0
)
T
{\displaystyle (5,0,0)^{T}}
and
(
0
,
3
,
0
)
T
{\displaystyle (0,3,0)^{T}}
be two vectors from
R
3
{\displaystyle \mathbb {R} ^{3}}
. The span of these two vectors is the
x
y
{\displaystyle xy}
-plane. The following transformation shows
span
(
{
(
5
0
0
)
,
(
0
3
0
)
}
)
=
{
λ
⋅
(
5
0
0
)
+
μ
⋅
(
0
3
0
)
|
λ
,
μ
∈
R
}
=
{
5
⋅
λ
⋅
(
1
0
0
)
+
3
⋅
μ
⋅
(
0
1
0
)
|
λ
,
μ
∈
R
}
↓
set
λ
~
=
5
⋅
λ
,
μ
~
=
3
⋅
μ
or
λ
=
1
5
⋅
λ
~
,
μ
=
1
3
⋅
μ
~
=
{
λ
~
⋅
(
1
0
0
)
+
⋅
μ
~
⋅
(
0
1
0
)
|
λ
~
,
μ
~
∈
R
}
=
{
(
λ
~
μ
~
0
)
|
λ
~
,
μ
~
∈
R
}
{\displaystyle {\begin{aligned}\operatorname {span} \left(\left\lbrace {\begin{pmatrix}5\\0\\0\end{pmatrix}},{\begin{pmatrix}0\\3\\0\end{pmatrix}}\right\rbrace \right)&=\left\lbrace \lambda \cdot {\begin{pmatrix}5\\0\\0\end{pmatrix}}+\mu \cdot {\begin{pmatrix}0\\3\\0\end{pmatrix}}{\Bigg |}\ \lambda ,\mu \in \mathbb {R} \right\rbrace \\[0.3em]&=\,\left\lbrace 5\cdot \lambda \cdot {\begin{pmatrix}1\\0\\0\end{pmatrix}}+3\cdot \mu \cdot {\begin{pmatrix}0\\1\\0\end{pmatrix}}{\Bigg |}\ \lambda ,\mu \in \mathbb {R} \right\rbrace \\[0.3em]&\ {\color {OliveGreen}\left\downarrow {\text{set }}{{\tilde {\lambda }}=5\cdot \lambda ,\ {\tilde {\mu }}=3\cdot \mu }\ {\text{ or }}\ \lambda ={\frac {1}{5}}\cdot {\tilde {\lambda }},\ \mu ={\frac {1}{3}}\cdot {\tilde {\mu }}\right.}\\[0.3em]&=\,\left\lbrace {\tilde {\lambda }}\cdot {\begin{pmatrix}1\\0\\0\end{pmatrix}}+\cdot {\tilde {\mu }}\cdot {\begin{pmatrix}0\\1\\0\end{pmatrix}}{\Bigg |}\ {\tilde {\lambda }},{\tilde {\mu }}\in \mathbb {R} \right\rbrace \\[0.3em]&=\,\left\{{\begin{pmatrix}{\tilde {\lambda }}\\{\tilde {\mu }}\\0\end{pmatrix}}{\Bigg |}\ {\tilde {\lambda }},{\tilde {\mu }}\in \mathbb {R} \right\}\end{aligned}}}
Let
V
{\displaystyle V}
be a
K
{\displaystyle K}
-vector space,
M
{\displaystyle M}
,
N
⊆
V
{\displaystyle N\subseteq V}
subsets of
V
{\displaystyle V}
and
W
⊆
V
{\displaystyle W\subseteq V}
a subspace of
V
{\displaystyle V}
. Then, we have
For a vector
v
∈
V
{\displaystyle v\in V}
we have
span
(
{
v
}
)
=
{
λ
⋅
v
|
λ
∈
K
}
{\displaystyle \operatorname {span} (\{v\})=\{\lambda \cdot v|\lambda \in K\}}
If
N
⊆
M
{\displaystyle N\subseteq M}
, then
span
(
N
)
⊆
span
(
M
)
{\displaystyle \operatorname {span} (N)\subseteq \operatorname {span} (M)}
From
span
(
N
)
=
span
(
M
)
{\displaystyle \operatorname {span} (N)=\operatorname {span} (M)}
one can usually not conclude
N
=
M
{\displaystyle N=M}
M
⊆
span
(
M
)
{\displaystyle M\subseteq \operatorname {span} (M)}
span
(
M
)
{\displaystyle \operatorname {span} (M)}
is a subspace of
V
{\displaystyle V}
For a subspace
W
{\displaystyle W}
we have
span
(
W
)
=
W
{\displaystyle \operatorname {span} (W)=W}
span
(
M
)
{\displaystyle \operatorname {span} (M)}
is the smallest subspace of
V
{\displaystyle V}
including
M
{\displaystyle M}
N
⊆
span
(
M
)
⟺
span
(
M
)
=
span
(
M
∪
N
)
{\displaystyle N\subseteq \operatorname {span} (M)\iff \operatorname {span} (M)=\operatorname {span} (M\cup N)}
span
(
span
(
M
)
)
=
span
(
M
)
{\displaystyle \operatorname {span} (\operatorname {span} (M))=\operatorname {span} (M)}
The span of a vector
v
{\displaystyle v}
in
V
{\displaystyle V}
[ edit | edit source ]
For a vector
v
∈
V
{\displaystyle v\in V}
we have that
span
(
{
v
}
)
=
{
λ
⋅
v
|
λ
∈
K
}
{\displaystyle \operatorname {span} (\{v\})=\{\lambda \cdot v\,|\ \lambda \in K\}}
. For the zero vector
v
=
0
{\displaystyle v=0}
the span again consists only of the zero vector, so
span
(
{
0
}
)
=
{
0
}
{\displaystyle \operatorname {span} (\{0\})=\{0\}}
. If
v
≠
0
{\displaystyle v\neq 0}
holds, then
span
(
{
v
}
)
{\displaystyle \operatorname {span} (\{v\})}
is exactly the set of elements that lie on the line through the origin in direction of the vector
v
{\displaystyle v}
.
Proof (Span preserves subsets)
Since
span
(
∅
)
=
{
0
}
{\displaystyle \operatorname {span} (\emptyset )=\{0\}}
and
0
{\displaystyle 0}
is an element in the span of every set, we have
span
(
∅
)
=
{
0
}
⊆
M
{\displaystyle \operatorname {span} (\emptyset )=\{0\}\subseteq M}
.
Thus, we can assume without loss of generality that
∅
≠
N
⊆
M
{\displaystyle \emptyset \neq N\subseteq M}
. We consider any element
v
∈
span
(
N
)
{\displaystyle v\in \operatorname {span} (N)}
. By the definition of the span, vectors
v
1
,
.
.
.
,
v
n
∈
N
{\displaystyle v_{1},...,v_{n}\in N}
and
λ
1
,
.
.
.
,
λ
n
∈
K
{\displaystyle \lambda _{1},...,\lambda _{n}\in K}
exist such that
v
=
∑
i
=
1
n
λ
i
v
i
{\displaystyle v=\sum _{i=1}^{n}\lambda _{i}v_{i}}
. Because of
N
⊆
M
{\displaystyle N\subseteq M}
we have for all
v
i
{\displaystyle v_{i}}
with
1
≤
i
≤
n
{\displaystyle 1\leq i\leq n}
that
v
i
∈
M
{\displaystyle v_{i}\in M}
. Hence, also
v
∈
span
(
M
)
{\displaystyle v\in \operatorname {span} (M)}
. Consequently,
span
(
N
)
⊆
span
(
M
)
{\displaystyle \operatorname {span} (N)\subseteq \operatorname {span} (M)}
.
Hint
The converse of the above theorem does not hold true in general! By this we mean: From
span
(
N
)
⊆
span
(
M
)
{\displaystyle \operatorname {span} (N)\subseteq \operatorname {span} (M)}
we cannot conclude
N
⊆
M
{\displaystyle N\subseteq M}
.
A possible counterexample is:
N
=
{
(
1
0
)
,
(
2
0
)
}
and
M
=
{
(
1
0
)
}
{\displaystyle N=\left\{{\begin{pmatrix}1\\0\end{pmatrix}},{\begin{pmatrix}2\\0\end{pmatrix}}\right\}{\text{ and }}M=\left\{{\begin{pmatrix}1\\0\end{pmatrix}}\right\}}
Here,
span
(
N
)
=
{
λ
1
⋅
(
1
0
)
+
λ
2
⋅
(
2
0
)
|
λ
1
,
λ
2
∈
K
}
=
{
(
λ
1
+
2
λ
2
)
⋅
(
1
0
)
|
λ
1
,
λ
2
∈
K
}
span
(
M
)
=
{
μ
⋅
(
1
0
)
|
μ
∈
K
}
{\displaystyle {\begin{aligned}\operatorname {span} (N)&=\left\{\lambda _{1}\cdot {\begin{pmatrix}1\\0\end{pmatrix}}+\lambda _{2}\cdot {\begin{pmatrix}2\\0\end{pmatrix}}{\Bigg |}\ \lambda _{1},\lambda _{2}\in K\right\}=\left\{(\lambda _{1}+2\lambda _{2})\cdot {\begin{pmatrix}1\\0\end{pmatrix}}{\Bigg |}\ \lambda _{1},\lambda _{2}\in K\right\}\\[0.3em]\operatorname {span} (M)&=\left\{\mu \cdot {\begin{pmatrix}1\\0\end{pmatrix}}{\Bigg |}\ \mu \in K\right\}\end{aligned}}}
Thus
span
(
N
)
=
span
(
M
)
{\displaystyle \operatorname {span} (N)=\operatorname {span} (M)}
, since in both cases we get exactly the multiples of the vector
(
1
,
0
)
T
{\displaystyle (1,0)^{T}}
. Since the two subsets are equal, we have in particular
span
(
N
)
⊆
span
(
M
)
{\displaystyle \operatorname {span} (N)\subseteq \operatorname {span} (M)}
, but
N
⊈
M
{\displaystyle N\nsubseteq M}
. Therefore, the converse of the theorem cannot hold true in general.
The span of
M
{\displaystyle M}
is a subspace of
V
{\displaystyle V}
[ edit | edit source ]
Theorem (The span of
M
{\displaystyle M}
is a subspace of
V
{\displaystyle V}
)
span
(
M
)
{\displaystyle \operatorname {span} (M)}
is a subspace of
V
{\displaystyle V}
Proof (The span of
M
{\displaystyle M}
is a subspace of
V
{\displaystyle V}
)
If
M
{\displaystyle M}
is the empty set, then by definition
span
(
M
)
=
{
0
}
{\displaystyle \operatorname {span} (M)=\{0\}}
, and that is a subspace of
V
{\displaystyle V}
. From now on we may therefore assume that
M
{\displaystyle M}
is not empty.
First, it is clear that
span
(
M
)
⊆
V
{\displaystyle \operatorname {span} (M)\subseteq V}
. But this is obvious according to the definition of vector space and span.
We still have to show
span
(
M
)
{\displaystyle \operatorname {span} (M)}
is subspace of
V
{\displaystyle V}
. In other words,we have to show that
span
(
M
)
≠
∅
{\displaystyle \operatorname {span} (M)\neq \emptyset }
for two elements
u
,
v
∈
span
(
M
)
{\displaystyle u,v\in \operatorname {span} (M)}
we have also
u
+
v
∈
span
(
M
)
{\displaystyle u+v\in \operatorname {span} (M)}
(completeness of addition)
ρ
⋅
u
∈
span
(
M
)
{\displaystyle \rho \cdot u\in \operatorname {span} (M)}
(completeness of scalar multiplication)
Proof step:
span
(
M
)
≠
∅
{\displaystyle \operatorname {span} (M)\neq \emptyset }
Proof step: Completeness of addition
We show the completeness concerning the vector addition. Let
u
,
v
∈
span
(
M
)
{\displaystyle u,v\in \operatorname {span} (M)}
. Then there are vectors
m
1
,
…
,
m
n
∈
M
{\displaystyle m_{1},\ldots ,m_{n}\in M}
and
n
1
,
…
,
n
k
∈
M
{\displaystyle n_{1},\ldots ,n_{k}\in M}
, so that
u
=
∑
i
=
1
n
λ
i
⋅
m
i
{\displaystyle u=\sum _{i=1}^{n}\lambda _{i}\cdot m_{i}}
and
v
=
∑
i
=
1
k
μ
i
⋅
n
i
{\displaystyle v=\sum _{i=1}^{k}\mu _{i}\cdot n_{i}}
. So
u
+
v
=
∑
i
=
1
n
λ
i
⋅
m
i
+
∑
i
=
1
k
μ
i
⋅
n
i
∈
span
(
M
)
{\displaystyle u+v=\sum _{i=1}^{n}\lambda _{i}\cdot m_{i}+\sum _{i=1}^{k}\mu _{i}\cdot n_{i}\in \operatorname {span} (M)}
Hence,
span
(
M
)
{\displaystyle \operatorname {span} (M)}
is complete with respect to addition.
Proof step: Completeness of scalar multiplication
Establish completeness of scalar multiplication is done easily:
ρ
⋅
u
=
ρ
⋅
∑
i
=
1
n
λ
i
⋅
m
i
=
∑
i
=
1
n
(
ρ
⋅
λ
i
)
⋅
m
i
∈
span
(
M
)
{\displaystyle \rho \cdot u=\rho \cdot \sum _{i=1}^{n}\lambda _{i}\cdot m_{i}=\sum _{i=1}^{n}(\rho \cdot \lambda _{i})\cdot m_{i}\in \operatorname {span} (M)}
Thus, we have proved that
span
(
M
)
{\displaystyle \operatorname {span} (M)}
is a subspace of the vector space
V
{\displaystyle V}
.
The span of a subspace
W
{\displaystyle W}
is again
W
{\displaystyle W}
[ edit | edit source ]
Theorem (The span of
M
{\displaystyle M}
is the smallest subspace of
V
{\displaystyle V}
)
The span of a subspace
W
{\displaystyle W}
is again
W
{\displaystyle W}
The span of
M
{\displaystyle M}
is the smallest subspace of
V
{\displaystyle V}
, containing
M
{\displaystyle M}
[ edit | edit source ]
Proof (The span of
M
{\displaystyle M}
is the smallest subspace of
V
{\displaystyle V}
)
We already know that
span
(
M
)
{\displaystyle \operatorname {span} (M)}
is a subspace. Now we show that
span
(
M
)
{\displaystyle \operatorname {span} (M)}
is the smallest subspace containing
M
{\displaystyle M}
.
If
M
=
∅
{\displaystyle M=\emptyset }
, the assertion is obviously true, since then
span
(
M
)
=
{
0
}
{\displaystyle \operatorname {span} (M)=\{0\}}
.
Let
W
{\displaystyle W}
be a subspace of
V
{\displaystyle V}
containing
M
{\displaystyle M}
. Our goal is to show that
span
(
M
)
⊆
i
s
W
{\displaystyle \operatorname {span} (M)\subseteq isW}
. Since this would imply that the subspace
span
(
M
)
{\displaystyle \displaystyle \operatorname {span} (M)}
is smaller or equal to every other subspace
W
{\displaystyle W}
containing
M
{\displaystyle M}
.
Now if
u
∈
span
(
M
)
{\displaystyle u\in \operatorname {span} (M)}
, then there are some
m
1
,
.
.
.
,
m
n
∈
M
{\displaystyle m_{1},...,m_{n}\in M}
and
λ
1
,
…
,
λ
n
∈
K
{\displaystyle \lambda _{1},\ldots ,\lambda _{n}\in K}
such that
u
=
∑
i
=
1
n
λ
i
m
i
{\displaystyle \displaystyle u=\sum _{i=1}^{n}\lambda _{i}m_{i}}
(by definition of the span).
Since
W
{\displaystyle W}
is a subspace and
m
1
,
…
,
m
n
∈
W
{\displaystyle m_{1},\ldots ,m_{n}\in W}
, all linear combinations of
m
1
,
…
,
m
n
{\displaystyle m_{1},\ldots ,m_{n}}
are also contained in
W
{\displaystyle W}
. This implies our assertion
span
(
M
)
⊆
W
{\displaystyle \operatorname {span} (M)\subseteq W}
.
Proof (Idempotency of the span)
For
M
=
∅
{\displaystyle M=\emptyset }
we have
span
(
∅
)
=
{
0
}
{\displaystyle \operatorname {span} (\emptyset )=\{0\}}
and
span
(
span
(
∅
)
)
=
span
(
{
0
}
)
=
{
0
}
{\displaystyle \operatorname {span} (\operatorname {span} (\emptyset ))=\operatorname {span} (\{0\})=\{0\}}
.
Therefore, we can now assume that
M
{\displaystyle M}
is not empty.
We already know that
span
(
M
)
⊆
span
(
span
(
M
)
)
{\displaystyle \operatorname {span} (M)\subseteq \operatorname {span} (\operatorname {span} (M))}
. So it only remains to show that
span
(
span
(
M
)
)
⊆
span
(
M
)
{\displaystyle \operatorname {span} (\operatorname {span} (M))\subseteq \operatorname {span} (M)}
.
Let
v
∈
span
(
span
(
M
)
)
{\displaystyle v\in \operatorname {span} (\operatorname {span} (M))}
. Then
v
{\displaystyle v}
can be written as
v
=
λ
1
⋅
u
1
+
.
.
.
+
λ
n
⋅
u
n
{\displaystyle v=\lambda _{1}\cdot u_{1}+...+\lambda _{n}\cdot u_{n}}
with
λ
1
,
.
.
.
,
λ
n
∈
K
{\displaystyle \lambda _{1},...,\lambda _{n}\in K}
and
u
1
,
.
.
.
,
u
n
∈
span
(
M
)
{\displaystyle u_{1},...,u_{n}\in \operatorname {span} (M)}
. Since
u
i
∈
span
(
M
)
{\displaystyle u_{i}\in \operatorname {span} (M)}
for all
1
≤
i
≤
n
{\displaystyle 1\leq i\leq n}
, every
u
i
{\displaystyle u_{i}}
can be written as a linear combination of elements in
M
{\displaystyle M}
:
u
i
=
μ
1
⋅
w
i
,
1
+
.
.
.
+
μ
m
i
⋅
w
i
,
m
i
{\displaystyle u_{i}=\mu _{1}\cdot w_{i,1}+...+\mu _{m_{i}}\cdot w_{i,m_{i}}}
where
μ
1
,
.
.
.
,
μ
m
i
∈
K
{\displaystyle \mu _{1},...,\mu _{m_{i}}\in K}
and
w
i
,
1
,
.
.
.
,
w
i
,
m
i
∈
M
{\displaystyle w_{i,1},...,w_{i,m_{i}}\in M}
. We now write the
u
i
{\displaystyle u_{i}}
within
v
{\displaystyle v}
as a linear combination of the
w
i
,
j
{\displaystyle w_{i,j}}
:
v
=
∑
i
=
1
n
λ
i
u
i
↓
u
i
=
μ
1
⋅
w
i
,
1
+
.
.
.
+
μ
m
i
⋅
w
i
,
m
i
=
∑
i
=
1
n
λ
i
(
∑
j
=
1
m
i
μ
j
w
i
,
j
)
=
∑
i
=
1
n
∑
j
=
1
m
i
(
λ
i
μ
j
)
w
i
,
j
{\displaystyle {\begin{aligned}v&=\sum _{i=1}^{n}\lambda _{i}u_{i}\\[0.3em]&{\color {OliveGreen}\left\downarrow \ u_{i}=\mu _{1}\cdot w_{i,1}+...+\mu _{m_{i}}\cdot w_{i,m_{i}}\right.}\\[0.3em]&=\sum _{i=1}^{n}\lambda _{i}\left(\sum _{j=1}^{m_{i}}\mu _{j}w_{i,j}\right)\\[0.3em]&=\sum _{i=1}^{n}\sum _{j=1}^{m_{i}}(\lambda _{i}\mu _{j})w_{i,j}\end{aligned}}}
For all
1
≤
i
≤
n
{\displaystyle 1\leq i\leq n}
, the sum
∑
j
=
1
m
i
λ
i
μ
j
{\displaystyle \sum _{j=1}^{m_{i}}\lambda _{i}\mu _{j}}
is an element of the field
K
{\displaystyle K}
. So we obtain
v
∈
span
(
M
)
{\displaystyle v\in \operatorname {span} (M)}
, which was to be shown.
Proof (Adding elements of the span doesn't change the span)
We will establish the two implications
⟹
{\displaystyle \implies }
and
⟸
{\displaystyle \Longleftarrow }
:
Proof step:
N
⊆
span
(
M
)
⟹
span
(
M
)
=
span
(
M
∪
N
)
{\displaystyle N\subseteq \operatorname {span} (M)\implies \operatorname {span} (M)=\operatorname {span} (M\cup N)}
The statement
span
(
M
)
⊆
span
(
M
∪
N
)
{\displaystyle \operatorname {span} (M)\subseteq \operatorname {span} (M\cup N)}
does always hold, since
M
⊆
M
∪
N
{\displaystyle M\subseteq M\cup N}
. So all that remains is to show that
span
(
M
∪
N
)
⊆
span
(
M
)
{\displaystyle \operatorname {span} (M\cup N)\subseteq \operatorname {span} (M)}
holds. In order to do this, we consider an element
u
∈
span
(
M
∪
N
)
{\displaystyle u\in \operatorname {span} (M\cup N)}
. We can write it as
u
=
∑
i
=
0
n
λ
i
v
i
+
∑
i
=
0
m
μ
i
w
i
,
{\displaystyle u=\sum _{i=0}^{n}\lambda _{i}v_{i}+\sum _{i=0}^{m}\mu _{i}w_{i},}
with
v
1
,
.
.
.
,
v
n
∈
M
{\displaystyle v_{1},...,v_{n}\in M}
,
w
1
,
.
.
.
,
w
m
∈
N
{\displaystyle w_{1},...,w_{m}\in N}
,
λ
1
,
.
.
.
,
λ
n
∈
K
{\displaystyle \lambda _{1},...,\lambda _{n}\in K}
and
μ
1
,
.
.
.
,
μ
m
∈
K
{\displaystyle \mu _{1},...,\mu _{m}\in K}
. Since
N
⊆
span
(
M
)
{\displaystyle N\subseteq \operatorname {span} (M)}
, one can write
w
i
{\displaystyle w_{i}}
for all
1
≤
i
≤
m
{\displaystyle 1\leq i\leq m}
as a linear combination of elements from
M
{\displaystyle M}
:
w
i
=
ρ
1
⋅
v
^
1
+
.
.
.
+
ρ
m
i
⋅
v
^
m
i
{\displaystyle w_{i}=\rho _{1}\cdot {\hat {v}}_{1}+...+\rho _{m_{i}}\cdot {\hat {v}}_{m_{i}}}
where
ρ
1
,
.
.
.
,
ρ
m
i
∈
K
{\displaystyle \rho _{1},...,\rho _{m_{i}}\in K}
and
v
^
1
,
.
.
.
,
v
^
m
i
∈
M
{\displaystyle {\hat {v}}_{1},...,{\hat {v}}_{m_{i}}\in M}
. Now, we plug this expression for
w
i
{\displaystyle w_{i}}
into the formula above:
u
=
∑
i
=
0
n
λ
i
v
i
+
∑
i
=
0
m
μ
i
(
∑
j
=
1
m
i
ρ
j
v
^
j
)
=
∑
i
=
0
n
λ
i
v
i
+
∑
i
=
1
m
∑
j
=
1
m
i
(
μ
i
ρ
j
)
v
^
j
{\displaystyle {\begin{aligned}u&=\sum _{i=0}^{n}\lambda _{i}v_{i}+\sum _{i=0}^{m}\mu _{i}\left(\sum _{j=1}^{m_{i}}\rho _{j}{\hat {v}}_{j}\right)\\[0.3em]&=\sum _{i=0}^{n}\lambda _{i}v_{i}+\sum _{i=1}^{m}\sum _{j=1}^{m_{i}}(\mu _{i}\rho _{j}){\hat {v}}_{j}\end{aligned}}}
We have thus represented
u
{\displaystyle u}
as a linear combination of vectors from
M
{\displaystyle M}
and hence
span
(
M
)
=
span
(
M
∪
N
)
{\displaystyle \operatorname {span} (M)=\operatorname {span} (M\cup N)}
.
Proof step:
N
⊆
span
(
M
)
⟸
span
(
M
)
=
span
(
M
∪
N
)
{\displaystyle N\subseteq \operatorname {span} (M)\Longleftarrow \operatorname {span} (M)=\operatorname {span} (M\cup N)}
We show this statement using a proof by contradiction. We assume that there is some
w
∈
N
{\displaystyle w\in N}
but
w
∉
span
(
M
)
{\displaystyle w\notin \operatorname {span} (M)}
. We now define an element
u
:=
∑
i
=
0
n
λ
i
v
i
+
w
{\displaystyle u:=\sum _{i=0}^{n}\lambda _{i}v_{i}+w}
, with
v
1
,
.
.
.
,
v
n
∈
M
{\displaystyle v_{1},...,v_{n}\in M}
and
λ
1
,
.
.
.
,
λ
n
∈
K
{\displaystyle \lambda _{1},...,\lambda _{n}\in K}
.
Now
u
{\displaystyle u}
is a linear combination of vectors from
M
∪
N
{\displaystyle M\cup N}
. Thus
u
∈
span
(
M
∪
N
)
{\displaystyle u\in \operatorname {span} (M\cup N)}
, since
w
∈
N
{\displaystyle w\in N}
. However, we also have
u
∉
span
(
M
)
{\displaystyle u\notin \operatorname {span} (M)}
, since
w
∉
span
(
M
)
{\displaystyle w\notin \operatorname {span} (M)}
. But this contradicts the assumption
span
(
M
)
=
span
(
M
∪
N
)
{\displaystyle \operatorname {span} (M)=\operatorname {span} (M\cup N)}
.
Hence, our assumption is false and
N
⊆
span
(
M
)
{\displaystyle N\subseteq \operatorname {span} (M)}
must hold.
After we have learned some properties of the span, we will show in this section how we can check whether a vector of
V
{\displaystyle V}
lies within the span of
M
⊆
V
{\displaystyle M\subseteq V}
or not. We will see that in order to answer this question, we have to solve a linear system of equations.
Example (Plane and line through the origin)
Let's start with a simple example from the
R
2
{\displaystyle \mathbb {R} ^{2}}
. We consider the line through the origin
span
(
M
)
{\displaystyle \operatorname {span} (M)}
with the one-element subset
M
=
{
(
4
,
3
)
T
}
{\displaystyle M=\{(4,3)^{T}\}}
of the plane
R
2
{\displaystyle \mathbb {R} ^{2}}
. The question now is whether the vector
(
12
,
9
)
T
{\displaystyle (12,9)^{T}}
lies in the span of
M
{\displaystyle M}
. One can immediately see that
(
12
9
)
=
3
⋅
(
4
3
)
{\displaystyle {\begin{pmatrix}12\\9\end{pmatrix}}=3\cdot {\begin{pmatrix}4\\3\end{pmatrix}}}
holds. In other words
(
12
9
)
∈
span
(
M
)
{\displaystyle {\begin{pmatrix}12\\9\end{pmatrix}}\in \operatorname {span} (M)}
Mathematically, we have to solve a system of equations. In our simple example, the exercise is to find a
λ
∈
K
{\displaystyle \lambda \in K}
such that
(
12
9
)
=
λ
⋅
(
4
3
)
{\displaystyle {\begin{pmatrix}12\\9\end{pmatrix}}=\lambda \cdot {\begin{pmatrix}4\\3\end{pmatrix}}}
From this equation, we obtain the linear system of equations
12
=
λ
⋅
4
9
=
λ
⋅
3
{\displaystyle {\begin{aligned}12&=\lambda \cdot 4\\9&=\lambda \cdot 3\end{aligned}}}
with the obvious solution
λ
=
3
{\displaystyle \lambda =3}
.
Example (Vectors from
R
4
{\displaystyle \mathbb {R} ^{4}}
)
We consider the subset
M
=
{
(
1
,
−
2
,
3
,
2
)
T
,
(
3
,
0
,
2
,
1
)
T
,
(
0
,
−
2
,
1
,
−
3
)
T
,
(
1
,
1
,
−
2
,
2
)
T
}
{\displaystyle M=\{(1,-2,3,2)^{T},(3,0,2,1)^{T},(0,-2,1,-3)^{T},(1,1,-2,2)^{T}\}}
of
R
4
{\displaystyle \mathbb {R} ^{4}}
and want to prove that the vector
(
2
,
−
9
,
2
,
−
3
)
T
∈
span
(
M
)
{\displaystyle (2,-9,2,-3)^{T}\in \operatorname {span} (M)}
. For this we have to show that there are coefficients
λ
1
,
λ
2
,
λ
3
,
λ
4
∈
R
{\displaystyle \lambda _{1},\lambda _{2},\lambda _{3},\lambda _{4}\in \mathbb {R} }
such that
(
2
−
9
2
−
3
)
=
λ
1
⋅
(
1
−
2
3
2
)
+
λ
2
⋅
(
3
0
2
1
)
+
λ
3
⋅
(
0
−
2
1
−
3
)
+
λ
4
⋅
(
1
1
−
2
2
)
{\displaystyle {\begin{pmatrix}2\\-9\\2\\-3\end{pmatrix}}=\lambda _{1}\cdot {\begin{pmatrix}1\\-2\\3\\2\end{pmatrix}}+\lambda _{2}\cdot {\begin{pmatrix}3\\0\\2\\1\end{pmatrix}}+\lambda _{3}\cdot {\begin{pmatrix}0\\-2\\1\\-3\end{pmatrix}}+\lambda _{4}\cdot {\begin{pmatrix}1\\1\\-2\\2\end{pmatrix}}}
From this representation we get the linear system of equations
I
:
2
=
1
⋅
λ
1
+
3
⋅
λ
2
+
0
⋅
λ
3
+
1
⋅
λ
4
I
I
:
−
9
=
−
2
⋅
λ
1
+
0
⋅
λ
2
−
2
⋅
λ
3
+
1
⋅
λ
4
I
I
I
:
2
=
3
⋅
λ
1
+
2
⋅
λ
2
+
1
⋅
λ
3
−
2
⋅
λ
4
I
V
:
−
3
=
2
⋅
λ
1
+
1
⋅
λ
2
−
3
⋅
λ
3
+
2
⋅
λ
4
{\displaystyle {\begin{aligned}I:&&2&=&1\cdot \lambda _{1}+3\cdot \lambda _{2}+0\cdot \lambda _{3}+1\cdot \lambda _{4}\\[0.3em]II:&&-9&=&-2\cdot \lambda _{1}+0\cdot \lambda _{2}-2\cdot \lambda _{3}+1\cdot \lambda _{4}\\[0.3em]III:&&2&=&3\cdot \lambda _{1}+2\cdot \lambda _{2}+1\cdot \lambda _{3}-2\cdot \lambda _{4}\\[0.3em]IV:&&-3&=&2\cdot \lambda _{1}+1\cdot \lambda _{2}-3\cdot \lambda _{3}+2\cdot \lambda _{4}\end{aligned}}}
with solution
λ
1
=
2
{\displaystyle \lambda _{1}=2}
,
λ
2
=
−
1
{\displaystyle \lambda _{2}=-1}
,
λ
3
=
4
{\displaystyle \lambda _{3}=4}
,
λ
4
=
3
{\displaystyle \lambda _{4}=3}
. Hence, we have that
(
2
−
9
2
−
3
)
=
2
⋅
(
1
−
2
3
2
)
−
1
⋅
(
3
0
2
1
)
+
4
⋅
(
0
−
2
1
−
3
)
+
3
⋅
(
1
1
−
2
2
)
{\displaystyle {\begin{pmatrix}2\\-9\\2\\-3\end{pmatrix}}=2\cdot {\begin{pmatrix}1\\-2\\3\\2\end{pmatrix}}-1\cdot {\begin{pmatrix}3\\0\\2\\1\end{pmatrix}}+4\cdot {\begin{pmatrix}0\\-2\\1\\-3\end{pmatrix}}+3\cdot {\begin{pmatrix}1\\1\\-2\\2\end{pmatrix}}}
and therefore
(
2
,
−
9
,
2
,
−
3
)
T
∈
span
(
M
)
{\displaystyle (2,-9,2,-3)^{T}\in \operatorname {span} (M)}
.