# Finding the Matrix of a Linear Transformation

The transformation matrix for polynomial differentiation.

February 3, 2023

Here I’ll show how to find the matrix of a linear transformation by doing so for the transformation corresponding to the differentiation of a second-degree polynomial. This transformation takes the coefficients of the polynomial to be differentiated and returns the coefficients of the derivative, which is a first-degree polynomial. We know that

$\frac{\textrm{d}}{\textrm{d} x} (a x^2 + b x + c) = 2 a x + b$,

and so we have

$T \begin{pmatrix} a \\ b \\ c \end{pmatrix} = \begin{pmatrix} 2a \\ b \end{pmatrix}$.

Because

$T : \mathbb{R}^3 \rightarrow \mathbb{R}^2$,

the matrix of $T$ is 2-by-3. (The product of two matrices has as many rows as the first matrix, and as many columns as the second matrix. Also, two matrices can be multiplied only if the first matrix has as many columns as the second one has rows.) Thus,

$T \begin{pmatrix} a \\ b \\ c \end{pmatrix} = \begin{pmatrix} t_1 & t_2 & t_3 \\ t_4 & t_5 & t_6 \end{pmatrix} \begin{pmatrix} a \\ b \\ c \end{pmatrix} = \begin{pmatrix} 2 a \\ b \end{pmatrix}$

for some $t_1$ through $t_6$. We can see that

\begin{aligned} t_1 a + t_2 b + t_3 c &= 2 a \\ t_4 a + t_5 b + t_6 c &= b, \end{aligned}

or

\begin{aligned} t_1 a + t_2 b + t_3 c &= 2 a + 0 b + 0 c \\ t_4 a + t_5 b + t_6 c &= 0 a + 1 b + 0 c. \end{aligned}

It is clear that $t_1 = 2$, $t_5 = 1$, and the remaining $t$’s are 0. This gives us

$T \begin{pmatrix} a \\ b \\ c \end{pmatrix} = \begin{pmatrix} 2 & 0 & 0 \\ 0 & 1 & 0 \end{pmatrix} \begin{pmatrix} a \\ b \\ c \end{pmatrix}$,

with the transformation matrix being

$\begin{pmatrix} 2 & 0 & 0 \\ 0 & 1 & 0 \end{pmatrix}$.

As a closing note, we could just as well have $T$ be a mapping from $\mathbb{R}^3$ to $\mathbb{R}^3$, in which case the transformation matrix would be 3-by-3, and one of its rows would contain only zeros.