1. Lagrange Form
Definition – Lagrange interpolating polynomial
Definition – Lagrange basis polynomials
Written out:
is a weighting function: a product of factors, with the factor left out.
Property (extra)
for every (interpolating the constant must return ). This is a quick check on your arithmetic.
⚠️ Numerator: with the variable . Denominator: with the node . Both skip . Mixing them up is the most common mistake.
2. Linear Lagrange Interpolation
Formula
Two points :
This is the same line as in 3.1.
Example (slides) – rocket, , , find
| (s) | 0 | 10 | 15 | 20 | 22.5 | 30 |
|---|---|---|---|---|---|---|
| (m/s) | 0 | 227.04 | 362.78 | 517.35 | 602.97 | 901.67 |
⚠️ The slide writes ; the table value is 362.78 (and only comes out with 362.78).
3. Quadratic Lagrange Interpolation
Example (slides) – nodes , ,
At :
| Basis | Computation | Value |
|---|---|---|
| check | ✓ |
4. Cubic Lagrange Interpolation
Example (slides) – nodes 10, 15, 20, 22.5
At (weights worked out here, extra):
| Sum | ||||
|---|---|---|---|---|
| ✓ |
| Method | Linear | Quadratic | Cubic |
|---|---|---|---|
| Direct (3.1) | 393.70 | 392.19 | 392.06 |
| Newton (3.2) | 393.70 | 392.19 | 392.06 |
| Lagrange (3.3) | 393.70 | 392.19 | 392.06 |
⚠️ All three methods produce the same polynomial (uniqueness theorem), just written differently. Pick whichever form is cheapest for the task.
5. When to Use Lagrange vs Newton
| Situation | Use | Reason |
|---|---|---|
| Same nodes , changed | Lagrange | The depend only on the , so keep them and just change the weights . Newton would need the whole divided-difference table again |
| Adding a data point | Newton | Add one row and one column to the table. Lagrange needs every recomputed (each gains a new factor) |