Suppose T is a function from V to U. The graph of T is the subset of V×W defined by
graph of T={(v,Tv)∈V×W:v∈V}.
Prove that T is a linear map if and only if the graph of T is a subspace of V×W.
Suppose T is a linear map, then the graph of T is a subspace of V×W because (v1,Tv1)+(v2,Tv2)=(v1+v2,T(v1+v2)) is in the graph, likewise for scalar multiplication.
Now suppose the graph is a subspace of V×W, because the graph is closed under addition we have (for all v1,v2∈V)
(v1,Tv1)+(v2,Tv2)=(v1+v2,Tv1+Tv2)∈graph of T
Since the graph of T is defined as all pairs (v,Tv) we must have T(v1+v2)=Tv1+Tv2 for all v1,v2. Thus T is additive, a similar argument works for scalar multiplication. Thus T is a linear map