First, a linear transformation on a vector space can be written as a matrix
in a given basis. What is the "given basis" for this problem? The "standard basis" for the vector space of polynomials of degree less than or equal to 5 is {1, x, x^2, x^3, x^4, x^5}. Is that what is intended?
Second, to get that matrix representation, you apply the linear transformation to each basis vector, in turn, and write the result as a linear combination of the basis vectors. That gives each column of the matrix. For example the second derivative of both 1 and x is 0 which is just 0 times each basis vector. The first two columns of the matrix are all 0s. The second derivative of x^2 is 2= 2(1)+ 0(x)+ 0(x^2)+ 0(x^3)+ 0(x^4)+ 0(x^5) so the third column is
⎣⎢⎢⎢⎢⎢⎢⎢⎡200000⎦⎥⎥⎥⎥⎥⎥⎥⎤. The second derivative of x^3 is 6x so the fourth column is
⎣⎢⎢⎢⎢⎢⎢⎢⎡060000⎦⎥⎥⎥⎥⎥⎥⎥⎤. The second derivative of x^4 is 12x^2 so the fifth column is
⎣⎢⎢⎢⎢⎢⎢⎢⎡0012000⎦⎥⎥⎥⎥⎥⎥⎥⎤. The second derivative of x^5 is 20x^3 so the sixth column is
⎣⎢⎢⎢⎢⎢⎢⎢⎡0002000⎦⎥⎥⎥⎥⎥⎥⎥⎤.
The matrix representation of this linear transformation,
in the standard basis is
⎣⎢⎢⎢⎢⎢⎢⎢⎡00000000000020000006000000120000002000⎦⎥⎥⎥⎥⎥⎥⎥⎤.