We need to write the input \(2+3x-4x^2\) in terms of the basis \(B\text{.}\) This amounts to solving the system of equations given by
\begin{equation*}
a(1+x)+b(2-x)+c(2x+x^2)=2+3x-4x^2\text{.}
\end{equation*}
Of course, we can easily set up and solve this system, but let’s try to be systematic, and obtain a more useful result for future problems. Since we can easily determine how to write any polynomial in terms of the standard basis \(\{1,x,x^2\}\text{,}\) it suffices to know how to write these three polynomials in terms of our basis.
At first, this seems like more work. After all, we now have three systems to solve:
\begin{align*}
a_1(x+1)+b_1(2-x)+c_1(2x+x^2) \amp =1\\
a_2(x+1)+b_2(2-x)+c_2(2x+x^2) \amp =x\\
a_3(x+1)+b_3(2-x)+c_3(2x+x^2) \amp =x^2\text{.}
\end{align*}
However, all three systems have the same coefficient matrix, so we can solve them simultaneously, by adding three “constants” columns to our augmented matrix.
We get the matrix
\begin{equation*}
\left[\begin{matrix}1\amp 2\amp 0\\1\amp -1\amp 2\\0\amp 0\amp 1\end{matrix}
\right\rvert\left.\begin{matrix}1\amp 0\amp 0\\0\amp 1\amp 0\\0\amp 0\amp 1\end{matrix}\right]\text{.}
\end{equation*}
But this is exactly the augmented matrix we’d right down if we were trying to find the inverse of the matrix
\begin{equation*}
P=\bbm 1\amp 2\amp 0\\1\amp -1\amp 2\\0\amp 0\amp 1\ebm
\end{equation*}
whose columns are the coefficient representations of our given basis vectors in terms of the standard basis.
To compute \(P^{-1}\text{,}\) we use the computer:
Next, we find \(M(T)P^{-1}\text{:}\)
This matrix first converts the coefficient vector for a polynomial \(p(x)\) with respect to the standard basis into the coefficient vector for our given basis \(B\text{,}\) and then multiplies by the matrix representing our transformation. The result will be the coefficient vector for \(T(p(x))\) with respect to the basis \(D\text{.}\)
The polynomial \(p(x) = 2+3x-4x^2\) has coefficient vector \(\bbm 2\\3\\-4\ebm\) with respect to the standard basis. We find that \(M(T)P^{-1}\bbm 2\\3\\-4\ebm = \bbm 12\\-10\ebm\text{:}\)
The coefficients \(12\) and \(-10\) are the coefficients of \(T(p(x))\) with repsect to the basis \(D\text{.}\) Thus,
\begin{equation*}
T(2+3x-4x^2) = 12(0,1)-10(-1,1) = (10,2)\text{.}
\end{equation*}
Note that in the last step we gave the “simplified” answer \((10,2)\text{,}\) which is simplified primarily in that it is expressed with respect to the standard basis.
Note that we can also introduce the matrix \(Q = \bbm 0\amp -1\\1\amp 1\ebm\) whose columns are the coefficient vectors of the vectors in the basis \(D\) with respect to the standard basis. The effect of multiplying by \(Q\) is to convert from coefficients with respect to \(D\) into a coefficient vector with respect to the standard basis. We can then write a new matrix \(\hat{M}(T) = QM(T)P^{-1}\text{;}\) this new matrix is now the matrix representation of \(T\) with respect to the standard bases of \(P_2(\R)\) and \(\R^2\text{.}\)
We check that
\begin{equation*}
\hat{M}(T)\bbm 2\\3\\-4\ebm = \bbm 10\\2\ebm\text{,}
\end{equation*}
as before.
We find that \(\tilde{M}(T) = \bbm 1\amp 0\amp -2\\0\amp 2\amp 1\ebm\text{.}\) This lets us determine that for a general polynomial \(p(x) = a+bx+cx^2\text{,}\)
\begin{equation*}
\hat{M}(T)\bbm a\\b\\c\ebm = \bbm a-2c\\2b+c\ebm\text{,}
\end{equation*}
and therefore, our original transformation must have been
\begin{equation*}
T(a+bx+cx^2)=(a-2c,2b+c)\text{.}
\end{equation*}