Linearity (source code)

= Linearity

= Linear
{synonym}

A map $T:V\to W$ between <vector spaces> over the same <field> $F$ has <linearity> when
$$
T(ax+by)=aT(x)+bT(y)
$$
for all $x,y\in V$ and all <scalars> $a,b\in F$. Equivalently, a <linear map> preserves <vector addition> and <scalar multiplication> separately.

Taking $a=b=0$ gives $T(0)=0$. Repeated application also gives $T(\sum_i a_iv_i)=\sum_i a_iT(v_i)$ for every finite <linear combination>. This is why a <linear map> is determined by its values on a <basis>.

The map $x\mapsto3x$ on the <real numbers> is <linear>. The map $x\mapsto x+1$ fails the zero condition and is instead an <affine map>.