Canonical: https://knowlpedia.com/convex-analysis/sum-of-subspaces-equals-span-of-the-union/

# Sum of subspaces and span of the union

The sum of two subspaces is a subspace and equals the span of their union

**Proposition.**
Let \(M\) and \(N\) be [linear subspaces](https://knowlpedia.com/convex-analysis/linear-subspace/) of a vector space \(X\). Define their sum using set addition:
\[
M+N:=\{m+n\mid m\in M,\ n\in N\}.
\]
Then:

1. \(M+N\) is a linear subspace of \(X\).
2. \(M+N=\operatorname{span}(M\cup N)\).

**Proof sketch.** Closure of \(M+N\) under addition and scalar multiplication follows from closure of \(M\) and \(N\) and the definitions of [set sum and scalar multiples](https://knowlpedia.com/convex-analysis/set-operations-sum-scalar-multiple-difference/). For (2), note that \(M\cup N\subset M+N\) (since \(0\in M\) and \(0\in N\)), so the span of \(M\cup N\) is contained in \(M+N\). Conversely, any subspace containing \(M\cup N\) contains \(M+N\), hence \(M+N\) is contained in the span.
