To find the matrix representing a given linear transformation, in a given ordered basis, apply the linear transformation to each basis vector in turn. Write the result as a linear combination of the basis vectors. The coefficients give the columns of the matrix.
For example, [itex]f(x^2)= (x^2)'= 2x= 2(1+ x)- 2(1)= -2(1)+ 2(1+ x)+ 0(x^2)[/itex]. Since the basis is [itex]\{1, 1+ x, x^2\}[/itex], in that order, the third column of the matrix would be
[tex]\begin{bmatrix}-2 \\ 2 \\ 0\end{bmatrix}[/tex] For 6(b) there are two different ways to do this. The most direct would be to use the matrix, as given, to determine [itex]T\left(\begin{array}{c} 1 \\ 5\end{array}\right)[/itex] and [itex]T\left(\begin{array}{c}1 \\ 6\end{array}\right)[/itex] and then write the results as linear combinations of those new basis vectors. Another would be to construct the "change of basis" matrix and multiply by that.