1 Ordinary Differential Equations

Size: px
Start display at page:

Download "1 Ordinary Differential Equations"

Transcription

1 1 Ordinry Differentil Equtions 1. Mthemticl Bckground 1..1 Smoothness Definition 1.1 A function f defined on [, b] is continuous t x [, b] if lim x x f(x) = f(x ). Remrk Note tht this implies existence of the quntities on both sides of the eqution. f is continuous on [, b], i.e., f C[, b], if f is continuous t every x [, b]. If f (n) is continuous on [, b], then f C (n) [, b]. Alterntively, one could strt with the following ε-δ definition: Definition 1.2 A function f defined on [, b] is continuous t x [, b] if for every ε > there exists δ ε > (tht depends on x ) such tht f(x) f(x ) < ε whenever x x < δ ε. FIGURE Exmple (A function tht is continuous, but not uniformly continuous) f(x) = 1 x with FIGURE. Definition 1.3 A function f is uniformly continuous on [, b] if it is continuous with uniform δ ε for ll x [, b], i.e., independent of x. Importnt for ordinry differentil equtions is Definition 1.4 A function f defined on [, b] is Lipschitz continuous on [, b] if there exists number λ such tht f(x) f(y) λ x y for ll x, y [, b]. λ is clled the Lipschitz constnt. Remrk 1. In fct, ny Lipschitz continuous function is uniformly continuous, nd therefore continuous. 2. For differentible function with bounded derivtive we cn tke λ = mx x [,b] f (x), nd we see tht Lipschitz continuity is between continuity nd differentibility. 3. If the function f is Lipschitz continuous on [, b] with Lipschitz constnt λ, then f is lmost everywhere differentible in [, b] with f (x) λ. In other words, Lipschitz continuous functions need not be differentible everywhere in [, b]. 4. See lso Assignment 1. 1

2 1..2 Polynomils A rel polynomil of degree t most n is of the form p(x) = n j x j, x R, j= with coefficients j R. Nottion: We denote the spce of (univrite) polynomils of degree t most m by p P n. Theorem 1.5 (Tylor s Theorem) If f C n [, b] nd f (n+1) exists on (, b), then for ny x [, b] f(x) = n 1 k! f (k) (x )(x x ) k 1 + (n + 1)! f (n+1) (ξ x )(x x ) n+1, k= }{{}}{{} Tylor polynomil error term where ξ x is some point between x nd x. FIGURE An lternte form commonly used is f(x + h) = n k= 1 k! f (k) (x )h k 1 + (n + 1)! f (n+1) (ξ x )h n+1. Remrk Note tht the informtion bout f is provided loclly, t x only. If the informtion is spred out, i.e., when we re given distinct points x < x 1 <... < x n [, b] nd ssocited vlues f(x ), f(x 1 ),..., f(x n ), then we will see below tht there exists unique interpoltion polynomil p n of degree t most n with l j (x) = p n (x) = n k= k j n l j (x)f(x j ) j= x x k x j x k, j =, 1,..., n, such tht p n (x i ) = f(x i ), i =, 1,..., n. The l j, j =, 1,..., n, re clled Lgrnge functions, nd the polynomil p n is sid to be in Lgrnge form. Remrk See Assignment 1 for n illustrtion of Tylor polynomils vs. interpoltion polynomils. 2

3 1.1 Polynomil Interpoltion In the following two subsections we will discuss the problem of fitting dt given in the form of discrete points (e.g., physicl mesurements, output from differentil equtions solver, design points for CAD, etc.) with n pproprite function s tken from some (finite-dimensionl) function spce S of our choice. Throughout most of our discussion the dt will be univrite, i.e., of the form (x i, y i ), i =,..., n, where the x i R re referred to s dt sites (or nodes), nd the y i R s vlues (or ordintes). Often we will ssume y i = f(x i ) for some (unknown) function f. Lter on we will lso briefly consider multivrite dt where x i R d, d > 1. The dt cn be fitted either by interpoltion, i.e., by stisfying or by pproximtion, i.e., by stisfying s(x i ) = y i, i =,..., n, (1) s y < ɛ, where s nd y hve to be considered s vectors of function or dt vlues, nd is some discrete norm on R n+1. We will focus our ttention on interpoltion. If {b,..., b n } is some bsis of the function spce S, then we cn express s s liner combintion in the form s(x) = n j b j (x). j= If we re given m + 1 dt points (x i, y i ), i =, 1,..., m, then the interpoltion conditions (1) led to n j b j (x i ) = y i, i =,..., m. j= This represents system of liner lgebric equtions for the expnsion coefficients j of the form B = y, where the m n system mtrix B hs entries b j (x i ). We re especilly interested in those function spces nd bses for which the cse m = n yields unique solution. Function spces studied in this clss include polynomils, piecewise polynomils, trigonometric polynomils, nd rdil bsis functions. We will begin by studying polynomils. There re severl motivting fctors for doing this: Everyone is fmilir with polynomils. Polynomils cn be esily nd efficiently evluted using Horner s lgorithm (i.e., nested multipliction). 3

4 We my hve herd of the Weierstrss Approximtion Theorem which sttes tht ny continuous function cn be pproximted rbitrrily closely by polynomil (of sufficiently high degree). A lot is known bout polynomil interpoltion, nd serves s strting point for other methods. Formlly, we re interested in solving the following Problem 1.6 Given dt (x i, y i ), i =,..., n, find polynomil p of miniml degree which mtches the dt in the sense of (1), i.e., for which p(x i ) = y i, i =,..., n. We illustrte this problem with some numericl exmples in the Mple worksheet PolynomilInterpoltion.mws. The numericl experiments suggest tht n + 1 dt points cn be interpolted by polynomil of degree n. Indeed, Theorem 1.7 Let n + 1 distinct rel numbers x, x 1,..., x n nd ssocited vlues y, y 1,..., y n be given. Then there exists unique polynomil p n of degree t most n such tht p n (x i ) = y i, i =, 1,..., n. Proof Assume p n (x) = + 1 x + 2 x n x n. Then the interpoltion conditions (1) led to the liner system B = y with 1 x x 2... x n 1 x 1 x x n 1 B = 1 x 2 x x n 2, = x n x 2 n... x n n 1 2. n nd y = For generl dt y this is nonhomogeneous system, nd we know tht such system hs unique solution if nd only if the ssocited homogeneous system hs only the trivil solution. The homogeneous system corresponds to p n (x i ) =, i =, 1,..., n. Thus, p n hs n + 1 zeros. Now, the Fundmentl Theorem of Algebr sttes tht ny nontrivil polynomil of degree n hs n (possibly complex) zeros. Therefore p n must be the zero polynomil, i.e., the homogeneous liner system hs only the trivil solution = 1 =... = n =, nd by the bove comment the generl nonhomogeneous problem hs unique solution. Remrk The mtrix B in the proof of Theorem 1.7 is referred to s Vndermonde mtrix. y y 1 y 2... y n. 4

5 Next, we illustrte how such (low-degree) interpolting polynomil cn be determined. Exmple Let s ssume we hve the following dt: x 1 3 y 1 4. Now, since we wnt squre liner system, we pick n pproximtion spce of dimension three, i.e., with three bsis functions. This mens we use qudrtic polynomils, nd s bsis we tke the monomils b (x) = 1, b 1 (x) = x, nd b 2 (x) = x 2. Therefore, the interpolting polynomil will be of the form p 2 (x) = + 1 x + 2 x 2. In order to determine the coefficients, 1, nd 2 we enforce the interpoltion conditions (1), i.e., p 2 (x i ) = y i, i =, 1, 2. This leds to the liner system (p 2 () =) = 1 (p 2 (1) =) = (p 2 (3) =) = 4 whose solution is esily verified to be = 1, 1 = 2, nd 2 = 1. Thus, p 2 (x) = 1 2x + x 2. Of course, this polynomil cn lso be written s p 2 (x) = (1 x) 2. So, hd we chosen the bsis of shifted monomils b (x) = 1, b 1 (x) = 1 x, nd b 2 (x) = (1 x) 2, then the coefficients (for n expnsion with respect to this bsis) would hve come out to be =, 1 =, nd 2 = 1. In generl, use of the monomil bsis leds to Vndermonde system s listed in the proof of the theorem bove. This is clssicl exmple of n ill-conditioned system, nd thus should be voided. We will look t other bses lter. We now provide second (constructive) proof of Theorem 1.7. Constructive Proof: First we estblish uniqueness. To this end we ssume tht p n nd q n both re n-th degree interpolting polynomils. Then r n (x) = p n (x) q n (x) is lso n n-th degree polynomil. Moreover, by the Fundmentl Theorem of Algebr r n hs n zeros (or is the zero polynomil). However, by the nture of p n nd q n we hve r n (x i ) = p n (x i ) q n (x i ) = y i y i =, i =, 1,..., n. Thus, r n hs n + 1 zeros, nd therefore must be identiclly equl to zero. This ensures uniqueness. 5

6 Existence is constructed by induction. For n = we tke p y. Obviously, the degree of p is less thn or equl to, nd lso p (x ) = y. Now we ssume p k 1 to be the unique polynomil of degree t most k 1 tht interpoltes the dt (x i, y i ), i =, 1,..., k 1. We will construct p k (of degree k) such tht p k (x i ) = y i, i =, 1,..., k. We let p k (x) = p k 1 (x) + c k (x x )(x x 1 )... (x x k 1 ) with c k yet to be determined. By construction, p k is polynomil of degree k which interpoltes the dt (x i, y i ), i =, 1,..., k 1. We now determine c k so tht we lso hve p k (x k ) = y k. Thus, or (p k (x k ) =) p k 1 (x k ) + c k (x k x )(x k x 1 )... (x k x k 1 ) = y k c k = y k p k 1 (x k ) (x k x )(x k x 1 )... (x k x k 1 ). This is well defined since the denomintor is nonzero due to the fct tht we ssume distinct dt sites. The construction used in this lternte proof provides the strting point for the Newton form of the interpolting polynomil. From the proof we hve p k (x) = p k 1 (x) + c k (x x )(x x 1 )... (x x k 1 ) = p k 2 (x) + c k 1 (x x )(x x 1 )... (x x k 2 ) + c k (x x )(x x 1 )... (x x k 1 ). = c + c 1 (x x ) + c 2 (x x )(x x 1 ) c k (x x )(x x 1 )... (x x k 1 ). Thus, the Newton form of the interpolting polynomil is given by p n (x) = n j= j 1 c j i= (x x i ). (2) This nottion implies tht the empty product (when j 1 < ) is equl to 1. The proof bove lso provides formul for the coefficients in the Newton form: c j = y j p j 1 (x j ) (x j x )(x j x 1 )... (x j x j 1 ), p c = y. (3) So the Newton coefficients cn be computed recursively. This leds to first lgorithm for the solution of the interpoltion problem. Algorithm Input n, x, x 1,..., x n, y, y 1,..., y n c = y for k = 1 : n 6

7 d = x k x k 1 end u = c k 1 for i = k 2 : 1 : end % build p k 1 u = u(x k x i ) + c i % Horner d = d(x k x i ) % ccumulte denomintor c k = y k u d Output c, c 1,..., c n Remrk A more detiled derivtion of this lgorithm is provided on pge 31 of the Kincid/Cheney book. However, the stndrd, more efficient, lgorithm for computing the coefficients of the Newton form is bsed on the use of divided differences nd will not be discussed here. Exmple We now compute the Newton form of the polynomil interpolting the dt According to (2) nd (3) we hve with p 2 (x) = 2 j= j 1 c j i= c = y = 1, nd c j = x 1 3 y 1 4. (x x i ) = c + c 1 (x x ) + c 2 (x x )(x x 1 ) y j p j 1 (x j ), j = 1, 2. (x j x )(x j x 1 )... (x j x j 1 ) Thus, we re representing the spce of qudrtic polynomils with the bsis b (x) = 1, b 1 (x) = x x = x, nd b 2 (x) = (x x )(x x 1 ) = x(x 1). We now determine the two remining coefficients. First, c 1 = y 1 p (x 1 ) x 1 x = y 1 y x 1 x = 1 1 = 1. This gives us Next, nd so c 2 = p 1 (x) = c + c 1 (x x ) = 1 x. y 2 p 1 (x 2 ) (x 2 x )(x 2 x 1 ) = 4 (1 x 2) = 1, 3 2 p 2 (x) = p 1 (x) + c 2 (x x )(x x 1 ) = 1 x + x(x 1). 7

8 A third representtion (fter the monomil nd Newton forms) of the sme (unique) interpolting polynomil is of the generl form n p n (x) = y j l j (x). (4) j= Note tht the coefficients here re the dt vlues, nd the polynomil bsis functions l j re so-clled crdinl (or Lgrnge) functions. We wnt these functions to depend on the dt sites x, x 1,..., x n, but not the dt vlues y, y 1,..., y n. In order to stisfy the interpoltion conditions (1) we require p n (x i ) = Clerly, this is ensured if n y j l j (x i ) = y i, i =, 1,..., n. j= l j (x i ) = δ ij, (5) which is clled crdinlity (or Lgrnge) condition. How do we determine the Lgrnge functions l j? We wnt them to be polynomils of degree n nd stisfy the crdinlity conditions (5). Let s fix j, nd ssume l j (x) = c(x x )(x x 1 )... (x x j 1 )(x x j+1 )... (x x n ) n = c (x x i ). i= i j Clerly, l j (x i ) = for j i. Also, l j depends only on the dt sites nd is polynomil of degree n. The lst requirement is l j (x j ) = 1. Thus, or 1 = c c = n (x j x i ) i= i j 1. n (x j x i ) i= i j Agin, the denomintor is nonzero since the dt sites re ssumed to be distinct. Therefore, the Lgrnge functions re given by l j (x) = n i= i j x x i x j x i, j =, 1,..., n, nd the Lgrnge form of the interpolting polynomil is n n x x i p n (x) = y j. (6) x j x i j= i= i j 8

9 Remrk 1. We mentioned bove tht the monomil bsis results in n interpoltion mtrix ( Vndermonde mtrix) tht is notoriously ill-conditioned. However, n dvntge of the monomil bsis representtion is the fct tht the interpolnt cn be evluted efficiently using Horner s method. 2. The interpoltion mtrix for the Lgrnge form is the identity mtrix nd the coefficients in the bsis expnsion re given by the dt vlues. This mkes the Lgrnge form idel for situtions in which mny experiments with the sme dt sites, but different dt vlues need to be performed. However, evlution (s well s differentition or integrtion) is more expensive. 3. A mjor dvntge of the Newton form is its efficiency in the cse of dptive interpoltion, i.e., when n existing interpolnt needs to be refined by dding more dt. Due to the recursive nture, the new interpolnt cn be determined by updting the existing one (s we did in the exmple bove). If we were to form the interpoltion mtrix for the Newton form we would get tringulr mtrix. Therefore, for the Newton form we hve blnce between stbility of computtion nd ese of evlution. Exmple Returning to our erlier exmple, we now compute the Lgrnge form of the polynomil interpolting the dt According to (4) we hve where (see (6)) Thus, nd This gives us p 2 (x) = x 1 3 y y j l j (x) = l (x) + 4l 2 (x), j= l j (x) = 2 i= i j x x i x j x i. l (x) = (x x 1)(x x 2 ) (x 1)(x 3) = = 1 (x 1)(x 3), (x x 1 )(x x 2 ) ( 1)( 3) 3 l 2 (x) = (x x )(x x 1 ) (x 2 x )(x 2 x 1 ) = x(x 1) (3 )(3 1) = 1 x(x 1). 6 p 2 (x) = 1 3 (x 1)(x 3) + 2 x(x 1). 3 Note tht here we hve represented the spce of qudrtic polynomils with the (crdinl) bsis b (x) = 1 3 (x 1)(x 3), b 2(x) = 1 6 x(x 1), nd b 1(x) = l 1 (x) = 1 2x(x 3) (which we did not need to compute for this exmple since its coefficient y 1 = ). 9

10 Summrizing our exmple, we hve found four different forms of the qudrtic polynomil interpolting our dt: monomil p 2 (x) = 1 2x + x 2 shifted monomil p 2 (x) = (1 x) 2 Newton form p 2 (x) = 1 x + x(x 1) Lgrnge form p 2 (x) = 1 3 (x 1)(x 3) + 2 3x(x 1) The bsis polynomils for these four cses re displyed in Figures 1 nd x x Figure 1: Monomil (left) nd shifted monomil (right) bses for the interpoltion exmple x x Figure 2: Bsis polynomils for the Newton (left) nd Lgrnge form (right) Error in Polynomil Interpoltion In the introduction we mentioned the Weierstrss Approximtion Theorem s one of the motivtions for the use of polynomils. Here re the detils. Theorem 1.8 Let f C[, b] nd ɛ >. Then there exists polynomil p of sufficiently high degree such tht f(x) p(x) < ɛ for ll x [, b]. 1

11 We will not prove this theorem. A proof cn, e.g., be found in the book by Kincid nd Cheney. Now we only point out tht s nice s this theorem is it does not cover interpoltion of (vlues of) f by p. For this problem we hve Theorem 1.9 Let f C n+1 [, b] nd p be polynomil of degree t most n which interpoltes f t the n + 1 distinct points x, x 1,..., x n in [, b] (i.e., p(x i ) = f(x i ), i =, 1,..., n). Then, for ech x [, b] there exists number ξ x (, b) such tht f(x) p(x) = 1 (n + 1)! f (n+1) (ξ x ) In order to prove this result we need to recll Rolle s Theorem: n (x x i ). (7) Theorem 1.1 If f C[, b] nd f exists on (, b), nd if f() = f(b) =, then there exists number ξ (, b) such tht f (ξ) =. Proof (of Theorem 1.9) If x coincides with one of the dt sites x i, i =, 1,..., n, then it is esy to see tht both sides of eqution (7) re zero. Thus we now ssume x x i to be fixed. We strt be defining i= nd with α such tht F (x) =, i.e., n w(t) = (t x i ) i= F = f p αw α = f(x) p(x). w(x) We need to show tht α = 1 (n+1)! f (n+1) (ξ x ) for some ξ x (, b). Since f C n+1 [, b] we know tht F C n+1 [, b] lso. Moreover, F (t) = for t = x, x, x 1,..., x n. The first of these equtions holds by the definition of α, the reminder by the definition of w nd the fct tht p interpoltes f t these points. Now we pply Rolle s Theorem to F on ech of the n + 1 subintervls generted by the n + 2 points x, x, x 1,..., x n. Thus, F hs (t lest) n + 1 distinct zeros in (, b). Next, by Rolle s Theorem (pplied to F on n subintervls) we know tht F hs (t lest) n zeros in (, b). Continuing this rgument we deduce tht F (n+1) hs (t lest) one zero, ξ x, in (, b). On the other hnd, since F (t) = f(t) p(t) αw(t) we hve F (n+1) (t) = f (n+1) (t) p (n+1) (t) αw (n+1) (t). 11

12 However, p is polynomil of degree t most n, so p (n+1). coefficient of the (n + 1)-degree polynomil w is 1 we hve Since the leding Therefore, w (n+1) (t) = dn+1 dt n+1 n (t x i ) = (n + 1)!. i= F (n+1) (t) = f (n+1) (t) α(n + 1)!. Combining this with the informtion bout the zero of F (n+1) we hve or = F (n+1) (ξ x ) = f (n+1) (ξ x ) α(n + 1)! = f (n+1) f(x) p(x) (ξ x ) (n + 1)! w(x) f(x) p(x) = f (n+1) (ξ x ) w(x) (n + 1)!. Remrk 1. The error formul (7) in Theorem 1.9 looks lmost like the error formul for Tylor polynomils from Theorem 1.5: f(x) T n (x) = f (n+1) (ξ x ) (x x ) n+1. (n + 1)! The difference lies in the fct tht for Tylor polynomils the informtion is concentrted t one point x, wheres for interpoltion the informtion is obtined t the points x, x 1,..., x n. 2. The error formul (7) will be used lter to derive (nd judge the ccurcy of) methods for solving differentil equtions s well s for numericl integrtion. If the dt sites re eqully spced, i.e., x i = x i x i 1 = h, i = 1, 2,..., n, it is possible to derive the bound n x x i 1 4 hn+1 n! i= in the error formul (7). If we lso ssume tht the derivtives of f re bounded, i.e., f (n+1) (x) M for ll x [, b], then we get f(x) p(x) M 4(n + 1) hn+1. Thus, the error for interpoltion with degree-n polynomils is O(h n+1 ). We illustrte this formul for fixed-degree polynomil in the Mple worksheet PolynomilInterpoltionError.mws. Formul (7) tells us tht the interpoltion error depends on the function we re interpolting s well s the dt sites (interpoltion nodes) we use. If we re interested 12

13 in minimizing the interpoltion error, then we need to choose the dt sites x i, i =, 1,..., n, such tht n w(t) = (t x i ) i= is minimized. Figure 3 shows the grph of the function w for 1 eqully spced (red,dshed) nd 1 optimlly spced (green,solid) dt sites on the intervl [ 1, 1]. We will derive the loctions of the optimlly spced points (known s Chebyshev points) below Figure 3: Grph of the function w for 1 eqully spced (red,dshed) nd 1 Chebyshev points (green,solid) on [ 1, 1]. Figure 3 shows tht the error ner the endpoints of the intervl cn be significnt if we insist on using eqully spced points. A clssicl exmple tht illustrtes this phenomenon is the Runge function f(x) = x 2. We present this exmple in the Mple worksheet Runge.mws. In order to discuss Chebyshev points we need to introduce certin fmily of orthogonl polynomils clled Chebyshev polynomils Chebyshev Polynomils The Chebyshev polynomils (of the first kind) cn be defined recursively. We hve nd T (x) = 1, T 1 (x) = x, x T n+1 (x) = 2xT n (x) T n 1 (x), n 1. (8) An explicit formul for the n-th degree Chebyshev polynomil is T n (x) = cos(n rccos x), x [ 1, 1], n =, 1, 2,.... (9) 13

14 We cn verify this explicit formul by using the trigonometric identity cos(a + B) = cos A cos B sin A sin B. This identity gives rise to the following two formuls: Addition of these two formuls yields cos(n + 1)θ = cos nθ cos θ sin nθ sin θ cos(n 1)θ = cos nθ cos θ + sin nθ sin θ. cos(n + 1)θ + cos(n 1)θ = 2 cos nθ cos θ. (1) Now, if we let x = cos θ (or θ = rccos x) then (1) becomes or cos [(n + 1) rccos x] + cos [(n 1) rccos x] = 2 cos (n rccos x) cos (rccos x) cos [(n + 1) rccos x] = 2x cos (n rccos x) cos [(n 1) rccos x], which is of the sme form s the recursion (8) for the Chebyshev polynomils provided we identify T n with the explicit formul (9). Some properties of Chebyshev polynomils re 1. T n (x) 1, x [ 1, 1]. ( 2. T n cos iπ ) = ( 1) i, n i =, 1,..., n. These re the extrem of T n. ( 3. T n cos 2i 1 ) 2n π =, i = 1,..., n. This gives the zeros of T n. 4. The leding coefficient of T n, n = 1, 2,..., is 2 n 1, i.e., T n (x) = 2 n 1 x n + lower order terms. Items 1 3 follow immeditely from (9). Item 4 is cler from the recursion formul (8). Therefore, 2 1 n T n is monic polynomil, i.e., its leding coefficient is 1. We will need the following property of monic polynomils below. Theorem 1.11 For ny monic polynomil p of degree n on [ 1, 1] we hve p = mx p(x) 1 x 1 21 n. Proof A proof cn be found on p. 317 of the Kincid nd Cheney book. We re now redy to return to the formul for the interpoltion error. From (7) we get on [ 1, 1] f p = mx f(x) p(x) 1 x 1 14

15 1 (n + 1)! mx 1 x 1 f (n+1) (x) mx 1 x 1 i= n (x x i ). } {{ } =w(x) We note tht w is monic polynomil of degree n + 1 with zeros x i, i =, 1,..., n, nd therefore mx 1 x 1 w(x) 2 n. From bove we know tht ) 2 n T n+1 is lso monic polynomil of degree n + 1 with iπ extrem T n+1 (cos = ( 1)i, i =, 1,..., n + 1. By Theorem 1.11 the miniml n + 1 2n vlue of mx w(x) is 1 x 1 2 n. We just observed tht this vlue is ttined for T n+1. Thus, the zeros x i of the optiml w should coincide with the zeros of T n+1, or ( ) 2i + 1 x i = cos 2n + 2 π, i =, 1,..., n. (11) These re the Chebyshev points used in Figure 3 nd in the Mple worksheet Runge.mws. If the dt sites re tken to be the Chebyshev points on [ 1, 1], then the interpoltion error (7) becomes f(x) p(x) 1 2 n (n + 1)! mx 1 t 1 f (n+1) (t), x 1. Remrk The Chebyshev points (11) re for interpoltion on [ 1, 1]. If different intervl is used, the Chebyshev points need to be trnsformed ccordingly. We just observed tht the Chebyshev nodes re optiml interpoltion points in the sense tht for ny given f nd fixed degree n of the interpolting polynomil, if we re free to choose the dt sites, then the Chebyshev points will yield the most ccurte pproximtion (mesured in the mximum norm). For eqully spced interpoltion points, our numericl exmples in the Mple worksheets PolynomilInterpoltion.mws nd Runge.mws hve shown tht, contrry to our intuition, the interpoltion error (mesured in the mximum norm) does not tend to zero s we increse the number of interpoltion points (or polynomil degree). The sitution is even worse. There is lso the following more generl result proved by Fber in Theorem 1.12 For ny fixed system of interpoltion nodes x (n) < x (n) 1 <... < x (n) n b there exists function f C[, b] such tht the interpolting polynomil p n does not uniformly converge to f, i.e., f p n, n. This, however, needs to be contrsted with the positive result (very much in the spirit of the Weierstrss Approximtion Theorem) for the sitution in which we re free to choose the loction of the interpoltion points. 15

16 Theorem 1.13 Let f C[, b]. Then there exists system of interpoltion nodes such tht f p n, n. Proof The proof uses the Weierstrss Approximtion Theorem s well s the Chebyshev Alterntion Theorem. (cf. Kincid nd Cheney). Finlly, if we insist on using the Chebyshev points s dt sites, then we hve the following theorem due to Fejér. Theorem 1.14 Let f C[ 1, 1], nd x, x 1,..., x n 1 be the first n Chebyshev points. Then there exists polynomil p 2n 1 of degree 2n 1 tht interpoltes f t x, x 1,..., x n 1, nd for which f p 2n 1, n. Remrk The polynomil p 2n 1 lso hs zero derivtives t x i, i =, 1,..., n Spline Interpoltion One of the min disdvntges ssocited with polynomil interpoltion were the oscilltions resulting from the use of high-degree polynomils. If we wnt to mintin such dvntges s simplicity, ese nd speed of evlution, s well s similr pproximtion properties, we re nturlly led to consider piecewise polynomil interpoltion or spline interpoltion. Definition 1.15 A spline function S of degree k is function such tht ) S is defined on n intervl [, b], b) S C k 1 [, b], c) there re points = t < t 1 <... < t n = b (clled knots) such tht S is polynomil of degree t most k on ech subintervl [t i, t i+1 ). Exmple The most commonly used spline function is the piecewise liner (k = 1) spline, i.e., given knot sequence s in Definition 1.15, S is liner function on ech subintervl with continuous joints t the knots. If we re given the dt x y 1-1 3, then we cn let the knot sequence coincide with the dt sites, i.e., t i = i, i =, 1, 2, 3. The piecewise liner spline interpolting the dt is then given by the connect-thedots pproch, or in formuls 1 x x < 1, S(x) = 1 x 1 x < 2, 4x 9 2 x < 3. This spline is displyed in Figure 4 16

17 Figure 4: Grph of the liner interpolting spline of Exmple 1. Remrk Definition 1.15 does not mke ny sttement bout the reltion between the loction of the knots nd the dt sites for interpoltion. We just observe tht for liner splines it works to let the knots coincide with the dt sites. We will not discuss the generl problem in this clss. Exmple We use the sme dt s bove, i.e., x y 1-1 3, but now we wnt to interpolte with qudrtic (C 1 ) spline. Agin, we let the knots nd dt sites coincide, i.e., t i = x i, i =, 1, 2, 3. Now it is not so obvious wht S will look like. From Definition 1.15 we know tht S will be of the form S (x) = x 2 + b x + c, x < 1, S(x) = S 1 (x) = 1 x 2 + b 1 x + c 1, 1 x < 2, S 2 (x) = 2 x 2 + b 2 x + c 2, 2 x < 3. Since we hve three qudrtic pieces there re 9 prmeters ( j, b j, c j, j =, 1, 2) to be determined. To this end, we collect the conditions we hve on S. Obviously, we hve the 4 interpoltion conditions S(x i ) = y i, i =, 1, 2, 3. Moreover, S needs to stisfy the C 1 (nd C ) smoothness conditions of Definition 1.15 t the interior knots. Tht leds to four more conditions: S (t 1 ) = S 1 (t 1 ), S 1 (t 2 ) = S 2 (t 2 ), S (t 1 ) = S 1(t 1 ), S 1(t 2 ) = S 2(t 2 ). Thus, we hve totl of 8 conditions to determine the 9 free prmeters. This leves t lest one undetermined prmeter (provided the bove conditions re linerly independent). 17

18 Hoping tht the conditions bove re indeed independent, we dd one more (rbitrry) condition S () = 1 to obtin squre liner system. Therefore, we need to solve S () = 1, S (1) =, S 1 (1) =, S 1 (2) = 1, S 2 (2) = 1, S 2 (3) = 3, S (1) S 1(1) =, S 1(2) S 2(2) =, S () = 1. Note tht we hve implemented the C conditions t the two interior knots by stting the interpoltion conditions for both djoining pieces. In mtrix form, the resulting liner system is The solution of this liner system is given by or b c 1 b 1 c 1 2 b 2 c 2 =, b = 1, c = 1, 1 =, b 1 = 1, c 1 = 1, 2 = 5, b 2 = 21, c 2 = 21, = 1 x, x < 1, S(x) = 1 x, 1 x < 2, 5x 2 21x + 21, 2 x < 3. This exmple is illustrted in the Mple worksheet SplineInterpoltion.mws nd plot of the qudrtic spline computed in Exmple 2 is lso provided in Figure 5. Remrk In order to efficiently evlute piecewise defined spline S t some point x [t, t n ] one needs to be ble to identify which polynomil piece to evlute, i.e., determine in which subintervl [t i, t i+1 ) the evlution point x lies. An lgorithm (for liner splines) is given in on pge 35 of the Kincid/Cheney book

19 x 1 Figure 5: Grph of the qudrtic interpolting spline of Exmple Cubic Splines Another very populr spline is the (C 2 ) cubic spline. Assume we re given n + 1 pieces of dt (x i, y i ), i =, 1,..., n to interpolte. Agin, we let the knot sequence {t i } coincide with the dt sites. According to Definition 1.15 the spline S will consist of n cubic polynomil pieces with totl of 4n prmeters. The conditions prescribed in Definition 1.15 re n + 1 interpoltion conditions, n 1 C continuity conditions t interior knots, n 1 C 1 continuity conditions t interior knots, n 1 C 2 continuity conditions t interior knots, for totl of 4n 2 conditions. Assuming liner independence of these conditions, we will be ble to impose two dditionl conditions on S. There re mny possible wys of doing this. We will discuss: 1. S (t ) = S (t n ) =, (so-clled nturl end conditions). 2. Other boundry conditions, such s which led to complete splines, or S (t ) = f (t ), S (t n ) = f (t n ) S (t ) = f (t ), S (t n ) = f (t n ). In either cse, f or f needs to be provided (or estimted) s dditionl dt. 3. The so-clled not--knot condition. 19

20 1.2.2 Cubic Nturl Spline Interpoltion To simplify the nottion we introduce the bbrevition z i = S (t i ), i =, 1,..., n, for the vlue of the second derivtive t the knots. We point out tht these vlues re not given s dt, but re prmeters to be determined. Since S is cubic S will be liner. If we write this liner polynomil on the subintervl [t i, t i+1 ) in its Lgrnge form we hve S i t i+1 x x t i (x) = z i + z i+1. t i+1 t i t i+1 t i With nother bbrevition h i = t i+1 t i this becomes S i (x) = z i h i (t i+1 x) + z i+1 h i (x t i ). (12) Remrk By ssigning the vlue z i to both pieces joining together t t i we will utomticlly enforce continuity of the second derivtive of S. Now, we obtin representtion for the piece S i by integrting (12) twice: S i (x) = z i 6h i (t i+1 x) 3 + z i+1 6h i (x t i ) 3 + C(x t i ) + D(t i+1 x). (13) The interpoltion conditions (for the piece S i ) S i (x) = z i 6h i (t i+1 x) 3 + z i+1 6h i (x t i ) 3 + S i (t i ) = y i, S i (t i+1 ) = y i+1 yield 2 2 liner system for the constnts C nd D. This leds to ( ) ( yi+1 yi (x t i )+ h i z i+1h i 6 z ih i h i 6 ) (t i+1 x). (14) (Note tht it is esily verified tht (14) stisfies the interpoltion conditions.) Once we hve determined the unknowns z i ech piece of the spline S cn be evluted vi (14). We hve not yet employed the C 1 continuity conditions t the interior knots, i.e., S i 1(t i ) = S i(t i ), i = 1, 2,..., n 1. (15) Thus, we hve n 1 dditionl conditions. Since there re n + 1 unknowns z i, i =, 1,..., n, we fix the second derivtive t the endpoints to be zero, i.e., z = z n =. These re the so-clled nturl end conditions. Differentition of (14) leds to ( ) yi+1 S i(x) = z i 2h i (t i+1 x) 2 + z i+1 2h i (x t i ) 2 + h i z i+1h i 6 ( yi z ih i h i 6 ). 2

21 Using this expression in (15) results in z i 1 h i 1 +2(h i 1 +h i )z i +z i+1 h i = 6 h i (y i+1 y i ) 6 h i 1 (y i y i 1 ), i = 1, 2,..., n 1. This represents symmetric tridigonl system for the unknowns z 1,..., z n 1 of the form 2(h + h 1 ) h 1... z 1 h 1 2(h 1 + h 2 ) h 2. z =. h n 3 2(h n 3 + h n 2 ) h n 2 z n 2 z... h n 2 2(h n 2 + h n 1 ) n 1 Here h i = t i+1 t i nd r i = 6 h i (y i+1 y i ) 6 h i 1 (y i y i 1 ), i = 1, 2,..., n 1. Remrk The system mtrix is even digonlly dominnt since 2(h i 1 + h i ) > h i 1 + h i since ll h i > due to the fct tht the knots t i re distinct nd form n incresing sequence. Thus, very efficient tridigonl version of Guss elimintion without pivoting cn be employed to solve for the missing z i (see the textbook on pge 353 for such n lgorithm) Optimlity of Nturl Splines Among ll smooth functions which interpolte given function f t the knots t, t 1,..., t n, the nturl spline is the smoothest, i.e., Theorem 1.16 Let f C 2 [, b] nd = t < t 1 <... < t n = b. If S is the cubic nturl spline interpolting f t t i, i =, 1,..., n, then [ S (x) ] 2 [ dx f (x) ] 2 dx. r 1 r 2. r n 2 r n 1. Remrk The integrls in Theorem 1.16 cn be interpreted s bending energies of thin rod, or s totl curvtures (since for smll deflections the curvture κ f ). This optimlity result is wht gve rise to the nme spline, since erly ship designers used piece of wood (clled spline) fixed t certin (interpoltion) points to describe the shpe of the ship s hull. Proof (of optimlity theorem) Define n uxiliry function g = f S. Then f = S +g nd f = S + g or ( f ) 2 = ( S ) 2 + ( g ) 2 + 2S g. 21

22 Therefore, Obviously, ( f (x) ) 2 ( dx = S (x) ) 2 ( dx + g (x) ) 2 dx + 2S (x)g (x)dx. so tht we re done is we cn show tht lso ( g (x) ) 2 dx, 2S (x)g (x)dx. To this end we brek the intervl [, b] into the subintervls [t i 1, t i ], nd get S (x)g (x)dx = n i=1 ti t i 1 S (x)g (x)dx. Now we cn integrte by prts (with u = S (x), dv = g (x)dx) to obtin { n [S (x)g (x) ] } ti t i S (x)g (x)dx. t i 1 t i 1 i=1 The first term is telescoping sum so tht n i=1 [ S (x)g (x) ] t i t i 1 = S (t n )g (t n ) S (t )g (t ) = due to the nturl end conditions of the spline S. This leves n ti S (x)g (x)dx = S (x)g (x)dx. t i 1 However, since S i is cubic polynomil we know tht S (x) c i on [t i 1, t i ). Thus, i=1 S (x)g (x)dx = = n ti c i i=1 n i=1 t i 1 g (x)dx c i [g(x)] t i t i 1 =. The lst eqution holds since g(t i ) = f(t i ) S(t i ), i =, 1,..., n, nd S interpoltes f t the knots t i. Remrk Cubic nturl splines should not be considered the nturl choice for cubic spline interpoltion. This is due to the fct tht one cn show tht the (rther rbitrry) choice of nturl end conditions yields n interpoltion error estimte of only O(h 2 ), where h = mx t i nd t i = t i t i 1. This needs to be compred to the estimte i=1,...,n of O(h 4 ) obtinble by cubic polynomils s well s other cubic spline methods. 22

23 1.2.4 Cubic Complete Spline Interpoltion The derivtion of cubic complete splines is similr to tht of the cubic nturl splines. However, we impose the dditionl end constrints S (t ) = f (t ), S (t n ) = f (t n ). This requires dditionl dt (f t the endpoints), but cn be shown to yields n O(h 4 ) interpoltion error estimte. Moreover, n energy minimiztion theorem nlogous to Theorem 1.16 lso holds since n i=1 [ S (x)g (x) ] t i t i 1 = S (t n )g (t n ) S (t )g (t ) by the end conditions. = S (t n ) ( f (t n ) S (t n ) ) S (t ) ( f (t ) S (t ) ) = Not--Knot Spline Interpoltion One of the most effective cubic spline interpoltion methods is obtined by choosing the knots different from the dt sites. In prticulr, if the dt is of the form then we tke the n 1 knots s x x 1 x 2... x n 1 x n y y 1 y 2... y n 1 y n, x x 2 x 3... x n 2 x n t t 1 t 2... t n 3 t n 2, i.e., the dt sites x 1 nd x n 1 re not--knot. The knots now define n 2 cubic polynomil pieces with totl of 4n 8 coefficients. On the other hnd, there re n + 1 interpoltion conditions together with three sets of (n 3) smoothness conditions t the interior knots. Thus, the number of conditions is equl to the number of unknown coefficients, nd no dditionl (rbitrry) conditions need to be imposed to solve the interpoltion problem. One cn interpret this pproch s using only one cubic polynomil piece to represent the first two (lst two) dt segments. The cubic not--knot spline hs n O(h 4 ) interpoltion error, nd requires no dditionl dt. More detils cn be found in the book A Prcticl Guide to Splines by Crl de Boor. Remrk 1. If we re given lso derivtive informtion t the dt sites x i, i =, 1,..., n, then we cn perform piecewise cubic Hermite interpoltion. The resulting function will be C 1 continuous, nd one cn show tht the interpoltion error is O(h 4 ). However, this function is not considered spline function since it does not hve the required smoothness. 23

24 2. There re lso piecewise cubic interpoltion methods tht estimte derivtive informtion t the dt sites, i.e., no derivtive informtion is provided s dt. Two such (locl) methods re nmed fter Bessel (yielding n O(h 3 ) interpoltion error) nd Akim (with n O(h 2 ) error). Agin, they re not spline functions s they re only C 1 smooth. 1.3 Numericl Integrtion Bsed on Interpoltion We now turn to pproximte integrtion (or qudrture). The simplest numericl integrtion methods re the left/right endpoint nd the midpoint rules studied in clculus. We will focus on methods bsed on polynomil interpoltion. The ide is simple one which is lso frequently used for numericl differentition: interpolte the integrnd t n + 1 points, nd then (exctly) integrte the degree n polynomil. Using the Lgrnge form of the interpolting polynomil this mens with weights f(x)dx = = p(x)dx = n f(x i ) i= n f(x i )l i (x)dx i= l i (x)dx n A i f(x i ) (16) i= A i = l i (x)dx. (17) Depending on the number of points (degree of the polynomil) used we hve different qudrture rule. Formuls of the type (16) nd (17) re collectively known s Newton- Cotes formuls. Exmple (Trpezoid Rule) In the cse n = 1 we get where nd A = A 1 = Together we get l (x)dx = l 1 (x)dx = f(x)dx A f(x ) + A 1 f(x 1 ) = A f() + A 1 f(b). x b b dx = 1 b x b dx = 1 b f(x)dx b 2 (x b) 2 2 b (x ) 2 2 [f() + f(b)]. b = b 2, = b 2. This is the well-known trpezoid rule. We cn improve the ccurcy by using piecewise liner spline interpoltion, i.e., we subdivide the intervl [, b] into subintervls 24

25 [x, x 1 ], [x 1, x 2 ],..., [x N 1, x N ], nd form liner polynomil interpolnt on ech subintervl. Then f(x)dx N 1 i= xi+1 Using the trpezoid rule on ech subintervl we hve f(x)dx N 1 i= x i x i+1 x i 2 p i (x)dx. [f(x i ) + f(x i+1 )]. To simplify this expression we ssume tht the subintervls re of equl length h, i.e., x i = + ih, i =, 1,..., N, with h = b N. This results in the composite trpezoid rule [ ] b f(x)dx T N f = b N 1 f() + 2 f( + ih) + f(b). 2N The error of the composite trpezoid rule is the subject of i=1 Theorem 1.17 If f C 2 [, b] nd h = b N re used for T N then the error where ξ (, b). E TN f = f(x)dx T N f = b 12 h2 f (ξ) = O(h 2 ), Proof We strt with the error for single subintervl (i.e., for the bsic trpezoid rule). Without loss of generlity we let [, b] = [, h]. Then, using the error formul for polynomil interpoltion (see Theorem 1.9), E T1 f = = x =,x 1 =h = = h h h 1 2 f (ξ) [f(x) p 1 (x)] dx 1 2 f (ξ x ) 1 (x x i )dx i= 1 2 f (ξ x )x(x h)dx h x(x h)dx, where we hve used the Men-Vlue Theorem for integrls of continuous functions in the lst step. The lst integrl cn of course be evluted, nd we obtin E T1 f = 1 12 h3 f (ξ), ξ (, b). For the composite rule we now hve E TN f = N E Ti f = i=1 25 N 1 12 h3 f (ξ i ). i=1

26 By rewriting one copy of h s b N Now, for some ξ (, b) we hve we get E TN f = b 12 h2 N i=1 f (ξ i ) N. N i=1 f (ξ i ) N = f (ξ), nd therefore we re done. Exmple (Simpson s Rule) The Newton-Cotes formul in the cse n = 2 (qudrtic polynomil interpolnt on single intervl [, b]) yields (the detils re omitted here) f(x)dx h 3 [ f() + 4f ( + b 2 ) ] + f(b), (18) where h = b 2. Eqution (18) is known s Simpson s rule. In order to formulte composite Simpson rule we need n even number, N, of subintervls. Then f(x)dx = = x2 x f(x)dx + N/2 x2i i=1 N/2 i=1 x4 x 2i 2 p i (x)dx x 2 f(x)dx xn h 3 [f(x 2i 2) + 4f(x 2i 1 ) + f(x 2i )], x N 2 f(x)dx where we hve used Simpson s rule (18) on ech subintervl [x 2i 2, x 2i ]. We cn rewrite the previous formul more efficiently s S N f = h N/2 N/2 f() + 2 f(x 2i 2 ) + 4 f(x 2i 1 ) + f(b) (19) 3 i=2 since N is even. This is the composite Simpson rule. For the error we hve Theorem 1.18 If f C 4 [, b] nd h = b N where ξ (, b). i=1 E SN f = b 18 h4 f (4) (ξ) = O(h 4 ), with N even re used for S N, then Remrk Note tht the ccurcy corresponds to tht expected for cubic polynomils even though only qudrtic interpolting polynomils were used. We get one order of h for free. 26

27 Proof (of Simpson error formul) Prts cn be found in the book by Kincid nd Cheney on pge 484. See lso the discussion of Peno kernels below, nd Homework Assignment 2. Remrk 1. An error estimte for the generl Newton-Cotes formuls (on single intervl) cn be found in the Kincid/Cheney book on pges The error is minimized by tking the interpoltion nodes s the zeros of the Chebyshev polynomils of the second kind. 1.4 Peno Kernels A useful (nd rther beutiful) tool for error estimtes (especilly for numericl differentition nd integrtion problems) is the use of Peno kernels nd the Peno kernel theorem. A liner functionl L on liner spce, e.g., C ν [, b], is mpping tht mps function from this spce onto sclr nd is liner, i.e., L(αf + βg) = αlf + βlg for α, β R, f, g C ν [, b]. Exmple 1. Point evlution functionl: Lf = f(x). 2. (Definite) Integrtion functionl: Lf = f(x)dx. Note tht liner combintions of liner functionls form new liner functionls. A firly generl liner functionl is n n Lf = α i (x)f (i) (x)dx + β ij f (i) (ξ ij ). (2) i= Here ξ ij [, b], f (i) denotes the ith derivtive of f, β ij re rel numbers, nd the functions α i re t lest piecewise continuous on [, b]. The function f should be in C n [, b]. Furthermore, we sy tht functionl nnihiltes polynomils P ν if j=1 Lp =, for ll p P ν. The νth Peno kernel of L s in (2) is the function where ν n nd is the truncted power function. k ν (ξ) = L [ (x ξ) ν +], ξ [, b], (x ξ) m + = { (x ξ) m, x ξ, x < ξ, 27

28 Exmple Let s compute the Peno kernel k 1 for the liner functionl defined by Lf = π By definition of the Peno kernel we hve (cos x)f (x)dx. k 1 (ξ) = L [(x ξ) + ] = π (cos x) d dx (x ξ) +dx. Using the definition of the truncted power function we cn rewrite the integrl nd then evlute π (cos x) d π (x ξ)dx = cos xdx = sin ξ. dx ξ Theorem 1.19 (Peno Kernel Theorem) If functionl L of the form (2) nnihiltes polynomils P ν, then for ll f C ν+1 [, b], Lf = 1 ν! where ν n nd k ν is the Peno kernel of L. ξ k ν (ξ)f (ν+1) (ξ)dξ Remrk The Peno kernel theorem llows estimtes of the form where we used the norms Exmple Consider the integrl Lf 1 ν! k ν 1 f (ν+1), Lf 1 ν! k ν f (ν+1) 1, Lf 1 ν! k ν 2 f (ν+1) 2, f 1 = f 2 = f(x) dx, ( 1/2 f(x) dx) 2, f = mx x [,b] f(x). 1 f(ξ)dξ nd find n pproximte integrtion formul of the form 1 f(ξ)dξ b 1 f() + b 2 f( 1 2 ) + b 3f(1) tht is exct if f is polynomil in P 3, nd find its error. 28

29 To nswer this question we consider the liner functionl Lf = 1 f(ξ)dξ b 1 f() + b 2 f( 1 2 ) + b 3f(1), nd first find b 1, b 2, nd b 3 so tht L nnihiltes P 3. If we let f(x) = 1, then we get the condition For f(x) = x we get for f(x) = x 2 we get = Lf = 1 = Lf = = Lf = nd for f(x) = x 3 we get = Lf = 1dξ (b 1 + b 2 + b 3 ) = 1 b 1 b 2 b ξdξ ( 1 2 b 2 + b 3 ) = b 2 b 3, ξ 2 dξ ( 1 4 b 2 + b 3 ) = b 2 b 3, ξ 3 dξ ( 1 8 b 2 + b 3 ) = b 2 b 3. The unique solution of this system of 4 liner equtions in 3 unknowns is nd therefore 1 f(ξ)dξ 1 6 b 1 = 1 6, b 2 = 2 3, b 3 = 1 6, [f() + 4f( 12 ) + f(1) ]. To estimte the error in this pproximtion we use the Peno kernel of L. It is given by k 3 (ξ) = L [ (x ξ) 3 ] + 1 = (x ξ) 3 +dx 1 [ ( ξ) ( 1 ] 6 2 ξ)3 + + (1 ξ) [ = 4( 1 ] 2 ξ)3 + + (1 ξ) 3 + = = ξ (x ξ) 3 dx 1 6 {[ 4( 1 2 ξ)3 + (1 ξ) 3], ξ 1 2 (1 ξ) 3, 1 2 ξ 1. (1 ξ) { 1 12 ξ3 (2 3ξ), ξ (1 ξ)3 (3ξ 1), 1 2 ξ 1. Now the Peno kernel theorem sys tht 1 f(ξ)dξ 1 [f() + 4f( 12 ] 6 ) + f(1) = Lf = 1 3! 29 1 k 3 (ξ)f (4) (ξ)dξ,

30 nd we cn explicitly clculte estimtes of the form since Lf f (4) 1, Lf k 3 1 = 1 48, k 3 2 = 1.5 ODEs nd the Lipschitz Condition We consider the system of first-order ODE IVP f (4) 2, Lf f (4) f C 4 [, 1] , k 3 = y (t) = dy(t) = f(t, y(t)), t t, (21) dt y(t ) = y. (22) Here y = y 1. y d, y = y,1. y,d, f = f 1. f d, R d. Remrk This pproch covers not only first-order ODEs, but lso higher-order ODEs, since ny d-th order ODE IVP cn be converted to system of d first-order IVPs (see Assignment 2). If f(t, y) = A(t)y + b(t) for some d d mtrix-vlued function A nd d 1 vectorvlued function b, then the ODE is liner, nd if b(t) = it is liner nd homogeneous. Otherwise it is nonliner. If f is independent of t, the ODE is clled utonomous, nd if f is independent of y, then the ODE system reduces to (vector of) indefinite integrl(s). Theorem 1.2 (Picrd-Lindelöf: Existence nd Uniqueness) Let B be the bll B = {x R d : x y b} nd let S be the cylinder S = {(t, x) : t [t, t + ], x B} where, b >. If f is continuous on S nd f lso stisfies the Lipschitz condition f(t, x) f(t, y) λ x y, x, y B, then the IVP (21), (22) hs unique solution on [t, t + α], where α is some constnt tht depends on, b nd f. In fct, { } b α = min,. sup (t,x) S f(t, x) Note tht in the system setting we need to mesure differences of vectors in some pproprite norm insted of simple bsolute vlue. 3

31 Remrk The proof of this theorem is rther involved. on S gur- Exmple For single eqution, continuity of the prtil derivtive f(t,y) y ntees Lipschitz continuity of f with λ = f(t, y) y. mx t [t,t +] y B For the initil vlue problem we hve y (t) = 2t (y(t)) 2, y() = 1, f(t, y) = 2ty 2, f(t, y) y = 4ty, which re both continuous on ll of R 2. The theorem bove gurntees existence nd uniqueness of solution for t ner t =. In fct, it is given by y(t) = 1, 1 < t < 1. 1 t2 However, we see tht just becuse f nd f(t,y) y re continuous on ll of R 2 we cnnot expect existence or uniqueness of solution y for ll t. Remrk In the system setting sufficient condition for Lipschitz continuity of f is given by continuity of the Jcobin mtrix f(t, y) y [ fi (t, y 1,..., y d ) = y j ] d. i,j=1 Remrk Recll tht liner system y = Ay, t t, y(t ) = y with d d mtrix A lwys hs unique solution. It is given by y(t) = d e λ l(t t ) α l, t t, l=1 where λ 1,..., λ d re the eigenvlues of A, nd the α 1,..., α d R d re vectors (eigenvectors if the eigenvlues re distinct). 1.6 Euler s Method The bsic Algorithm Recll tht we re interested in generl first-order IVPs (21), (22) of the form y (t) = f(t, y(t)), t t y(t ) = y. 31

32 It is our gol to derive numericl methods for the solution of this kind of problem. The first, nd probbly best known, method is clled Euler s method. Even though this is one of the originl numericl methods for the solution of IVPs, it remins importnt for both prcticl nd theoreticl purposes. The method is derived by considering the pproximtion of the first derivtive. This implies y (t) y(t + h) y(t) h y(t + h) y(t) + hy (t), which using the differentil eqution (21) becomes y(t + h) y(t) + hf(t, y(t)). (23) Introducing sequence of points t, t 1 = t + h, t 2 = t + 2h,..., t N = t + Nh, this immeditely leds to n itertive lgorithm. Algorithm Input t, y, f, h, N t = t, y = y for n = 1 to N do end y y + hf(t, y) t t + h Remrk 1. Alterntely, we cn derive the formul for Euler s method vi integrtion. Since the IVP gives us both n initil condition s well s the slope y = f(t, y) of the solution, we cn ssume tht the slope is constnt on smll intervl [t, t + h], i.e., f(t, y(t)) f(t, y(t )) for t [t, t + h]. Then we cn integrte to get t y(t) = y(t ) + f(τ, y(τ))dτ t Euler s method. t y(t ) + f(t, y(t ))dτ t = y(t ) + (t t )f(t, y(t )) 2. Note tht Euler s method yields set of discrete points (t n, y n ), n = 1,..., N, which pproximte the grph of the solution y = y(t). In order to obtin continuous solution one must use n interpoltion or pproximtion method. 3. Euler s method is illustrted in the Mple worksheet 472 Euler Tylor.mws. 4. In principle, it is esy to use Euler s method with vrible step size, i.e., y(t n+1 ) y n+1 = y n + h n f(t n, y n ), but nlysis of the method is simpler with constnt step size h n = h. 32

33 1.6.2 Tylor Series Methods An immedite generliztion of Euler s method re the so-clled generl Tylor series methods. We use Tylor expnsion y(t + h) = y(t) + hy (t) + h2 2 y (t) + h3 6 y (t) +..., nd therefore obtin the numericl pproximtion y(t + h) ν k= h k y (k) (t) k! (24) which is referred to s ν-th order Tylor series method. Remrk 1. Obviously, Euler s method is first-order Tylor method. 2. In order to progrm Tylor method we need to pre-compute ll higher-order derivtives of y required by the method since the differentil eqution only provides representtion for y. This implies tht we will end up with code tht depends on (nd chnges with) the IVP to be solved. 3. Computer softwre with symbolic mnipultion cpbilities (such s Mple or Mthemtic) llows us to write code for Tylor methods for rbitrry IVPs. We illustrte the trditionl tretment of second-order Tylor method in the following exmple. Exmple Consider the initil vlue problem (d = 1) y (t) = y(t) t y() = 1 2. The second-order Tylor pproximtion is given by y(t + h) y(t) + hy (t) + h2 2 y (t). Therefore, we need to express y (t) nd y (t) in terms of y nd t so tht n itertive lgorithm cn be formulted. From the differentil eqution Therefore, differentiting this reltion, y (t) = f(t, y(t)) = y(t) t y (t) = y (t) 2t, nd this cn be incorported into the following lgorithm. 33

34 Algorithm Input t, y, f, h, N t = t, y = y for n = 1 to N do end y = f(t, y) y = y 2t y y + hy + h2 2 y t t + h Remrk 1. Two modifictions re suggested to mke the lgorithm more efficient nd numericlly stble. () Replce the computtion of y by the nested formultion y = y + h (y + h2 ) y. (b) Advnce the time t vi t = t + nh. 2. An exmple of fourth-order Tylor method is given in the Mple worksheet Euler Tylor.mws Errors nd Convergence When considering errors introduced using the Tylor series or Euler pproximtion we need to distinguish between two different types of error: locl trunction error, nd globl trunction error. The locl trunction error is the error introduced directly by trunction of the Tylor series, i.e., t ech time step we hve n error E ν = hν+1 (ν + 1)! y(ν+1) (t + θh), < θ < 1. Thus, the ν-th order Tylor method hs n O(h ν+1 ) locl trunction error. The globl trunction error is the error tht results if we use ν-th order Tylor method hving O(h ν+1 ) locl trunction error to solve our IVP up to time t = t + t. Since we will be performing t N = h steps we see tht one order of h is lost in the globl trunction error, i.e., the globl trunction error is of the order O(h ν ). 34

35 Remrk Of course, trunction errors re independent of roundoff errors which cn dd to the overll error. As we will see lter, method with O(h ν+1 ) locl ccurcy need not be globlly ν-th order. In fct, it need not converge t ll. Stbility will be the key to convergence. A numericl method for the IVP (21), (22) is clled convergent if for every Lipschitz function f nd every t > we hve lim h + mx y n,h y(t n ) =. n=,1,...,n In other words, if the numericl solution pproches the nlytic solution for incresingly smller step sizes h. For Euler s method we cn estblish convergence (nd therefore the bove heuristics regrding trunction errors re justified). Theorem 1.21 Euler s method is convergent. Proof To simplify the proof we ssume tht f (nd therefore lso y) is nlytic. We introduce the nottion e n,h = y n,h y(t n ) fir the error t step n. We need to show lim h + mx e n,h =. n=,1,...,n Tylor s theorem for the nlytic solution y gives us (since t n+1 = t n + h) Replcing y by the ODE (21) we hve y(t n+1 ) = y(t n ) + hy (t n ) + O(h 2 ). y(t n+1 ) = y(t n ) + hf(t n, y(t n )) + O(h 2 ). From Euler s method we hve for the numericl solution y n+1,h = y n,h + hf(t n, y n,h ). The difference of these lst two expressions yields e n+1,h = y n+1,h y(t n+1 ) = [y n,h + hf(t n, y n,h )] [ y(t n ) + hf(t n, y(t n )) + O(h 2 ) ] Since y n,h = y(t n ) + e n,h we hve = e n,h + h [f(t n, y n,h ) f(t n, y(t n ))] + O(h 2 ). e n+1,h = e n,h + h [f(t n, y(t n ) + e n,h ) f(t n, y(t n ))] + O(h 2 ). 35

Lecture 14: Quadrature

Lecture 14: Quadrature Lecture 14: Qudrture This lecture is concerned with the evlution of integrls fx)dx 1) over finite intervl [, b] The integrnd fx) is ssumed to be rel-vlues nd smooth The pproximtion of n integrl by numericl

More information

CMDA 4604: Intermediate Topics in Mathematical Modeling Lecture 19: Interpolation and Quadrature

CMDA 4604: Intermediate Topics in Mathematical Modeling Lecture 19: Interpolation and Quadrature CMDA 4604: Intermedite Topics in Mthemticl Modeling Lecture 19: Interpoltion nd Qudrture In this lecture we mke brief diversion into the res of interpoltion nd qudrture. Given function f C[, b], we sy

More information

The Regulated and Riemann Integrals

The Regulated and Riemann Integrals Chpter 1 The Regulted nd Riemnn Integrls 1.1 Introduction We will consider severl different pproches to defining the definite integrl f(x) dx of function f(x). These definitions will ll ssign the sme vlue

More information

Numerical Integration

Numerical Integration Chpter 5 Numericl Integrtion Numericl integrtion is the study of how the numericl vlue of n integrl cn be found. Methods of function pproximtion discussed in Chpter??, i.e., function pproximtion vi the

More information

NUMERICAL INTEGRATION. The inverse process to differentiation in calculus is integration. Mathematically, integration is represented by.

NUMERICAL INTEGRATION. The inverse process to differentiation in calculus is integration. Mathematically, integration is represented by. NUMERICAL INTEGRATION 1 Introduction The inverse process to differentition in clculus is integrtion. Mthemticlly, integrtion is represented by f(x) dx which stnds for the integrl of the function f(x) with

More information

Advanced Calculus: MATH 410 Notes on Integrals and Integrability Professor David Levermore 17 October 2004

Advanced Calculus: MATH 410 Notes on Integrals and Integrability Professor David Levermore 17 October 2004 Advnced Clculus: MATH 410 Notes on Integrls nd Integrbility Professor Dvid Levermore 17 October 2004 1. Definite Integrls In this section we revisit the definite integrl tht you were introduced to when

More information

Orthogonal Polynomials and Least-Squares Approximations to Functions

Orthogonal Polynomials and Least-Squares Approximations to Functions Chpter Orthogonl Polynomils nd Lest-Squres Approximtions to Functions **4/5/3 ET. Discrete Lest-Squres Approximtions Given set of dt points (x,y ), (x,y ),..., (x m,y m ), norml nd useful prctice in mny

More information

THE EXISTENCE-UNIQUENESS THEOREM FOR FIRST-ORDER DIFFERENTIAL EQUATIONS.

THE EXISTENCE-UNIQUENESS THEOREM FOR FIRST-ORDER DIFFERENTIAL EQUATIONS. THE EXISTENCE-UNIQUENESS THEOREM FOR FIRST-ORDER DIFFERENTIAL EQUATIONS RADON ROSBOROUGH https://intuitiveexplntionscom/picrd-lindelof-theorem/ This document is proof of the existence-uniqueness theorem

More information

Discrete Least-squares Approximations

Discrete Least-squares Approximations Discrete Lest-squres Approximtions Given set of dt points (x, y ), (x, y ),, (x m, y m ), norml nd useful prctice in mny pplictions in sttistics, engineering nd other pplied sciences is to construct curve

More information

1 The Lagrange interpolation formula

1 The Lagrange interpolation formula Notes on Qudrture 1 The Lgrnge interpoltion formul We briefly recll the Lgrnge interpoltion formul. The strting point is collection of N + 1 rel points (x 0, y 0 ), (x 1, y 1 ),..., (x N, y N ), with x

More information

Best Approximation. Chapter The General Case

Best Approximation. Chapter The General Case Chpter 4 Best Approximtion 4.1 The Generl Cse In the previous chpter, we hve seen how n interpolting polynomil cn be used s n pproximtion to given function. We now wnt to find the best pproximtion to given

More information

Numerical Analysis: Trapezoidal and Simpson s Rule

Numerical Analysis: Trapezoidal and Simpson s Rule nd Simpson s Mthemticl question we re interested in numericlly nswering How to we evlute I = f (x) dx? Clculus tells us tht if F(x) is the ntiderivtive of function f (x) on the intervl [, b], then I =

More information

Math& 152 Section Integration by Parts

Math& 152 Section Integration by Parts Mth& 5 Section 7. - Integrtion by Prts Integrtion by prts is rule tht trnsforms the integrl of the product of two functions into other (idelly simpler) integrls. Recll from Clculus I tht given two differentible

More information

ODE: Existence and Uniqueness of a Solution

ODE: Existence and Uniqueness of a Solution Mth 22 Fll 213 Jerry Kzdn ODE: Existence nd Uniqueness of Solution The Fundmentl Theorem of Clculus tells us how to solve the ordinry differentil eqution (ODE) du = f(t) dt with initil condition u() =

More information

Lecture 4: Piecewise Cubic Interpolation

Lecture 4: Piecewise Cubic Interpolation Lecture notes on Vritionl nd Approximte Methods in Applied Mthemtics - A Peirce UBC Lecture 4: Piecewise Cubic Interpoltion Compiled 5 September In this lecture we consider piecewise cubic interpoltion

More information

Math 1B, lecture 4: Error bounds for numerical methods

Math 1B, lecture 4: Error bounds for numerical methods Mth B, lecture 4: Error bounds for numericl methods Nthn Pflueger 4 September 0 Introduction The five numericl methods descried in the previous lecture ll operte by the sme principle: they pproximte the

More information

Review of Calculus, cont d

Review of Calculus, cont d Jim Lmbers MAT 460 Fll Semester 2009-10 Lecture 3 Notes These notes correspond to Section 1.1 in the text. Review of Clculus, cont d Riemnn Sums nd the Definite Integrl There re mny cses in which some

More information

Lecture 19: Continuous Least Squares Approximation

Lecture 19: Continuous Least Squares Approximation Lecture 19: Continuous Lest Squres Approximtion 33 Continuous lest squres pproximtion We begn 31 with the problem of pproximting some f C[, b] with polynomil p P n t the discrete points x, x 1,, x m for

More information

Numerical integration

Numerical integration 2 Numericl integrtion This is pge i Printer: Opque this 2. Introduction Numericl integrtion is problem tht is prt of mny problems in the economics nd econometrics literture. The orgniztion of this chpter

More information

Lecture 6: Singular Integrals, Open Quadrature rules, and Gauss Quadrature

Lecture 6: Singular Integrals, Open Quadrature rules, and Gauss Quadrature Lecture notes on Vritionl nd Approximte Methods in Applied Mthemtics - A Peirce UBC Lecture 6: Singulr Integrls, Open Qudrture rules, nd Guss Qudrture (Compiled 6 August 7) In this lecture we discuss the

More information

Numerical Methods I Orthogonal Polynomials

Numerical Methods I Orthogonal Polynomials Numericl Methods I Orthogonl Polynomils Aleksndr Donev Cournt Institute, NYU 1 donev@cournt.nyu.edu 1 MATH-GA 2011.003 / CSCI-GA 2945.003, Fll 2014 Nov 6th, 2014 A. Donev (Cournt Institute) Lecture IX

More information

NUMERICAL INTEGRATION

NUMERICAL INTEGRATION NUMERICAL INTEGRATION How do we evlute I = f (x) dx By the fundmentl theorem of clculus, if F (x) is n ntiderivtive of f (x), then I = f (x) dx = F (x) b = F (b) F () However, in prctice most integrls

More information

A REVIEW OF CALCULUS CONCEPTS FOR JDEP 384H. Thomas Shores Department of Mathematics University of Nebraska Spring 2007

A REVIEW OF CALCULUS CONCEPTS FOR JDEP 384H. Thomas Shores Department of Mathematics University of Nebraska Spring 2007 A REVIEW OF CALCULUS CONCEPTS FOR JDEP 384H Thoms Shores Deprtment of Mthemtics University of Nebrsk Spring 2007 Contents Rtes of Chnge nd Derivtives 1 Dierentils 4 Are nd Integrls 5 Multivrite Clculus

More information

MATH34032: Green s Functions, Integral Equations and the Calculus of Variations 1

MATH34032: Green s Functions, Integral Equations and the Calculus of Variations 1 MATH34032: Green s Functions, Integrl Equtions nd the Clculus of Vritions 1 Section 1 Function spces nd opertors Here we gives some brief detils nd definitions, prticulrly relting to opertors. For further

More information

Numerical Analysis. Doron Levy. Department of Mathematics Stanford University

Numerical Analysis. Doron Levy. Department of Mathematics Stanford University Numericl Anlysis Doron Levy Deprtment of Mthemtics Stnford University December 1, 2005 D. Levy Prefce i D. Levy CONTENTS Contents Prefce i 1 Introduction 1 2 Interpoltion 2 2.1 Wht is Interpoltion?............................

More information

Properties of Integrals, Indefinite Integrals. Goals: Definition of the Definite Integral Integral Calculations using Antiderivatives

Properties of Integrals, Indefinite Integrals. Goals: Definition of the Definite Integral Integral Calculations using Antiderivatives Block #6: Properties of Integrls, Indefinite Integrls Gols: Definition of the Definite Integrl Integrl Clcultions using Antiderivtives Properties of Integrls The Indefinite Integrl 1 Riemnn Sums - 1 Riemnn

More information

Exam 2, Mathematics 4701, Section ETY6 6:05 pm 7:40 pm, March 31, 2016, IH-1105 Instructor: Attila Máté 1

Exam 2, Mathematics 4701, Section ETY6 6:05 pm 7:40 pm, March 31, 2016, IH-1105 Instructor: Attila Máté 1 Exm, Mthemtics 471, Section ETY6 6:5 pm 7:4 pm, Mrch 1, 16, IH-115 Instructor: Attil Máté 1 17 copies 1. ) Stte the usul sufficient condition for the fixed-point itertion to converge when solving the eqution

More information

3.4 Numerical integration

3.4 Numerical integration 3.4. Numericl integrtion 63 3.4 Numericl integrtion In mny economic pplictions it is necessry to compute the definite integrl of relvlued function f with respect to "weight" function w over n intervl [,

More information

Definite integral. Mathematics FRDIS MENDELU

Definite integral. Mathematics FRDIS MENDELU Definite integrl Mthemtics FRDIS MENDELU Simon Fišnrová Brno 1 Motivtion - re under curve Suppose, for simplicity, tht y = f(x) is nonnegtive nd continuous function defined on [, b]. Wht is the re of the

More information

Definite integral. Mathematics FRDIS MENDELU. Simona Fišnarová (Mendel University) Definite integral MENDELU 1 / 30

Definite integral. Mathematics FRDIS MENDELU. Simona Fišnarová (Mendel University) Definite integral MENDELU 1 / 30 Definite integrl Mthemtics FRDIS MENDELU Simon Fišnrová (Mendel University) Definite integrl MENDELU / Motivtion - re under curve Suppose, for simplicity, tht y = f(x) is nonnegtive nd continuous function

More information

Advanced Calculus: MATH 410 Uniform Convergence of Functions Professor David Levermore 11 December 2015

Advanced Calculus: MATH 410 Uniform Convergence of Functions Professor David Levermore 11 December 2015 Advnced Clculus: MATH 410 Uniform Convergence of Functions Professor Dvid Levermore 11 December 2015 12. Sequences of Functions We now explore two notions of wht it mens for sequence of functions {f n

More information

Numerical quadrature based on interpolating functions: A MATLAB implementation

Numerical quadrature based on interpolating functions: A MATLAB implementation SEMINAR REPORT Numericl qudrture bsed on interpolting functions: A MATLAB implementtion by Venkt Ayylsomyjul A seminr report submitted in prtil fulfillment for the degree of Mster of Science (M.Sc) in

More information

Chapter 3 Polynomials

Chapter 3 Polynomials Dr M DRAIEF As described in the introduction of Chpter 1, pplictions of solving liner equtions rise in number of different settings In prticulr, we will in this chpter focus on the problem of modelling

More information

Orthogonal Polynomials

Orthogonal Polynomials Mth 4401 Gussin Qudrture Pge 1 Orthogonl Polynomils Orthogonl polynomils rise from series solutions to differentil equtions, lthough they cn be rrived t in vriety of different mnners. Orthogonl polynomils

More information

Euler, Ioachimescu and the trapezium rule. G.J.O. Jameson (Math. Gazette 96 (2012), )

Euler, Ioachimescu and the trapezium rule. G.J.O. Jameson (Math. Gazette 96 (2012), ) Euler, Iochimescu nd the trpezium rule G.J.O. Jmeson (Mth. Gzette 96 (0), 36 4) The following results were estblished in recent Gzette rticle [, Theorems, 3, 4]. Given > 0 nd 0 < s

More information

Lecture 17. Integration: Gauss Quadrature. David Semeraro. University of Illinois at Urbana-Champaign. March 20, 2014

Lecture 17. Integration: Gauss Quadrature. David Semeraro. University of Illinois at Urbana-Champaign. March 20, 2014 Lecture 17 Integrtion: Guss Qudrture Dvid Semerro University of Illinois t Urbn-Chmpign Mrch 0, 014 Dvid Semerro (NCSA) CS 57 Mrch 0, 014 1 / 9 Tody: Objectives identify the most widely used qudrture method

More information

Lecture 20: Numerical Integration III

Lecture 20: Numerical Integration III cs4: introduction to numericl nlysis /8/0 Lecture 0: Numericl Integrtion III Instructor: Professor Amos Ron Scribes: Mrk Cowlishw, Yunpeng Li, Nthnel Fillmore For the lst few lectures we hve discussed

More information

Unit #9 : Definite Integral Properties; Fundamental Theorem of Calculus

Unit #9 : Definite Integral Properties; Fundamental Theorem of Calculus Unit #9 : Definite Integrl Properties; Fundmentl Theorem of Clculus Gols: Identify properties of definite integrls Define odd nd even functions, nd reltionship to integrl vlues Introduce the Fundmentl

More information

Theoretical foundations of Gaussian quadrature

Theoretical foundations of Gaussian quadrature Theoreticl foundtions of Gussin qudrture 1 Inner product vector spce Definition 1. A vector spce (or liner spce) is set V = {u, v, w,...} in which the following two opertions re defined: (A) Addition of

More information

Review of basic calculus

Review of basic calculus Review of bsic clculus This brief review reclls some of the most importnt concepts, definitions, nd theorems from bsic clculus. It is not intended to tech bsic clculus from scrtch. If ny of the items below

More information

P 3 (x) = f(0) + f (0)x + f (0) 2. x 2 + f (0) . In the problem set, you are asked to show, in general, the n th order term is a n = f (n) (0)

P 3 (x) = f(0) + f (0)x + f (0) 2. x 2 + f (0) . In the problem set, you are asked to show, in general, the n th order term is a n = f (n) (0) 1 Tylor polynomils In Section 3.5, we discussed how to pproximte function f(x) round point in terms of its first derivtive f (x) evluted t, tht is using the liner pproximtion f() + f ()(x ). We clled this

More information

Abstract inner product spaces

Abstract inner product spaces WEEK 4 Abstrct inner product spces Definition An inner product spce is vector spce V over the rel field R equipped with rule for multiplying vectors, such tht the product of two vectors is sclr, nd the

More information

Math 270A: Numerical Linear Algebra

Math 270A: Numerical Linear Algebra Mth 70A: Numericl Liner Algebr Instructor: Michel Holst Fll Qurter 014 Homework Assignment #3 Due Give to TA t lest few dys before finl if you wnt feedbck. Exercise 3.1. (The Bsic Liner Method for Liner

More information

f(x)dx . Show that there 1, 0 < x 1 does not exist a differentiable function g : [ 1, 1] R such that g (x) = f(x) for all

f(x)dx . Show that there 1, 0 < x 1 does not exist a differentiable function g : [ 1, 1] R such that g (x) = f(x) for all 3 Definite Integrl 3.1 Introduction In school one comes cross the definition of the integrl of rel vlued function defined on closed nd bounded intervl [, b] between the limits nd b, i.e., f(x)dx s the

More information

Best Approximation in the 2-norm

Best Approximation in the 2-norm Jim Lmbers MAT 77 Fll Semester 1-11 Lecture 1 Notes These notes correspond to Sections 9. nd 9.3 in the text. Best Approximtion in the -norm Suppose tht we wish to obtin function f n (x) tht is liner combintion

More information

CAAM 453 NUMERICAL ANALYSIS I Examination There are four questions, plus a bonus. Do not look at them until you begin the exam.

CAAM 453 NUMERICAL ANALYSIS I Examination There are four questions, plus a bonus. Do not look at them until you begin the exam. Exmintion 1 Posted 23 October 2002. Due no lter thn 5pm on Mondy, 28 October 2002. Instructions: 1. Time limit: 3 uninterrupted hours. 2. There re four questions, plus bonus. Do not look t them until you

More information

Numerical Integration. 1 Introduction. 2 Midpoint Rule, Trapezoid Rule, Simpson Rule. AMSC/CMSC 460/466 T. von Petersdorff 1

Numerical Integration. 1 Introduction. 2 Midpoint Rule, Trapezoid Rule, Simpson Rule. AMSC/CMSC 460/466 T. von Petersdorff 1 AMSC/CMSC 46/466 T. von Petersdorff 1 umericl Integrtion 1 Introduction We wnt to pproximte the integrl I := f xdx where we re given, b nd the function f s subroutine. We evlute f t points x 1,...,x n

More information

1 The Riemann Integral

1 The Riemann Integral The Riemnn Integrl. An exmple leding to the notion of integrl (res) We know how to find (i.e. define) the re of rectngle (bse height), tringle ( (sum of res of tringles). But how do we find/define n re

More information

Lecture 1. Functional series. Pointwise and uniform convergence.

Lecture 1. Functional series. Pointwise and uniform convergence. 1 Introduction. Lecture 1. Functionl series. Pointwise nd uniform convergence. In this course we study mongst other things Fourier series. The Fourier series for periodic function f(x) with period 2π is

More information

1. Gauss-Jacobi quadrature and Legendre polynomials. p(t)w(t)dt, p {p(x 0 ),...p(x n )} p(t)w(t)dt = w k p(x k ),

1. Gauss-Jacobi quadrature and Legendre polynomials. p(t)w(t)dt, p {p(x 0 ),...p(x n )} p(t)w(t)dt = w k p(x k ), 1. Guss-Jcobi qudrture nd Legendre polynomils Simpson s rule for evluting n integrl f(t)dt gives the correct nswer with error of bout O(n 4 ) (with constnt tht depends on f, in prticulr, it depends on

More information

63. Representation of functions as power series Consider a power series. ( 1) n x 2n for all 1 < x < 1

63. Representation of functions as power series Consider a power series. ( 1) n x 2n for all 1 < x < 1 3 9. SEQUENCES AND SERIES 63. Representtion of functions s power series Consider power series x 2 + x 4 x 6 + x 8 + = ( ) n x 2n It is geometric series with q = x 2 nd therefore it converges for ll q =

More information

Construction of Gauss Quadrature Rules

Construction of Gauss Quadrature Rules Jim Lmbers MAT 772 Fll Semester 2010-11 Lecture 15 Notes These notes correspond to Sections 10.2 nd 10.3 in the text. Construction of Guss Qudrture Rules Previously, we lerned tht Newton-Cotes qudrture

More information

III. Lecture on Numerical Integration. File faclib/dattab/lecture-notes/numerical-inter03.tex /by EC, 3/14/2008 at 15:11, version 9

III. Lecture on Numerical Integration. File faclib/dattab/lecture-notes/numerical-inter03.tex /by EC, 3/14/2008 at 15:11, version 9 III Lecture on Numericl Integrtion File fclib/dttb/lecture-notes/numerical-inter03.tex /by EC, 3/14/008 t 15:11, version 9 1 Sttement of the Numericl Integrtion Problem In this lecture we consider the

More information

Recitation 3: More Applications of the Derivative

Recitation 3: More Applications of the Derivative Mth 1c TA: Pdric Brtlett Recittion 3: More Applictions of the Derivtive Week 3 Cltech 2012 1 Rndom Question Question 1 A grph consists of the following: A set V of vertices. A set E of edges where ech

More information

Part IB Numerical Analysis

Part IB Numerical Analysis Prt IB Numericl Anlysis Theorems with proof Bsed on lectures by G. Moore Notes tken by Dexter Chu Lent 2016 These notes re not endorsed by the lecturers, nd I hve modified them (often significntly) fter

More information

Advanced Computational Fluid Dynamics AA215A Lecture 3 Polynomial Interpolation: Numerical Differentiation and Integration.

Advanced Computational Fluid Dynamics AA215A Lecture 3 Polynomial Interpolation: Numerical Differentiation and Integration. Advnced Computtionl Fluid Dynmics AA215A Lecture 3 Polynomil Interpoltion: Numericl Differentition nd Integrtion Antony Jmeson Winter Qurter, 2016, Stnford, CA Lst revised on Jnury 7, 2016 Contents 3 Polynomil

More information

Lecture Note 4: Numerical differentiation and integration. Xiaoqun Zhang Shanghai Jiao Tong University

Lecture Note 4: Numerical differentiation and integration. Xiaoqun Zhang Shanghai Jiao Tong University Lecture Note 4: Numericl differentition nd integrtion Xioqun Zng Sngi Jio Tong University Lst updted: November, 0 Numericl Anlysis. Numericl differentition.. Introduction Find n pproximtion of f (x 0 ),

More information

Lecture 23: Interpolatory Quadrature

Lecture 23: Interpolatory Quadrature Lecture 3: Interpoltory Qudrture. Qudrture. The computtion of continuous lest squres pproximtions to f C[, b] required evlutions of the inner product f, φ j = fxφ jx dx, where φ j is polynomil bsis function

More information

Section 6.1 INTRO to LAPLACE TRANSFORMS

Section 6.1 INTRO to LAPLACE TRANSFORMS Section 6. INTRO to LAPLACE TRANSFORMS Key terms: Improper Integrl; diverge, converge A A f(t)dt lim f(t)dt Piecewise Continuous Function; jump discontinuity Function of Exponentil Order Lplce Trnsform

More information

How can we approximate the area of a region in the plane? What is an interpretation of the area under the graph of a velocity function?

How can we approximate the area of a region in the plane? What is an interpretation of the area under the graph of a velocity function? Mth 125 Summry Here re some thoughts I ws hving while considering wht to put on the first midterm. The core of your studying should be the ssigned homework problems: mke sure you relly understnd those

More information

Math 113 Fall Final Exam Review. 2. Applications of Integration Chapter 6 including sections and section 6.8

Math 113 Fall Final Exam Review. 2. Applications of Integration Chapter 6 including sections and section 6.8 Mth 3 Fll 0 The scope of the finl exm will include: Finl Exm Review. Integrls Chpter 5 including sections 5. 5.7, 5.0. Applictions of Integrtion Chpter 6 including sections 6. 6.5 nd section 6.8 3. Infinite

More information

Numerical Integration

Numerical Integration Chpter 1 Numericl Integrtion Numericl differentition methods compute pproximtions to the derivtive of function from known vlues of the function. Numericl integrtion uses the sme informtion to compute numericl

More information

Overview of Calculus I

Overview of Calculus I Overview of Clculus I Prof. Jim Swift Northern Arizon University There re three key concepts in clculus: The limit, the derivtive, nd the integrl. You need to understnd the definitions of these three things,

More information

The Riemann Integral

The Riemann Integral Deprtment of Mthemtics King Sud University 2017-2018 Tble of contents 1 Anti-derivtive Function nd Indefinite Integrls 2 3 4 5 Indefinite Integrls & Anti-derivtive Function Definition Let f : I R be function

More information

Review of Riemann Integral

Review of Riemann Integral 1 Review of Riemnn Integrl In this chpter we review the definition of Riemnn integrl of bounded function f : [, b] R, nd point out its limittions so s to be convinced of the necessity of more generl integrl.

More information

Goals: Determine how to calculate the area described by a function. Define the definite integral. Explore the relationship between the definite

Goals: Determine how to calculate the area described by a function. Define the definite integral. Explore the relationship between the definite Unit #8 : The Integrl Gols: Determine how to clculte the re described by function. Define the definite integrl. Eplore the reltionship between the definite integrl nd re. Eplore wys to estimte the definite

More information

B.Sc. in Mathematics (Ordinary)

B.Sc. in Mathematics (Ordinary) R48/0 DUBLIN INSTITUTE OF TECHNOLOGY KEVIN STREET, DUBLIN 8 B.Sc. in Mthemtics (Ordinry) SUPPLEMENTAL EXAMINATIONS 01 Numericl Methods Dr. D. Mckey Dr. C. Hills Dr. E.A. Cox Full mrks for complete nswers

More information

Numerical Analysis. 10th ed. R L Burden, J D Faires, and A M Burden

Numerical Analysis. 10th ed. R L Burden, J D Faires, and A M Burden Numericl Anlysis 10th ed R L Burden, J D Fires, nd A M Burden Bemer Presenttion Slides Prepred by Dr. Annette M. Burden Youngstown Stte University July 9, 2015 Chpter 4.1: Numericl Differentition 1 Three-Point

More information

Introduction to Numerical Analysis

Introduction to Numerical Analysis Introduction to Numericl Anlysis Doron Levy Deprtment of Mthemtics nd Center for Scientific Computtion nd Mthemticl Modeling (CSCAMM) University of Mrylnd June 14, 2012 D. Levy CONTENTS Contents 1 Introduction

More information

Numerical Integration. Newton Cotes Formulas. Quadrature. Newton Cotes Formulas. To approximate the integral b

Numerical Integration. Newton Cotes Formulas. Quadrature. Newton Cotes Formulas. To approximate the integral b Numericl Integrtion Newton Cotes Formuls Given function f : R R nd two rel numbers, b R, < b, we clculte (pproximtely) the integrl I(f,, b) = f (x) dx K. Frischmuth (IfM UR) Numerics for CSE 08/09 8 /

More information

THE HANKEL MATRIX METHOD FOR GAUSSIAN QUADRATURE IN 1 AND 2 DIMENSIONS

THE HANKEL MATRIX METHOD FOR GAUSSIAN QUADRATURE IN 1 AND 2 DIMENSIONS THE HANKEL MATRIX METHOD FOR GAUSSIAN QUADRATURE IN 1 AND 2 DIMENSIONS CARLOS SUERO, MAURICIO ALMANZAR CONTENTS 1 Introduction 1 2 Proof of Gussin Qudrture 6 3 Iterted 2-Dimensionl Gussin Qudrture 20 4

More information

Main topics for the First Midterm

Main topics for the First Midterm Min topics for the First Midterm The Midterm will cover Section 1.8, Chpters 2-3, Sections 4.1-4.8, nd Sections 5.1-5.3 (essentilly ll of the mteril covered in clss). Be sure to know the results of the

More information

Chapter 5. Numerical Integration

Chapter 5. Numerical Integration Chpter 5. Numericl Integrtion These re just summries of the lecture notes, nd few detils re included. Most of wht we include here is to be found in more detil in Anton. 5. Remrk. There re two topics with

More information

1 1D heat and wave equations on a finite interval

1 1D heat and wave equations on a finite interval 1 1D het nd wve equtions on finite intervl In this section we consider generl method of seprtion of vribles nd its pplictions to solving het eqution nd wve eqution on finite intervl ( 1, 2. Since by trnsltion

More information

The First Fundamental Theorem of Calculus. If f(x) is continuous on [a, b] and F (x) is any antiderivative. f(x) dx = F (b) F (a).

The First Fundamental Theorem of Calculus. If f(x) is continuous on [a, b] and F (x) is any antiderivative. f(x) dx = F (b) F (a). The Fundmentl Theorems of Clculus Mth 4, Section 0, Spring 009 We now know enough bout definite integrls to give precise formultions of the Fundmentl Theorems of Clculus. We will lso look t some bsic emples

More information

New Expansion and Infinite Series

New Expansion and Infinite Series Interntionl Mthemticl Forum, Vol. 9, 204, no. 22, 06-073 HIKARI Ltd, www.m-hikri.com http://dx.doi.org/0.2988/imf.204.4502 New Expnsion nd Infinite Series Diyun Zhng College of Computer Nnjing University

More information

INTRODUCTION TO INTEGRATION

INTRODUCTION TO INTEGRATION INTRODUCTION TO INTEGRATION 5.1 Ares nd Distnces Assume f(x) 0 on the intervl [, b]. Let A be the re under the grph of f(x). b We will obtin n pproximtion of A in the following three steps. STEP 1: Divide

More information

7.2 The Definite Integral

7.2 The Definite Integral 7.2 The Definite Integrl the definite integrl In the previous section, it ws found tht if function f is continuous nd nonnegtive, then the re under the grph of f on [, b] is given by F (b) F (), where

More information

Chapters 4 & 5 Integrals & Applications

Chapters 4 & 5 Integrals & Applications Contents Chpters 4 & 5 Integrls & Applictions Motivtion to Chpters 4 & 5 2 Chpter 4 3 Ares nd Distnces 3. VIDEO - Ares Under Functions............................................ 3.2 VIDEO - Applictions

More information

Riemann Sums and Riemann Integrals

Riemann Sums and Riemann Integrals Riemnn Sums nd Riemnn Integrls Jmes K. Peterson Deprtment of Biologicl Sciences nd Deprtment of Mthemticl Sciences Clemson University August 26, 203 Outline Riemnn Sums Riemnn Integrls Properties Abstrct

More information

1.9 C 2 inner variations

1.9 C 2 inner variations 46 CHAPTER 1. INDIRECT METHODS 1.9 C 2 inner vritions So fr, we hve restricted ttention to liner vritions. These re vritions of the form vx; ǫ = ux + ǫφx where φ is in some liner perturbtion clss P, for

More information

MATH 144: Business Calculus Final Review

MATH 144: Business Calculus Final Review MATH 144: Business Clculus Finl Review 1 Skills 1. Clculte severl limits. 2. Find verticl nd horizontl symptotes for given rtionl function. 3. Clculte derivtive by definition. 4. Clculte severl derivtives

More information

Riemann Sums and Riemann Integrals

Riemann Sums and Riemann Integrals Riemnn Sums nd Riemnn Integrls Jmes K. Peterson Deprtment of Biologicl Sciences nd Deprtment of Mthemticl Sciences Clemson University August 26, 2013 Outline 1 Riemnn Sums 2 Riemnn Integrls 3 Properties

More information

Lecture 1: Introduction to integration theory and bounded variation

Lecture 1: Introduction to integration theory and bounded variation Lecture 1: Introduction to integrtion theory nd bounded vrition Wht is this course bout? Integrtion theory. The first question you might hve is why there is nything you need to lern bout integrtion. You

More information

Chapter 7 Notes, Stewart 8e. 7.1 Integration by Parts Trigonometric Integrals Evaluating sin m x cos n (x) dx...

Chapter 7 Notes, Stewart 8e. 7.1 Integration by Parts Trigonometric Integrals Evaluating sin m x cos n (x) dx... Contents 7.1 Integrtion by Prts................................... 2 7.2 Trigonometric Integrls.................................. 8 7.2.1 Evluting sin m x cos n (x)......................... 8 7.2.2 Evluting

More information

Solutions to Assignment #8

Solutions to Assignment #8 Mth 1 Numericl Anlysis (Bueler) December 9, 29 Solutions to Assignment #8 Problems 64, exercise 14: The nswer turns out to be yes, which mens tht I hve to be orgnized in writing it up There re lot of fcts

More information

The final exam will take place on Friday May 11th from 8am 11am in Evans room 60.

The final exam will take place on Friday May 11th from 8am 11am in Evans room 60. Mth 104: finl informtion The finl exm will tke plce on Fridy My 11th from 8m 11m in Evns room 60. The exm will cover ll prts of the course with equl weighting. It will cover Chpters 1 5, 7 15, 17 21, 23

More information

Math 360: A primitive integral and elementary functions

Math 360: A primitive integral and elementary functions Mth 360: A primitive integrl nd elementry functions D. DeTurck University of Pennsylvni October 16, 2017 D. DeTurck Mth 360 001 2017C: Integrl/functions 1 / 32 Setup for the integrl prtitions Definition:

More information

Chapter 0. What is the Lebesgue integral about?

Chapter 0. What is the Lebesgue integral about? Chpter 0. Wht is the Lebesgue integrl bout? The pln is to hve tutoril sheet ech week, most often on Fridy, (to be done during the clss) where you will try to get used to the ides introduced in the previous

More information

Sections 5.2: The Definite Integral

Sections 5.2: The Definite Integral Sections 5.2: The Definite Integrl In this section we shll formlize the ides from the lst section to functions in generl. We strt with forml definition.. The Definite Integrl Definition.. Suppose f(x)

More information

The Wave Equation I. MA 436 Kurt Bryan

The Wave Equation I. MA 436 Kurt Bryan 1 Introduction The Wve Eqution I MA 436 Kurt Bryn Consider string stretching long the x xis, of indeterminte (or even infinite!) length. We wnt to derive n eqution which models the motion of the string

More information

UNIFORM CONVERGENCE MA 403: REAL ANALYSIS, INSTRUCTOR: B. V. LIMAYE

UNIFORM CONVERGENCE MA 403: REAL ANALYSIS, INSTRUCTOR: B. V. LIMAYE UNIFORM CONVERGENCE MA 403: REAL ANALYSIS, INSTRUCTOR: B. V. LIMAYE 1. Pointwise Convergence of Sequence Let E be set nd Y be metric spce. Consider functions f n : E Y for n = 1, 2,.... We sy tht the sequence

More information

UNIFORM CONVERGENCE. Contents 1. Uniform Convergence 1 2. Properties of uniform convergence 3

UNIFORM CONVERGENCE. Contents 1. Uniform Convergence 1 2. Properties of uniform convergence 3 UNIFORM CONVERGENCE Contents 1. Uniform Convergence 1 2. Properties of uniform convergence 3 Suppose f n : Ω R or f n : Ω C is sequence of rel or complex functions, nd f n f s n in some sense. Furthermore,

More information

Improper Integrals, and Differential Equations

Improper Integrals, and Differential Equations Improper Integrls, nd Differentil Equtions October 22, 204 5.3 Improper Integrls Previously, we discussed how integrls correspond to res. More specificlly, we sid tht for function f(x), the region creted

More information

x = b a N. (13-1) The set of points used to subdivide the range [a, b] (see Fig. 13.1) is

x = b a N. (13-1) The set of points used to subdivide the range [a, b] (see Fig. 13.1) is Jnury 28, 2002 13. The Integrl The concept of integrtion, nd the motivtion for developing this concept, were described in the previous chpter. Now we must define the integrl, crefully nd completely. According

More information

1 Linear Least Squares

1 Linear Least Squares Lest Squres Pge 1 1 Liner Lest Squres I will try to be consistent in nottion, with n being the number of dt points, nd m < n being the number of prmeters in model function. We re interested in solving

More information

Ordinary differential equations

Ordinary differential equations Ordinry differentil equtions Introduction to Synthetic Biology E Nvrro A Montgud P Fernndez de Cordob JF Urchueguí Overview Introduction-Modelling Bsic concepts to understnd n ODE. Description nd properties

More information

Chapter 1. Basic Concepts

Chapter 1. Basic Concepts Socrtes Dilecticl Process: The Þrst step is the seprtion of subject into its elements. After this, by deþning nd discovering more bout its prts, one better comprehends the entire subject Socrtes (469-399)

More information

20 MATHEMATICS POLYNOMIALS

20 MATHEMATICS POLYNOMIALS 0 MATHEMATICS POLYNOMIALS.1 Introduction In Clss IX, you hve studied polynomils in one vrible nd their degrees. Recll tht if p(x) is polynomil in x, the highest power of x in p(x) is clled the degree of

More information

APPROXIMATE INTEGRATION

APPROXIMATE INTEGRATION APPROXIMATE INTEGRATION. Introduction We hve seen tht there re functions whose nti-derivtives cnnot be expressed in closed form. For these resons ny definite integrl involving these integrnds cnnot be

More information