Question #55518

3 If f(1) = 1, f(3) = 19, f(4) = 49 and f(5) = 101, find the Lagrange’s interpolation polynomial of f(x).

a. P(x)=x 3 −x 2 +1
b. P(x)=x 3 –3x 2 −5x–4
c. P(x)=x 3 –3x 2 +5x–6
d. P(x)=2x 2 –3x+5x–6
4 The first divided difference of f with respect to
x i
and
x i+1
denoted by
f[x i ,x i+1 ]
is defined as
a. f[x i ,x i+1 ]=f[x i+1 ]−f[x i ]x i+1 −x i
b. f[x i ,x i+1 ]=x i+1 −x i f[x i+1 ]−f[x i ]
c. f[x i ,x i+1 ]=f[x i ]−f[x i+1 ]x i+1 −x i
d. f[x i ,x i+1 ]=f[x i ]−f[x i+1 ]f[x i+1 ]−x i
1

Expert's answer

2015-10-19T04:44:55-0400

Answer on Question #55518 – Math – Algorithms | Quantitative Methods

Question 1

If f(1)=1f(1) = 1, f(3)=19f(3) = 19, f(4)=49f(4) = 49 and f(5)=101f(5) = 101, find the Lagrange’s interpolation polynomial of f(x)f(x).

a. P(x)=x3x2+1P(x) = x \cdot 3 - x \cdot 2 + 1

b. P(x)=x33x25x4P(x) = x \cdot 3 - 3x \cdot 2 - 5x - 4

c. P(x)=x33x2+5x6P(x) = x \cdot 3 - 3x \cdot 2 + 5x - 6

d. P(x)=2x23x+5x6P(x) = 2x \cdot 2 - 3x + 5x - 6

Solution

The Lagrange’s interpolation polynomial has the form


L(x)=i=0nyili(x),L(x) = \sum_{i=0}^{n} y_i l_i(x),


where


li(x)=j=0,jinxxjxixj=xx0xix0xxi1xixi1xxi+1xixi+1xxnxixn.l_i(x) = \prod_{j=0, j\neq i}^{n} \frac{x - x_j}{x_i - x_j} = \frac{x - x_0}{x_i - x_0} \cdots \frac{x - x_{i-1}}{x_i - x_{i-1}} \cdot \frac{x - x_{i+1}}{x_i - x_{i+1}} \cdots \frac{x - x_n}{x_i - x_n}.


Thus, we obtain


P(x)=(x3)(x4)(x5)(13)(14)(15)f(1)+(x1)(x4)(x5)(31)(34)(35)f(3)+(x1)(x3)(x5)(41)(43)(45)f(4)+(x1)(x3)(x4)(51)(53)(54)f(5)==124(x3)(x4)(x5)+194(x1)(x4)(x5)+493(x1)(x3)(x5)+1018(x1)(x3)(x4)==x3x2+1.\begin{aligned} P(x) = & \frac{(x - 3)(x - 4)(x - 5)}{(1 - 3)(1 - 4)(1 - 5)} f(1) + \frac{(x - 1)(x - 4)(x - 5)}{(3 - 1)(3 - 4)(3 - 5)} f(3) + \frac{(x - 1)(x - 3)(x - 5)}{(4 - 1)(4 - 3)(4 - 5)} f(4) + \frac{(x - 1)(x - 3)(x - 4)}{(5 - 1)(5 - 3)(5 - 4)} f(5) = \\ & = \frac{-1}{24}(x - 3)(x - 4)(x - 5) + \frac{19}{4}(x - 1)(x - 4)(x - 5) + \frac{-49}{3}(x - 1)(x - 3)(x - 5) + \frac{101}{8}(x - 1)(x - 3)(x - 4) = \\ & = x^3 - x^2 + 1. \end{aligned}


Answer: a. P(x)=x3x2+1P(x) = x^3 - x^2 + 1.

Question 2

The first divided difference of ff with respect to xx ii and xx i+1i+1 denoted by f[xi,xi+1]f[x \cdot i, x \cdot i+1] is defined as

a. f[xi,xi+1]=f[xi+1]f[xi]xi+1xif[x \cdot i, x \cdot i+1] = f[x \cdot i+1] - f[x \cdot i] \cdot x \cdot i+1 - x i

b. f[xi,xi+1]=xi+1xif[xi+1]f[xi]f[x \cdot i, x \cdot i+1] = x \cdot i+1 - x \cdot i f[x \cdot i+1] - f[x \cdot i]

c. f[xi,xi+1]=f[xi]f[xi+1]xi+1xif[x \cdot i, x \cdot i+1] = f[x \cdot i] - f[x \cdot i+1] \cdot x \cdot i+1 - x i

d. f[xi,xi+1]=f[xi]f[xi+1]f[xi+1]xif[x \cdot i, x \cdot i+1] = f[x \cdot i] - f[x \cdot i+1] \cdot f[x \cdot i+1] - x i

Solution

The first divided difference of ff with respect to xix_i and xi+1x_{i+1} denoted by f[xi,xi+1]f[x_i, x_{i+1}] is defined as


f[xi,xi+1]=f(xi+1)f(xi)xi+1xi.f[x_i, x_{i+1}] = \frac{f(x_{i+1}) - f(x_i)}{x_{i+1} - x_i}.


Answer: a. f[xi,xi+1]=f(xi+1)f(xi)xi+1xif[x_i, x_{i+1}] = \frac{f(x_{i+1}) - f(x_i)}{x_{i+1} - x_i}.

www.AssignmentExpert.com


Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!
LATEST TUTORIALS
APPROVED BY CLIENTS