Canonical: https://knowlpedia.com/convex-analysis/affine-set/

# Affine set

A set containing the entire line through any two of its points.

Let \(X\) be a [vector space](https://knowlpedia.com/linear-algebra/vector-space/). A subset \(\Omega\subseteq X\) is **affine** if for all \(a,b\in\Omega\),
\[
L[a,b]\subseteq \Omega,
\]

where \(L[a,b]\) is the [line connecting \(a\) and \(b\)](https://knowlpedia.com/convex-analysis/line-connecting-two-points/).

## Examples

- Any linear subspace is affine.
- In \(\mathbb{R}^n\), a set of the form \(x_0+L\) with \(L\) a subspace is affine.
- A [convex set](https://knowlpedia.com/convex-analysis/convex-set/) need not be affine; affine sets are "flat," while convex sets may be curved.

## Equivalent characterizations

A nonempty subset \(\Omega\) is affine if and only if it is a translate of a [linear subspace](https://knowlpedia.com/convex-analysis/linear-subspace/) (see [the translate characterization](https://knowlpedia.com/convex-analysis/affine-sets-are-translates-of-subspaces/)). Under the line-based definition above, the empty set is also affine.
