3

The question is: The set B = {${1+t^2, t+t^2, 1+2t+t^2}$} is a basis for P2. Find the coordinate vector of $p(t)=1+4t+7t^2$ relatvive to B.

I made a matrix: \begin{bmatrix} 1 & 0 & 1 & 1\\ 0 & 1 & 2 & 4\\ 0 & 1 & 0 & 6 \end{bmatrix} When I row reduce it I get: \begin{bmatrix} 1 & 0 & 0 & -1\\ 0 & 1 & 0 & 6\\ 0 & 0 & 1 & 2 \end{bmatrix} But the solutions (and MATLAB) say it's: \begin{bmatrix} 1 & 0 & 0 & 2\\ 0 & 1 & 0 & 6\\ 0 & 0 & 1 & -1 \end{bmatrix} I've tried it many times and I still end up with the same matrix. Does anyone know what I've done wrong? Thanks

  • 1
    How did you arrive at the first matrix you made? – Arthur Mar 04 '17 at 14:49
  • I made an array called C that has c_1, c_2, and c_3 and make each one a coefficient of each of the parts of the set (so c_1(1+t^2), c_2(t+t^2), c_3(1+2t+t^2)). The first column is c_1, the second is c_2, and the third is c_3. The first row is all the numerical terms, the second is all the t terms and the third is all the t^2 terms. The final column is p(t). – Rory McEwan Mar 04 '17 at 14:52
  • 2
    Then shouldn't the bottom row be $[1, 1, 1, 7]$? – Arthur Mar 04 '17 at 14:53
  • O yes sorry. I'd copied r3-r1. Thanks – Rory McEwan Mar 04 '17 at 14:58
  • @calcstudent Without seeing the steps you made towards the row echelon form, it's impossible to tell where you got wrong. – egreg Mar 04 '17 at 15:24

2 Answers2

1

Here is one sequence of steps to row reduce the matrix.

\begin{bmatrix} 1 & 0 & 1 & 1\\ 0 & 1 & 2 & 4\\ 0 & 1 & 0 & 6 \end{bmatrix}

Subtract the second row from the third:

\begin{bmatrix} 1 & 0 & 1 & 1\\ 0 & 1 & 2 & 4\\ 0 & 0 & -2 & 2 \end{bmatrix}

Add the third to the second:

\begin{bmatrix} 1 & 0 & 1 & 1\\ 0 & 1 & 0 & 6\\ 0 & 0 & -2 & 2 \end{bmatrix}

Divide the third by $2$:

\begin{bmatrix} 1 & 0 & 1 & 1\\ 0 & 1 & 0 & 6\\ 0 & 0 & -1 & 1 \end{bmatrix}

Add the third to the first:

\begin{bmatrix} 1 & 0 & 0 & 2 \\ 0 & 1 & 0 & 6\\ 0 & 0 & -1 & 1 \end{bmatrix}

Multiply the third by $-1$:

\begin{bmatrix} 1 & 0 & 0 & 2 \\ 0 & 1 & 0 & 6\\ 0 & 0 & 1 & -1 \end{bmatrix}

0

Note that your matrix is not correct: you want to solve $$\lambda_1(1 + t^2) + \lambda_2(t+t^2) + \lambda_3(1 + 2t + t^2) = 1 + 4t + 7t^2.$$ Hence if we compare the coefficients of the left hand side and the right hand side, we find that we want to solve the following system for $\lambda_1, \lambda_2, \lambda_3$: \begin{equation} \begin{cases} \lambda_1 + \lambda_3 = 1\\ \lambda_2 + 2\lambda_3 = 4\\ \lambda_1 + \lambda_2 + \lambda_3 = 7 \end{cases}. \end{equation} This results in the following (augmented) matrix: \begin{equation} \begin{pmatrix} 1 & 0 & 1 & 1\\ 0 & 1 & 2 & 4\\ 1 & 1 & 1 & 7 \end{pmatrix}. \end{equation}

Forming this matrix into echelonform gives $$\begin{pmatrix} 1 & 0 & 1 & 1\\ 0 & 1 & 2 & 4\\ 0 & 0 & 1 & -1 \end{pmatrix}$$ and using back substitution, we find the solution $(\lambda_1, \lambda_2, \lambda_3) = ( 2, 6, -1)$.

$\textbf{EDIT:}$ In order to find the Echelon form, I first replaced row 3 by (row 3 - row 1) to introduce a zero in the first column, third row. Then I replaced row 3 by (row 3 - row 2) to get the zero in the second column, third row. Back substitution is just filling in the values and working from the bottom up.

So you have probably made a computational error in your row reduction.

Student
  • 4,438