For the given functions f (x), let x0 = 1, x1 = 1.25, and x2 = 1.6. Construct interpolation polynomials of degree at most one and at most two to approximate f (1.4), and find the absolute error.
a. f (x) = sin πx
b. f (x) =cube root of (x − 1)
c. f (x) = log10 (3x − 1)
d. f (x) = e2x − x
1
Expert's answer
2022-04-12T16:04:51-0400
The Lagrange polynomial
are L1,0(x)=x0−x1x−x1=1−1.25x−1.25=5−4x and L1,1(x)=x1−x0x−x0=1.25−1x−1=4x−4 for the first degree. Substituting x = 1.4 get
L1,0(1.4)=−0.6 and L1,1(1.4)=1.6
For second degree
L2,0(x)=(x0−x1)(x0−x2)(x−x1)(x−x2)=(1−1.25)(1−1.6)(x−1.25)(x−1.6)=320(1.25−x)(1.6−x) and L2,0(x)=−0.2
L2,1(x)=(x1−x0)(x1−x2)(x−x0)(x−x2)=(1.25−1)(1.25−1.6)(x−1)(x−1.6)=780(x−1)(1.6−x) and L2,1(1.4)≈0.914286
L2,2(x)=(x2−x0)(x2−x1)(x−x0)(x−x1)=(1.6−1)(1.6−1.25)(x−1)(x−1.25)=21100(x−1)(x−1.25) and L2,2(1.4)≈0.285714
Finding a professional expert in "partial differential equations" in the advanced level is difficult.
You can find this expert in "Assignmentexpert.com" with confidence.
Exceptional experts! I appreciate your help. God bless you!
Comments