Let $$T: P_2 \to P_2$$
Such that $$T(a_0 + a_1x + a_2x^2) = a_0 + a_1(x + 2) + a_2(x + 2)^2$$
Find the matrix $T$ relative to the standard basis $B$ for $P_2$: $$B = \{1, x, x^2\}$$
I understand the procedure for finding the matrix $T$, but how exactly do the vectors of $B$ plug into the equation? i.e $$T(1) = ?$$ $$T(x) = ?$$ $$T(x^2) = ?$$
Do we treat in the first example $a_0 = 1$ and in the second equation $a_1 = x$ and $a_3 = x^2$ in the last example?