User Tools

Site Tools


gibson:teaching:fall-2016:math753:lagrangepoly

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Last revision Both sides next revision
gibson:teaching:fall-2016:math753:lagrangepoly [2016/11/11 12:34]
gibson
gibson:teaching:fall-2016:math753:lagrangepoly [2016/11/11 12:38]
gibson
Line 16: Line 16:
 P(x) = 4 \frac{(x-1)(x-2)}{(-1)(-2)} + 3 \frac{(x)(x-2)}{(1)(-1)} + 6 \frac{(x)(x-1)}{(2)(1)} ​ P(x) = 4 \frac{(x-1)(x-2)}{(-1)(-2)} + 3 \frac{(x)(x-2)}{(1)(-1)} + 6 \frac{(x)(x-1)}{(2)(1)} ​
 \end{equation*} \end{equation*}
 +
 +This is mathematically clunky because it expresses a quadratic polynomial $P(x)$ as the sum of three quadratics. Simplifying takes a lot of multiplications and additions. If we do that, we get
 +
 +\begin{equation*}
 +P(x) = 4 - 3x + 2x^2
 +\end{equation*}
 +
 +which can be easily verified as passing through the given data points.
 +
 +Further reading ​
 +  * [[http://​mathworld.wolfram.com/​LagrangeInterpolatingPolynomial.html | Lagrange Interpolating Polynomial]] (Wolfram Mathworld)
 +  * [[https://​en.wikipedia.org/​wiki/​Lagrange_polynomial| Lagrange Polynomial]] (Wikipedia)
gibson/teaching/fall-2016/math753/lagrangepoly.txt ยท Last modified: 2016/11/11 12:39 by gibson