As almost everyone reading this probably knows, a function $T$ from one real vector space to another is defined to be a linear transformation if for all vectors $\mathbf{u}, \mathbf{v}$ in the domain and all real $a$, (i) $T(\mathbf{u} + \mathbf{v}) = T(\mathbf{u}) + T(\mathbf{v})$, and (ii) $T(a\mathbf{u}) = aT(\mathbf{u})$. Does anyone know of an example of two real vector spaces and a function $T$ from one to the other that satisfies one of the requirements but not both? I'm assuming there is one, or else it wouldn't be defined that way.
I can show that if $T$ satisfies (i), then (ii) holds for all rational $a$.
Is there such an example where the vector spaces are both finite-dimensional?
I am not interested in complex vector spaces or additional requirements such as norms.
I browsed the Similar Questions and couldn't find an answer. I apologize if this is a duplicate question.
Stefan (STack Exchange FAN)