[Math] How to write this $t^2$ as a linear combination of polynomials in the basis

linear algebramatrices

I have this homework problem that says "In $\mathbb P_2$ find the change of coordinates matrix from the basis $\mathcal B=\{1-3t^2, 2+t-5t^2,1+2t\}$ to the standard basis. Then write $t^2$ as a linear combination of the polynomials in $\mathcal B$."

I have found the change of coordinates matrix to be $$\mathcal P_{\mathcal C\leftarrow\mathcal B}=\left[\begin{matrix}1&2&1\\0&1&2\\-3&-5&0\end{matrix}\right]$$ But I'm stuck on how to write $t^2$ as a linear combination. Any pointers?

Best Answer

Let $P = \begin{bmatrix} 1 & 2 & 1 \\ 0 & 1 & 2 \\ -3 & -5 & 0\end{bmatrix}$.

The function $t \mapsto t^2$ is represented as $(0,0,1)^T$ in the standard basis, so to find the representation in the basis $\cal B$, compute $P^{-1} (0,0,1)^T$ (note that you do not need to compute the matrix inverse to do this).

Here is the solution:

$(3, -2, 1)^T$.

Here is another approach: Figure out constants $c_1,c_2,c_3$ such that $c_1(1-3t^2) + c_2 (2+t-5t^2) + c_3 (1+2t) = t^2$ for all $t$. Matching coefficients of $t^k$ gives three equations in three unknowns $c_1+ 2 c_2 + c_3 = 0$, $c_2+2 c_3 = 0$, and $-3 c_1-5 c_2 = 1$. Solving these gives the above solution.

Related Question