# subspace

*Entry of the [Dictionary of Applied Machine Learning](https://dictionaryofml.org) (course edition), by Alexander Jung, Aalto University. CC BY 4.0. Updated 2026-07-13. [HTML](https://dictionaryofml.org/terms/subspace.html) · [typeset PDF](https://dictionaryofml.org/terms/subspace.pdf) · [LaTeX](https://dictionaryofml.org/terms/subspace.tex) · [Python demo](https://dictionaryofml.org/terms/subspace.py) · [notebook](https://dictionaryofml.org/terms/subspace.ipynb)*

Math is LaTeX with the book's macros expanded, so no notation package is needed to read it.

## Definition

A subset of a vector space $\mathcal{V}$ is a subspace of $\mathcal{V}$ if it is also a vector space with respect to the same operations as $\mathcal{V}$. Fig. 1 illustrates this for the vector space $\mathbb{R}^2$ (over the field $\mathbb{R}$).

![Figure 1 of the entry subspace](https://dictionaryofml.org/terms/fig/subspace-fig1.svg)

*Figure 1: Any ${\mathbf x} \in \mathbb{R}^2$ defines a subspace of $\mathcal{U}_{\mathbf x} \subset \mathbb{R}^2$ by $\mathcal{U}_{\mathbf x} = \{ \lambda \cdot {\mathbf x} \; : \; \lambda \in \mathbb{R}\} \subset \mathbb{R}^2$. For ${\mathbf x} \neq \mathbf{0}$, this corresponds to straight lines through the origin (illustrated by $\mathcal{U}_1$ and $\mathcal{U}_2$). For the zero vector ${\mathbf x} =\mathbf{0}$, this leads to the trivial subspace $\{\mathbf{0}\}$ just containing the zero vector*

**See also:** vector space, dimension, basis.

## Cite this entry

```bibtex
@misc{dictml_subspace,
  author = {Jung, Alexander},
  editor = {Olioumtsevits, Konstantina and Schnoor, Ekkehard},
  title = {subspace},
  howpublished = {Dictionary of Applied Machine Learning (course edition)},
  year = {2026},
  doi = {10.5281/zenodo.21569296},
  note = {ISBN 978-952-64-3013-3, CC BY 4.0, retrieved 2026-11-26},
  url = {https://dictionaryofml.org/terms/subspace.html}
}
```
