- 2069 Bhadra · 8 marks
Lagrange: f(2.5)
Short answer
Using cubic Lagrange interpolation on points (1,1), (2,1.414), (3,1.732), (4,2) gives f(2.5) ≈ 1.5821. The true value √2.5 is 1.5811.
Use Lagrange method to find f(2.5) from the following data:
| x | 1 | 2 | 3 | 4 | [?] |
|---|---|---|---|---|---|
| f(x) | 1 | 1.414 | 1.732 | 2.00 | 2.6 |
| [x row partly illegible in the scan: x values for the middle and last columns are hard to read] |
Assumption. In the scan only the points x = 1, 2, 3, 4 with f = 1, 1.414, 1.732, 2.000 are readable (these are the values of √x). The x value in the last column is illegible (its f value, 2.6, does not fit √x at x = 5), so the formula is applied to these four points. Required: f(2.5).
Lagrange's formula for four points (cubic):
f(x) = Σ f(xᵢ)·Lᵢ(x), Lᵢ(x) = Π (x − xⱼ)/(xᵢ − xⱼ) (j ≠ i)
L₀(2.5) = (2.5−2)(2.5−3)(2.5−4) / [(1−2)(1−3)(1−4)] = (0.5)(−0.5)(−1.5)/(−6) = −0.0625
L₁(2.5) = (2.5−1)(2.5−3)(2.5−4) / [(2−1)(2−3)(2−4)] = (1.5)(−0.5)(−1.5)/(2) = 0.5625
L₂(2.5) = (2.5−1)(2.5−2)(2.5−4) / [(3−1)(3−2)(3−4)] = (1.5)(0.5)(−1.5)/(−2) = 0.5625
L₃(2.5) = (2.5−1)(2.5−2)(2.5−3) / [(4−1)(4−2)(4−3)] = (1.5)(0.5)(−0.5)/(6) = −0.0625
| i | xᵢ | f(xᵢ) | Lᵢ(2.5) | f(xᵢ)·Lᵢ(2.5) |
|---|---|---|---|---|
| 0 | 1 | 1 | -0.0625 | -0.0625 |
| 1 | 2 | 1.414 | 0.5625 | 0.7954 |
| 2 | 3 | 1.732 | 0.5625 | 0.9742 |
| 3 | 4 | 2 | -0.0625 | -0.1250 |
| Σ | 1.0000 | 1.5821 |
f(2.5) = (−0.0625)(1) + (0.5625)(1.414) + (0.5625)(1.732) + (−0.0625)(2.000) = 1.5821
Answer: f(2.5) ≈ 1.5821 (the true √2.5 = 1.5811).
If the fifth point (5, 2.236) is also taken, the five-point formula gives f(2.5) ≈ 1.5815, which agrees to three decimal places.
✓ Answer checked by Claude Opus 5.5 (high effort)
Related questions
- Lagrange interpolation pseudo-code · Numerical Method, chapter 4 · asked 2×
- Gauss 2-point and 3-point: log(x+1)+sin 2x · Numerical Method, chapter 5
- Angular velocity from rod data · Numerical Method, chapter 5 · asked 2×
- Time to scan one row of pixels · Computer Graphics, chapter 1
- Dehydrohalogenation; mechanism and kinetics of E1 [partly illegible] · Engineering Chemistry, chapter 10 · asked 2×
- Werner's postulates; IUPAC names [partly illegible] · Engineering Chemistry, chapter 6
- High and plastic explosives; nitrocellulose, TNT [partly illegible] · Engineering Chemistry, chapter 7