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

# Affine mapping

A map of the form x↦Ax+b, i.e., linear plus a translation

Let \(X,Y\) be real vector spaces. A mapping \(B:X\to Y\) is **affine** if there exist a [linear mapping](https://knowlpedia.com/convex-analysis/linear-operator-linear-transformation/) \(A:X\to Y\) and a vector \(b\in Y\) such that
\[
B(x)=A(x)+b\quad\text{for all }x\in X.
\]

## Examples

- Any translation \(B(x)=x+b\) is affine (take \(A=\mathrm{Id}\)).
- Any linear map is affine (take \(b=0\)).
- In \(\mathbb{R}^n\), \(B(x)=Mx+b\) with a fixed matrix \(M\) and vector \(b\) is affine.

## Remarks

**Context.** Affine maps preserve "straightness": they map [line segments](https://knowlpedia.com/convex-analysis/line-segments-in-a-vector-space/) to line segments, and therefore preserve convexity properties (see [affine images/preimages of convex sets](https://knowlpedia.com/convex-analysis/affine-images-and-preimages-of-convex-sets-are-convex/)).
