4. \(T: P_2(R) \to P_2(R)\) is a linear transformation defined by

$$T(f(x)) = f(0) + f(1)(x + x^2).$$

Let $\beta = \{1, x, x^2\}$ be an ordered basis for $P_2(R)$ and let $A = [T]_\beta^\beta$.

a. (7) Find bases for both \(N(T)\) and \(R(T)\).