A linear transformation is a vector function that has the following two properties:
Transforming a scaled vector is the same as scaling the transformed vector: $$L(\alpha x) = \alpha L(x)$$
Transforming the sum of two vectors is the same as summing the two transformed vectors: $$L(x + y) = L(x) + L(y)$$
Lemma: $L: \mathbb{R}^n \to \mathbb{R}^m$ is a linear transformation if and only if(iff) for all $u,v \in \mathbb{R}^n$ and $\alpha, \beta \in \mathbb{R}^n$ $$L(\alpha u + \beta v) = \alpha L(u) + \beta L(v)$$
Lemma: Let $v_0, v_1, \ldots, v_{k-1} \in \mathbb{R}^n$ and let $L: \mathbb{R}^n \to \mathbb{R}^m$ be a linear transformation. Then
Let $L: \mathbb{R}^n \to \mathbb{R}^m$ be defined by $L(x) = Ax$ where $A \in \mathbb{R}^{m \times n}$. Then L is a linear transformation.
Alternatively, A vector function $f: \mathbb{R}^n \to \mathbb{R}^m$ is a linear transformation if and only if it can be represented by an $m \times n$ matrix, which is a very special two dimensional array of numbers (elements).
The set of all real valued $m \times n$ matrices is denoted by $\mathbb{R}^{m \times n}$
How to check if a vector function is a linear transformation
#
Check if $f(0)=0$. If it isn’t, it is not a linear transformation.
If $f(0)=0$ then either:
Prove it is or isn’t a linear transformation from the definition:
Find an example where $f(\alpha x) \ne \alpha f(x)$ or $f(x + y) \ne f(x) + f(y)$. In this case the function is not a linear transformation; or
prove that $f(\alpha x) = \alpha f(x)$ or $f(x + y) = f(x) + f(y)$ for all $\alpha, x, y$.
or
Compute the possible matrix A that represents it and see if $f(x)=Ax$. If it is equal, it is a linear transformation. If it is not, it is not a linear transformation.