Differential Equations and Linear Algebra (4th Edition)

Published by Pearson
ISBN 10: 0-32196-467-5
ISBN 13: 978-0-32196-467-0

Chapter 5 - Inner Product Spaces - 5.4 Least Squares Approximation - Problems - Page 375: 8

Answer

$y=-10x^2+40x-20$

Work Step by Step

The matrices can be formed as: $A=\begin{bmatrix} 1& 1 & 1 \\ 2^2 & 2& 1 \\ 3^2 & 3 & 1\\ \end{bmatrix}=\begin{bmatrix} 1& 1 &1 \\ 4 & 2&1 \\ 9 & 3 & 1\end{bmatrix}$ $x=\begin{bmatrix} a \\ b \\ c \end{bmatrix}$ $b=\begin{bmatrix} 10\\ 20\\ 10 \\ \end{bmatrix}$ Apply matrices to the least square solution: $x_0=(A^TA)^{-1}A^Tb$ $=(\begin{bmatrix} 1& 4& 9\\ 1 & 2&3 \\ 1 & 1 & 1\end{bmatrix}\begin{bmatrix} 1& 1 & 1\\ 4& 2& 1 \\ 9 & 3 & 1\\ \end{bmatrix} )^{-1}\begin{bmatrix} 1& 4&9 \\ 1 & 2&3\\ 1 & 1 & 1\end{bmatrix} \begin{bmatrix} 10\\ 20\\ 10 \\ \end{bmatrix}$ $=\begin{bmatrix} 98 & 36 & 14\\ 36& 14 & 6 \\ 14 & 6 & 3 \end{bmatrix}^{-1}\begin{bmatrix} 1 & 4 & 9\\ 1& 2&3 \\ 1 & 1&1 \\\end{bmatrix}\begin{bmatrix} 10\\ 20\\ 10 \\ \end{bmatrix}$ $=\frac{1}{2}\begin{bmatrix} 3 & -12 & 10\\ -12 & 49 & -42 \\ 10 & -42 & 38 \end{bmatrix}\begin{bmatrix} 1 & 4 & 9\\ 1& 2&3 \\ 1 & 1&1 \\\end{bmatrix}\begin{bmatrix} 10\\ 20\\ 10 \\ \end{bmatrix}$ $=\frac{1}{2}\begin{bmatrix} 1 & -2 &1 \\ -5 & 8 & -3 \\ 6& -6 & 2 \end{bmatrix}\begin{bmatrix} 10\\ 20\\ 10 \\ \end{bmatrix}$ $=\frac{1}{2}\begin{bmatrix} -20 \\ 80 \\ -40\end{bmatrix}$ $=\begin{bmatrix} -10 \\ 40 \\ -20 \end{bmatrix}$ The equation of the least squares parabola is $y=-10x^2+40x-20$
Update this answer!

You can help us out by revising, improving and updating this answer.

Update this answer

After you claim an answer you’ll have 24 hours to send in a draft. An editor will review the submission and either publish your submission or provide feedback.