Characterization of affine mappings

Affine maps are exactly those that preserve two-point convex combinations
Characterization of affine mappings

Proposition. A map B:XYB:X\to Y between real vector spaces is if and only if for all x1,x2Xx_1,x_2\in X and all λR\lambda\in\mathbb{R},

B(λx1+(1λ)x2)=λB(x1)+(1λ)B(x2). B\big(\lambda x_1+(1-\lambda)x_2\big)=\lambda B(x_1)+(1-\lambda)B(x_2).

Context. This shows that “affine” is exactly the property of preserving barycentric combinations of two points (for all real weights).

Proof sketch. If B(x)=A(x)+bB(x)=A(x)+b with AA linear, expand both sides and use linearity of AA. Conversely, define b:=B(0)b:=B(0) and A(x):=B(x)bA(x):=B(x)-b. The identity implies A(λx)=λA(x)A(\lambda x)=\lambda A(x) and A(x+y)=A(x)+A(y)A(x+y)=A(x)+A(y), so AA is linear and B(x)=A(x)+bB(x)=A(x)+b.