Notice that the matrix product
That is, the matrix times that vector, with 1 in the first place and all others 0, is the first column of the matrix.
You should be able to see that the matrix times the vector, with one in thesecond place, is the second column of the matrix.
So apply the linear transformation to each vector of the first basis, in turn, writing the result in terms of the second basis. The coefficients will give each column, in turn, of the matrix.
For example, the first basis "vector" is p(t)= 1. The given linear transformation maps each polynomial into that same polynomial times t+ 3. In particular 1 is mapped into t+ 3. The second basis is . As a linear combination of those (in that order), . Therefore the first column in the matrix representation is .