Canonical: https://knowlpedia.com/convex-analysis/line-connecting-two-points/

# Line Connecting Two Points

The affine line through a and b: {λa+(1−λ)b : λ∈R}.

Let \(X\) be a real [vector space](https://knowlpedia.com/linear-algebra/vector-space/) and let \(a,b\in X\). The **line connecting \(a\) and \(b\)** is
\[
L[a,b]:=\{\lambda a+(1-\lambda)b\mid \lambda\in\mathbb{R}\}.
\]

This is the smallest [affine set](https://knowlpedia.com/convex-analysis/affine-set/) containing \(\{a,b\}\) and is the affine analogue of the [line segment](https://knowlpedia.com/convex-analysis/line-segments-in-a-vector-space/) \([a,b]\), where \(\lambda\in[0,1]\).

## Examples

- In \(\mathbb{R}^2\), \(L[a,b]\) is the usual straight line through \(a\) and \(b\).
- If \(a=b\), then \(L[a,a]=\{a\}\).
