**Hint**
The transformation $T$ is acting on the polynomial $p(x)$ to give the output as the derivative of $xp(x)$. For example, $T(x)=\frac{d}{dx}(x^2)=2x$ and so on.
To get the matrix you should determine the behavior of the transformation $T$ on a basis like $\\{1,x,x^2\\}$.