University of Houston, Department of Mathematics Numerical Analysis, Fall 2005

Size: px
Start display at page:

Download "University of Houston, Department of Mathematics Numerical Analysis, Fall 2005"

Transcription

1 4 Interpolation 4.1 Polynomial interpolation Problem: LetP n (I), n ln, I := [a,b] lr, be the linear space of polynomials of degree n on I, P n (I) := { p n : I lr p n (x) = n i=0 a i x i, a i lr, 0 i n }. We have dim P n (I) = n+1, since any p n P n (I) is uniquely determined by the coefficients a i, 0 i n. y p(x) x 0 x 1 x 2 x 3 x 4 x 5 x 6 x Interpolation problem: Given n + 1 points (x i,f i ), 0 i n, find p n P n (I) such that (+) p n (x i ) = f i, 0 i n. Definition 4.1 Interpolating polynomial The points x i (resp. f i, 0 i n, ) are called nodal points (resp. nodal values) of the interpolation problem. The n + 1 equations (+) are called the interpolating conditions. A polynomial p n P n (I) satisfying (+) is called an interpolating polynomial.

2 4.1.1 Existence and Uniqueness In explicit form, the interpolating conditions are given as follows: n j=0 a j x j i = f i, 0 i n. They represent a linear system in the coefficients a j, 0 j n,: ( ) 1 x 0 x 2 0 x n 0 1 x 1 x 2 1 x n 1 1 x n x 2 n x n n } {{ } =: V Definition 4.2 Vandermonde s determinant The coeffizient matrix V in ( ) is called Vandermonde s matrix. Its determinant is referred to as Vandermonde s determinant. a 0 a 1 a n = f 0 f 1 f n.

3 Lemma 4.3 Vandermonde s determinant Vandermonde s determinant is given by: Proof: We consider V n (x) := det V = 0 j<k n (x k x j ). 1 x 0 x 2 0 x n 0 1 x 1 x 2 1 x n 1 1 x n 1 x 2 n 1 x n n 1 1 x x 2 x n Expansion of the determinant w.r.t. the (n + 1,n + 1)-st element x n results in: det V n (x) = det V n 1 (x n 1 ) }{{} leading coeff. x n + q n 1, q n 1 P n 1 (lr)..

4 We have: det V n (x) = det V n 1 (x n 1 ) }{{} leading coeff. On the other hand: x n + q n 1, q n 1 P n 1 (lr). det V n (x) P n (lr), det V n (x j ) = 0, 0 j n 1, = det V n (x) = det V n 1 (x n 1 ) n 1 (x x j ) = j=0 det V = det V n (x n ) = det V n 1 (x n 1 ) n 1 (x n x j ) = j=0 = det V n 2 (x n 2 ) n 2 (x n 1 x j ) n 1 (x n x j ) = =... = det V(x 1 ) }{{} =x 1 x 0 ) j=0 1 j<k n j=0 (x k x j ).

5 Theorem 4.4 Existence and uniqueness of the interpolating polynomial In case of mutually disjoint nodal points, i.e., x i x j, 0 i j n, there exists a uniquely determined interpolating polynomial p n P n (I). Proof: There holds det 0 j<k n (x k x j ) 0. Remark 4.5 Computation of the interpolating polynomial The computation of the polynomial by the solution of the linear system with the Vandermonde matrix as the coefficient matrix is not practicable, since the amount of computational work is too large. Moreover, the linear system is in general ill conditioned.

6 4.1.2 Lagrangian representation of the interpolating polynomial 1 y L i (x) x i 1 x i x i+ 1 Definition 4.6 Lagrangian fundamental polynomials The polynomials L i (x) = x x j j i x i x j are called Lagrangian fundamental polynomials. x In case of mutually disjoint nodal points x i, 0 i n, a basis of P n (lr) is given by the polynomials L i P n (lr), L i (x j ) = δ ij, 0 i,j n. Obviously, there holds: L i (x j ) = 0, i j = L i (x) = α n (x x j) j i L i (x i ) = α n (x i x j ) = 1 = α n = 1/( (x i x j )) j i j i

7 Theorem 4.7 Lagrangian representation of the interpolating polynomial In case of mutually disjoint nodal points x i, 0 i n, the interpolating polynomial admits the representation p n (x) = n i=0 f i L i (x). Remark 4.8 Practical computation of the interpolating polynomial The computation of the interpolating polynomial by the Lagrangian representation formula is not practicable, since the addition of a pair (x n+1,f n+1 ) requires that all fundamental polynomials have to be recomputed.

8 4.1.3 Newton s representation of the interpolating polynomial Idea: Recursive construction Let p 0 P 0 (lr) be the interpolating polynomial of degree 0 with respect to (x 0,f 0 ), i.e., p 0 (x) = f 0. Ansatz for p 1 P 1 (lr) with respect to (x 0,f 0 ), (x 1,f 1 ): Determination of q 1 : p 1 (x) = p 0 (x) + q 1 (x), q 1 P 1 (lr). p 1 (x 0 ) = f 0 + q 1 (x 0 ) = f 0 = q 0 (x 0 ) = 0, = q 1 (x) = b 1 (x x 0 ) = p 1 (x) = f 0 + b 1 (x x 0 ). We obtain b 1 from the condition p 1 (x 1 ) = f 1. Ansatz for p 2 P 2 (lr) with respect to (x 0,f 0 ), (x 1,f 1 ), (x 2,f 2 ): Determination of q 2 : p 2 (x) = p 1 (x) + q 2 (x), q 2 P 2 (lr). p 2 (x 0 ) = f 0 + q 2 (x 0 ) = f 0 = q 2 (x 0 ) = 0, p 2 (x 1 ) = f 1 + q 2 (x 1 ) = f 1 = q 2 (x 1 ) = 0 = q 2 (x) = b 2 (x x 0 ) (x x 1 ).

9 General case: Let p n 1 P n 1 (lr) be the interpolating polynomial with respect to (x i,f i ), 0 i n 1. Ansatz for p n P n (lr) with respect to (x i,f i ), 0 i n 1: Determination of q n : p n (x) = p n 1 (x) + q n (x), q n P n (lr). p n (x i ) = f i + q n (x i ) = f i = q n (x i ) = 0, 0 i n 1 = q n (x) = b n (x x 0 ) (x x 1 )...(x x n 1 ). In principle, b n can be obtained from the condition: p n (x n ) = p n 1 (x n ) + q n (x n ) = f n. However, this approach is not practicable, since we must determine p n 1 and evaluate it in x n. On the other hand, we have: p n (x) = b n x n + n 1 c i x i. b n is the leading coefficient, i.e., the coefficient of x n in p n. Most wanted: Formula for the computation of the leading coefficients. i=0

10 Definition 4.9 Newton s representation of the interpolating polynomial The representation of the interpolating polynomial given by p n (x) = b 0 + b 1 (x x 0 ) b n (x x 0 )... (x x n 1 ) is called Newton s representation. Recursive computation of the leading coefficients: Let p ij P j i (lr), 0 i < j n, be the interpolating polynomials with respect to (x i,f i ), (x i+1,f i+1 ),..., (x j,f j ). Ansatz for p ij : Determination of r 1,s 1 : p ij (x) = r 1 (x) p i,j 1 (x) + s 1 (x) p i+1,j (x), r 1,s 1 P 1 (lr). p ij (x i ) = r 1 (x i ) p i,j 1 (x i ) + s 1 (x i ) p i+1,j (x i ) = f i Set r 1 (x i ) = 1, s 1 (x i ) = 0, p ij (x j ) = r 1 (x j ) p i,j 1 (x j ) + s 1 (x j ) p i+1,j (x j ) = f j Set r 1 (x j ) = 0, s 1 (x j ) = 1 = r 1 (x) = x j x, s 1 (x) = x x i. x j x i x j x i

11 Theorem 4.10 Recursion formula for the interpolating polynomials The polynomials p ij P j i (lr), 0 i < j n, interpolating in (x k,f k ), i k j, satisfy the recursion p ij (x) = x j x p i,j 1 (x) + x x i p i+1,j (x). x j x i x j x i Corollary 4.11 Recursion formula for the leading coefficients The leading coefficients f[x i,x i+1,...,x j ] of the interpolating polynomials p ij P j i (lr),0 i < j n, satisfy the recursion ( ) f[x i,x i+1,...,x j ] = f[x i+1,...,x j ] f[x i,x i+1,...,x j 1 ] x j x i where f[x i ] := f i, 0 i n. Example 4.12 (i = 0, j = 1) f[x 0,x 1 ] = f[x 1] f[x 0 ] x 1 x 0 = f 1 f 0 x 1 x 0. Definition 4.13 Divided differences The quantities defined recursively by means of ( ) are called divided differences. In particular, f[x i,...,x j ] is said to be the (j i)-th divided difference.

12 Remark 4.14 Recursive scheme for the divided differences x 0 f 0 = f[x 0 ] f[x 0,x 1 ] x 1 f 1 = f[x 1 ] f[x 0,x 1,x 2 ] f[x 1,x 2 ] x 2 f 2 = f[x 2 ] f[x 0,...,x n ] x n 2 f n 2 = f[x n 1 ] f[x n 2,x n 1 ] x n 1 f n 1 = f[x n 1 ] f[x n 2,x n 1,x n ] f[x n 1,x n ] x n f n = f[x n ]

13 Lemma 4.15 Newton s representation with divided differences Since the coefficients b i, 0 i n, of Newton s interpolating polynomial correspond to the divided differences f[x 0,...,x i ], we obtain the following representation ( ) p n (x) = f[x 0 ] + f[x 0,x 1 ] (x x 0 ) f[x 0,...,x n ] (x x 0 )... (x x n 1 ) Evaluation of interpolating polynomials (i) Horner s scheme We reformulate ( ) according to p n (x) = ( f[x 0,...,x n ] (x x n 1 ) + f[x 0,...,x n 1 ] (x x n 2 ) f[x 0,x 1 ] (x x 0 ) ) + f[x 0 ]. This leads to Horner s scheme: Compute f[x 0,...,x n ] (x x n 1 ) + f[x 0,...,x n 1 ] Multiply by (x x n 2 ) and add f[x 0,..., x n 2 ] Multiply by (x x n 3 ) and add f[x 0,..., x n 3 ] etc. Disadvantage: Explicit knowledge of Newton s interpolating polynomial is required. Too much computational work in case of evaluation at a single point.

14 (ii) Algorithm of Aitken-Neville Idea: Application of the recursion formula for the interpolating polynomials: x 0 f 0 = p 00 (x) p 01 (x) x 1 f 1 = p 11 (x) p 02 (x) p 01 (x) x 2 f 2 = p 22 (x) p 0n (x) x n 2 f n 2 = p n 2,n 2 (x) p n 2,n 1 (x) x n 1 f n 1 = p n 1,n 1 (x) p n 2,n (x) p n 1,n (x) x n f n = p nn (x)

15 4.1.5 Remainder term and error estimate Problem: Consider the approximation of a continuous function f : I := [a,b] lr by the polynomial p n P n (I) interpolating in x i [a,b], 0 i n,. What can be said about the accuracy of this approximation? Definition 4.16 Remainder term, interpolation error Assume f C([a,b]) and let p n P n ([a,b]) be the polynomial interpolating f in (x i,f(x i )), x i [a,b], 0 i n. The function R n := f p n is called the remainder of the interpolation. The value of the remainder in x [a,b], x x i, 0 i n, is referred to as the interpolation error.

16 Theorem 4.17 Representation of the remaining term Let f C n+1 ([a,b]) and assume that p n P n ([a,b]) is the polynomial interpolating f in (x i,f(x i )), x i [a,b],0 i n. For any x [a,b] there exists ξ I x := [min(x 0,...,x n,x),max(x 0,...,x n,x) ] such that ( ) R n (x) = f(x) p n (x) = f(n+1) (ξ) (n + 1)! ω n+1 (x), ω n+1 (x) := (x x 0 ) (x x 1 )... (x x n ). Proof: W.r.o.g. let x x i, 0 i n. We consider the auxiliary function F(t) := f(t) p n (t) f(x) p n(x) ω n+1 (t), t [a,b]. ω n+1 (x) Obviously, we have F C n+1 ([a,b]), and there holds = F has at least n + 2 zeroes in [a,b]. F(x i ) = 0, 0 i n, F(x) = 0.

17 We already know: F has at least n + 2 zeroes in [a,b]. y x1 x 1 x 2 x 2 x 3 x 3 x4 x A repeated application of Rolle s theorem yields: F has at least n + 1 zeroes in [a,b],..., F (n+1) has at least 1 zero in ξ [a,b]. F (n+1) (ξ) = f (n+1) (ξ) p (n+1) (ξ) } n {{ } = 0 = f(x) p n (x) = f(n+1) (ξ) (n+1)! ω n+1 (x). f(x) p n(x) ω n+1 (x) (n + 1)! = 0 Corollary 4.18 Representation of the remaining term using divided differences Under the assumptions of Theorem 4.17 there holds: f[x 0,...,x n,x] = f(n+1) (ξ) (n + 1)!, ξ [a,b].

18 Proof: There holds: p n (x) = p 0,n (x) = Setting x n+1 := x and f n+1 := f(x), we obtain: n i=0 f[x 0,...,x i ] i 1 (x x j ). f(x) = p 0,n+1 (x) = p 0,n (x) + f[x 0,...,x n,x] ω n+1 (x). Corollary 4.19 Generalized mean value theorem If f C n ([a,b]), then there exists ξ [ min(x 0,...,x n ),max(x 0,...,x n ) ] such that f[x 0,...,x n ] = f(n) (ξ) n! Corollary 4.21 Estimate of the remainder If f C n+1 ([a,b]) and if p n P n ([a,b]) denotes the polynomial interpolating f in x i [a,b], 0 i n,, then the following estimate holds true f (n+1) (ξ) f(x) p n (x) max ξ [a,b] (n + 1)! j=0. max ω n+1(x). x [a,b]

19 Problem: Chebyshev nodes The estimate f (n+1) (ξ) f(x) p n (x) max ξ [a,b] (n + 1)! max ω n+1(x). x [a,b] motivates to determine the nodes x i [a,b], 0 i n, such that ( ) max ω n+1(x) = max (x x 0)...(x x n ) = x [a,b] x [a,b] min x i [a,b] max (x x 0)...(x x n ) x [a,b] ( ) represents a minimax-problem whose solution is already known from the cg method Theorem 4.21 Chebyshev nodes The solution of the minimax-problem ( ) is given by the zeroes t i = cos( 2i + 1 2n + 2 π), 0 i n of the Chebyshev polynomial T n+1 (x) = cos((n + 1) arccos(x)) transformed to the interval [a,b]. We thus obtain the Chebyshev nodes x i = b a 2 t i + b + a 2, 0 i n.

20 4.1.6 Convergence of interpolating polynomials Remark 4.22 About Weierstrass theorem Weierstrass theorem states: If f : [a,b] lr is continuous, for any ε > 0 there exists a polynomial pε such that sup f(x) pε(x) ε. x [a,b] Weierstrass theorem does not imply convergence of the sequence of interpolating polynomials. Problem: Assume that f : [a,b] lr is a continuous function, x i := a + i b a n p n P n ([a,b]) be the polynomials interpolating in (x i,f(x i )), 0 i n., 0 i n, and let What can be said about the convergence of the sequence (p n ) n ln of the interpolating polynomials?

21 4 1 1 y 1 f(x) = 1/(1+x 2 ) 4 x (i) Counterexample by Runge (1901) f(x) = x 2, x [ 5, +5]. The sequence of interpolating polynomials (p n ) n ln with respect to equidistant nodes x i, 0 i n, converges for x 3.63 and diverges for 3.63 < x < 5. y f(x) = x x (ii) Counterexample by Bernstein (1912) f(x) = x, x [ 1, +1]. The sequence of interpolating polynomials (p n ) n ln diverges for all 0 < x < 1.

22 Definition 4.23 Nodal scheme Let x n,i, 0 i n, n ln 0, be the mutually different nodes of p n P n ([a,b]) such that p n (x n,i ) = f(x n,i ), 0 i n. Then, the scheme x 0,0 x 1,0 x 1,1 S : x n,0 x n,1 x n,n is called the nodal scheme of the sequence (p n ) n ln 0 of interpolating polynomials. Theorem 4.24 Theorem of Marcinkiewicz For any function f C([a,b]) there exists a nodal scheme S with x n,i [a,b], 0 i n,n ln 0, such that the sequence (p n ) n ln 0 of interpolating polynomials uniformly converges to f. Remark 4.25 About the theorem of Marcienkiewicz The proof of the theorem of Marcinkiewicz uses nonconstructive results from approximation theory and hence, it does not provide a practical method for the determination of the nodal scheme.

23 Theorem 4.26 Faber s theorem For any nodal scheme S with x n,i [a,b], 0 i n, n ln 0, there exists a continuous function f : [a,b] lr such that the sequence (p n ) n ln 0 of interpolating polynomials does not uniformly converge to f.

24 4.2 Spline interpolation Foundations Example 4.27 Interpolation by piecewise linear functions x 0 x 1 x 2 y x 3 x 4 x 5 x 6 s (x) x Assume that := {x 0,...,x n } is a grid of n + 1 mutually disjoint nodes a := x 0 < x 1 <... < x n =: b. Given the values f i, 0 i n, consider the interpolating function s with s [xi,x i+1 ] P 1 ([x i,x i+1 ]), 0 i n 1, s (x i ) = f i, 0 i n. Obviously, s is continuous, but not continuously differentiable. The critical points are the inner nodes x i, 1 i n 1. Idea: Use piecewise polynomials of a higher degree with better global smoothness properties.

25 Definition 4.28 Spline of degree m 1 Assume that := {x 0,...,x n } is a grid of n + 1 mutually disjoint nodes satisfying a := x 0 < x 1 <... < x n =: b. A function s : [a,b] lr is called a spline of degree m 1, m ln, (resp. of order m) with respect to, if (S 1 ) s C m 2 ([a,b]) (m 2), (S 2 ) s i := s [xi,x i+1 ] P m 1 ([x i,x i+1 ]), 0 i n 1. The splines of degree m 1 form a linear space which will be denoted by S m,. In particular, we obtain m = 1 m = 2 m = 3 m = 4 step functions polygons (linear splines) quadratic splines cubic splines

26 Remark 4.29 Dimension A spline of the order m is the m 1-fold integral of a spline of order 1 (step function): dim S 1, = n = dim S m, = n + m 1. Continuity and differentiability conditions in the inner nodes: s (k) i 1(x i ) = s (k) i (x i ), 1 i n 1, 0 k m 2. By m 1-fold integration we obtain: s i (x) = s i 1 (x) + γ i (x x i ) m 1, and hence, s (x) = Definition 4.30 Truncated power function The function given by s i 1 (x), x < x i s i 1 (x) + γ i (x x i ) m 1., x x i (x x i ) m 1 + := is called truncated power function. 0, x < x i (x x i ) m 1, x x i

27 Remark 4.31 Differentiation of truncated power functions d dx (x x i) + m 1 = (m 1) (x x i ) + m 2 (m 2), d dx (x x 0, x < x i) + = i (m = 2). 1, x x i Theorem 4.32 Basis of S m, The linear space S m,, m ln, of splines of order m satisfies: (+) S m, = span {1,x,...,xm 1, (x x 1 ) + m 1,..., (x x n 1 ) + m 1 }, (++) dim S m, = n + m 1. Proof: We have to verify the linear independence of the functions in (+). Assume that: s (x) = m 1 It has to be shown that k=0 a k x k + n 1 j=1 c j (x x j ) m 1 + = 0, for all x [a,b]. a k = 0, 0 k m 1, c j = 0, 1 j n 1.

28 Consider the linear functionals 1 G i (f) = (m 1)! [ f(m 1) (x i+0 ) f (m 1) (x i 0 ) ], 1 i n 1. Inserting s for f, we obtain: G i (s ) = G i ( m 1 a k x k ) } k=0 {{ } =0 It follows thats (x) = m 1 k=0 + n 1 j=1 c j G i ((x x j ) m 1 + ) }{{} =δ ij = c i = 0, 1 i n 1. a k x k = 0, x [a,b] = a k = 0, 0 k m 1. Remark 4.33 Aspects of the basis representation The evaluation of a spline in the basis representation s (x) = m 1 k=0 a k x k + n 1 j=1 c j (x x j ) m 1 + can not be recommended, since it is ill conditioned with respect to perturbations in c j, the basis functions are non-local and the coefficients a k,c j do not have a geometrical meaning.

29 4.3.2 The cubic spline interpolant Definition 4.34 Cubic spline interpolant Assume that := { a = x 0 < x 1 <... < x n = b } is a not necessarily equidistant partition of the interval [a,b] and f i lr,0 i n. A spline s S 4, is called a cubic spline interpolant, if ( ) s (x i ) = f i, 0 i n. Remark 4.35 The well-posedness of the interpolation problem A simple reasoning reveals that a cubic spline interpolant is not uniquely determined alone by the interpolating conditions ( ): Number of unknowns: 4 (unknowns per subinterval) n (number of subintervals) = 4n Number of determining equations: 3 (continuity and differentiability) (n 1) (Number of interior nodes) + (n + 1) interpolating conditions = 4n 2.

30 Definition 4.36 Complete, natural, and periodic cubic spline interpolant A cubic spline interpolant is called complete, natural, periodic, if s (x 0) = f 0, s (x n) = f n, s (x 0) = 0, s (x n) = 0, s (x 0) = s (x n), s (x 0) = s (x n). Remark 4.37 Existence, uniqueness, and computation The proof of the existence and uniqueness of the complete (natural, periodic) cubic spline interpolant is constructive and thus provides a method of computation. There are two techniques: Computation via the slopes, Computation via the moments.

31 (i) Computation via the slopes In each subinterval [x i,x i+1 ], 0 i n 1, the polynomials s i = s [xi,x i+1 ] admit a representation as solutions of the Hermite interpolation problem: Compute s i P 3 ([x i,x i+1 ]) as given by ( ) s i (x) = a 0 + a 1 (x x i ) + a 2 (x x i ) 2 + a 3 (x x i ) 3, such that (+) s i (x j ) = f j, i j i + 1, (++) s i(x j ) = m j, i j i + 1. Here, the slopes m i in the nodes are unknown and have to be computed by means of the determining equations. The coefficients a k, 0 k 3, in ( ) can be uniquely determined by the conditions (+) and (++). Setting h i := x i+1 x i, we obtain: ( ) s i (x) = f i + m i (x x i ) + [ 3 f i+1 f i h 2 i m i+1 + 2m i h i ] (x x i ) [ 2 f i+1 f i h 3 i + m i+1 + m i h 2 i ] (x x i ) 3.

32 The function given by ( ) s i (x) = f i + m i (x x i ) + [ 3 f i+1 f i h 2 i + [ 2 f i+1 f i h 3 i + m i+1 + m i h 2 i m i+1 + 2m i h i ] (x x i ) 2 + ] (x x i ) 3 satisfies s C 1 ([a,b]). The condition s C 2 ([a,b]) leads to Differentiation in ( ) results in ( ) s (2) i 1(x i ) = s (2) i (x i ), 1 i n 1. s (2) i (x) = 2 [ 3 f i+1 f i h 2 i m i+1 + 2m i h i ] + 6 [ 2 f i+1 f i h 3 i + m i+1 + m i h 2 i ] (x x i ). Hence, ( ) provides the equations h i m i (h i 1 + h i ) m i + h i 1 m i+1 = 3 [ h i 1 f i+1 f i h i + h i f i f i 1 h i 1 ].

33 If we divide in h i m i (h i 1 + h i ) m i + h i 1 m i+1 = 3 [ h i 1 f i+1 f i h i by h i 1 + h i > 0, we obtain: h i h i 1 + h i }{{} =: ρ i m i m i + h i 1 h i 1 + h i }{{} =: λ i m i+1 = 3 f i+1 f i [ h i 1 h i 1 + h i These are n 1 equations in the n + 1 unknowns m i, 0 i n. (i) Complete cubic spline interpolant + h i f i f i 1 h i 1 ]. + h i f i f i 1 ]. h i h }{{ i 1 } =: d i In case of a complete cubic spline interpolant, we additionally obtain: s (x 0) = f 0 s (x n) = f n = m 0 = f 0 m n = f n.

34 For the remaining n 1 unknowns m i, 1 i n 1, we obtain the linear tridiagonal system 2 λ ρ 2 2 λ ρ n 2 2 λ n ρ n 1 2 m 1 m 2 m n 2 m n 1 = d 1 ρ 1 f 0 d 2 d n 2 d n 1 λ n 1 f n. In view of ρ i + λ i = h i h i 1 + h i + h i 1 h i 1 + h i = 1, 1 i n 1 the coefficient matrix is strictly diagonally dominant and hence, the linear system is uniquely solvable.

35 (ii) Natural cubic spline interpolant In this case, we have the additional boundary conditions s (x 0) = 0, s (x n) = 0. Consequently, we obtain the additional two equations 2 m 0 + m 1 = 3 f 1 f 0 h 0 =: d 0, m n m n = 3 f n f n 1 h n 1 =: d n. The coefficient matrix of the resulting linear system of equations also is a strictly diagonally dominant tridiagonal matrix.

36 (ii) Periodic cubic spline interpolant Considering the additional boundary conditions s (x 0) = s (x n), s (x n) = s (x n), the first equation readily implies m 0 = m n. The second equation yields 2 m m m n m n = 3 [ f 1 f 0 h 0 h 0 h n 1 h n 1 h 2 + f n f n 1 0 h 2 n 1 In view of m n = m 0, it follows that ( 2 h h n 1 ) m h 0 m h n 1 m n 1 = d 0. The remaining n 1 equations read as follows ] =: d 0. 1 m i 1 + ( ) m i + 1 m i+1 = ( ) d i =: d i, 1 i n 2, h i 1 h i 1 h i h i h i 1 h i 1 m m n 2 + ( ) m n 1 = ( + 1 ) d n 1 =: d n 1. h n 1 h n 2 h n 2 h n 1 h n 2 h n 1

37 The coefficient matrix of the resulting linear algebraic system is given by ( 2 h h n 1 ) h h n 1 1 h 0 ( 2 h h 1 ) h h n 3 ( 2 h n h n 2 ) h n h n h n 2 ( 2 h n h n 1 ) Obviously, the coefficient matrix also is strictly diagonally dominant. Theorem 4.38 Existence and uniqueness of the cubic spline interpolant The complete (resp. natural, periodic) cubic spline interpolant s S 4, is uniquely determined. The slopes m 1,...,m n 1 (resp. m 0,...,m n ) are the solutions of a linear algebraic system with a strictly diagonally dominant coefficient matrix..

38 (ii) Computation via the moments In each subinterval [x i,x i+1 ], 0 i n 1, the polynomials s i = s [xi,x i+1 ] admit the representation as the solution of the local interpolation problem: Compute s i P 3 ([x i,x i+1 ]) as given by such that ( ) s i (x) = a 0 + a 1 (x x i ) + a 2 (x x i ) 2 + a 3 (x x i ) 3, (+) s i (x j ) = f j, i j i + 1, (++) s i (x j ) = M j, i j i + 1. Here, the moments M i in the nodes are unknown and have to be computed by means of the determining equations. The coefficients a k, 0 k 3, in ( ) can be uniquely determined by the conditions (+) and (++). Setting h i := x i+1 x i, we obtain: ( ) s i (x) = (f i 1 6 h2 i M i ) x i+1 x h i + (f i h2 i M i+1 ) x x i h i + M i (x i+1 x) 3 6h i + M i+1 (x x i ) 3 6h i.

39 The condition s C 2 ([a,b]) gives Differentiating in ( ) s i (x) = (f i 1 6 h2 i M i ) x i+1 x h i and inserting the result into ( ) yields ( ) s i 1(x i ) = s i(x i ), 1 i n 1. h i 1 M i (h i 1 + h i ) M i + h i M i+1 = 6 ( f i+1 f i h i Division by (h i 1 + h i ) gives h i 1 h i 1 + h i }{{} =: Σ i M i M i + h i h i 1 + h i }{{} =: Λ i + (f i h2 i M i+1 ) x x i h i + M i (x i+1 x) 3 6h i + M i+1 (x x i ) 3 6h i. M i+1 = f i f i 1 h i 1 ), 1 i n 1. 6 ( f i+1 f i f i f i 1 ) h i 1 + h i h i h }{{ i 1 }, 1 i n 1. =: D i

40 For the complete (rep. natural, periodic) cubic spline interpolant we obtain the additional boundary conditions: (i) Complete spline interpolant (ii) Natural spline interpolant (iii) Periodic spline interpolant 2 M 0 + M 1 = 1 6 h 0 ( f 1 f 0 h 0 f 0), M n M n = 1 6 h n 1 (f n f n f n 1 h n 1 ). M 0 = 0, M n = 0. M 0 = M n, 1 6 h 0 (2 M 0 + M 1 ) h n 1 (M n M n ) = f 1 f 0 h 0 f n f n 1 h n 1.

41 Theorem 4.39 Computation via the moments Computing the complete (resp. natural, periodic) cubic spline interpolant via the moments M 1,...,M n 1 (resp. M 0,...,M n ), the moments can be obtained as the solution of a linear algebraic system with a strictly diagonally dominant coefficient matrix. Remark 4.40 The computation of the cubic spline interpolant When solving the linear algebraic systems for the slopes m i resp. the moments M i, in general we only obtain some approximations m i resp. M i. The first case results in s C 1 ([a,b]) with an approximate coincidence of the second derivatives, whereas in the second case we only get s C([a,b]) with an approximate coincidence of the first derivatives. Therefore, the computation via the slopes is preferable.

42 Convergence properties We consider a sequence of grids n := { a = x n,0 < x n,1 <... < x n,mn = b }, consisting of m n + 1 mutually disjoint nodes. For given m n + 1 values f n,j, 0 j m n, denote by s n S 4, n the cubic spline interpolant. Problem: If f C([a,b]) and f n,j = f(x n,j ), 0 j m n, does the sequence (s n ) n ln converge uniformly on [a,b] to the function f? Definition 4.41 Minimal, maximal mesh width The quantities n := max x n,j+1 x n,j, n := min x n,j+1 x n,j 0 j m n 0 j m n are called maximal resp. minimal mesh width. Definition 4.42 Quasiuniformity A sequence ( n ) n ln of grids is said to be quasiuniform, if there exists a constant β > 0, independent of n, such that n / n β, n ln.

43 Theorem 4.43 Uniform convergence of the cubic spline interpolants Assume that f C([a,b]) and that ( bdelta n ) n ln is a quasiuniform sequence of grids. Denote by (s n ) n ln the associated sequence of complete (resp. natural, periodoc) spline interpolants. Then, there holds: lim n f s n = 0 für n 0, n Under additional smoothness properties of the function f, we obtain the following convergence properties: Theorem 4.44 Uniform convergence of the derivatives Assume that f C 4 ([a,b]) and that ( n ) n ln is a quasiuniform sequence of grids. Denote by (s n ) n ln the associated sequence of spline interpolants. Then, there exist constants C i, 0 i 3, independent of n and f, such that f (i) s (i) n C i β f (4) ( n ) 4 i, 0 i 3, where f (3) s (3) n := max 0 j m n 1 max x [x n,j,x n,j+1 ] f(3) (x) s (3) n (x).

44 The preceding theorem suggests that even better smoothness properties than f C 4 ([a,b]) imply a higher convergence order. This is not the case as shown by the following result: Theorem 4.44 Maximal order of convergence of the cubic spline interpolant Assume that f C([a,b]) and that ( n ) n ln is a quaiuniform sequence of grids. Denote by (s n ) n ln the associated sequence of complete (natural, periodic) cubic spline interpolants. Moreover, assume that there exists µ > 0 such that f s n C ( n ) 4+µ. Then, there holds f (4) (x) = 0, x [a,b], i.e., f P 3 ([a,b]).

45 4.2.4 Geometric properties of cubic spline interpolants r Parameterized curve: y : [a,b] lr, y C 2 ([a,b]) Curvature of the curve in x [a,b]: y κ(x) = (x), κ(x) = 1/r (1 + y (x) 2 ) 3/2 r: radius of the supporting circle For small y (x), i.e., y (x) 1 there holds: y (x) (1 + y (x) 2 ) 3/2 y (x) A suitable measure for the curvature of the curve is the L 2 -norm of the second derivative, i.e.: y 0,2 := ( b a (y (x)) 2 dx) 1/2.

46 2 Theorem 4.46 Geometric property Assume that (x i,f i ), 0 i n, are n + 1 pairs satisfying := {a = x 0 < x 1 <... < x n = b}. Moreover, let s S 4, be a cubic spline interpolant and y C2 ([a,b]) an arbitrary interpolating function such that Then, there holds: Proof: Setting y = s + (y s ), we have: ( ) b a (y ) 2 dx = b a [ s (x) (y (x) s (x)) ] b a = 0. (s )2 dx + 2 s 0,2 y 0,2. b a s (y s b ) dx + (y s )2 dx. For the second term on the right-hand side in ( ), partial integration yields: b a s (y s n 1 ) dx = i=0 = n 1 i=0 x i+1 x i s (y s n 1 ) dx = { [s (y s )] x i+1 x i i=0 a x i+1 x i s }{{} =const. (y s ) dx } { [s (y s )] x i+1 x i s (y s ) x i+1 x i } = [ s (y s ) ] b a = 0.

47 Corollary 4.47 Geometric property Assume that s S 4, is the complete (resp. natural, periodic) cubic spline interpolating in (x i,f i ), 0 i n. Then, for any interpolating function y C 2 ([a,b]), satisfying the same boundary conditions, there holds: s 0,2 y 0,2. Remark 4.48 Spline Flexible wooden ruler used as a drawing device fixed in the nodes x i,0 i n. Stationary state: State for which the bending energy is minimal: E = b a ( y (x) (1 + y (x) 2 ) 3/2 ) 2 dx The cubic spline interpolant approximately describes the stationary state of the drawing device

48 4.2.5 B-splines Construction of a basis of S m,, := {a = x 0 < x 1 <... < x n = b}, m ln, such that ( ) Evaluation with respect to the basis representation is well conditioned, ( ) Basis functions have minimal support in [a,b]. Definition 4.49 B-splines Assume that τ 1 τ 2... τ n is an arbitrary sequence of nodes and f(t) := (t x) + m 1, m ln, x lr. If τ i < τ i+m, 1 i n m, the B-splines N im,1 i n m, of order m,1 m n, are defined as follows: Remark 4.50 B-splines in case m = 1 N i1 ( ) N im (x) := (τ i+m τ i ) f[τ i,..., τ i+m ]. τi τ i+1 For m = 1 it follows that: N i1 (x) = (τ i+1 τ i ) f[τ i, τ i+1 ] = (τ i+1 τ i ) (τ i+1 x) 0 (τ + i x) 0 + τ i+1 τ = i = 1, τ i x τ i+1 0, else

49 The B-splines satisfy a recursion which can be deduced from ( ) by using the Leibniz-rule for divided differences: Lemma 4.51 Leibniz-rule for divided differences Assume g,h C n ([a,b]) and x i [a,b], 0 i n. Then, there holds: (gh)[x 0,...,x n ] = Theorem 4.52 Recursion for B-splines For m > 1, the B-splines N im satisfy the recursion ( ) N im (x) = n i=0 x τ i τ i+m 1 τ i N i,m 1 (x) + g[x 0,...,x i ] h[x i,...,x n ]. τ i+m x τ i+m τ i+1 N i+1,m 1 (x). Here, it has to be observed that in case of multiple nodes the corresponding terms on the right-hand side in ( ) are omitted according to the convention 0/0 = 0.

50 Proof: Setting g(t) := (t x) and h(t) := (t x) m 2 + and using the Leibniz-rule, we obtain N im (x) = (τ i+m τ i ) (gh)[τ i,..., τ i+m ] = (τ i+m τ i ) m k=0 g[τ i,..., τ i+k ] h[τ i+k,..., τ i+m ]. In view of the linearity of g, all divided differences of higher than first order disappear: N im (x) = (τ i+m τ i ) { g[τ i ] h[τ i,..., τ i+m ] + g[τ i, τ i+1 ] h[τ }{{} i+1,..., τ i+m ] } = =1 = (τ i+m τ i ) { (τ i x) h[τ i+1,..., τ i+m ] h[τ i,..., τ i+m 1 ] + h[τ i+1,..., τ i+m ] } = τ i+m τ i = = x τ i (τ i+m 1 τ i ) h[τ i,..., τ i+m 1 ] + τ i+m 1 τ i x τ i N i,m 1 (x) + τ i+m 1 τ i τ i+m x τ i+m τ i+1 N i+1,m 1 (x). τ i+m x τ i+m τ i+1 (τ i+m τ i+1 ) h[τ i+1,..., τ i+m ] =

51 Lemma 4.53 Properties of B-splines The B-splines N im, 1 i n m, as defined by ( ) have the following properties: Corollary 4.54 Multiple nodes Assume that τ i is a k-fold node, i.e., (B1) supp N im [τ i, τ i+m ], (B2) N im (x) 0, x lr, (B3) N im [τ j,τ j+1 ] P m 1 ([τ j, τ j+1 ]). τ i 1 < τ i = τ i+1 =... = τ i+k 1 < τ i+k. Then, N im is at least (m k 1) times continuously differentiable in x = τ i and N im(x) = (m 1) [ N i,m 1 (x) τ i+m 1 τ i N i+1,m 1(x) τ i+m τ i+1 ].

52 Construction of a basis of S m, For the grid := {a = x 0 <... < x n = b} we define extended nodes T = {τ i } 2m+n 1 i=1 with m-fold nodes in a = x 0 and b = x n according to : a = x 0 < x 1 <... < x n = b T : τ 1 =... = τ m < τ m+1 <... < τ m+n =... = τ 2m+n 1 In view of (B3) we have N im [xj,x j+1 ] P m 1 ([x j,x j+1 ]), 0 j n 1, and Corollary 4.54 implies that N im is (m 2) times continuously differentiable in x = x j, 1 j n 1,. Hence, we get: N im S m,, 1 i n + m 1. The linear independence of the N im remains to be shown.

53 Lemma 4.55 Marsden identity Let T = {τ i } n+2m 1 i=1 be the extended sequence of nodes and for s lr assume that ϕ im (s) := m 1 (τ i+j s). Then, for all x [a,b] the so-called Marsden identity holds true: ( ) j=1 (x s) m 1 = n+m 1 i=1 ϕ im (s) N im (x). Proof: Induction on m. Corollary 4.56 Partition of unity The B-splines N im, 1 i n + m 1, form a partition of unity on [a,b] according to (P1) P m 1 ([a,b]) span {N 1m,...,N n+m 1,m }, (P2) n+m 1 i=1 N im (x) = 1, x [a,b].

54 Proof: Taking into account the Marsden identity ( ) (x s) m 1 = n+m 1 i=1 ϕ im (s) N im (x) for the l-th derivative of the function f(s) := (x s) m 1 it follows that f (l) (0) = (m 1)(m 2)...(m l) ( 1) l x m l 1 = n+m 1 In particular, for m l 1 = k we obtain: x k = ( 1) m k 1 (m 1)...(k + 1) For k = 0, the assertion (P2) follows in view of ϕ (m 1) im n+m 1 i=1 i=1 ϕ (m k 1) im (0) N im (x). ϕ (l) im (0) N im (x). (s) = ( m 1 (τ i+j s)) (m 1) = [ ( 1) m 1 s m ] (m 1) = ( 1) m 1 (m 1)!. j=1

55 Theorem 4.57 Linear independence of the B-splines The B-splines N im, 1 i n + m 1, are linear independent, i.e., n+m 1 i=1 c i N im (x) = 0, x [a,b] = c i = 0, 1 i n + m 1. Proof: Consider [x j,x j+1 ] = [τ m+j, τ m+j+1 ], 0 j n 1. Since N im [τ m+j,τ m+j+1 ] = 0, i / {j + 1,...,j + m}, it follows that (+) j+m i=j+1 c i N im (x) = 0, x [x j,x j+1 ]. In view of (P1), p 0 P m 1 ([a,b]), p 0 0, can be written as a linear combination of the B-splines N im,1 i n + m 1,. Since p 0 [xj,x j+1 ] is uniquely determined by m = dim P m 1 ([a,b]) values, taking into account (+), the N im, j + 1 i j + m, must be linearly independent, i.e., we must have c i = 0, j + 1 i j + m.

56 Korollar 4.58 de Boor points Every spline s S m, admits the unique representation s = n+m 1 i=1 d i N im. The coefficients d i, 1 i n + m 1, are called the de Boor points of s. Theorem 4.59 Recursive evaluation in the B-spline representation Let s S m, and x [a,b]. Then, s (x) can be recursively computed according to s (x) = n+m 1 i=j+1 d j i(x) N i,m j (x), where d 0 i (x) := d i and for j > 0 there holds: d j i(x) := x τ i τ i+m j τ d j 1 i i (x) + τ i+m j x τ i+m j τ d j 1 i i 1(x), τ i+m j τ i 0, else. In particular, we have s(x) = d m 1 i (x), x [τ i, τ i+1 ]. Proof: Induction argument.

57 Remark 4.60 de Boor algorithm The value s (x) = di m 1 (x) is obtained by a successive convex combination of the de Boor points according to the following scheme d 1 d0 i m+1(x) d d 3 d 2 6 d4 d 5 d 1 i m+2(x) d 0 i m+2(x) d m 1 i d 0 i 1(x) d 1 i (x) d 0 i (x) (x)

58 Theorem 4.61 Condition of the evaluation in the B-spline representation There exists a constant D m > 0, depending only on the order m, such that ( ) D m max d i n+m 1 1 i n+m 1 i=1 d i N im max 1 i n+m 1 d i. Remark 4.62 About the condition of the evaluation in the B-spline representation According to ( ), perturbations in s (x) = i d i N im (x) of a spline s S m, as well as in the coefficients d i can be mutually estimated. Therefore, the evaluation in the B-spline representation is well conditioned. For this reason, the basis N im, 1 i n + m 1, is referred to as a well conditioned basis.

59 4.3 Trigonometric interpolation Discrete Fourier transformation Reminder from calculus: Fourier transformation and Fourier series The Fourier transform of a 2π-periodic function f : lr C is a function ˆf := Ff : Z C with ( ) ˆf(k) = 1 2π f(t) exp( ikt) dt, k Z. 2π 0 The inverse mapping f = F 1ˆf is given by the Fourier series ( ) f(t) = + ˆf(k) exp(ikt). k= Choosing an equidistant partition of [0,2π) with respect to the nodes t j := 2πj/n,0 j n 1 n ln, and using the trapezoidal rule ( ) yields: 2π 0 ˆf(k). = 1 n g(t) dt. = 2π n n 1 j=0 n 1 j=0 g(t j ), f(t j ) exp( 2πijk/n).

60 Definition 4.63 Discrete Fourier transformation Assume that f : lr C is 2π-periodic, t j := 2πj/n, 0 j n 1, n ln, and f j := f(t j ), 0 j n 1. Then, the function F n : C n C n, (f j ) (c j ) c k = 1 n n 1 j=0 f j exp( 2πijk/n), 0 k n 1 is called the discrete Fourier transformation. The inverse mapping Fn 1 ( ) f j = n 1 c k exp(2πijk/n), 0 j n 1. k=0 Remark 4.64 Truncated Fourier series If n = 2m + 1, then setting c k = c m+k, m k < 0, we obtain: f j = +m k= m c k exp(2πijk/n). Hence, ( ) can be interpreted as a truncated Fourier series. is given by

61 Definition 4.65 Trigonometric polynomial Let c k C, 0 k n 1, n ln. Then T n 1 (t) = n 1 is called a trigonometric polynomial. k=0 c k exp(ikt), t [0,2π) Definition 4.66 Trigonometric interpolation problem Assume that f : lr C is 2π-periodic, t j := 2πj/n, 0 j n 1, n ln, and f j = f(t j ), 0 j n 1. The computation of a trigonometric polynomial T n 1 such that ( ) T n 1 (t j ) = f j, 0 j n 1, is called a trigonometric interpolation problem. Theorem 4.57 Solution of the trigonometric interpolation problem The trigonometric interpolation problem ( ) is uniquely solvable. The coefficients c k, 0 k n 1, are given by c k = 1 n n 1 j=0 f j exp( 2πijk/n)

62 Proof: Denoting by ω j = exp(2πij/n), 0 j n 1 the n-th unit roots, ( ) is equivalent to the complex polynomial interpolation problem: Compute T n 1 (z) = n 1 k=0 c k z k, z = exp(it) such that T n 1 (ω j ) = f j, 0 j n 1. Since ω j ω l for 0 j l n 1, the interpolation problem is uniquely solvable. The representation of the coefficients according to c k = 1 n follows from the orthogonality property 1 n n 1 j=0 n 1 j=0 f j exp( 2πijk/n) ω k j ω l j = δ kl.

63 4.3.2 Fast Fourier Transform (FFT) The Fast Fourier Transform is the efficient implementation of the discrete Fourier transform ( ) resp. of the inverse mapping in case n = 2 p, p ln. ( ) c k = 1 n n 1 j=0 f j = n 1 k=0 f j exp( 2πijk/n), 0 k n 1 c k exp(2πijk/n), 0 j n 1 Explanation of the FFT for ( ): Computational work in case of a naive approach: O(n 2 ) complex additions, multiplications, evaluation of trigonometric functions Idea for a reduction of the computational work: Let n = 2m, m = 2 p 1. Partition ( ) ( ) w.r.t. k into even (2k) and odd (2k + 1) terms, ( ) w.r.t. j into the lower half (0,...,m 1) and into the upper half (m,...,2m 1).

64 For 0 j m 1, the partition leads to: (+) f j = m 1 c 2k exp(2πijk/m) + exp(πij/m) m 1 k=0 (++) f j+m = m 1 k=0 k=0 c 2k exp(2πijk/m) exp(πij/m) m 1 k=0 c 2k+1 exp(2πijk/m), c 2k+1 exp(2πijk/m). Since both partial sums in (+) also appear in (++): Reduction of the computational work by 50 %, but additionally m additions resp. subtractions, multiplications and evaluations of trigonometric functions ( working costs ). Recursive application of the splitting yields the following partition consisting of p steps f j 0 j 2 p 1 1.step: f j f j+2 p 1 0 j 2 p step: f j f j+2 p 2 f j+2 p 1 f j+2 p 1 +2 p 2 0 j 2p 2 1 p-th step: f 0 f 1 f 2 n 2 f 2 n 1

65 Computational work (only sum of the working costs): p n/2 additions, subtractions and multiplications n 2 + n n 2 p = n p i=1 2 i 2n trigonometric functions Since n = 2 p and hence, p = log 2 n = O(n log 2 n) essential operations Practical implementation of the FFT: Input: c k, 0 k n 1 in array c[0,...,n 1] Output: f j, 0 j n 1 in the same array, i.e., the c-array is overwritten Realization: Sorting and combination steps 1. Sorting step: Sort all components c k, 0 k n 1, according to the principle even before odd : p p p 1

66 p-th combination step: where f j = ĉ j + exp(πij/m) ĉ j+m, f j+m = ĉ j exp(πij/m) ĉ j+m, 0 j m 1, ĉ j = m 1 k=0 c k exp(2πijk/m), ĉ j+m = m 1 f j and f j+m are stored in ĉ j and ĉ j+m. k=0 c k+m exp(2πijk/m), 0 j m 1. ^c j c^ j+m x exp( πij/m) + butterfly diagram j j+m

(0, 0), (1, ), (2, ), (3, ), (4, ), (5, ), (6, ).

(0, 0), (1, ), (2, ), (3, ), (4, ), (5, ), (6, ). 1 Interpolation: The method of constructing new data points within the range of a finite set of known data points That is if (x i, y i ), i = 1, N are known, with y i the dependent variable and x i [x

More information

3.1 Interpolation and the Lagrange Polynomial

3.1 Interpolation and the Lagrange Polynomial MATH 4073 Chapter 3 Interpolation and Polynomial Approximation Fall 2003 1 Consider a sample x x 0 x 1 x n y y 0 y 1 y n. Can we get a function out of discrete data above that gives a reasonable estimate

More information

Interpolation. Chapter Interpolation. 7.2 Existence, Uniqueness and conditioning

Interpolation. Chapter Interpolation. 7.2 Existence, Uniqueness and conditioning 76 Chapter 7 Interpolation 7.1 Interpolation Definition 7.1.1. Interpolation of a given function f defined on an interval [a,b] by a polynomial p: Given a set of specified points {(t i,y i } n with {t

More information

Chapter 4: Interpolation and Approximation. October 28, 2005

Chapter 4: Interpolation and Approximation. October 28, 2005 Chapter 4: Interpolation and Approximation October 28, 2005 Outline 1 2.4 Linear Interpolation 2 4.1 Lagrange Interpolation 3 4.2 Newton Interpolation and Divided Differences 4 4.3 Interpolation Error

More information

Numerical Analysis: Interpolation Part 1

Numerical Analysis: Interpolation Part 1 Numerical Analysis: Interpolation Part 1 Computer Science, Ben-Gurion University (slides based mostly on Prof. Ben-Shahar s notes) 2018/2019, Fall Semester BGU CS Interpolation (ver. 1.00) AY 2018/2019,

More information

Lecture Note 3: Polynomial Interpolation. Xiaoqun Zhang Shanghai Jiao Tong University

Lecture Note 3: Polynomial Interpolation. Xiaoqun Zhang Shanghai Jiao Tong University Lecture Note 3: Polynomial Interpolation Xiaoqun Zhang Shanghai Jiao Tong University Last updated: October 24, 2013 1.1 Introduction We first look at some examples. Lookup table for f(x) = 2 π x 0 e x2

More information

Interpolation. 1. Judd, K. Numerical Methods in Economics, Cambridge: MIT Press. Chapter

Interpolation. 1. Judd, K. Numerical Methods in Economics, Cambridge: MIT Press. Chapter Key References: Interpolation 1. Judd, K. Numerical Methods in Economics, Cambridge: MIT Press. Chapter 6. 2. Press, W. et. al. Numerical Recipes in C, Cambridge: Cambridge University Press. Chapter 3

More information

Scientific Computing

Scientific Computing 2301678 Scientific Computing Chapter 2 Interpolation and Approximation Paisan Nakmahachalasint Paisan.N@chula.ac.th Chapter 2 Interpolation and Approximation p. 1/66 Contents 1. Polynomial interpolation

More information

Lecture Note 3: Interpolation and Polynomial Approximation. Xiaoqun Zhang Shanghai Jiao Tong University

Lecture Note 3: Interpolation and Polynomial Approximation. Xiaoqun Zhang Shanghai Jiao Tong University Lecture Note 3: Interpolation and Polynomial Approximation Xiaoqun Zhang Shanghai Jiao Tong University Last updated: October 10, 2015 2 Contents 1.1 Introduction................................ 3 1.1.1

More information

2. Interpolation. Closing the Gaps of Discretization...

2. Interpolation. Closing the Gaps of Discretization... 2. Interpolation Closing the Gaps of Discretization... Numerisches Programmieren, Hans-Joachim Bungartz page 1 of 48 2.1. Preliminary Remark The Approximation Problem Problem: Approximate a (fully or partially

More information

Lectures 9-10: Polynomial and piecewise polynomial interpolation

Lectures 9-10: Polynomial and piecewise polynomial interpolation Lectures 9-1: Polynomial and piecewise polynomial interpolation Let f be a function, which is only known at the nodes x 1, x,, x n, ie, all we know about the function f are its values y j = f(x j ), j

More information

Lecture 10 Polynomial interpolation

Lecture 10 Polynomial interpolation Lecture 10 Polynomial interpolation Weinan E 1,2 and Tiejun Li 2 1 Department of Mathematics, Princeton University, weinan@princeton.edu 2 School of Mathematical Sciences, Peking University, tieli@pku.edu.cn

More information

We consider the problem of finding a polynomial that interpolates a given set of values:

We consider the problem of finding a polynomial that interpolates a given set of values: Chapter 5 Interpolation 5. Polynomial Interpolation We consider the problem of finding a polynomial that interpolates a given set of values: x x 0 x... x n y y 0 y... y n where the x i are all distinct.

More information

CHAPTER 3 Further properties of splines and B-splines

CHAPTER 3 Further properties of splines and B-splines CHAPTER 3 Further properties of splines and B-splines In Chapter 2 we established some of the most elementary properties of B-splines. In this chapter our focus is on the question What kind of functions

More information

Cubic Splines. Antony Jameson. Department of Aeronautics and Astronautics, Stanford University, Stanford, California, 94305

Cubic Splines. Antony Jameson. Department of Aeronautics and Astronautics, Stanford University, Stanford, California, 94305 Cubic Splines Antony Jameson Department of Aeronautics and Astronautics, Stanford University, Stanford, California, 94305 1 References on splines 1. J. H. Ahlberg, E. N. Nilson, J. H. Walsh. Theory of

More information

Polynomial Interpolation with n + 1 nodes

Polynomial Interpolation with n + 1 nodes Polynomial Interpolation with n + 1 nodes Given n + 1 distinct points (x 0, f (x 0 )), (x 1, f (x 1 )),, (x n, f (x n )), Interpolating polynomial of degree n P(x) = f (x 0 )L 0 (x) + f (x 1 )L 1 (x) +

More information

University of Houston, Department of Mathematics Numerical Analysis, Fall 2005

University of Houston, Department of Mathematics Numerical Analysis, Fall 2005 3 Numerical Solution of Nonlinear Equations and Systems 3.1 Fixed point iteration Reamrk 3.1 Problem Given a function F : lr n lr n, compute x lr n such that ( ) F(x ) = 0. In this chapter, we consider

More information

Scientific Computing: An Introductory Survey

Scientific Computing: An Introductory Survey Scientific Computing: An Introductory Survey Chapter 7 Interpolation Prof. Michael T. Heath Department of Computer Science University of Illinois at Urbana-Champaign Copyright c 2002. Reproduction permitted

More information

Numerical Analysis: Approximation of Functions

Numerical Analysis: Approximation of Functions Numerical Analysis: Approximation of Functions Mirko Navara http://cmp.felk.cvut.cz/ navara/ Center for Machine Perception, Department of Cybernetics, FEE, CTU Karlovo náměstí, building G, office 104a

More information

Chapter 3 Interpolation and Polynomial Approximation

Chapter 3 Interpolation and Polynomial Approximation Chapter 3 Interpolation and Polynomial Approximation Per-Olof Persson persson@berkeley.edu Department of Mathematics University of California, Berkeley Math 128A Numerical Analysis Polynomial Interpolation

More information

Numerical Methods I: Interpolation (cont ed)

Numerical Methods I: Interpolation (cont ed) 1/20 Numerical Methods I: Interpolation (cont ed) Georg Stadler Courant Institute, NYU stadler@cims.nyu.edu November 30, 2017 Interpolation Things you should know 2/20 I Lagrange vs. Hermite interpolation

More information

Chapter 2 Interpolation

Chapter 2 Interpolation Chapter 2 Interpolation Experiments usually produce a discrete set of data points (x i, f i ) which represent the value of a function f (x) for a finite set of arguments {x 0...x n }. If additional data

More information

Mathematics for Engineers. Numerical mathematics

Mathematics for Engineers. Numerical mathematics Mathematics for Engineers Numerical mathematics Integers Determine the largest representable integer with the intmax command. intmax ans = int32 2147483647 2147483647+1 ans = 2.1475e+09 Remark The set

More information

In practice one often meets a situation where the function of interest, f(x), is only represented by a discrete set of tabulated points,

In practice one often meets a situation where the function of interest, f(x), is only represented by a discrete set of tabulated points, 1 Interpolation 11 Introduction In practice one often meets a situation where the function of interest, f(x), is only represented by a discrete set of tabulated points, {x i, y i = f(x i ) i = 1 n, obtained,

More information

Introductory Numerical Analysis

Introductory Numerical Analysis Introductory Numerical Analysis Lecture Notes December 16, 017 Contents 1 Introduction to 1 11 Floating Point Numbers 1 1 Computational Errors 13 Algorithm 3 14 Calculus Review 3 Root Finding 5 1 Bisection

More information

LECTURE NOTES ELEMENTARY NUMERICAL METHODS. Eusebius Doedel

LECTURE NOTES ELEMENTARY NUMERICAL METHODS. Eusebius Doedel LECTURE NOTES on ELEMENTARY NUMERICAL METHODS Eusebius Doedel TABLE OF CONTENTS Vector and Matrix Norms 1 Banach Lemma 20 The Numerical Solution of Linear Systems 25 Gauss Elimination 25 Operation Count

More information

Topics in Fourier analysis - Lecture 2.

Topics in Fourier analysis - Lecture 2. Topics in Fourier analysis - Lecture 2. Akos Magyar 1 Infinite Fourier series. In this section we develop the basic theory of Fourier series of periodic functions of one variable, but only to the extent

More information

you expect to encounter difficulties when trying to solve A x = b? 4. A composite quadrature rule has error associated with it in the following form

you expect to encounter difficulties when trying to solve A x = b? 4. A composite quadrature rule has error associated with it in the following form Qualifying exam for numerical analysis (Spring 2017) Show your work for full credit. If you are unable to solve some part, attempt the subsequent parts. 1. Consider the following finite difference: f (0)

More information

MATH 5640: Fourier Series

MATH 5640: Fourier Series MATH 564: Fourier Series Hung Phan, UMass Lowell September, 8 Power Series A power series in the variable x is a series of the form a + a x + a x + = where the coefficients a, a,... are real or complex

More information

Numerical Methods I: Polynomial Interpolation

Numerical Methods I: Polynomial Interpolation 1/31 Numerical Methods I: Polynomial Interpolation Georg Stadler Courant Institute, NYU stadler@cims.nyu.edu November 16, 2017 lassical polynomial interpolation Given f i := f(t i ), i =0,...,n, we would

More information

Vectors in Function Spaces

Vectors in Function Spaces Jim Lambers MAT 66 Spring Semester 15-16 Lecture 18 Notes These notes correspond to Section 6.3 in the text. Vectors in Function Spaces We begin with some necessary terminology. A vector space V, also

More information

The Closed Form Reproducing Polynomial Particle Shape Functions for Meshfree Particle Methods

The Closed Form Reproducing Polynomial Particle Shape Functions for Meshfree Particle Methods The Closed Form Reproducing Polynomial Particle Shape Functions for Meshfree Particle Methods by Hae-Soo Oh Department of Mathematics, University of North Carolina at Charlotte, Charlotte, NC 28223 June

More information

Polynomial Interpolation

Polynomial Interpolation Chapter Polynomial Interpolation. Introduction Suppose that we have a two sets of n + real numbers {x i } n+ i= and {y i} n+ i=, and that the x i are strictly increasing: x < x < x 2 < < x n. Interpolation

More information

Radial Basis Functions I

Radial Basis Functions I Radial Basis Functions I Tom Lyche Centre of Mathematics for Applications, Department of Informatics, University of Oslo November 14, 2008 Today Reformulation of natural cubic spline interpolation Scattered

More information

CHAPTER 4. Interpolation

CHAPTER 4. Interpolation CHAPTER 4 Interpolation 4.1. Introduction We will cover sections 4.1 through 4.12 in the book. Read section 4.1 in the book on your own. The basic problem of one-dimensional interpolation is this: Given

More information

Finite Elements. Colin Cotter. January 18, Colin Cotter FEM

Finite Elements. Colin Cotter. January 18, Colin Cotter FEM Finite Elements January 18, 2019 The finite element Given a triangulation T of a domain Ω, finite element spaces are defined according to 1. the form the functions take (usually polynomial) when restricted

More information

CALCULUS JIA-MING (FRANK) LIOU

CALCULUS JIA-MING (FRANK) LIOU CALCULUS JIA-MING (FRANK) LIOU Abstract. Contents. Power Series.. Polynomials and Formal Power Series.2. Radius of Convergence 2.3. Derivative and Antiderivative of Power Series 4.4. Power Series Expansion

More information

REAL AND COMPLEX ANALYSIS

REAL AND COMPLEX ANALYSIS REAL AND COMPLE ANALYSIS Third Edition Walter Rudin Professor of Mathematics University of Wisconsin, Madison Version 1.1 No rights reserved. Any part of this work can be reproduced or transmitted in any

More information

Outline. 1 Interpolation. 2 Polynomial Interpolation. 3 Piecewise Polynomial Interpolation

Outline. 1 Interpolation. 2 Polynomial Interpolation. 3 Piecewise Polynomial Interpolation Outline Interpolation 1 Interpolation 2 3 Michael T. Heath Scientific Computing 2 / 56 Interpolation Motivation Choosing Interpolant Existence and Uniqueness Basic interpolation problem: for given data

More information

MA2501 Numerical Methods Spring 2015

MA2501 Numerical Methods Spring 2015 Norwegian University of Science and Technology Department of Mathematics MA5 Numerical Methods Spring 5 Solutions to exercise set 9 Find approximate values of the following integrals using the adaptive

More information

(f(x) P 3 (x)) dx. (a) The Lagrange formula for the error is given by

(f(x) P 3 (x)) dx. (a) The Lagrange formula for the error is given by 1. QUESTION (a) Given a nth degree Taylor polynomial P n (x) of a function f(x), expanded about x = x 0, write down the Lagrange formula for the truncation error, carefully defining all its elements. How

More information

Chapter 3 Conforming Finite Element Methods 3.1 Foundations Ritz-Galerkin Method

Chapter 3 Conforming Finite Element Methods 3.1 Foundations Ritz-Galerkin Method Chapter 3 Conforming Finite Element Methods 3.1 Foundations 3.1.1 Ritz-Galerkin Method Let V be a Hilbert space, a(, ) : V V lr a bounded, V-elliptic bilinear form and l : V lr a bounded linear functional.

More information

which arises when we compute the orthogonal projection of a vector y in a subspace with an orthogonal basis. Hence assume that P y = A ij = x j, x i

which arises when we compute the orthogonal projection of a vector y in a subspace with an orthogonal basis. Hence assume that P y = A ij = x j, x i MODULE 6 Topics: Gram-Schmidt orthogonalization process We begin by observing that if the vectors {x j } N are mutually orthogonal in an inner product space V then they are necessarily linearly independent.

More information

Lagrange Interpolation and Neville s Algorithm. Ron Goldman Department of Computer Science Rice University

Lagrange Interpolation and Neville s Algorithm. Ron Goldman Department of Computer Science Rice University Lagrange Interpolation and Neville s Algorithm Ron Goldman Department of Computer Science Rice University Tension between Mathematics and Engineering 1. How do Mathematicians actually represent curves

More information

Numerical Analysis Comprehensive Exam Questions

Numerical Analysis Comprehensive Exam Questions Numerical Analysis Comprehensive Exam Questions 1. Let f(x) = (x α) m g(x) where m is an integer and g(x) C (R), g(α). Write down the Newton s method for finding the root α of f(x), and study the order

More information

APPENDIX A. Background Mathematics. A.1 Linear Algebra. Vector algebra. Let x denote the n-dimensional column vector with components x 1 x 2.

APPENDIX A. Background Mathematics. A.1 Linear Algebra. Vector algebra. Let x denote the n-dimensional column vector with components x 1 x 2. APPENDIX A Background Mathematics A. Linear Algebra A.. Vector algebra Let x denote the n-dimensional column vector with components 0 x x 2 B C @. A x n Definition 6 (scalar product). The scalar product

More information

Polynomials. p n (x) = a n x n + a n 1 x n 1 + a 1 x + a 0, where

Polynomials. p n (x) = a n x n + a n 1 x n 1 + a 1 x + a 0, where Polynomials Polynomials Evaluation of polynomials involve only arithmetic operations, which can be done on today s digital computers. We consider polynomials with real coefficients and real variable. p

More information

MATH 205C: STATIONARY PHASE LEMMA

MATH 205C: STATIONARY PHASE LEMMA MATH 205C: STATIONARY PHASE LEMMA For ω, consider an integral of the form I(ω) = e iωf(x) u(x) dx, where u Cc (R n ) complex valued, with support in a compact set K, and f C (R n ) real valued. Thus, I(ω)

More information

Interpolation Theory

Interpolation Theory Numerical Analysis Massoud Malek Interpolation Theory The concept of interpolation is to select a function P (x) from a given class of functions in such a way that the graph of y P (x) passes through the

More information

290 J.M. Carnicer, J.M. Pe~na basis (u 1 ; : : : ; u n ) consisting of minimally supported elements, yet also has a basis (v 1 ; : : : ; v n ) which f

290 J.M. Carnicer, J.M. Pe~na basis (u 1 ; : : : ; u n ) consisting of minimally supported elements, yet also has a basis (v 1 ; : : : ; v n ) which f Numer. Math. 67: 289{301 (1994) Numerische Mathematik c Springer-Verlag 1994 Electronic Edition Least supported bases and local linear independence J.M. Carnicer, J.M. Pe~na? Departamento de Matematica

More information

MATH 220 solution to homework 4

MATH 220 solution to homework 4 MATH 22 solution to homework 4 Problem. Define v(t, x) = u(t, x + bt), then v t (t, x) a(x + u bt) 2 (t, x) =, t >, x R, x2 v(, x) = f(x). It suffices to show that v(t, x) F = max y R f(y). We consider

More information

Advanced Computational Fluid Dynamics AA215A Lecture 2 Approximation Theory. Antony Jameson

Advanced Computational Fluid Dynamics AA215A Lecture 2 Approximation Theory. Antony Jameson Advanced Computational Fluid Dynamics AA5A Lecture Approximation Theory Antony Jameson Winter Quarter, 6, Stanford, CA Last revised on January 7, 6 Contents Approximation Theory. Least Squares Approximation

More information

Integration, differentiation, and root finding. Phys 420/580 Lecture 7

Integration, differentiation, and root finding. Phys 420/580 Lecture 7 Integration, differentiation, and root finding Phys 420/580 Lecture 7 Numerical integration Compute an approximation to the definite integral I = b Find area under the curve in the interval Trapezoid Rule:

More information

Numerical Analysis Preliminary Exam 10 am to 1 pm, August 20, 2018

Numerical Analysis Preliminary Exam 10 am to 1 pm, August 20, 2018 Numerical Analysis Preliminary Exam 1 am to 1 pm, August 2, 218 Instructions. You have three hours to complete this exam. Submit solutions to four (and no more) of the following six problems. Please start

More information

for all subintervals I J. If the same is true for the dyadic subintervals I D J only, we will write ϕ BMO d (J). In fact, the following is true

for all subintervals I J. If the same is true for the dyadic subintervals I D J only, we will write ϕ BMO d (J). In fact, the following is true 3 ohn Nirenberg inequality, Part I A function ϕ L () belongs to the space BMO() if sup ϕ(s) ϕ I I I < for all subintervals I If the same is true for the dyadic subintervals I D only, we will write ϕ BMO

More information

7: FOURIER SERIES STEVEN HEILMAN

7: FOURIER SERIES STEVEN HEILMAN 7: FOURIER SERIES STEVE HEILMA Contents 1. Review 1 2. Introduction 1 3. Periodic Functions 2 4. Inner Products on Periodic Functions 3 5. Trigonometric Polynomials 5 6. Periodic Convolutions 7 7. Fourier

More information

CHAPTER 10 Shape Preserving Properties of B-splines

CHAPTER 10 Shape Preserving Properties of B-splines CHAPTER 10 Shape Preserving Properties of B-splines In earlier chapters we have seen a number of examples of the close relationship between a spline function and its B-spline coefficients This is especially

More information

An idea how to solve some of the problems. diverges the same must hold for the original series. T 1 p T 1 p + 1 p 1 = 1. dt = lim

An idea how to solve some of the problems. diverges the same must hold for the original series. T 1 p T 1 p + 1 p 1 = 1. dt = lim An idea how to solve some of the problems 5.2-2. (a) Does not converge: By multiplying across we get Hence 2k 2k 2 /2 k 2k2 k 2 /2 k 2 /2 2k 2k 2 /2 k. As the series diverges the same must hold for the

More information

Some notes on Chapter 8: Polynomial and Piecewise-polynomial Interpolation

Some notes on Chapter 8: Polynomial and Piecewise-polynomial Interpolation Some notes on Chapter 8: Polynomial and Piecewise-polynomial Interpolation See your notes. 1. Lagrange Interpolation (8.2) 1 2. Newton Interpolation (8.3) different form of the same polynomial as Lagrange

More information

CS 450 Numerical Analysis. Chapter 8: Numerical Integration and Differentiation

CS 450 Numerical Analysis. Chapter 8: Numerical Integration and Differentiation Lecture slides based on the textbook Scientific Computing: An Introductory Survey by Michael T. Heath, copyright c 2018 by the Society for Industrial and Applied Mathematics. http://www.siam.org/books/cl80

More information

Scientific Computing WS 2017/2018. Lecture 18. Jürgen Fuhrmann Lecture 18 Slide 1

Scientific Computing WS 2017/2018. Lecture 18. Jürgen Fuhrmann Lecture 18 Slide 1 Scientific Computing WS 2017/2018 Lecture 18 Jürgen Fuhrmann juergen.fuhrmann@wias-berlin.de Lecture 18 Slide 1 Lecture 18 Slide 2 Weak formulation of homogeneous Dirichlet problem Search u H0 1 (Ω) (here,

More information

Chapter 1 Foundations of Elliptic Boundary Value Problems 1.1 Euler equations of variational problems

Chapter 1 Foundations of Elliptic Boundary Value Problems 1.1 Euler equations of variational problems Chapter 1 Foundations of Elliptic Boundary Value Problems 1.1 Euler equations of variational problems Elliptic boundary value problems often occur as the Euler equations of variational problems the latter

More information

Optimal global rates of convergence for interpolation problems with random design

Optimal global rates of convergence for interpolation problems with random design Optimal global rates of convergence for interpolation problems with random design Michael Kohler 1 and Adam Krzyżak 2, 1 Fachbereich Mathematik, Technische Universität Darmstadt, Schlossgartenstr. 7, 64289

More information

Chapter 1 Numerical approximation of data : interpolation, least squares method

Chapter 1 Numerical approximation of data : interpolation, least squares method Chapter 1 Numerical approximation of data : interpolation, least squares method I. Motivation 1 Approximation of functions Evaluation of a function Which functions (f : R R) can be effectively evaluated

More information

1 Piecewise Cubic Interpolation

1 Piecewise Cubic Interpolation Piecewise Cubic Interpolation Typically the problem with piecewise linear interpolation is the interpolant is not differentiable as the interpolation points (it has a kinks at every interpolation point)

More information

Laplace s Equation. Chapter Mean Value Formulas

Laplace s Equation. Chapter Mean Value Formulas Chapter 1 Laplace s Equation Let be an open set in R n. A function u C 2 () is called harmonic in if it satisfies Laplace s equation n (1.1) u := D ii u = 0 in. i=1 A function u C 2 () is called subharmonic

More information

A class of non-convex polytopes that admit no orthonormal basis of exponentials

A class of non-convex polytopes that admit no orthonormal basis of exponentials A class of non-convex polytopes that admit no orthonormal basis of exponentials Mihail N. Kolountzakis and Michael Papadimitrakis 1 Abstract A conjecture of Fuglede states that a bounded measurable set

More information

Math 321 Final Examination April 1995 Notation used in this exam: N. (1) S N (f,x) = f(t)e int dt e inx.

Math 321 Final Examination April 1995 Notation used in this exam: N. (1) S N (f,x) = f(t)e int dt e inx. Math 321 Final Examination April 1995 Notation used in this exam: N 1 π (1) S N (f,x) = f(t)e int dt e inx. 2π n= N π (2) C(X, R) is the space of bounded real-valued functions on the metric space X, equipped

More information

Mathematical Methods for Physics and Engineering

Mathematical Methods for Physics and Engineering Mathematical Methods for Physics and Engineering Lecture notes for PDEs Sergei V. Shabanov Department of Mathematics, University of Florida, Gainesville, FL 32611 USA CHAPTER 1 The integration theory

More information

2016 EF Exam Texas A&M High School Students Contest Solutions October 22, 2016

2016 EF Exam Texas A&M High School Students Contest Solutions October 22, 2016 6 EF Exam Texas A&M High School Students Contest Solutions October, 6. Assume that p and q are real numbers such that the polynomial x + is divisible by x + px + q. Find q. p Answer Solution (without knowledge

More information

n 1 f n 1 c 1 n+1 = c 1 n $ c 1 n 1. After taking logs, this becomes

n 1 f n 1 c 1 n+1 = c 1 n $ c 1 n 1. After taking logs, this becomes Root finding: 1 a The points {x n+1, }, {x n, f n }, {x n 1, f n 1 } should be co-linear Say they lie on the line x + y = This gives the relations x n+1 + = x n +f n = x n 1 +f n 1 = Eliminating α and

More information

Geometric Interpolation by Planar Cubic Polynomials

Geometric Interpolation by Planar Cubic Polynomials 1 / 20 Geometric Interpolation by Planar Cubic Polynomials Jernej Kozak, Marjeta Krajnc Faculty of Mathematics and Physics University of Ljubljana Institute of Mathematics, Physics and Mechanics Avignon,

More information

Fourier Series. (Com S 477/577 Notes) Yan-Bin Jia. Nov 29, 2016

Fourier Series. (Com S 477/577 Notes) Yan-Bin Jia. Nov 29, 2016 Fourier Series (Com S 477/577 otes) Yan-Bin Jia ov 9, 016 1 Introduction Many functions in nature are periodic, that is, f(x+τ) = f(x), for some fixed τ, which is called the period of f. Though function

More information

Analysis-3 lecture schemes

Analysis-3 lecture schemes Analysis-3 lecture schemes (with Homeworks) 1 Csörgő István November, 2015 1 A jegyzet az ELTE Informatikai Kar 2015. évi Jegyzetpályázatának támogatásával készült Contents 1. Lesson 1 4 1.1. The Space

More information

Fourier Series. 1. Review of Linear Algebra

Fourier Series. 1. Review of Linear Algebra Fourier Series In this section we give a short introduction to Fourier Analysis. If you are interested in Fourier analysis and would like to know more detail, I highly recommend the following book: Fourier

More information

Approximation Theory

Approximation Theory Approximation Theory Function approximation is the task of constructing, for a given function, a simpler function so that the difference between the two functions is small and to then provide a quantifiable

More information

Series Solutions. 8.1 Taylor Polynomials

Series Solutions. 8.1 Taylor Polynomials 8 Series Solutions 8.1 Taylor Polynomials Polynomial functions, as we have seen, are well behaved. They are continuous everywhere, and have continuous derivatives of all orders everywhere. It also turns

More information

Homework and Computer Problems for Math*2130 (W17).

Homework and Computer Problems for Math*2130 (W17). Homework and Computer Problems for Math*2130 (W17). MARCUS R. GARVIE 1 December 21, 2016 1 Department of Mathematics & Statistics, University of Guelph NOTES: These questions are a bare minimum. You should

More information

Applied Numerical Analysis (AE2220-I) R. Klees and R.P. Dwight

Applied Numerical Analysis (AE2220-I) R. Klees and R.P. Dwight Applied Numerical Analysis (AE0-I) R. Klees and R.P. Dwight February 018 Contents 1 Preliminaries: Motivation, Computer arithmetic, Taylor series 1 1.1 Numerical Analysis Motivation..........................

More information

There is a unique function s(x) that has the required properties. It turns out to also satisfy

There is a unique function s(x) that has the required properties. It turns out to also satisfy Numerical Analysis Grinshpan Natural Cubic Spline Let,, n be given nodes (strictly increasing) and let y,, y n be given values (arbitrary) Our goal is to produce a function s() with the following properties:

More information

Polynomial Interpolation

Polynomial Interpolation Polynomial Interpolation (Com S 477/577 Notes) Yan-Bin Jia Sep 1, 017 1 Interpolation Problem In practice, often we can measure a physical process or quantity (e.g., temperature) at a number of points

More information

Chapter 8: Taylor s theorem and L Hospital s rule

Chapter 8: Taylor s theorem and L Hospital s rule Chapter 8: Taylor s theorem and L Hospital s rule Theorem: [Inverse Mapping Theorem] Suppose that a < b and f : [a, b] R. Given that f (x) > 0 for all x (a, b) then f 1 is differentiable on (f(a), f(b))

More information

Review of Power Series

Review of Power Series Review of Power Series MATH 365 Ordinary Differential Equations J. Robert Buchanan Department of Mathematics Fall 2018 Introduction In addition to the techniques we have studied so far, we may use power

More information

Exam 2. Average: 85.6 Median: 87.0 Maximum: Minimum: 55.0 Standard Deviation: Numerical Methods Fall 2011 Lecture 20

Exam 2. Average: 85.6 Median: 87.0 Maximum: Minimum: 55.0 Standard Deviation: Numerical Methods Fall 2011 Lecture 20 Exam 2 Average: 85.6 Median: 87.0 Maximum: 100.0 Minimum: 55.0 Standard Deviation: 10.42 Fall 2011 1 Today s class Multiple Variable Linear Regression Polynomial Interpolation Lagrange Interpolation Newton

More information

256 Summary. D n f(x j ) = f j+n f j n 2n x. j n=1. α m n = 2( 1) n (m!) 2 (m n)!(m + n)!. PPW = 2π k x 2 N + 1. i=0?d i,j. N/2} N + 1-dim.

256 Summary. D n f(x j ) = f j+n f j n 2n x. j n=1. α m n = 2( 1) n (m!) 2 (m n)!(m + n)!. PPW = 2π k x 2 N + 1. i=0?d i,j. N/2} N + 1-dim. 56 Summary High order FD Finite-order finite differences: Points per Wavelength: Number of passes: D n f(x j ) = f j+n f j n n x df xj = m α m dx n D n f j j n= α m n = ( ) n (m!) (m n)!(m + n)!. PPW =

More information

Spline Methods Draft. Tom Lyche and Knut Mørken

Spline Methods Draft. Tom Lyche and Knut Mørken Spline Methods Draft Tom Lyche and Knut Mørken 25th April 2003 2 Contents 1 Splines and B-splines an Introduction 3 1.1 Convex combinations and convex hulls..................... 3 1.1.1 Stable computations...........................

More information

Robust exponential convergence of hp-fem for singularly perturbed systems of reaction-diffusion equations

Robust exponential convergence of hp-fem for singularly perturbed systems of reaction-diffusion equations Robust exponential convergence of hp-fem for singularly perturbed systems of reaction-diffusion equations Christos Xenophontos Department of Mathematics and Statistics University of Cyprus joint work with

More information

Maria Cameron Theoretical foundations. Let. be a partition of the interval [a, b].

Maria Cameron Theoretical foundations. Let. be a partition of the interval [a, b]. Maria Cameron 1 Interpolation by spline functions Spline functions yield smooth interpolation curves that are less likely to exhibit the large oscillations characteristic for high degree polynomials Splines

More information

A note on accurate and efficient higher order Galerkin time stepping schemes for the nonstationary Stokes equations

A note on accurate and efficient higher order Galerkin time stepping schemes for the nonstationary Stokes equations A note on accurate and efficient higher order Galerkin time stepping schemes for the nonstationary Stokes equations S. Hussain, F. Schieweck, S. Turek Abstract In this note, we extend our recent work for

More information

MATH3283W LECTURE NOTES: WEEK 6 = 5 13, = 2 5, 1 13

MATH3283W LECTURE NOTES: WEEK 6 = 5 13, = 2 5, 1 13 MATH383W LECTURE NOTES: WEEK 6 //00 Recursive sequences (cont.) Examples: () a =, a n+ = 3 a n. The first few terms are,,, 5 = 5, 3 5 = 5 3, Since 5

More information

1 + lim. n n+1. f(x) = x + 1, x 1. and we check that f is increasing, instead. Using the quotient rule, we easily find that. 1 (x + 1) 1 x (x + 1) 2 =

1 + lim. n n+1. f(x) = x + 1, x 1. and we check that f is increasing, instead. Using the quotient rule, we easily find that. 1 (x + 1) 1 x (x + 1) 2 = Chapter 5 Sequences and series 5. Sequences Definition 5. (Sequence). A sequence is a function which is defined on the set N of natural numbers. Since such a function is uniquely determined by its values

More information

Fixed point iteration and root finding

Fixed point iteration and root finding Fixed point iteration and root finding The sign function is defined as x > 0 sign(x) = 0 x = 0 x < 0. It can be evaluated via an iteration which is useful for some problems. One such iteration is given

More information

MATH 326: RINGS AND MODULES STEFAN GILLE

MATH 326: RINGS AND MODULES STEFAN GILLE MATH 326: RINGS AND MODULES STEFAN GILLE 1 2 STEFAN GILLE 1. Rings We recall first the definition of a group. 1.1. Definition. Let G be a non empty set. The set G is called a group if there is a map called

More information

CS412: Introduction to Numerical Methods

CS412: Introduction to Numerical Methods CS412: Introduction to Numerical Methods MIDTERM #1 2:30PM - 3:45PM, Tuesday, 03/10/2015 Instructions: This exam is a closed book and closed notes exam, i.e., you are not allowed to consult any textbook,

More information

Geometric Lagrange Interpolation by Planar Cubic Pythagorean-hodograph Curves

Geometric Lagrange Interpolation by Planar Cubic Pythagorean-hodograph Curves Geometric Lagrange Interpolation by Planar Cubic Pythagorean-hodograph Curves Gašper Jaklič a,c, Jernej Kozak a,b, Marjeta Krajnc b, Vito Vitrih c, Emil Žagar a,b, a FMF, University of Ljubljana, Jadranska

More information

Notes on Complex Analysis

Notes on Complex Analysis Michael Papadimitrakis Notes on Complex Analysis Department of Mathematics University of Crete Contents The complex plane.. The complex plane...................................2 Argument and polar representation.........................

More information

Chapter 11. Taylor Series. Josef Leydold Mathematical Methods WS 2018/19 11 Taylor Series 1 / 27

Chapter 11. Taylor Series. Josef Leydold Mathematical Methods WS 2018/19 11 Taylor Series 1 / 27 Chapter 11 Taylor Series Josef Leydold Mathematical Methods WS 2018/19 11 Taylor Series 1 / 27 First-Order Approximation We want to approximate function f by some simple function. Best possible approximation

More information

be the set of complex valued 2π-periodic functions f on R such that

be the set of complex valued 2π-periodic functions f on R such that . Fourier series. Definition.. Given a real number P, we say a complex valued function f on R is P -periodic if f(x + P ) f(x) for all x R. We let be the set of complex valued -periodic functions f on

More information

2

2 1 Notes for Numerical Analysis Math 54 by S. Adjerid Virginia Polytechnic Institute and State University (A Rough Draft) 2 Contents 1 Polynomial Interpolation 5 1.1 Review...............................

More information

Math 4263 Homework Set 1

Math 4263 Homework Set 1 Homework Set 1 1. Solve the following PDE/BVP 2. Solve the following PDE/BVP 2u t + 3u x = 0 u (x, 0) = sin (x) u x + e x u y = 0 u (0, y) = y 2 3. (a) Find the curves γ : t (x (t), y (t)) such that that

More information