MAT 772: Numerical Analysis. James V. Lambers

Size: px
Start display at page:

Download "MAT 772: Numerical Analysis. James V. Lambers"

Transcription

1 MAT 772: Numericl Anlysis Jmes V. Lmbers August 23, 2016

2 2

3 Contents 1 Solution of Equtions by Itertion Nonliner Equtions Existence nd Uniqueness Sensitivity Simple Itertion Itertive Solution of Equtions Relxtion Newton s Method The Secnt Method The Bisection Method Sfegurded Methods Polynomil Interpoltion Lgrnge Interpoltion Convergence Hermite Interpoltion Differentition Finite Difference Approximtions Numericl Integrtion Integrtion Well-Posedness Newton-Cotes Qudrture Error Estimtes The Runge Phenomenon Revisited Composite Formule Richrdson Extrpoltion The Euler-Mclurin Expnsion Romberg Integrtion

4 4 CONTENTS 4 Polynomil Approximtion in the -norm Normed Liner Spces Best Approximtion in the -norm Chebyshev Polynomils Interpoltion Polynomil Approximtion in the 2-norm Best Approximtion in the 2-norm Inner Product Spces Orthogonl Polynomils Comprisons Numericl Integrtion - II Construction of Guss Qudrture Rules Error Estimtion for Guss Qudrture Composite Guss Formule Rdu nd Lobtto Qudrture Piecewise Polynomil Approximtion Liner Interpolting Splines Bsis Functions for Liner Splines Cubic Splines Cubic Spline Interpoltion Constructing Cubic Splines Well-Posedness nd Accurcy Hermite Cubic Splines Bsis Functions for Cubic Splines Initil Vlue Problems for ODEs Theory of Initil-Vlue Problems One-Step Methods Consistency nd Convergence An Implicit One-Step Method Runge-Kutt Methods Multistep Methods Consistency nd Zero-Stbility Stiff Differentil Equtions Dhlquist s Theorems Anlysis of Multistep Methods

5 CONTENTS 5 Index 148

6 6 CONTENTS

7 Chpter 1 Solution of Equtions by Itertion 1.1 Nonliner Equtions The solution of single liner eqution is n extremely simple tsk. We now explore the much more difficult problem of solving nonliner equtions of the form f(x) = 0, where f(x) : R n R m cn be ny known function. A solution x of such nonliner eqution is clled root of the eqution, s well s zero of the function f Existence nd Uniqueness For simplicity, we ssume tht the function f : R n R m is continuous on the domin under considertion. Then, ech eqution f i (x) = 0, i = 1,..., m, defines hypersurfce in R m. The solution of f(x) = 0 is the intersection of these hypersurfces, if the intersection is not empty. It is not hrd to see tht there cn be unique solution, infinitely mny solutions, or no solution t ll. For generl eqution f(x) = 0, it is not possible to chrcterize the conditions under which solution exists or is unique. However, in some situtions, it is possible to determine existence nlyticlly. For exmple, in one dimension, the Intermedite Vlue Theorem implies tht if continuous function f(x) stisfies f() 0 nd f(b) 0 where < b, then f(x) = 0 for some x (, b). 7

8 8 CHAPTER 1. SOLUTION OF EQUATIONS BY ITERATION Similrly, it cn be concluded tht f(x) = 0 for some x (, b) if the function (x z)f(x) 0 for x = nd x = b, where z (, b). This condition cn be generlized to higher dimensions. If S R n is n open, bounded set, nd (x z) T f(x) 0 for ll x on the boundry of S nd for some z S, then f(x) = 0 for some x S. Unfortuntely, checking this condition cn be difficult in prctice. One useful result from clculus tht cn be used to estblish existence nd, in some sense, uniqueness of solution is the Inverse Function Theorem, which sttes tht if the Jcobin of f is nonsingulr t point x 0, then f is invertible ner x 0 nd the eqution f(x) = y hs unique solution for ll y ner f(x 0 ). If the Jcobin of f t point x 0 is singulr, then f is sid to be degenerte t x 0. Suppose tht x 0 is solution of f(x) = 0. Then, in one dimension, degenercy mens f (x 0 ) = 0, nd we sy tht x 0 is double root of f(x). Similrly, if f (j) (x 0 ) = 0 for j = 0,..., m 1, then x 0 is root of multiplicity m. We will see tht degenercy cn cuse difficulties when trying to solve nonliner equtions Sensitivity The bsolute condition number of function f(x) is mesure of how perturbtion in x, denoted by x + ɛ for some smll ɛ, is mplified by f(x). Using the Men Vlue Theorem, we hve f(x + ɛ) f(x) = f (c)(x + ɛ x) = f (c) ɛ where c is between x nd x + ɛ. With ɛ being smll, the bsolute condition number cn be pproximted by f (x), the fctor by which the perturbtion in x (ɛ) is mplified to obtin the perturbtion in f(x). In solving nonliner eqution in one dimension, we re trying to solve n inverse problem; tht is, insted of computing y = f(x) (the forwrd problem), we re computing x = f 1 (0), ssuming tht f is invertible ner the root. It follows from the differentition rule d dx [f 1 (x)] = 1 f (f 1 (x)) tht the condition number for solving f(x) = 0 is pproximtely 1/ f (x ), where x is the solution. This discussion cn be generlized to higher dimensions, where the condition number is mesured using the norm of the Jcobin.

9 1.2. SIMPLE ITERATION 9 Using bckwrd error nlysis, we ssume tht the pproximte solution ˆx = ˆf 1 (0), obtined by evluting n pproximtion of f 1 t the exct input y = 0, cn lso be viewed s evluting the exct function f 1 t nerby input ŷ = ɛ. Tht is, the pproximte solution ˆx = f 1 (ɛ) is the exct solution of nerby problem. From this viewpoint, it cn be seen from grph tht if f is lrge ner x, which mens tht the condition number of the problem f(x) = 0 is smll (tht is, the problem is well-conditioned), then even if ɛ is reltively lrge, ˆx = f 1 (ɛ) is close to x. On the other hnd, if f is smll ner x, so tht the problem is ill-conditioned, then even if ɛ is smll, ˆx cn be fr wy from x. 1.2 Simple Itertion A nonliner eqution of the form f(x) = 0 cn be rewritten to obtin n eqution of the form g(x) = x, in which cse the solution is fixed point of the function g. This formultion of the originl problem f(x) = 0 will leds to simple solution method known s fixed-point itertion, or simple itertion. Before we describe this method, however, we must first discuss the questions of existence nd uniqueness of solution to the modified problem g(x) = x. The following result nswers these questions. Theorem (Brouwer s Fixed Point Theorem) Let g be continuous function on the intervl [, b]. If g(x) [, b] for ech x [, b], then g hs fixed point in [, b]. Given continuous function g tht is known to hve fixed point in n intervl [, b], we cn try to find this fixed point by repetedly evluting g t points in [, b] until we find point x for which g(x) = x. This is the essence of the method of fixed-point itertion, the implementtion of which we now describe. Algorithm (Fixed-Point Itertion) Let g be continuous function defined on the intervl [, b]. The following lgorithm computes number x (, b) tht is solution to the eqution g(x) = x. Choose n initil guess x 0 in [, b]. for k = 0, 1, 2,... do x k+1 = g(x k )

10 10 CHAPTER 1. SOLUTION OF EQUATIONS BY ITERATION if x k+1 x k is sufficiently smll then x = x k+1 return x end end Under wht circumstnces will fixed-point itertion converge to fixed point x? We sy tht function g tht is continuous on [, b] stisfies Lipschitz condition on [, b] if there exists positive constnt L such tht g(x) g(y) L x y, x, y [, b]. The constnt L is clled Lipschitz constnt. If, in ddition, L < 1, we sy tht g is contrction on [, b]. If we denote the error in x k by e k = x k x, we cn see from the fct tht g(x ) = x tht if x k [, b], then e k+1 = x k+1 x = g(x k ) g(x ) L x k x L e k < e k. Therefore, if g stisfies the conditions of the Brouwer Fixed-Point Theorem, nd g is contrction on [, b], nd x 0 [, b], then fixed-point itertion is convergent; tht is, x k converges to x. Furthermore, the fixed point x must be unique, for if there exist two distinct fixed points x nd y in [, b], then, by the Lipschitz condition, we hve 0 < x y = g(x ) g(y ) L x y < x y, which is contrdiction. Therefore, we must hve x = y. We summrize our findings with the sttement of the following result. Theorem (Contrction Mpping Theorem) Let g be continuous function on the intervl [, b]. If g(x) [, b] for ech x [, b], nd if there exists constnt 0 < L < 1 such tht g(x) g(y) L x y, x, y [, b], then g hs unique fixed point x in [, b], nd the sequence of itertes {x k } k=0 converges to x, for ny initil guess x 0 [, b]. In generl, when fixed-point itertion converges, it does so t rte tht vries inversely with the Lipschitz constnt L. If the smllest possible Lipschitz constnt on n intervl contining x ctully pproches zero s the width of the intervl converges to zero, then the itertion cn converge

11 1.2. SIMPLE ITERATION 11 much more rpidly. We will discuss convergence behvior of vrious methods for solving nonliner equtions in lter lecture. Often, there re mny wys to convert n eqution of the form f(x) = 0 to one of the form g(x) = x, the simplest being g(x) = x φ(x)f(x) for ny function φ. However, it is importnt to ensure tht the conversion yields function g for which fixed-point itertion will converge. Exmple We use fixed-point itertion to compute fixed point of g(x) = cos x in the intervl [0, 1]. Since cos x 1 for ll x, nd cos x 0 on [0, π/2], nd π/2 > 1, we know tht cos x mps [0, 1] into [0, 1]. Since cos x is continuous for ll x, we cn conclude tht cos x hs fixed point in [0, 1]. Becuse g (x) = sin x, nd sin x sin 1 on [0, 1], we cn pply the Men Vlue Theorem to obtin cos x cos y = sin c x y sin 1 x y, for ny x, y [0, 1], where c lies between x nd y. As sin 1 < 1, we conclude tht cos x is contrction on [0, 1], nd therefore it hs unique fixed point on [0, 1]. To use fixed-point itertion, we first choose n initil guess x 0 in [0, 1]. As discussed bove, fixed-point itertion will converge for ny initil guess, so we choose x 0 = 0.5. The tble on pge 4 shows the outcome of severl itertions, in which we compute x k+1 = cos x k for k = 0, 1, 2,.... As the tble shows, it tkes nerly 30 itertions to obtin the fixed point to five deciml plces, nd there is considerble oscilltion in the first itertions before resonble pproximte solution is obtined. This oscilltion is shown in Figure 1.1. As x k converges, it cn be seen from the tble tht the error is reduced by fctor of roughly 2/3 from itertion to itertion. This suggests tht cos x is reltively poor choice for the itertion function g(x) to solve the eqution g(x) = cos x. In generl, nonliner equtions cnnot be solved in finite sequence of steps. As liner equtions cn be solved using direct methods such s Gussin elimintion, nonliner equtions usully require itertive methods. In itertive methods, n pproximte solution is refined with ech itertion until it is determined to be sufficiently ccurte, t which time the itertion termintes. Since it is desirble for itertive methods to converge to the solution s rpidly s possible, it is necessry to be ble to mesure the speed with which n itertive method converges. To tht end, we ssume tht n itertive method genertes sequence of itertes x 0, x 1, x 2,... tht converges to the exct solution x. Idelly, we

12 12 CHAPTER 1. SOLUTION OF EQUATIONS BY ITERATION Figure 1.1: Fixed-point itertion pplied to the eqution cos x = x, with x 0 = 0.5. would like the error in given iterte x k+1 to be much smller thn the error in the previous iterte x k. For exmple, if the error is rised to power greter thn 1 from itertion to itertion, then, becuse the error is typiclly less thn 1, it will pproch zero very rpidly. This leds to the following definition. Definition (Order nd Rte of Convergence) Let {x k } k=0 be sequence in R n tht converges to x R n nd ssume tht x k x for ech k. We sy tht the order of convergence of {x k } to x is order r, with symptotic error constnt C, if x k+1 x lim k x k x r = C, where r 1. If r = 1, then the number ρ = log 10 C is clled the symptotic rte of convergence. If r = 1, nd 0 < C < 1, we sy tht convergence is liner. If r = 1 nd C = 0, or if 1 < r < 2 for ny positive C, then we sy tht convergence is

13 1.2. SIMPLE ITERATION 13 superliner. If r = 2, then the method converges qudrticlly, nd if r = 3, we sy it converges cubiclly, nd so on. Note tht the vlue of C need only be bounded bove in the cse of liner convergence. When convergence is liner, the symptotic rte of convergence ρ indictes the number of correct deciml digits obtined in single itertion. In other words, 1/ρ + 1 itertions re required to obtin n dditionl correct deciml digit, where x is the floor of x, which is the lrgest integer tht is less thn or equl to x. If g stisfies the conditions of the Contrction Mpping Theorem with Lipschitz constnt L, then Fixed-point Itertion chieves t lest liner convergence, with n symptotic error constnt tht is bounded bove by L. This vlue cn be used to estimte the number of itertions needed to obtin n dditionl correct deciml digit, but it cn lso be used to estimte the totl number of itertions needed for specified degree of ccurcy. From the Lipschitz condition, we hve, for k 1, From x k x L x k 1 x L k x 0 x. x 0 x x 0 x 1 + x 1 x x 0 x 1 + x 1 x x 0 x 1 + L x 0 x we obtin x k x Lk 1 L x 1 x 0. Therefore, in order to stisfy x k x ɛ, the number of itertions, k, must stisfy k ln x 1 x 0 ln(ɛ(1 L)). ln(1/l) Tht is, we cn bound the number of itertions fter performing single itertion, s long s the Lipschitz constnt L is known. We know tht Fixed-point Itertion will converge to the unique fixed point in [, b] if g stisfies the conditions of the Contrction Mpping Theorem. However, if g is differentible on [, b], its derivtive cn be used to obtin n lterntive criterion for convergence tht cn be more prcticl thn computing the Lipschitz constnt L. If we denote the error in x k by e k = x k x, we cn see from Tylor s Theorem nd the fct tht g(x ) = x tht e k+1 = x k+1 x = g(x k ) g(x ) = g (x )(x k x ) g (ξ k )(x k x ) 2 = g (x )e k + O(e 2 k ),

14 14 CHAPTER 1. SOLUTION OF EQUATIONS BY ITERATION where ξ k lies between x k nd x. Therefore, if g (x ) k, where k < 1, then Fixed-point Itertion is loclly convergent; tht is, it converges if x 0 is chosen sufficiently close to x. This leds to the following result. Theorem (Fixed-point Theorem) Let g be continuous function on the intervl [, b], nd let g be differentible on [, b]. If g(x) [, b] for ech x [, b], nd if there exists constnt k < 1 such tht g (x) k, x (, b), then the sequence of itertes {x k } k=0 converges to the unique fixed point x of g in [, b], for ny initil guess x 0 [, b]. It cn be seen from the preceding discussion why g (x) must be bounded wy from 1 on (, b), s opposed to the weker condition g (x) < 1 on (, b). If g (x) is llowed to pproch 1 s x pproches point c (, b), then it is possible tht the error e k might not pproch zero s k increses, in which cse Fixed-point Itertion would not converge. Suppose tht g stisfies the conditions of the Fixed-Point Theorem, nd tht g is lso continuously differentible on [, b]. We cn use the Men Vlue Theorem to obtin e k+1 = x k+1 x = g(x k ) g(x ) = g (ξ k )(x k x ) = g (ξ k )e k, where ξ k lies between x k nd x. It follows from the continuity of g t x tht for ny initil iterte x 0 [, b], Fixed-point Itertion converges linerly with symptotic error constnt g (x ), since, by the definition of ξ k nd the continuity of g, e k+1 lim = lim k e k k g (ξ k ) = g (x ). Recll tht the conditions we hve stted for liner convergence re nerly identicl to the conditions for g to hve unique fixed point in [, b]. The only difference is tht now, we lso require g to be continuous on [, b]. The derivtive cn lso be used to indicte why Fixed-point Itertion might not converge. Exmple The function g(x) = x hs two fixed points, x 1 = 1/4 nd x 2 = 3/4, s cn be determined by solving the qudrtic eqution x = x. If we consider the intervl [0, 3/8], then g stisfies the conditions of the Fixed-point Theorem, s g (x) = 2x < 1 on this intervl, nd therefore Fixed-point Itertion will converge to x 1 for ny x 0 [0, 3/8].

15 1.2. SIMPLE ITERATION 15 On the other hnd, g (3/4) = 2(3/4) = 3/2 > 1. Therefore, it is not possible for g to stisfy the conditions of the Fixed-point Theorem. Furthemore, if x 0 is chosen so tht 1/4 < x 0 < 3/4, then Fixed-point Itertion will converge to x 1 = 1/4, wheres if x 0 > 3/4, then Fixed-point Itertion diverges. The fixed point x 2 = 3/4 in the preceding exmple is n unstble fixed point of g, mening tht no choice of x 0 yields sequence of itertes tht converges to x 2. The fixed point x 1 = 1/4 is stble fixed point of g, mening tht ny choice of x 0 tht is sufficiently close to x 1 yields sequence of itertes tht converges to x 1. The preceding exmple shows tht Fixed-point Itertion pplied to n eqution of the form x = g(x) cn fil to converge to fixed point x if g (x ) > 1. We wish to determine whether this condition indictes nonconvergence in generl. If g (x ) > 1, nd g is continuous in neighborhood of x, then there exists n intervl x x δ such tht g (x) > 1 on the intervl. If x k lies within this intervl, it follows from the Men Vlue Theorem tht x k+1 x = g(x k ) g(x ) = g (η) x k x, where η lies between x k nd x. Becuse η is lso in this intervl, we hve x k+1 x > x k x. In other words, the error in the itertes increses whenever they fll within sufficiently smll intervl contining the fixed point. Becuse of this increse, the itertes must eventully fll outside of the intervl. Therefore, it is not possible to find k 0, for ny given δ, such tht x k x δ for ll k k 0. We hve thus proven the following result. Theorem Let g hve fixed point t x, nd let g be continuous in neighborhood of x. If g (x ) > 1, then Fixed-point Itertion does not converge to x for ny initil guess x 0 except in finite number of itertions. Now, suppose tht in ddition to the conditions of the Fixed-point Theorem, we ssume tht g (x ) = 0, nd tht g is twice continuously differentible on [, b]. Then, using Tylor s Theorem, we obtin e k+1 = g(x k ) g(x ) = g (x )(x k x ) g (ξ k )(x k x ) 2 = 1 2 g (ξ k )e 2 k,

16 16 CHAPTER 1. SOLUTION OF EQUATIONS BY ITERATION where ξ k lies between x k nd x. It follows tht for ny initil iterte x 0 [, b], Fixed-point Itertion converges t lest qudrticlly, with symptotic error constnt g (x )/2. Lter, this will be exploited to obtin qudrticlly convergent method for solving nonliner equtions of the form f(x) = Itertive Solution of Equtions Now tht we understnd the convergence behvior of Fixed-point Itertion, we consider the ppliction of Fixed-point Itertion to the solution of n eqution of the form f(x) = 0. When rewriting this eqution in the form x = g(x), it is essentil to choose the function g wisely. One guideline is to choose g(x) = x φ(x)f(x), where the function φ(x) is, idelly, nonzero except possibly t solution of f(x) = 0. This cn be stisfied by choosing φ(x) to be constnt, but this cn fil, s the following exmple illustrtes. Exmple Consider the eqution x + ln x = 0. By the Intermedite Vlue Theorem, this eqution hs solution in the intervl [0.5, 0.6]. Furthermore, this solution is unique. To see this, let f(x) = x + ln x. Then f (x) = x + 1/x > 0 on the domin of f, which mens tht f is incresing on its entire domin. Therefore, it is not possible for f(x) = 0 to hve more thn one solution. We consider using Fixed-point Itertion to solve the equivlent eqution x = x (1)(x + ln x) = ln x. However, with g(x) = ln x, we hve g (x) = 1/x > 1 on the intervl [0.5, 0.6]. Therefore, by the preceding theorem, Fixed-point Itertion will fil to converge for ny initil guess in this intervl. We therefore pply g 1 (x) = e x to both sides of the eqution x = g(x) to obtin which simplifies to g 1 (x) = g 1 (g(x)) = x, x = e x. The function g(x) = e x stisfies g (x) < 1 on [0.5, 0.6], s g (x) = e x, nd e x < 1 when the rgument x is positive. By nrrowing this intervl to [0.52, 0.6], which is mpped into itself by this choice of g, we cn pply the Fixed-point Theorem to conclude tht Fixed-point Itertion will converge to the unique fixed point of g for ny choice of x 0 in the intervl.

17 1.4. RELAXATION Relxtion As previously discussed, common choice for function g(x) to use with Fixed-point Itertion to solve the eqution f(x) = 0 is function of the form g(x) = x φ(x)f(x), where φ(x) is nonzero. Clerly, the simplest choice of φ(x) is constnt function φ(x) λ, but it is importnt to choose λ so tht Fixed-point Itertion with g(x) will converge. Suppose tht x is solution of the eqution f(x) = 0, nd tht f is continuously differentible in neighborhood of x, with f (x ) = α > 0. Then, by continuity, there exists n intervl [x δ, x + δ] contining x on which m f (x) M, for positive constnts m nd M. It follows tht for ny choice of positive constnt λ, 1 λm 1 λf (x) 1 λm. By choosing 2 λ = M + m, we obtin 1 λm = k, 1 λm = k, k = M m M + m, which stisfies 0 < k < 1. Therefore, if we define g(x) = x λf(x), we hve g (x) k < 1 on [x δ, x + δ]. Furthermore, if x x δ, then, by the Men Vlue Theorem, g(x) x = g(x) g(x ) = g (ξ) x x < δ, nd therefore g mps the intervl [x δ, x + δ] into itself. We conclude tht the Fixed-point Theorem pplies, nd Fixed-point Itertion converges linerly to x for ny choice of x 0 in [x δ, x + δ], with symptotic error constnt 1 λα k. In summry, if f is continuously differentible in neighborhood of root x of f(x) = 0, nd f(x ) is nonzero, then there exists constnt λ such tht Fixed-point Itertion with g(x) = x λf(x) converges to x for x 0 chosen sufficiently close to x. This pproch to Fixed-point Itertion, with constnt φ, is known s relxtion. Convergence cn be ccelerted by llowing λ to vry from itertion to itertion. Intuitively, n effective choice is to try to minimize g (x) ner x by setting λ = 1/f (x k ), for ech k, so tht g (x k ) = 1 λf (x k ) = 0. This results in liner convergence with n symptotic error constnt of 0, which indictes fster thn liner convergence. We will see tht convergence is ctully qudrtic.

18 18 CHAPTER 1. SOLUTION OF EQUATIONS BY ITERATION 1.5 Newton s Method To develop more effective method for solving this problem of computing solution to f(x) = 0, we cn ddress the following questions: Are there cses in which the problem esy to solve, nd if so, how do we solve it in such cses? Is it possible to pply our method of solving the problem in these esy cses to more generl cses? In this course, we will see tht these questions re useful for solving vriety of problems. For the problem t hnd, we sk whether the eqution f(x) = 0 is esy to solve for ny prticulr choice of the function f. Certinly, if f is liner function, then it hs formul of the form f(x) = m(x )+b, where m nd b re constnts nd m 0. Setting f(x) = 0 yields the eqution m(x ) + b = 0, which cn esily be solved for x to obtin the unique solution x = b m. We now consider the cse where f is not liner function. Using Tylor s theorem, it is simple to construct liner function tht pproximtes f(x) ner given point x 0. This function is simply the first Tylor polynomil of f(x) with center x 0, P 1 (x) = f(x 0 ) + f (x 0 )(x x 0 ). This function hs useful geometric interprettion, s its grph is the tngent line of f(x) t the point (x 0, f(x 0 )). We cn obtin n pproximte solution to the eqution f(x) = 0 by determining where the liner function P 1 (x) is equl to zero. If the resulting vlue, x 1, is not solution, then we cn repet this process, pproximting f by liner function ner x 1 nd once gin determining where this pproximtion is equl to zero. The resulting lgorithm is Newton s method, which we now describe in detil. Algorithm (Newton s Method) Let f : R R be differentible function. The following lgorithm computes n pproximte solution x to the eqution f(x) = 0.

19 1.5. NEWTON S METHOD 19 Choose n initil guess x 0 for k = 0, 1, 2,... do if f(x k ) is sufficiently smll then x = x k return x end x k+1 = x k f(x k) f (x k ) if x k+1 x k is sufficiently smll then x = x k+1 return x end end When Newton s method converges, it does so very rpidly. However, it cn be difficult to ensure convergence, prticulrly if f(x) hs horizontl tngents ner the solution x. Typiclly, it is necessry to choose strting iterte x 0 tht is close to x. As the following result indictes, such choice, if close enough, is indeed sufficient for convergence. Theorem (Convergence of Newton s Method) Let f be twice continuously differentible on the intervl [, b], nd suppose tht f(c) = 0 nd f (c) = 0 for some c [, b]. Then there exists δ > 0 such tht Newton s Method pplied to f(x) converges to c for ny initil guess x 0 in the intervl [c δ, c + δ]. Exmple We will use of Newton s Method in computing 2. This number stisfies the eqution f(x) = 0 where f(x) = x 2 2. Since f (x) = 2x, it follows tht in Newton s Method, we cn obtin the next iterte x n+1 from the previous iterte x n by x n+1 = x n f(x n) f (x n ) = x n x2 n 2 = x n x2 n + 2 = x n 2x n 2x n 2x n x n We choose our strting iterte x 0 = 1, nd compute the next severl itertes s follows: x 1 = = 1.5 x 2 = =

20 20 CHAPTER 1. SOLUTION OF EQUATIONS BY ITERATION x 3 = x 4 = x 5 = Since the fourth nd fifth itertes gree in to eight deciml plces, we ssume tht is correct solution to f(x) = 0, to t lest eight deciml plces. The first two itertions re illustrted in Figure 1.2. Figure 1.2: Newton s Method pplied to f(x) = x 2 2. The bold curve is the grph of f. The initil iterte x 0 is chosen to be 1. The tngent line of f(x) t the point (x 0, f(x 0 )) is used to pproximte f(x), nd it crosses the x-xis t x 1 = 1.5, which is much closer to the exct solution thn x 0. Then, the tngent line t (x 1, f(x 1 )) is used to pproximte f(x), nd it crosses the x-xis t x 2 = , which is lredy very close to the exct solution. Exmple Newton s Method cn be used to compute the reciprocl of number without performing ny divisions. The solution, 1/, stisfies the eqution f(x) = 0, where f(x) = 1 x.

21 1.5. NEWTON S METHOD 21 Since f (x) = 1 x 2, it follows tht in Newton s Method, we cn obtin the next iterte x n+1 from the previous iterte x n by x n+1 = x n 1/x n 1/x 2 n = x n 2 1/x n + 1/x n 1/x 2 n = 2x n x 2 n. Note tht no divisions re necessry to obtin x n+1 from x n. This itertion ws ctully used on older IBM computers to implement division in hrdwre. We use this itertion to compute the reciprocl of = 12. Choosing our strting iterte to be 0.1, we compute the next severl itertes s follows: x 1 = 2(0.1) 12(0.1) 2 = 0.08 x 2 = 2(0.12) 12(0.12) 2 = x 3 = x 4 = x 5 = We conclude tht is n ccurte pproximtion to the correct solution. Now, suppose we repet this process, but with n initil iterte of x 0 = 1. Then, we hve x 1 = 2(1) 12(1) 2 = 10 x 2 = 2( 10) 12( 10) 2 = 1220 x 3 = 2( 1220) 12( 1220) 2 = It is cler tht this sequence of itertes is not going to converge to the correct solution. In generl, for this itertion to converge to the reciprocl of, the initil iterte x 0 must be chosen so tht 0 < x 0 < 2/. This condition gurntees tht the next iterte x 1 will t lest be positive. The contrst between the two choices of x 0 re illustrted in Figure 1.3 for = 8. We now nlyze the convergence of Newton s Method pplied to the eqution f(x) = 0, where we ssume tht f is twice continuously differentible ner the exct solution x. Using Tylor s Theorem, we obtin e k+1 = x k+1 x

22 22 CHAPTER 1. SOLUTION OF EQUATIONS BY ITERATION Figure 1.3: Newton s Method used to compute the reciprocl of 8 by solving the eqution f(x) = 8 1/x = 0. When x 0 = 0.1, the tngent line of f(x) t (x 0, f(x 0 )) crosses the x-xis t x 1 = 0.12, which is close to the exct solution. When x 0 = 1, the tngent line crosses the x-xis t x 1 = 6, which cuses sercing to continue on the wrong portion of the grph, so the sequence of itertes does not converge to the correct solution. = x k f(x k) f (x k ) x = e k f(x k) f (x k ) = e k 1 [f(x f ) f (x k )(x x k ) 12 ] (x k ) f (ξ k )(x k x ) 2 [f (x k )(x x k ) + 12 ] f (ξ k )(x k x ) 2 = e k + 1 f (x k ) = e k + 1 f (x k ) = e k e k + f (ξ k ) 2f (x k ) e2 k [ f (x k )e k + 1 ] 2 f (ξ k )e 2 k

23 1.5. NEWTON S METHOD 23 = f (ξ k ) 2f (x k ) e2 k where ξ k is between x k nd x. Suppose tht f (x ) 0. Then, by the continuity of f nd f, there exists δ > 0 such tht on the intervl I δ = [x δ, x + δ], there is constnt A such tht f (x) f (y) A, x, y I δ. If x 0 I δ is chosen so tht x 0 x 1/A, then, by the bove Tylor expnsion, Continuing by induction, we obtin x 1 x 1 2 A x 0 x x 0 x. x k x 2 k min{1/a, δ}, nd therefore Newton s method converges to x, provided tht x 0 is chosen sufficiently close to x. Becuse, for ech k, ξ k lies between x k nd x, ξ k converges to x s well. By the continuity of f on I δ, we conclude tht Newton s method converges qudrticlly to x, with symptotic error constnt C = f (x ) 2 f (x ). Exmple Suppose tht Newton s Method is used to find the solution of f(x) = 0, where f(x) = x 2 2. We exmine the error e k = x k x, where x = 2 is the exct solution. We hve k x k e k We cn determine nlyticlly tht Newton s Method converges qudrticlly, nd in this exmple, the symptotic error constnt is f ( 2)/2f ( 2) Exmining the numbers in the tble bove, we cn see tht the

24 24 CHAPTER 1. SOLUTION OF EQUATIONS BY ITERATION number of correct deciml plces pproximtely doubles with ech itertion, which is typicl of qudrtic convergence. Furthermore, we hve e 4 e , so the ctul behvior of the error is consistent with the behvior tht is predicted by theory. It is esy to see from the bove nlysis, however, tht if f (x ) is very smll, or zero, then convergence cn be very slow, or my not even occur. Exmple The function f(x) = (x 1) 2 e x hs double root t x = 1, nd therefore f (x ) = 0. Therefore, the previous convergence nlysis does not pply. Insted, we obtin e k+1 = x k+1 1 = x k f(x k) f (x k ) 1 = x k (x k 1) 2 e x k [2(x k 1) + (x k 1) 2 ]e x k 1 e 2 k = e k 2e k + e 2 k [ = 1 1 ] e k 2 + e k [ = 1 1 ] e k x k + 1 x k = x k + 1 e k. It follows tht if we choose x 0 > 0, then Newton s method converges to x = 1 linerly, with symptotic error constnt C = 1 2. Normlly, convergence of Newton s method is only ssured if x 0 is chosen sufficiently close to x. However, in some cses, it is possible to prove tht Newton s method converges on n intervl, under certin conditions on the sign of the derivtives of f on tht intervl. For exmple, suppose tht on the intervl I δ = [x, x +δ], f (x) > 0 nd f (x) > 0, so tht f is incresing nd concve up on this intervl.

25 1.6. THE SECANT METHOD 25 Let x k I δ. Then, from x k+1 = x k f(x k) f (x k ), we hve x k+1 < x k, becuse f, being equl to zero t x nd incresing on I δ, must be positive t x k. However, becuse x k+1 x = f (ξ k ) 2f (x k ) (x k x ) 2, nd f nd f re both positive t x k, we must lso hve x k+1 > x. It follows tht the sequence {x k } is monotonic nd bounded, nd therefore must be convergent to limit x I δ. From the convergence of the sequence nd the determintion of x k+1 from x k, it follows tht f(x ) = 0. However, f is positive on (x, x + δ], which mens tht we must hve x = x, so Newton s method converges to x. Using the previous nlysis, it cn be shown tht this convergence is qudrtic. 1.6 The Secnt Method One drwbck of Newton s method is tht it is necessry to evlute f (x) t vrious points, which my not be prcticl for some choices of f. The secnt method voids this issue by using finite difference to pproximte the derivtive. As result, f(x) is pproximted by secnt line through two points on the grph of f, rther thn tngent line through one point on the grph. Since secnt line is defined using two points on the grph of f(x), s opposed to tngent line tht requires informtion t only one point on the grph, it is necessry to choose two initil itertes x 0 nd x 1. Then, s in Newton s method, the next iterte x 2 is then obtined by computing the x-vlue t which the secnt line pssing through the points (x 0, f(x 0 )) nd (x 1, f(x 1 )) hs y-coordinte of zero. This yields the eqution which hs the solution f(x 1 ) f(x 0 ) x 1 x 0 (x 2 x 1 ) + f(x 1 ) = 0 x 2 = x 1 f(x 1)(x 1 x 0 ) f(x 1 ) f(x 0 )

26 26 CHAPTER 1. SOLUTION OF EQUATIONS BY ITERATION which cn be rewritten s follows: x 2 = x 1 f(x 1)(x 1 x 0 ) f(x 1 ) f(x 0 ) f(x 1 ) f(x 0 ) = x 1 f(x 1 ) f(x 0 ) f(x 1)(x 1 x 0 ) f(x 1 ) f(x 0 ) = x 1(f(x 1 ) f(x 0 )) f(x 1 )(x 1 x 0 ) f(x 1 ) f(x 0 ) = x 1f(x 1 ) x 1 f(x 0 ) x 1 f(x 1 ) + x 0 f(x 1 ) f(x 1 ) f(x 0 ) = x 0f(x 1 ) x 1 f(x 0 ). f(x 1 ) f(x 0 ) This leds to the following lgorithm. Algorithm (Secnt Method) Let f : R R be continuous function. The following lgorithm computes n pproximte solution x to the eqution f(x) = 0. Choose two initil guesses x 0 nd x 1 for k = 1, 2, 3,... do if f(x k ) is sufficiently smll then x = x k return x end x k+1 = x k 1f(x k ) x k f(x k 1 ) f(x k ) f(x k 1 ) if x k+1 x k is sufficiently smll then x = x k+1 return x end end Like Newton s method, it is necessry to choose the strting iterte x 0 to be resonbly close to the solution x. Convergence is not s rpid s tht of Newton s Method, since the secnt-line pproximtion of f is not s ccurte s the tngent-line pproximtion employed by Newton s method. Exmple We will use the Secnt Method to solve the eqution f(x) = 0, where f(x) = x 2 2. This method requires tht we choose two initil itertes x 0 nd x 1, nd then compute subsequent itertes using the formul x n+1 = x n f(x n)(x n x n 1 ), n = 1, 2, 3,.... f(x n ) f(x n 1 )

27 1.6. THE SECANT METHOD 27 We choose x 0 = 1 nd x 1 = 1.5. Applying the bove formul, we obtin x 2 = 1.4 x 3 = x 4 = As we cn see, the itertes produced by the Secnt Method re converging to the exct solution x = 2, but not s rpidly s those produced by Newton s Method. We now prove tht the Secnt Method converges if x 0 is chosen sufficiently close to solution x of f(x) = 0, if f is continuously differentible ner x nd f (x ) = α 0. Without loss of generlity, we ssume α > 0. Then, by the continuity of f, there exists n intervl I δ = [x δ, x + δ] such tht 3α 4 f (x) 5α 4, x I δ. It follows from the Men Vlue Theorem tht x k+1 x = x k x x k x k 1 f(x k ) f(x k ) f(x k 1 ) = x k x f (θ k )(x k x ) f (ϕ k ) [ = 1 f ] (θ k ) f (x k x ), (ϕ k ) where θ k lies between x k nd x, nd ϕ k lies between x k nd x k 1. Therefore, if x k 1 nd x k re in I δ, then so re ϕ k nd θ k, nd x k+1 stisfies { x k+1 x mx 1 5α/4 3α/4, 1 3α/4 } 5α/4 x k x 2 3 x k x. We conclude tht if x 0, x 1 I δ, then ll subsequent itertes lie in I δ, nd the Secnt Method converges t lest linerly, with symptotic rte constnt 2/3. The order of convergence of the Secnt Method cn be determined using result, which we will not prove here, stting tht if {x k } k=0 is the sequence of itertes produced by the Secnt Method for solving f(x) = 0, nd if this sequence converges to solution x, then for k sufficiently lrge, for some constnt S. x k+1 x S x k x x k 1 x

28 28 CHAPTER 1. SOLUTION OF EQUATIONS BY ITERATION We ssume tht {x k } converges to x of order α. Then, dividing both sides of the bove reltion by x k x α, we obtin x k+1 x x k x α S x k x 1 α x k 1 x. Becuse α is the order of convergence, the left side must converge to positive constnt C s k. It follows tht the right side must converge to positive constnt s well, s must its reciprocl. In other words, there must exist positive constnts C 1 nd C 2 x k x x k 1 x α C 1, x k x α 1 x k 1 x C 2. This cn only be the cse if there exists nonzero constnt β such tht which implies tht x k x x k 1 x α = ( xk x α 1 ) β x k 1 x, 1 = (α 1)β nd α = β. Eliminting β, we obtin the eqution which hs the solutions α 1 = α 2 α 1 = 0, 1.618, α 2 = Since we must hve α 1, the rte of convergence is The Bisection Method Suppose tht f(x) is continuous function tht chnges sign on the intervl [, b]. Then, by the Intermedite Vlue Theorem, f(x) = 0 for some x [, b]. How cn we find the solution, knowing tht it lies in this intervl? The method of bisection ttempts to reduce the size of the intervl in which solution is known to exist. Suppose tht we evlute f(m), where m = ( + b)/2. If f(m) = 0, then we re done. Otherwise, f must chnge sign on the intervl [, m] or [m, b], since f() nd f(b) hve different signs. Therefore, we cn cut the size of our serch spce in hlf, nd continue

29 1.7. THE BISECTION METHOD 29 this process until the intervl of interest is sufficiently smll, in which cse we must be close to solution. The following lgorithm implements this pproch. Algorithm (Bisection) Let f be continuous function on the intervl [, b] tht chnges sign on (, b). The following lgorithm computes n pproximtion p to number p in (, b) such tht f(p) = 0. for j = 1, 2,... do p j = ( + b)/2 if f(p j ) = 0 or b is sufficiently smll then p = p j return p end if f()f(p j ) < 0 then b = p j else = p j end end At the beginning, it is known tht (, b) contins solution. During ech itertion, this lgorithm updtes the intervl (, b) by checking whether f chnges sign in the first hlf (, p j ), or in the second hlf (p j, b). Once the correct hlf is found, the intervl (, b) is set equl to tht hlf. Therefore, t the beginning of ech itertion, it is known tht the current intervl (, b) contins solution. The test f()f(p j ) < 0 is used to determine whether f chnges sign in the intervl (, p j ) or (p j, b). This test is more efficient thn checking whether f() is positive nd f(p j ) is negtive, or vice vers, since we do not cre which vlue is positive nd which is negtive. We only cre whether they hve different signs, nd if they do, then their product must be negtive. In comprison to other methods, including some tht we will discuss, bisection tends to converge rther slowly, but it is lso gurnteed to converge. These qulities cn be seen in the following result concerning the ccurcy of bisection. Theorem Let f be continuous on [, b], nd ssume tht f()f(b) < 0. For ech positive integer n, let p n be the nth iterte tht is produced by the bisection lgorithm. Then the sequence {p n } n=1 converges to number p in

30 30 CHAPTER 1. SOLUTION OF EQUATIONS BY ITERATION (, b) such tht f(p) = 0, nd ech iterte p n stisfies p n p b 2 n. It should be noted tht becuse the nth iterte cn lie nywhere within the intervl (, b) tht is used during the nth itertion, it is possible tht the error bound given by this theorem my be quite conservtive. Exmple We seek solution of the eqution f(x) = 0, where f(x) = x 2 x 1. Becuse f(1) = 1 nd f(2) = 1, nd f is continuous, we cn use the Intermedite Vlue Theorem to conclude tht f(x) = 0 hs solution in the intervl (1, 2), since f(x) must ssume every vlue between 1 nd 1 in this intervl. We use the method of bisection to find solution. First, we compute the midpoint of the intervl, which is (1 + 2)/2 = 1.5. Since f(1.5) = 0.25, we see tht f(x) chnges sign between x = 1.5 nd x = 2, so we cn pply the Intermedite Vlue Theorem gin to conclude tht f(x) = 0 hs solution in the intervl (1.5, 2). Continuing this process, we compute the midpoint of the intervl (1.5, 2), which is (1.5+2)/2 = Since f(1.75) = , we see tht f(x) chnges sign between x = 1.5 nd x = 1.75, so we conclude tht there is solution in the intervl (1.5, 1.75). The following tble shows the outcome of severl more itertions of this procedure. Ech row shows the current intervl (, b) in which we know tht solution exists, s well s the midpoint of the intervl, given by ( + b)/2, nd the vlue of f t the midpoint. Note tht from itertion to itertion, only one of or b chnges, nd the endpoint tht chnges is lwys set equl to the midpoint. b m = ( + b)/2 f(m)

31 1.8. SAFEGUARDED METHODS 31 The correct solution, to ten deciml plces, is , which is the number known s the golden rtio. For this method, it is esier to determine the order of convergence if we use different mesure of the error in ech iterte x k. Since ech iterte is contined within n intervl [ k, b k ] where b k k = 2 k (b ), with [, b] being the originl intervl, it follows tht we cn bound the error x k x by e k = b k k. Using this mesure, we cn esily conclude tht bisection converges linerly, with symptotic error constnt 1/ Sfegurded Methods It is nturl to sk whether it is possible to combine the rpid convergence of methods such s Newton s method with sfe methods such s bisection tht re gurnteed to converge. This leds to the concept of sfegurded methods, which mintin n intervl within which solution is known to exist, s in bisection, but use method such s Newton s method to find solution within tht intervl. If n iterte flls outside this intervl, the sfe procedure is used to refine the intervl before trying the rpid method. An exmple of sfegurded method is the method of Regul Flsi, which is lso known s the method of flse position. It is modifiction of the secnt method in which the two initil itertes x 0 nd x 1 re chosen so tht f(x 0 ) f(x 1 ) < 0, thus gurnteeing tht solution lies between x 0 nd x 1. This condition lso gurntees tht the next iterte x 2 will lie between x 0 nd x 1, s cn be seen by pplying the Intermedite Vlue Theorem to the secnt line pssing through (x 0, f(x 0 )) nd (x 1, f(x 1 )). It follows tht if f(x 2 ) 0, then solution must lie between x 0 nd x 2, or between x 1 nd x 2. In the first scenrio, we use the secnt line pssing through (x 0, f(x 0 )) nd (x 2, f(x 2 )) to compute the next iterte x 3. Otherwise, we use the secnt line pssing through (x 1, f(x 1 )) nd (x 2, f(x 2 )). Continuing in this fshion, we obtin sequence of smller nd smller intervls tht re gurnteed to contin solution, s in bisection, but intervl is updted using superlinerly convergent method, the secnt method, rther thn simply being bisected. Algorithm (Method of Regul Flsi) Let f : R R be continuous function tht chnges sign on the intervl (, b). The following lgorithm computes n pproximte solution x to the eqution f(x) = 0. repet

32 32 CHAPTER 1. SOLUTION OF EQUATIONS BY ITERATION c = f(b) bf() f(b) f() if f(c) = 0 or b is sufficiently smll then x = c return x end if f() f(c) < 0 then b = c else = c end end Exmple We use the Method of Regul Flsi (Flse Position) to solve f(x) = 0 where f(x) = x 2 2. First, we must choose two initil guesses x 0 nd x 1 such tht f(x) chnges sign between x 0 nd x 1. Choosing x 0 = 1 nd x 1 = 1.5, we see tht f(x 0 ) = f(1) = 1 nd f(x 1 ) = f(1.5) = 0.25, so these choices re suitble. Next, we use the Secnt Method to compute the next iterte x 2 by determining the point t which the secnt line pssing through the points (x 0, f(x 0 )) nd (x 1, f(x 1 )) intersects the line y = 0. We hve x 2 = x 0 f(x 0)(x 1 x 0 ) f(x 1 ) f(x 0 ) ( 1)(1.5 1) = ( 1) = = = 1.4. Computing f(x 2 ), we obtin f(1.4) = 0.04 < 0. Since f(x 2 ) < 0 nd f(x 1 ) > 0, we cn use the Intermedite Vlue Theorem to conclude tht solution exists in the intervl (x 2, x 1 ). Therefore, we compute x 3 by determining where the secnt line through the points (x 1, f(x 1 )) nd f(x 2, f(x 2 )) intersects the line y = 0. Using the formul for the Secnt Method, we obtin x 3 = x 1 f(x 1)(x 2 x 1 ) f(x 2 ) f(x 1 )

33 1.8. SAFEGUARDED METHODS 33 (0.25)( ) = = Since f(x 3 ) < 0 nd f(x 2 ) < 0, we do not know tht solution exists in the intervl (x 2, x 3 ). However, we do know tht solution exists in the intervl (x 3, x 1 ), becuse f(x 1 ) > 0. Therefore, insted of proceeding s in the Secnt Method nd using the Secnt line determined by x 2 nd x 3 to compute x 4, we use the secnt line determined by x 1 nd x 3 to compute x 4.

34 34 CHAPTER 1. SOLUTION OF EQUATIONS BY ITERATION k x k g(x k )

35 Chpter 2 Polynomil Interpoltion 2.1 Lgrnge Interpoltion Clculus provides mny tools tht cn be used to understnd the behvior of functions, but in most cses it is necessry for these functions to be continuous or differentible. This presents problem in most rel pplictions, in which functions re used to model reltionships between quntities, but our only knowledge of these functions consists of set of discrete dt points, where the dt is obtined from mesurements. Therefore, we need to be ble to construct continuous functions bsed on discrete dt. The problem of constructing such continuous function is clled dt fitting. In this lecture, we discuss specil cse of dt fitting known s interpoltion, in which the gol is to find liner combintion of n known functions to fit set of dt tht imposes n constrints, thus gurnteeing unique solution tht fits the dt exctly, rther thn pproximtely. The broder term constrints is used, rther thn simply dt points, since the description of the dt my include dditionl informtion such s rtes of chnge or requirements tht the fitting function hve certin number of continuous derivtives. When it comes to the study of functions using clculus, polynomils re prticulrly simple to work with. Therefore, in this course we will focus on the problem of constructing polynomil tht, in some sense, fits given dt. We first discuss some lgorithms for computing the unique polynomil p n (x) of degree n tht stisfies p n (x i ) = y i, i = 0,..., n, where the points (x i, y i ) re given. The points x 0, x 1,..., x n re clled interpoltion points. The polynomil p n (x) is clled the interpolting polynomil of the dt (x 0, y 0 ), (x 1, y 1 ),..., (x n, y n ). At first, we will ssume tht the interpoltion points 35

36 36 CHAPTER 2. POLYNOMIAL INTERPOLATION re ll distinct; this ssumption will be relxed in lter lecture. If the interpoltion points x 0,..., x n re distinct, then the process of finding polynomil tht psses through the points (x i, y i ), i = 0,..., n, is equivlent to solving system of liner equtions Ax = b tht hs unique solution. However, different lgorithms for computing the interpolting polynomil use different A, since they ech use different bsis for the spce of polynomils of degree n. The most strightforwrd method of computing the interpoltion polynomil is to form the system Ax = b where b i = y i, i = 0,..., n, nd the entries of A re defined by ij = p j (x i ), i, j = 0,..., n, where x 0, x 1,..., x n re the points t which the dt y 0, y 1,..., y n re obtined, nd p j (x) = x j, j = 0, 1,..., n. The bsis {1, x,..., x n } of the spce of polynomils of degree n + 1 is clled the monomil bsis, nd the corresponding mtrix A is clled the Vndermonde mtrix for the points x 0, x 1,..., x n. Unfortuntely, this mtrix cn be ill-conditioned, especilly when interpoltion points re close together. In Lgrnge interpoltion, the mtrix A is simply the identity mtrix, by virtue of the fct tht the interpolting polynomil is written in the form p n (x) = n y j L n,j (x), j=0 where the polynomils {L n,j } n j=0 hve the property tht L n,j (x i ) = { 1 if i = j 0 if i j. The polynomils {L n,j }, j = 0,..., n, re clled the Lgrnge polynomils for the interpoltion points x 0, x 1,..., x n. They re defined by L n,j (x) = n k=0,k j x x k x j x k. As the following result indictes, the problem of polynomil interpoltion cn be solved using Lgrnge polynomils. Theorem Let x 0, x 1,..., x n be n + 1 distinct numbers, nd let f(x) be function defined on domin contining these numbers. Then the polynomil defined by n p n (x) = f(x j )L n,j j=0

37 2.1. LAGRANGE INTERPOLATION 37 is the unique polynomil of degree n tht stisfies p n (x j ) = f(x j ), j = 0, 1,..., n. The polynomil p n (x) is clled the interpolting polynomil of f(x). We sy tht p n (x) interpoltes f(x) t the points x 0, x 1,..., x n. Exmple We will use Lgrnge interpoltion to find the unique polynomil p 3 (x), of degree 3 or less, tht grees with the following dt: i x i y i In other words, we must hve p 3 ( 1) = 3, p 3 (0) = 4, p 3 (1) = 5, nd p 3 (2) = 6. First, we construct the Lgrnge polynomils {L 3,j (x)} 3 j=0, using the formul 3 (x x i ) L n,j (x) = (x j x i ). This yields L 3,0 (x) = = L 3,1 (x) = i=0,i j (x x 1 )(x x 2 )(x x 3 ) (x 0 x 1 )(x 0 x 2 )(x 0 x 3 ) (x 0)(x 1)(x 2) ( 1 0)( 1 1)( 1 2) = x(x2 3x + 2) ( 1)( 2)( 3) = 1 6 (x3 3x 2 + 2x) = (x x 0 )(x x 2 )(x x 3 ) (x 1 x 0 )(x 1 x 2 )(x 1 x 3 ) (x + 1)(x 1)(x 2) (0 + 1)(0 1)(0 2) = (x2 1)(x 2) (1)( 1)( 2) = 1 2 (x3 2x 2 x + 2)

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

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

Chapter 3 Solving Nonlinear Equations

Chapter 3 Solving Nonlinear Equations Chpter 3 Solving Nonliner Equtions 3.1 Introduction The nonliner function of unknown vrible x is in the form of where n could be non-integer. Root is the numericl vlue of x tht stisfies f ( x) 0. Grphiclly,

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

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

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

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

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

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

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

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

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

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

Matrices, Moments and Quadrature, cont d

Matrices, Moments and Quadrature, cont d Jim Lmbers MAT 285 Summer Session 2015-16 Lecture 2 Notes Mtrices, Moments nd Qudrture, cont d We hve described how Jcobi mtrices cn be used to compute nodes nd weights for Gussin qudrture rules for generl

More information

Jim Lambers MAT 169 Fall Semester Lecture 4 Notes

Jim Lambers MAT 169 Fall Semester Lecture 4 Notes Jim Lmbers MAT 169 Fll Semester 2009-10 Lecture 4 Notes These notes correspond to Section 8.2 in the text. Series Wht is Series? An infinte series, usully referred to simply s series, is n sum of ll of

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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 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

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

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

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

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

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

Calculus I-II Review Sheet

Calculus I-II Review Sheet Clculus I-II Review Sheet 1 Definitions 1.1 Functions A function is f is incresing on n intervl if x y implies f(x) f(y), nd decresing if x y implies f(x) f(y). It is clled monotonic if it is either incresing

More information

4.4 Areas, Integrals and Antiderivatives

4.4 Areas, Integrals and Antiderivatives . res, integrls nd ntiderivtives 333. Ares, Integrls nd Antiderivtives This section explores properties of functions defined s res nd exmines some connections mong res, integrls nd ntiderivtives. In order

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

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

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

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

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

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

Lecture 12: Numerical Quadrature

Lecture 12: Numerical Quadrature Lecture 12: Numericl Qudrture J.K. Ryn@tudelft.nl WI3097TU Delft Institute of Applied Mthemtics Delft University of Technology 5 December 2012 () Numericl Qudrture 5 December 2012 1 / 46 Outline 1 Review

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

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

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

Quadratic Forms. Quadratic Forms

Quadratic Forms. Quadratic Forms Qudrtic Forms Recll the Simon & Blume excerpt from n erlier lecture which sid tht the min tsk of clculus is to pproximte nonliner functions with liner functions. It s ctully more ccurte to sy tht we pproximte

More information

MAT 168: Calculus II with Analytic Geometry. James V. Lambers

MAT 168: Calculus II with Analytic Geometry. James V. Lambers MAT 68: Clculus II with Anlytic Geometry Jmes V. Lmbers Februry 7, Contents Integrls 5. Introduction............................ 5.. Differentil Clculus nd Quotient Formuls...... 5.. Integrl Clculus nd

More information

W. We shall do so one by one, starting with I 1, and we shall do it greedily, trying

W. We shall do so one by one, starting with I 1, and we shall do it greedily, trying Vitli covers 1 Definition. A Vitli cover of set E R is set V of closed intervls with positive length so tht, for every δ > 0 nd every x E, there is some I V with λ(i ) < δ nd x I. 2 Lemm (Vitli covering)

More information

Z b. f(x)dx. Yet in the above two cases we know what f(x) is. Sometimes, engineers want to calculate an area by computing I, but...

Z b. f(x)dx. Yet in the above two cases we know what f(x) is. Sometimes, engineers want to calculate an area by computing I, but... Chpter 7 Numericl Methods 7. Introduction In mny cses the integrl f(x)dx cn be found by finding function F (x) such tht F 0 (x) =f(x), nd using f(x)dx = F (b) F () which is known s the nlyticl (exct) solution.

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

Duality # Second iteration for HW problem. Recall our LP example problem we have been working on, in equality form, is given below.

Duality # Second iteration for HW problem. Recall our LP example problem we have been working on, in equality form, is given below. Dulity #. Second itertion for HW problem Recll our LP emple problem we hve been working on, in equlity form, is given below.,,,, 8 m F which, when written in slightly different form, is 8 F Recll tht we

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

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

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

Definition of Continuity: The function f(x) is continuous at x = a if f(a) exists and lim

Definition of Continuity: The function f(x) is continuous at x = a if f(a) exists and lim Mth 9 Course Summry/Study Guide Fll, 2005 [1] Limits Definition of Limit: We sy tht L is the limit of f(x) s x pproches if f(x) gets closer nd closer to L s x gets closer nd closer to. We write lim f(x)

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

Chapter 4 Contravariance, Covariance, and Spacetime Diagrams

Chapter 4 Contravariance, Covariance, and Spacetime Diagrams Chpter 4 Contrvrince, Covrince, nd Spcetime Digrms 4. The Components of Vector in Skewed Coordintes We hve seen in Chpter 3; figure 3.9, tht in order to show inertil motion tht is consistent with the Lorentz

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

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

Convex Sets and Functions

Convex Sets and Functions B Convex Sets nd Functions Definition B1 Let L, +, ) be rel liner spce nd let C be subset of L The set C is convex if, for ll x,y C nd ll [, 1], we hve 1 )x+y C In other words, every point on the line

More information

State space systems analysis (continued) Stability. A. Definitions A system is said to be Asymptotically Stable (AS) when it satisfies

State space systems analysis (continued) Stability. A. Definitions A system is said to be Asymptotically Stable (AS) when it satisfies Stte spce systems nlysis (continued) Stbility A. Definitions A system is sid to be Asymptoticlly Stble (AS) when it stisfies ut () = 0, t > 0 lim xt () 0. t A system is AS if nd only if the impulse response

More information

MORE FUNCTION GRAPHING; OPTIMIZATION. (Last edited October 28, 2013 at 11:09pm.)

MORE FUNCTION GRAPHING; OPTIMIZATION. (Last edited October 28, 2013 at 11:09pm.) MORE FUNCTION GRAPHING; OPTIMIZATION FRI, OCT 25, 203 (Lst edited October 28, 203 t :09pm.) Exercise. Let n be n rbitrry positive integer. Give n exmple of function with exctly n verticl symptotes. Give

More information

Math 520 Final Exam Topic Outline Sections 1 3 (Xiao/Dumas/Liaw) Spring 2008

Math 520 Final Exam Topic Outline Sections 1 3 (Xiao/Dumas/Liaw) Spring 2008 Mth 520 Finl Exm Topic Outline Sections 1 3 (Xio/Dums/Liw) Spring 2008 The finl exm will be held on Tuesdy, My 13, 2-5pm in 117 McMilln Wht will be covered The finl exm will cover the mteril from ll of

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

Improper Integrals. Type I Improper Integrals How do we evaluate an integral such as

Improper Integrals. Type I Improper Integrals How do we evaluate an integral such as Improper Integrls Two different types of integrls cn qulify s improper. The first type of improper integrl (which we will refer to s Type I) involves evluting n integrl over n infinite region. In the grph

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

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

SUMMER KNOWHOW STUDY AND LEARNING CENTRE

SUMMER KNOWHOW STUDY AND LEARNING CENTRE SUMMER KNOWHOW STUDY AND LEARNING CENTRE Indices & Logrithms 2 Contents Indices.2 Frctionl Indices.4 Logrithms 6 Exponentil equtions. Simplifying Surds 13 Opertions on Surds..16 Scientific Nottion..18

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

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

Stuff You Need to Know From Calculus

Stuff You Need to Know From Calculus Stuff You Need to Know From Clculus For the first time in the semester, the stuff we re doing is finlly going to look like clculus (with vector slnt, of course). This mens tht in order to succeed, you

More information

8 Laplace s Method and Local Limit Theorems

8 Laplace s Method and Local Limit Theorems 8 Lplce s Method nd Locl Limit Theorems 8. Fourier Anlysis in Higher DImensions Most of the theorems of Fourier nlysis tht we hve proved hve nturl generliztions to higher dimensions, nd these cn be proved

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

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

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

Review of Gaussian Quadrature method

Review of Gaussian Quadrature method Review of Gussin Qudrture method Nsser M. Asi Spring 006 compiled on Sundy Decemer 1, 017 t 09:1 PM 1 The prolem To find numericl vlue for the integrl of rel vlued function of rel vrile over specific rnge

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

Partial Derivatives. Limits. For a single variable function f (x), the limit lim

Partial Derivatives. Limits. For a single variable function f (x), the limit lim Limits Prtil Derivtives For single vrible function f (x), the limit lim x f (x) exists only if the right-hnd side limit equls to the left-hnd side limit, i.e., lim f (x) = lim f (x). x x + For two vribles

More information

f(x) dx, If one of these two conditions is not met, we call the integral improper. Our usual definition for the value for the definite integral

f(x) dx, If one of these two conditions is not met, we call the integral improper. Our usual definition for the value for the definite integral Improper Integrls Every time tht we hve evluted definite integrl such s f(x) dx, we hve mde two implicit ssumptions bout the integrl:. The intervl [, b] is finite, nd. f(x) is continuous on [, b]. If one

More information

Taylor Polynomial Inequalities

Taylor Polynomial Inequalities Tylor Polynomil Inequlities Ben Glin September 17, 24 Abstrct There re instnces where we my wish to pproximte the vlue of complicted function round given point by constructing simpler function such s polynomil

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

MAA 4212 Improper Integrals

MAA 4212 Improper Integrals Notes by Dvid Groisser, Copyright c 1995; revised 2002, 2009, 2014 MAA 4212 Improper Integrls The Riemnn integrl, while perfectly well-defined, is too restrictive for mny purposes; there re functions which

More information

ARITHMETIC OPERATIONS. The real numbers have the following properties: a b c ab ac

ARITHMETIC OPERATIONS. The real numbers have the following properties: a b c ab ac REVIEW OF ALGEBRA Here we review the bsic rules nd procedures of lgebr tht you need to know in order to be successful in clculus. ARITHMETIC OPERATIONS The rel numbers hve the following properties: b b

More information

Math 61CM - Solutions to homework 9

Math 61CM - Solutions to homework 9 Mth 61CM - Solutions to homework 9 Cédric De Groote November 30 th, 2018 Problem 1: Recll tht the left limit of function f t point c is defined s follows: lim f(x) = l x c if for ny > 0 there exists δ

More information

Module 6: LINEAR TRANSFORMATIONS

Module 6: LINEAR TRANSFORMATIONS Module 6: LINEAR TRANSFORMATIONS. Trnsformtions nd mtrices Trnsformtions re generliztions of functions. A vector x in some set S n is mpped into m nother vector y T( x). A trnsformtion is liner if, for

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

An approximation to the arithmetic-geometric mean. G.J.O. Jameson, Math. Gazette 98 (2014), 85 95

An approximation to the arithmetic-geometric mean. G.J.O. Jameson, Math. Gazette 98 (2014), 85 95 An pproximtion to the rithmetic-geometric men G.J.O. Jmeson, Mth. Gzette 98 (4), 85 95 Given positive numbers > b, consider the itertion given by =, b = b nd n+ = ( n + b n ), b n+ = ( n b n ) /. At ech

More information

5.7 Improper Integrals

5.7 Improper Integrals 458 pplictions of definite integrls 5.7 Improper Integrls In Section 5.4, we computed the work required to lift pylod of mss m from the surfce of moon of mss nd rdius R to height H bove the surfce of the

More information

. Double-angle formulas. Your answer should involve trig functions of θ, and not of 2θ. sin 2 (θ) =

. Double-angle formulas. Your answer should involve trig functions of θ, and not of 2θ. sin 2 (θ) = Review of some needed Trig. Identities for Integrtion. Your nswers should be n ngle in RADIANS. rccos( 1 ) = π rccos( - 1 ) = 2π 2 3 2 3 rcsin( 1 ) = π rcsin( - 1 ) = -π 2 6 2 6 Cn you do similr problems?

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

SYDE 112, LECTURES 3 & 4: The Fundamental Theorem of Calculus

SYDE 112, LECTURES 3 & 4: The Fundamental Theorem of Calculus SYDE 112, LECTURES & 4: The Fundmentl Theorem of Clculus So fr we hve introduced two new concepts in this course: ntidifferentition nd Riemnn sums. It turns out tht these quntities re relted, but it is

More information