numerical analysis brief overview

Interpolation

Lagrange polynomial

Given a set of k+1 data points

(x0,y0),,(xj,yj),,(xk,yk)

where no two xj are the same, the interpolation polynomial in the Lagrange form is a linear combination

L(x):=j=0kyjj(x)

of Lagrange basis polynomials

j(x):=0mkmjxxmxjxm=(xx0)(xjx0)(xxj1)(xjxj1)(xxj+1)(xjxj+1)(xxk)(xjxk),

Remainder in Lagrange interpolation formula

R(x)=f(x)L(x)
(x)=(xx0)(xx1)(xxk)R(x)=f[x0,,xk,x](x)=(x)f(k+1)(ξ)(k+1)!,x0<ξ<xk,

The remainder can be bound as

(x)(k+1)!minx0ξxkf(k+1)(ξ)R(x)(x)(k+1)!maxx0ξxkf(k+1)(ξ)

Newton polynomial

divided differences

[yν]:=yν,ν{0,,k}[yν,,yν+j]:=[yν,,yν+j1][yν+1,,yν+j]xνxν+j,ν{0,,kj}, j{1,,k}
x0f(x0)f(x1)f(x0)x1x0x1f(x1)f(x2)f(x1)x2x1f(x1)f(x0)x1x0x2x0f(x2)f(x1)x2x1x2f(x2)xnf(xn)
(f[x0]f[x0,x1]f[x0,x1,x2]f[x0,,xn]0f[x1]f[x1,x2]f[x1,,xn]000f[xn])

Given a set of k+1 data points

(x0,y0),,(xj,yj),,(xk,yk)

where no two xj are the same, the Newton interpolation polynomial is a linear combination of Newton basis polynomials

N(x):=j=0kajnj(x)

with the Newton basis polynomials defined as

nj(x):=i=0j1(xxi)

for j>0 and n0(x)=1.

The coefficients are defined as

aj:=[y0,,yj]

where

[y0,,yj]

is the notation for divided differences.

Thus the Newton polynomial can be written as

N(x)=[y0]+[y0,y1](xx0)++[y0,,yk](xx0)(xx1)(xxk1).

The remainder can be bound as

(x)(k+1)!minx0ξxkf(k+1)(ξ)R(x)(x)(k+1)!maxx0ξxkf(k+1)(ξ)

Hermite interpolation

Repeat points divided differences:

Repeat points:f(x0)=a, f(x0)=b, f(x0)=c, f[x0,x0]=limx1x0f[x0,x1]=limx1x0f(x1)f(x0)x1x0=f(x0)f[x0,x0,x0]=limx1x0x2x0f[x0,x1,x2]=12!f(x0)f[x0,,x0]=limxix0f[x0,x1,,xn]=1n!f(n)(x0)

Runge's phenomenon

In the mathematical field of numerical analysis, Runge's phenomenon is a problem of oscillation at the edges of an interval that occurs when using polynomial interpolation with polynomials of high degree over a set of equispaced interpolation points. The discovery was important because it shows that going to higher degrees does not always improve accuracy.

Linear interpolation

If the two known points are given by the coordinates (x0,y0) and (x1,y1), the linear interpolant is the straight line between these points. For a value x in the interval (x0,x1), the value y along the straight line is given from the equation of slopes

yy0xx0=y1y0x1x0

Interpolation remainder

Polynomial remainder

x 0 1 2
f(x) 0 1 1
f(x) 0 1
P(x)=94x232x3+14x3

Remainder:

R(x)=f(x)P(x)R(0)=R(1)=R(2)=0, R(0)=R(1)=0

Assume:

R(x)=k(x)x2(x1)2(x2)φ(t)=R(t)k(x)t2(t2)2(t2)

It follows that,

φ(t)=0, t=x,0,1,2φ(t)=0, t=0,1

There are 5 points that

φ(x)=0

, as can be seen from Roller's Theorem.

So:

 ξx[min{x,0,1,2},max{x,0,1,2}]φ(5)(ξx)=0

then

φ(5)(t)=R(5)(t)k(x)[t2(t1)2(t2)](5)=f(5)(t)P(5)(t)k(x)5!=f(5)(t)k(x)5!

substitute

φ(5)(ξx)=f(5)(ξx)k(x)5!=0k(x)=f(5)(ξx)5!

At the end,

R(x)=f(5)(ξx)5!x2(x1)2(x2), ξx[min{x,0,1,2},max{x,0,1,2}]

Linear remainder

f(x) is primal function, I(x) is linear interpolation polynomial.

a=x0<x1<<xn=bf(xi)=I(xi)=yi, i=0,1,,n

Theorem:

h=sup0kn1(xk+1xk)maxaxb|f(x)I(x)|h28maxaxb|f(2)(x)|

Prove:

According to polynomial remainder, we can get:

 ξ[min{x,xk,xk+1}, max{x,xk,xk+1}]maxxkxxk+1|f(x)I(x)|=maxxkxxk+1|f(2)(ξ)2!||(xxk)(xxk+1)|
maxxkxxk+1|f(2)(ξ)2!||(xxk)(xxk+1)|=maxxkxxk+1|(xxk)(xxk+1)2|maxxkxxk+1|f(2)(ξ)|

On one hand,

{(xxk)(xxk+1)2}=0x=xk+xk+12hk+1=xk+1xkmaxxkxxk+1|(xxk)(xxk+1)2|hk+128

On the other hand,

maxxkxxk+1|f(2)(ξ)|=|f(2)(ξ)|maxxkxxk+1|f(2)(x)|

It follows that,

maxxkxxk+1|(xxk)(xxk+1)2|maxxkxxk+1|f(2)(ξ)|  hk+128maxxkxxk+1|f(2)(x)|

So

maxxkxxk+1|f(x)I(x)|hk+128maxxkxxk+1|f(2)(x)| j, maxaxb|f(x)I(x)|=maxxjxxj+1|f(x)I(x)|hj+128maxxjxxj+1|f(2)(x)|hj+128maxaxb|f(2)(x)|hj+1sup0kn1(xk+1xk)h=sup0kn1(xk+1xk),maxaxb|f(x)I(x)|h28maxaxb|f(2)(x)|

Approximation theory

Theorem

minimax Approximation

f(x)y(x)=maxaxb|f(x)y(x)|

Least-Squares Approximation

f(y)y(x)22=abρ(x)[f(x)y(x)]2d

Inner product space

weight function

 ab|x|nρ(x)dx, n=0,1,g(x)0, abg(x)ρ(x)=0if g(x)0, then ρ(x) is weight function in (a,b)

Inner product between f(x) and g(x)

(f,g)=abρ(x)f(x)g(x)dx

Cauchy-Schwarz

|(f,g)|f2g2

triangle inequality

f+g2f2+g2

Parallelogram theorem

f+g22+fg22=2(f22+g2)

Linearly independent

{φ1(x),φ1(x),,φn(x)}a1φ1(x)+a2φ2(x)++anφn(x)=0a1=a2==an=0