This suggests we should first consider a special interpolation problem: find polynomials \(l_i(x)\) (\(i = 0, 1, \ldots, n\)) of degree at most \(n\) satisfying
According to TheoremΒ 10.1.3, \(l_i(x)\) exists and is unique. From condition (10.2.1), we know that \(x_0, x_1, \ldots, x_{i-1}, x_{i+1}, \ldots, x_n\) are all zeros of \(l_i(x)\text{,}\) and since \(l_i(x)\) has degree at most \(n\text{,}\) we can write:
The polynomials \(l_i(x)\) (\(i = 0, 1, \ldots, n\)) defined by (10.2.2) are called the Lagrange basis functions or Lagrange fundamental polynomials corresponding to the nodes \(x_0, x_1, \ldots, x_n\text{.}\)
Using the Lagrange basis functions, the interpolating polynomial \(p_n(x)\) satisfying condition (10.1.1) can be expressed as a simple linear combination:
Find the linear interpolation polynomial using nodes \(x_2 = 0\) and \(x_3 = 1\text{,}\) and predict the approximate value of \(f\) at \(x = 0.3\text{.}\)
Find the quadratic interpolation polynomial using nodes \(x_1 = -1\text{,}\)\(x_2 = 0\text{,}\) and \(x_3 = 1\text{,}\) and predict the approximate value of \(f\) at \(x = 0.3\text{.}\)
ExampleΒ 10.2.3 illustrates an important point: higher-degree interpolation (using more nodes) generally provides better approximation. However, as we will see later, this is not always the caseβvery high-degree interpolation can sometimes lead to poor approximation due to oscillation effects.