Let $T : \Bbb R^2 \to \Bbb R^3$ given by $$T((x_1, x_2)^T) = (x + 2y, 2x - 5y , 7y )^T$$.
We have $T((0, 1)^T) = (2, -5, 7)^T$ and $T((1, 0)^T) = (1, 2, 0)^T$
So the martix form of this linear transformation should be $$T (\mathbf x) = \begin{bmatrix} 1 & 2 \\ 2 & -5 \\ 0 & 7\end{bmatrix}\mathbf x$$,
where $\mathbf x \in \Bbb R^2$.
This was easy.
I understand this type of examples where the basis vectors are vectors in traditional sense.
Now consider $T : \Bbb P_n \to \Bbb P_n$ given by $T(f(t)) = \dfrac{df(t)}{dt}$, where $\Bbb P_n$ is space of polynomials with degree $n$.
The basis of this space is $B = \{1, t, t^2 , ... , t^n \}$
We have $T(t^k) = kt^{k - 1}$ for all $ t^k \in B - \{1\}$ and $T(1) = 0$.
In the first example we had transformed bases $\mathbf a_2 = (2, -5, 7)^T$ and $\mathbf a_1 = (1, 2, 0)^T$ and we made matrix by just arranging those bases in a matrix like $[\mathbf a_1 \ \ \mathbf a_2]$.
In the polynomial example what should I do ? $\begin{bmatrix} 0 & 1 & 2t & ... & nt^{n-1} \end{bmatrix}$, huh ?