Proposition. A map B:X→YB:X\to Y between real vector spaces is if and only if for all x1,x2∈Xx_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).
Remarks

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.