Linear Transformation and Change of Basis

linear function change of basis vector spaces

3 min

test

Linear transformations and change of basis are widely used in statistics, for this reason I briefly describe the definition of these concepts and how they are related.

Linear Transformation

Letting \(V\) and \(W\) be vector spaces, a function \(f: V \rightarrow W\) is a linear transformation if the additivity and scalar multiplication properties are hold for any two vectors \(\mathbf{u}, \mathbf{v} \in V\) and a constant \(c\): \[f(\mathbf{u}+\mathbf{v}) = f(\mathbf{u}) + f(\mathbf{v})\] \[f(c\mathbf{v}) = cf(\mathbf{v}).\]

This concept is more common to use when working with matrices. Considering the vector spaces \(V \in \mathbb{R}^n\) and \(W \in \mathbb{R}^m\), a matrix \(\mathbf{A}_{m \times n}\) and the vector \(\mathbf{x} \in V\); then the function \[f(\mathbf{x}) = \mathbf{A}\mathbf{x}\] is a linear transformation \(V \in \mathbb{R}^n\) to \(W \in \mathbb{R}^m\) because it holds the properties mentioned above. In this definition, although not mentioned, we are assuming that both \(V\) and \(W\) are defined using the standard basis for \(\mathbb{R}^n\) and \(\mathbb{R}^m\) respectively.

Change of Basis

Consider a vector \(\mathbf{u} \in \mathbb{R}^n\), it is implicitly defined using the standard basis \(\{\mathbf{e}_1,\dots,\mathbf{e}_n\}\) for \(\mathbb{R}^n\), such as \(\mathbf{u}=\sum_{i=1}^n u_i \mathbf{e}_i\). In a similar manner, this vector \(\mathbf{u}\) can also be represented in vector spaces with different basis, this is called change of basis. For example, consider the vector space \(V \in \mathbb{R}^n\) with basis \(\{\mathbf{v}_1,\dots,\mathbf{v}_n\}\). Then, in order to make the change of basis, it is required to find \(\mathbf{u}_v=(u_{v_1},\dots,u_{v_n})^\intercal\) such as \[\mathbf{u} = \sum_{i=1}^n u_{v_i} \mathbf{v}_i = \mathbf{V}\mathbf{u}_v,\] where the \(n\times n\) matrix \(\mathbf{V}=(\mathbf{v}_1,\dots,\mathbf{v}_n)\), hence the change from the standard basis to the vector space \(V\) is \[\mathbf{u}_v = \mathbf{V}^{-1}\mathbf{u},\] while the change from the vector space \(V\) to the standard basis is \[\mathbf{u} = \mathbf{V}\mathbf{u}_v.\]

Now, consider another vector space \(W \in \mathbb{R}^n\) with basis \(\{\mathbf{w}_1,\dots,\mathbf{w}_n\}\), the vector \(\mathbf{u}_v\) defined on the space \(V\) can also be defined on the space \(W\) as \[\mathbf{u}_w = \mathbf{W}^{-1}\mathbf{V}\mathbf{u}_v\] where the \(n\times n\) matrix \(\mathbf{W}=(\mathbf{w}_1,\dots,\mathbf{w}_n)\); similarly, the vector \(\mathbf{u}_w \in W\) can be defined on the space \(V\) as \[\mathbf{u}_v = \mathbf{V}^{-1}\mathbf{W}\mathbf{u}_w.\] It can be seen that in both cases, the original vector is first transformed to the space vector with standard basis (left-multiplying the basis matrix) and then transformed to the desired vector space (left-multiplying the basis matrix inverse ).

Change of Basis for Linear Transformations

Previously, we have presented a linear transformation \(f(\mathbf{x})=\mathbf{A}\mathbf{x}:\mathbb{R}^n\rightarrow\mathbb{R}^m\) using standard basis. This transformation can also be represented from a vector space \(V\) with basis \(\{\mathbf{v}_1,\dots,\mathbf{v}_n\}\) to a vector space \(W\) with basis \(\{\mathbf{w}_1,\dots,\mathbf{w}_n\}\), then \(f': V \rightarrow W\) is defined as \[f'(\mathbf{x}_v) = \mathbf{W}^{-1}\mathbf{A}\mathbf{V}\mathbf{x}_v,\] where the matrices \(\mathbf{W}\) and \(\mathbf{V}\) are the basis matrix of the vector spaces \(W\) and \(V\) respectively. The matrix multiplication \(\mathbf{W}^{-1}\mathbf{A}\mathbf{V}\) implies a change of basis from to standard basis, the linear transformation using the standard basis, and the change from the standard basis to the space \(W\). In cases that \(V=W\), then the linear transformation is defined as \[f'(\mathbf{x}_v) = \mathbf{V}^{-1}\mathbf{A}\mathbf{V}\mathbf{x}_v.\]