Take $p,q$ two polynomials. Then $p+q$ is a polynomial defined as $(p+q)(x)=p(x)+q(x)$
$$ T(p+q)(x) = x^2(p+q)(x) = x^2 p(x) + x^2 q(x) = T(p)(x) + T(q)(x), $$
or,
$$ T(p+q) = T(p) + T(q). $$
In a similar fashion you have show the following; take $\alpha\in\mathbb{R}$:
$$ T(\alpha p)(x) = x^2\cdot (\alpha p)(x) = \alpha x^2 p(x) = \alpha T(p)(x), $$
or $T(\alpha p)=\alpha T(p)$. We conclude that $T$ is a linear operator.