(1.1/1.2: Interpolating polynomials) Say we want to find a polynomialf(x) ofdegree 3,f(x) =a0+a1x+a2x2+a3x3,satisfying some interpolation conditions. In each case below, write a system of linearequations whose solutions are (a0,a1,a2,a3). You don’t need to solve the system.(a) We wantf(x) to pass through the points (βˆ’1,βˆ’1),(1,2),(2,1) and (3,5).(b) We wantf(x) to pass through (1,0) with derivative +2 and (2,3) withderivativeβˆ’1

Respuesta :

(a) If

f(x) = aβ‚€ + a₁ x + aβ‚‚ x Β² + a₃ x Β³

then from the given conditions we get the system of equations,

f (-1) = aβ‚€ - a₁ + aβ‚‚ - a₃ = -1

f (1) = aβ‚€ + a₁ + aβ‚‚ + a₃ = 2

f (2) = aβ‚€ + 2a₁ + 4aβ‚‚ + 8a₃ = 1

f (3) = aβ‚€ + 3a₁ + 9aβ‚‚ + 27x Β³ = 5

(b) Similarly, if

f(x) = aβ‚€ + a₁ x + aβ‚‚ x Β² + a₃ x Β³

then

f'(x) = a₁ + 2aβ‚‚ x + 3a₃ x Β²

so that the given conditions yield the system,

f (1) = aβ‚€ + a₁ + aβ‚‚ + a₃ = 0

f' (1) = a₁ + 2aβ‚‚ + 3a₃ = 2

f (2) = aβ‚€ + 2a₁ + 4aβ‚‚ + 27a₃ = 3

f' (2) = a₁ + 4aβ‚‚ + 12a₃ = -1