Derivatives, Finding Roots, Interpolating and Integration
|
|
- Gordon Welch
- 5 years ago
- Views:
Transcription
1 Derivtives, Finding Roots, Interpolting nd Integrtion Doing Numericl Derivtives Altoug tking derivtives is very esy opertion for ll of you, tere re situtions were it must e done numericlly. For exmple, suppose you re given experimentl dt points, rter tn known mtemticl function. Or, suppose you ve complicted mtemticl function ( Bessel function, or te like were you don t know te derivtive formul or it is too difficult to work out (lter wen we study Mtemtic we will se tt it cn symoliclly work out mny derivtives An lgoritm is te specific procedure you follow to clculte desired result, i.e., wen you find te roots x 1 nd x 2 of x 2 + x + c = 0 y clculting x 1, x 2 = ± 2 4c 2 you re using n lgoritm. Using guesswork nd intuition to put te eqution in te form (x x 1 (x x 2 = 0 would e different lgoritm. Te word comes from ook y gret Persin mtemticin of te 9t century, Au l-kwrizmi; we lso get te word "lger" from im. Imgine tt you ve n experiment tt produces some discrete vlues of te position of prticle. So tere is some unknown function x(t for wic you ve only numericl vlues t discrete set of points. You would, owever, like to clculte te speed of te prticle v(t - tis mens tt you need to do numericl derivtive. Suppose tt we re interested in te derivtive t x = 0, x'(0, of some function x(t nd lso suppose tt, s stted ove. we only know te function x(t on n eqully spced lttice of t-vlues. x n = x(t n, t n = n, n = 0,1,2,3... Pge 1
2 We egin y using Tylor series to expnd te function x(t in te neigorood of t = 0. We ten ve x(t = x(0 + x'(0t + x''(0 2! x +1 = x(t 1 = x( = x(0 + x'( ! t 2 + x'''(0 t ! x''( ! x'''(0 + O(4 x +2 = x(t 2 = x(2 = x(0 + 2x'( x''( x'''(0 + O(4 x 1 = x(t 1 = x( = x(0 x'(0 + 2 x 2 = x(t 2 = x( 2 = x(0 2x'( x''( x'''(0 + O(4 were O( 4 mens terms of order 4 or iger ( smll ve 2! x''(0 3 3! x'''(0 + O(4 een neglected. We ten ve x'(0 = x x 1 0 x( x(0 + O( = + O( wic is clled 2-point formul for te derivtive t t = 0. It is lso clled te forwrd difference lgoritm. Alterntively we ve x'(0 = x x 0 1 x(0 x( + O( = + O( Using tese two results we cn derive more ccurte 3-point formul or centrl difference lgoritm. or 1 2 x 1 x 0 x 1 x x 0 x 1 = x'(0 = (x(0 + x'(0 + x''(0... (x(0 x'(0 + x''( ! 2! = x'(0 + O( 2 x'(0 = x x O( 2 2 In similr mnner, it is possile to improve on te 3-point formul y relting x'(0 to grid points futer removed from x = 0. Te 5-point formul is x'(0 = 1 ( 12 x 8x + 8x x O( 4 Pge 2
3 Formuls for iger derivtives cn e constructed y tking pproprite comintions, for exmple, x''(0 = 1 2 ( x 1 2x 0 + x 1 + O( 2 Finlly, we give tle of iger-order derivtives (5-point formuls using centrl-difference formuls: x'(0 = 1 ( 12 x 8x + 8x x x''(0 = 1 ( x x 1 30x x 1 x 2 x'''(0 = 1 ( x x x 1 13x 1 + 8x 2 x 3 x''''(0 = 1 ( x x 2 39x x 0 39x x 2 x 3 Derivtives t oter vlues of t ( oter tn t = 0 re otined y trnsltion: x( x( x(t + x(t x'(0 = x'(t = 2 2 x''(0 = 1 2 ( x( 2x(0 + x( x''(t = 1 ( x(t + 2x(t + x(t 2 Smple Code for Numericl derivtives function y = fp(x y= sin(x*exp(x; % fivepoint derivtives =input('enter stepsize - (0 < < 0.1: ' ; x = 2; d1 = (fp(x-2*-8*fp(x-+8*fp(x+-fp(x+2*/(12*; d2 = (-fp(x-2*+16*fp(x--30*fp(x+16.0*fp(x+... -fp(x+2*/(12*^2; d3 = (fp(x-3*-8*fp(x-2*+13*fp(x--13*fp(x *fp(x+2*-fp(x+3*/(8*^3; d4 = (-fp(x-3*+12*fp(x-2*-39*fp(x-+56*fp(x *fp(x++12*fp(x+2*-fp(x+3*/(6*^4; [d1,d2,d3,d4] Pge 3
4 >> fivepoint Enter stepsize - (0 < < 0.1:.5 ns = >> fivepoint Enter stepsize - (0 < < 0.1:.1 ns = >> fivepoint Enter stepsize - (0 < < 0.1:.01 ns = Clerly we re seeing convergence. Te exct nswers re: Finding Zeroes or Roots Te solution of n ritrry eqution f(x = 0 is commonly clled te root or "zero" of te function f(x. More specificlly, if f(x is continuous on n intervl [, ] nd te signs of f( nd f( differ, ten for some x in [, ], sy x = z, f(z = 0 nd z is te root of te function. Tere re vriety of itertive metods for finding roots of functions nd we sll illustrte few of tem elow: Crude Home-In Metod (CHIM In tis metod we need to know n pproximte vlue of te root. Te procedure ten is: (1 pick x < xroot (guess it nd clculte f(x (2 let x x + D, clculte f(x (3 continue tis process until f(x cnges sign (4 ck up 1 step, decrese te step size, D D/10 (5 return to step (2 (6 decide wen to stop If we cn compute(nlyticlly te derivtive f (x, ten noter tecnique is used. Pge 4
5 Newton - Rpson Tngent Metod (NRTM Tis metod genertes sequence of vlues x i converging to x root. Using te digrm elow NRTM uses Tngent Metod tngent x root Te NRTM uses te eqution x x i+1 i or y tngent line = f (x i + f '(x i (x x i y root = 0 = f (x i + f '(x i (x i+1 x i x i+1 = x i f (x i f '(x i Any vlue x 0 cn e used to strt te process. A second version does not require n nlytic formul for te derivtive. Newton - Rpson Secnt Metod (NRSM Tis metod genertes sequence of vlues x i converging to x root. Using te digrm elow, NRSM uses f '(x i = f (x i f (x i 1 x i x i 1 (s n pproximtion for te slope in NRTM metod x i+1 = x i f (x i x i x i 1 f (x i f (x i 1 Pge 5
6 Secnt Metod x root secnt x i+1 x i x i-1 Any two vlues x 1 nd x 2 cn e used to strt te process Wen te function is dly eved ner its root, i.e., tere is n inflection point or severl nery roots, te NR metods cn fil to converge t ll or converge to te wrong nswer deping on your strting point. A sfe procedure is to use te CHIM metod to get close nd ten us one of te NR metods to get te exct result. Smple Code for Finding Roots function z=nucler(x z=tn(0.1*x-9.2*exp(-x; % CHIM metod % 0,10,1,.001 xmin=input('enter xmin : ' ; xmx=input('enter xmx : ' ; step=input('enter step : ' ; tol=input('enter tol : ' ; Pge 6
7 wile ((xmx-xmin >= tol x=xmin; c0=sign(nucler(x; c=c0; wile (c == c0 x=x+step; c0=c; c=sign(nucler(x; xmx=x; xmin=x-step; step=step/10; [xmin,xmx,nucler(xmin] function z=nucler(x z=tn(0.1*x-9.2*exp(-x; function z=dnucler(x z=0.1*(1.0/cos(0.1*x^2+9.2*exp(-x; % NRTM Metod % 0, x1=input('enter x1 : ' ; tol=input('enter tol : ' ; xnew = x1; xold = xnew-10*tol; wile (s(xold-xnew >= tol xold=xnew; xnew=xold-nucler(xold/dnucler(xold; [xold,nucler(xold] function z=nucler(x z=tn(0.1*x-9.2*exp(-x; % NRSM Metod % 0,10,0.001 x0=input('enter x0 : ' ; x1=input('enter x1 : ' ; tol=input('enter tol : ' ; xold = x1; xoldold = x0; wile (s(xoldold-xold >= tol xnew=xoldold-nucler(xoldold*(xold-xoldold/... (nucler(xold-nucler(xoldold; Pge 7
8 if (s(xnew-xold > s(xnew-xoldold xoldold =xoldold; xold=xnew; else xoldold=xold; xold=xnew; [xoldold,xold,nucler(xold] Interpolting Dt Lgrnge Interpoltion Te metod of Lgrnge Interpoltion cn e used to pproximte function everywere even if vlues of te function re only known t finite set of points. We derive Lgrnge s tree-point interpolting polynomil p(x from Tylor series y expressing te function t x 1 nd x 2 in terms of te function nd its derivtives: f (x 1 = f (x + (x 1 x f '(x +... f (x 2 = f (x + (x 2 x f '(x +... We would like to truncte te series nd retin only te first two terms. But in doing so, te equlity would e destroyed. We cn, owever, introduce pproximtions to te function nd its derivtives suc tt te equlity is retined. Consider te reltions f (x 1 = p(x + (x 1 xp'(x f (x 2 = p(x + (x 2 xp'(x were we must ten ve p(x 1 = f (x 1 nd p(x 2 = f (x 2 Some lger ten gives p(x = x x 2 f (x 1 + x x 1 f (x 2 x 1 x 2 x 1 x 2 wic is liner function of x. Tis function is te eqution of te line pssing troug te points (x 1, f (x 1,(x 2, f (x 2. Note ow te weigting fctors empsize ec term t different plces. Higer pproximtions (non-liner re otined y keeping nd pproximting more terms in te Tylor series. Pge 8
9 Tus, if we know te function t tree points, f (x 1 = f (x + (x 1 - x f '(x + (x 1 x2 2 f (x 2 = f (x + (x 2 - x f '(x + (x 2 x2 2 f ''(x +... f ''(x +... f (x 3 = f (x + (x 3 - x f '(x + (x 3 x2 f ''(x Truncting tese equtions(s ove nd solving we get p(x = (x x 2 (x x 3 (x 1 x 2 (x 1 x 3 f (x 1 + (x x 1 (x x 3 (x 2 x 1 (x 2 x 3 f (x 2 + (x x 1 (x x 2 (x 3 x 1 (x 3 x 2 f (x 3 Tese results cn e generlized to give generl n-point interpolting polynomil of order (n-1 s were n p(x = C j,n (x f (x j j =1 (x x 1 (x x 2...(x x j 1 (x x j +1...(x x n C j,n (x = (x j x 1 (x j x 2...(x j x j 1 (x j x j +1...(x j x n were C j,n (x i = 1 i=j 0 i j = δ ij Smple Code for Lgrnge Interpoltion % interpolting t = [94.0, 205.0, 371.0]; ro = [929.0, 902.0, 860.0]; x = 251.0; p1 = ((x-t(2*(x-t(3*ro(1/((t(1-t(2*(t(1-t(3; p2 = ((x-t(1*(x-t(3*ro(2/((t(2-t(1*(t(2-t(3; p3 = ((x-t(1*(x-t(2*ro(3/((t(3-t(1*(t(3-t(2; dens=p1 + p2 + p3 Numericlly Doing Integrls Now we re interested in numericlly clculting te definite integrl of function f(x etween two limits <. We define N = Pge 9
10 suc tt N = n even integer nd = step size. Alterntely, we cn coose N(even nd compute te corresponding step size. Now we cn write (y reking up te rnge of integrtion into mny smller rnges f (xdx = f (xdx + f (xdx f (xdx + f (xdx Terefore we need only clculte te integrl g(0 = f (xdx nd te generl formul cn e clculted from tis result using te reltion 2 g(q = f (xdx q wic follows from trnsltion nd gives q+ f (xdx = g( + + g( g( g( 3 + g( Te sic ide ere(tis is te so-clled Newton-Cotes metod is to pproximte f(x etween - nd y function tt cn e integrted exctly so we cn evlute g(0 exctly nd ten use tt exct result to generte n pproximtion for te entire integrl. For exmple, te simplest pproximtion is given y considering te intervls [-,0] nd [0,] seprtely nd ssuming tt te function f(x is constnt in ec region of tese intervls. In tis cse we ve g(0 = f (xdx = f (xdx + f (xdx = f ( dx + f (0dx 0 ( = f ( + f (0 wic is te well-known "rectngle" rule ecuse we re summing rectngulr res. Tis gives for te entire integrl or f (xdx = g( + + g( g( g( 3 + g( = f ( + f ( + 0 ( + ( f ( f ( ( f ( f ( ( f ( 4 + f ( 3 + ( f ( 2 + f ( 0 0 Pge 10
11 f (xdx = ( f ( + f ( + + f ( f ( f ( f ( f ( 4 + f ( 3 + f ( 2 + f ( Te next simplest pproximtion cn e d y considering te intervls [-,0] nd [0,] seprtely nd ssuming tt te function f(x is liner in ec region of tese intervls. Te pproximte integrl is ten 0 f (0 f ( f ( f (0 g(0 = f (xdx = f ( + (x + dx + f (0 + x dx ( = f ( + 2 f (0 + f ( 2 wic is te well-known "trpezoidl" rule ecuse we re summing trpezoidl res. Tis gives or f (xdx = g( + + g( g( g( 3 + g( = ( f ( f ( + + f ( 2 + ( f ( f ( f ( f (xdx = + ( f ( f ( 3 + f ( ( f ( f ( + f ( 2 ( f ( + 2 f ( f ( f ( f ( f ( f ( f ( f ( + f ( An even etter pproximtion cn e d y relizing tt Tylor series cn provide n improved interpoltion of te function f(x We ve wic gives f (x = f (0 + f ( f ( x + 0 f ( 2 f (0 + f ( 2 2 x 2 + O(x 3 f (xdx = ( f ( + 4 f (0 + f ( 3 Tis is "Simpson s" Rule. It is ccurte to two orders iger tn te trpezoid rule. It corresponds to pproximting f(x y prol. Using tis result we get Pge 11
12 or f (xdx = ( f ( f ( + + f ( 3 + ( f ( f ( f ( f (xdx = + ( f ( f ( 3 + f ( ( f ( f ( + f ( 3 ( f ( + 4 f ( f ( f ( f ( f ( f ( f ( f ( + f ( Rememer, te numer of intervls must e even(or te numer points is odd. Smple Codes to Implement Rectngle Rule function y=tfofx(x % integrtion function y= x.*exp(x; % rectngle rule using for loop n=100;=2;=0;=(-/n;intrect=0; for x=0::(n-1* intrect=intrect+tfofx(x*; intrect % rectngle rule - no loops (vectorized n=100;=2;=0;=(-/n;x=*(0:n-1; f=tfofx(x; intrect=*sum(f; intrect Vectorized Trpezoid nd Simpson Rule(two wsys Codes % Numericl Integrtion n=100; =2; =0; =(-/n; x=*(0:n; f=tfofx(x; % trpezoid rule wtrp=[1,2*ones(1,n-1,1]; inttrp=(/2*sum(wtrp.*f; % simpson rule w2=2*ones(1,n+1; Pge 12
13 w2(1:2:n+1=zeros(1,n/2+1; wsimp=[1,2*ones(1,n-1,1]+w2; intsimp=(/3*sum(wsimp.*f; [inttrp,intsimp] % Numericl Integrtion n=1000; =2; =0; =(-/n; x=*(0:n; f=tfofx(x; %trpezoid rule wtrp=[1,2*ones(1,n-1,1]; inttrp=(/2*sum(wtrp.*f; % simpson rule wsimp=[1,respe((ones(1,(n-2/2'*[4,2]',1,n-2,4,1]; intsimp=(/3*sum(wsimp.*f; [inttrp,intsimp] Pge 13
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 informationChapter 2. Numerical Integration also called quadrature. 2.2 Trapezoidal Rule. 2.1 A basic principle Extending the Trapezoidal Rule DRAWINGS
S Cpter Numericl Integrtion lso clled qudrture Te gol of numericl integrtion is to pproximte numericlly. f(x)dx Tis is useful for difficult integrls like sin(x) ; sin(x ); x + x 4 Or worse still for multiple-dimensionl
More informationNumerical 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 informationNUMERICAL 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 informationReview 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 informationNumerical Integration Problems
Integrtion COS 33 Nuericl Integrtion Proles Bsic D nuericl integrtion Given ility to evlute or ny, ind Gol: est ccurcy wit ewest sples Clssic prole even nlytic unctions not necessrily integrle in closed
More informationMath Week 5 concepts and homework, due Friday February 10
Mt 2280-00 Week 5 concepts nd omework, due Fridy Februry 0 Recll tt ll problems re good for seeing if you cn work wit te underlying concepts; tt te underlined problems re to be nded in; nd tt te Fridy
More information5: The Definite Integral
5: The Definite Integrl 5.: Estimting with Finite Sums Consider moving oject its velocity (meters per second) t ny time (seconds) is given y v t = t+. Cn we use this informtion to determine the distnce
More informationChapter 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 informationInterpreting Integrals and the Fundamental Theorem
Interpreting Integrls nd the Fundmentl Theorem Tody, we go further in interpreting the mening of the definite integrl. Using Units to Aid Interprettion We lredy know tht if f(t) is the rte of chnge of
More informationDefinite Integrals. The area under a curve can be approximated by adding up the areas of rectangles = 1 1 +
Definite Integrls --5 The re under curve cn e pproximted y dding up the res of rectngles. Exmple. Approximte the re under y = from x = to x = using equl suintervls nd + x evluting the function t the left-hnd
More informationLecture 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 informationNUMERICAL 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 informationTopic 6b Finite Difference Approximations
/8/8 Course Instructor Dr. Rymond C. Rump Oice: A 7 Pone: (95) 747 6958 E Mil: rcrump@utep.edu Topic 6b Finite Dierence Approximtions EE 486/5 Computtionl Metods in EE Outline Wt re inite dierence pproximtions?
More informationKey words. Numerical quadrature, piecewise polynomial, convergence rate, trapezoidal rule, midpoint rule, Simpson s rule, spectral accuracy.
O SPECTRA ACCURACY OF QUADRATURE FORMUAE BASED O PIECEWISE POYOMIA ITERPOATIO A KURGAOV AD S TSYKOV Abstrct It is well-known tt te trpezoidl rule, wile being only second-order ccurte in generl, improves
More informationIII. 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 informationNumerical 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 informationCOT4501 Spring Homework VII
COT451 Spring 1 Homework VII The ssignment is due in clss on Thursdy, April 19, 1. There re five regulr problems nd one computer problem (using MATLAB). For written problems, you need to show your work
More informationSection 6.1 Definite Integral
Section 6.1 Definite Integrl Suppose we wnt to find the re of region tht is not so nicely shped. For exmple, consider the function shown elow. The re elow the curve nd ove the x xis cnnot e determined
More informationNumerical 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 informationChapter 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 informationLecture 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 informationZ 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 informationAdvanced 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 informationDOING PHYSICS WITH MATLAB MATHEMATICAL ROUTINES
DOIG PHYSICS WITH MATLAB MATHEMATICAL ROUTIES COMPUTATIO OF OE-DIMESIOAL ITEGRALS In Cooper School of Physics, University of Sydney in.cooper@sydney.edu.u DOWLOAD DIRECTORY FOR MATLAB SCRIPTS mth_integrtion_1d.m
More informationCOSC 3361 Numerical Analysis I Numerical Integration and Differentiation (III) - Gauss Quadrature and Adaptive Quadrature
COSC 336 Numericl Anlysis I Numericl Integrtion nd Dierentition III - Guss Qudrture nd Adptive Qudrture Edgr Griel Fll 5 COSC 336 Numericl Anlysis I Edgr Griel Summry o the lst lecture I For pproximting
More informationSuppose we want to find the area under the parabola and above the x axis, between the lines x = 2 and x = -2.
Mth 43 Section 6. Section 6.: Definite Integrl Suppose we wnt to find the re of region tht is not so nicely shped. For exmple, consider the function shown elow. The re elow the curve nd ove the x xis cnnot
More informationOrthogonal 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 informationSection 4: Integration ECO4112F 2011
Reding: Ching Chpter Section : Integrtion ECOF Note: These notes do not fully cover the mteril in Ching, ut re ment to supplement your reding in Ching. Thus fr the optimistion you hve covered hs een sttic
More informationUnit #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 informationLecture 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 informationLecture 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 informationIntegrals - Motivation
Integrls - Motivtion When we looked t function s rte of chnge If f(x) is liner, the nswer is esy slope If f(x) is non-liner, we hd to work hrd limits derivtive A relted question is the re under f(x) (but
More informationBest 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 informationTHE 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 informationSection 6: Area, Volume, and Average Value
Chpter The Integrl Applied Clculus Section 6: Are, Volume, nd Averge Vlue Are We hve lredy used integrls to find the re etween the grph of function nd the horizontl xis. Integrls cn lso e used to find
More information1 Error Analysis of Simple Rules for Numerical Integration
cs41: introduction to numericl nlysis 11/16/10 Lecture 19: Numericl Integrtion II Instructor: Professor Amos Ron Scries: Mrk Cowlishw, Nthnel Fillmore 1 Error Anlysis of Simple Rules for Numericl Integrtion
More informationLab 11 Approximate Integration
Nme Student ID # Instructor L Period Dte Due L 11 Approximte Integrtion Ojectives 1. To ecome fmilir with the right endpoint rule, the trpezoidl rule, nd Simpson's rule. 2. To compre nd contrst the properties
More informationNumerical 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 informationReview 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 informationThe practical version
Roerto s Notes on Integrl Clculus Chpter 4: Definite integrls nd the FTC Section 7 The Fundmentl Theorem of Clculus: The prcticl version Wht you need to know lredy: The theoreticl version of the FTC. Wht
More information10. AREAS BETWEEN CURVES
. AREAS BETWEEN CURVES.. Ares etween curves So res ove the x-xis re positive nd res elow re negtive, right? Wrong! We lied! Well, when you first lern out integrtion it s convenient fiction tht s true in
More informationThe 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 informationNumerical 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 informationDefinite 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 information3.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 information1 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 informationBob Brown Math 251 Calculus 1 Chapter 5, Section 4 1 CCBC Dundalk
Bo Brown Mth Clculus Chpter, Section CCBC Dundlk The Fundmentl Theorem of Clculus Informlly, the Fundmentl Theorem of Clculus (FTC) sttes tht differentition nd definite integrtion re inverse opertions
More informationB.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 informationExam 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 informationMath& 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 information6.5 Numerical Approximations of Definite Integrals
Arknss Tech University MATH 94: Clculus II Dr. Mrcel B. Finn 6.5 Numericl Approximtions of Definite Integrls Sometimes the integrl of function cnnot be expressed with elementry functions, i.e., polynomil,
More informationPolynomials and Division Theory
Higher Checklist (Unit ) Higher Checklist (Unit ) Polynomils nd Division Theory Skill Achieved? Know tht polynomil (expression) is of the form: n x + n x n + n x n + + n x + x + 0 where the i R re the
More informationNumerical 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 informationAP Calculus Multiple Choice: BC Edition Solutions
AP Clculus Multiple Choice: BC Edition Solutions J. Slon Mrch 8, 04 ) 0 dx ( x) is A) B) C) D) E) Divergent This function inside the integrl hs verticl symptotes t x =, nd the integrl bounds contin this
More informationCalculus II: Integrations and Series
Clculus II: Integrtions nd Series August 7, 200 Integrls Suppose we hve generl function y = f(x) For simplicity, let f(x) > 0 nd f(x) continuous Denote F (x) = re under the grph of f in the intervl [,x]
More information( ) Same as above but m = f x = f x - symmetric to y-axis. find where f ( x) Relative: Find where f ( x) x a + lim exists ( lim f exists.
AP Clculus Finl Review Sheet solutions When you see the words This is wht you think of doing Find the zeros Set function =, fctor or use qudrtic eqution if qudrtic, grph to find zeros on clcultor Find
More informationPhysics 116C Solution of inhomogeneous ordinary differential equations using Green s functions
Physics 6C Solution of inhomogeneous ordinry differentil equtions using Green s functions Peter Young November 5, 29 Homogeneous Equtions We hve studied, especilly in long HW problem, second order liner
More informationDefinite 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 informationLecture 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 informationMath 20C Multivariable Calculus Lecture 5 1. Lines and planes. Equations of lines (Vector, parametric, and symmetric eqs.). Equations of lines
Mt 2C Multivrible Clculus Lecture 5 1 Lines nd plnes Slide 1 Equtions of lines (Vector, prmetric, nd symmetric eqs.). Equtions of plnes. Distnce from point to plne. Equtions of lines Slide 2 Definition
More information1 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 informationEdexcel GCE Core Mathematics (C2) Required Knowledge Information Sheet. Daniel Hammocks
Edexcel GCE Core Mthemtics (C) Required Knowledge Informtion Sheet C Formule Given in Mthemticl Formule nd Sttisticl Tles Booklet Cosine Rule o = + c c cosine (A) Binomil Series o ( + ) n = n + n 1 n 1
More information4.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 informationTaylor 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 informationMA123, Chapter 10: Formulas for integrals: integrals, antiderivatives, and the Fundamental Theorem of Calculus (pp.
MA123, Chpter 1: Formuls for integrls: integrls, ntiderivtives, nd the Fundmentl Theorem of Clculus (pp. 27-233, Gootmn) Chpter Gols: Assignments: Understnd the sttement of the Fundmentl Theorem of Clculus.
More informationMath 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 informationProperties 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 informationBridging the gap: GCSE AS Level
Bridging the gp: GCSE AS Level CONTENTS Chpter Removing rckets pge Chpter Liner equtions Chpter Simultneous equtions 8 Chpter Fctors 0 Chpter Chnge the suject of the formul Chpter 6 Solving qudrtic equtions
More informationCalculus AB. For a function f(x), the derivative would be f '(
lculus AB Derivtive Formuls Derivtive Nottion: For function f(), the derivtive would e f '( ) Leiniz's Nottion: For the derivtive of y in terms of, we write d For the second derivtive using Leiniz's Nottion:
More informationOrthogonal 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 informationSections 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 informationCMDA 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 information5.1 How do we Measure Distance Traveled given Velocity? Student Notes
. How do we Mesure Distnce Trveled given Velocity? Student Notes EX ) The tle contins velocities of moving cr in ft/sec for time t in seconds: time (sec) 3 velocity (ft/sec) 3 A) Lel the x-xis & y-xis
More information7. Numerical evaluation of definite integrals
7. Numericl evlution of definite integrls Tento učení text yl podpořen z Operčního progrmu Prh - Adptilit Hn Hldíková Numericl pproximtion of definite integrl is clled numericl qudrture, the formuls re
More informationChapters 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 informationP 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 informationAP Calculus AB Unit 5 (Ch. 6): The Definite Integral: Day 12 Chapter 6 Review
AP Clculus AB Unit 5 (Ch. 6): The Definite Integrl: Dy Nme o Are Approximtions Riemnn Sums: LRAM, MRAM, RRAM Chpter 6 Review Trpezoidl Rule: T = h ( y + y + y +!+ y + y 0 n n) **Know how to find rectngle
More informationRGMIA Research Report Collection, Vol. 1, No. 1, SOME OSTROWSKI TYPE INEQUALITIES FOR N-TIME DIFFERENTIA
ttp//sci.vut.edu.u/rgmi/reports.tml SOME OSTROWSKI TYPE INEQUALITIES FOR N-TIME DIFFERENTIABLE MAPPINGS AND APPLICATIONS P. CERONE, S.S. DRAGOMIR AND J. ROUMELIOTIS Astrct. Some generliztions of te Ostrowski
More informationImproper Integrals. The First Fundamental Theorem of Calculus, as we ve discussed in class, goes as follows:
Improper Integrls The First Fundmentl Theorem of Clculus, s we ve discussed in clss, goes s follows: If f is continuous on the intervl [, ] nd F is function for which F t = ft, then ftdt = F F. An integrl
More informationNumerical Integration - (4.3)
Numericl Itegrtio - (.). Te Degree of Accurcy of Qudrture Formul: Te degree of ccurcy of qudrture formul Qf is te lrgest positive iteger suc tt x k dx Qx k, k,,,...,. Exmple fxdx 9 f f,,. Fid te degree
More informationTime in Seconds Speed in ft/sec (a) Sketch a possible graph for this function.
4. Are under Curve A cr is trveling so tht its speed is never decresing during 1-second intervl. The speed t vrious moments in time is listed in the tle elow. Time in Seconds 3 6 9 1 Speed in t/sec 3 37
More informationSection 5.4 Fundamental Theorem of Calculus 2 Lectures. Dr. Abdulla Eid. College of Science. MATHS 101: Calculus 1
Section 5.4 Fundmentl Theorem of Clculus 2 Lectures College of Science MATHS : Clculus (University of Bhrin) Integrls / 24 Definite Integrl Recll: The integrl is used to find re under the curve over n
More informationMath 131. Numerical Integration Larson Section 4.6
Mth. Numericl Integrtion Lrson Section. This section looks t couple of methods for pproimting definite integrls numericlly. The gol is to get good pproimtion of the definite integrl in problems where n
More information. 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 informationNumerical 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 informationOPEN NEWTON - COTES QUADRATURE WITH MIDPOINT DERIVATIVE FOR INTEGRATION OF ALGEBRAIC FUNCTIONS
IJRET: Interntionl Journl of Reserch in Engineering nd Technology eissn: 9-6 pissn: -78 OPEN NEWTON - COTES QUADRATURE WITH MIDPOINT DERIVATIVE FOR INTEGRATION OF ALGEBRAIC FUNCTIONS T. Rmchndrn R.Priml
More information5.1 Evaluating a polynomial
5 Evluting polynomil We will now look t evluting polynomil t point Your first tougt my be: tis is esy: just substitute te vlues, nd presto Unfortuntely, tis is not te cse 5 Execution time First, tere is
More information2 b. , a. area is S= 2π xds. Again, understand where these formulas came from (pages ).
AP Clculus BC Review Chpter 8 Prt nd Chpter 9 Things to Know nd Be Ale to Do Know everything from the first prt of Chpter 8 Given n integrnd figure out how to ntidifferentite it using ny of the following
More informationGoals: 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 informationHow 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 informationQUADRATURE is an old-fashioned word that refers to
World Acdemy of Science Engineering nd Technology Interntionl Journl of Mthemticl nd Computtionl Sciences Vol:5 No:7 011 A New Qudrture Rule Derived from Spline Interpoltion with Error Anlysis Hdi Tghvfrd
More informationMath 190 Chapter 5 Lecture Notes. Professor Miguel Ornelas
Mth 19 Chpter 5 Lecture Notes Professor Miguel Ornels 1 M. Ornels Mth 19 Lecture Notes Section 5.1 Section 5.1 Ares nd Distnce Definition The re A of the region S tht lies under the grph of the continuous
More informationf(a+h) f(a) x a h 0. This is the rate at which
M408S Concept Inventory smple nswers These questions re open-ended, nd re intended to cover the min topics tht we lerned in M408S. These re not crnk-out-n-nswer problems! (There re plenty of those in the
More informationAB Calculus Review Sheet
AB Clculus Review Sheet Legend: A Preclculus, B Limits, C Differentil Clculus, D Applictions of Differentil Clculus, E Integrl Clculus, F Applictions of Integrl Clculus, G Prticle Motion nd Rtes This is
More informationChapter 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( ) as a fraction. Determine location of the highest
AB Clculus Exm Review Sheet - Solutions A. Preclculus Type prolems A1 A2 A3 A4 A5 A6 A7 This is wht you think of doing Find the zeros of f ( x). Set function equl to 0. Fctor or use qudrtic eqution if
More information1B40 Practical Skills
B40 Prcticl Skills Comining uncertinties from severl quntities error propgtion We usully encounter situtions where the result of n experiment is given in terms of two (or more) quntities. We then need
More information( ) where f ( x ) is a. AB Calculus Exam Review Sheet. A. Precalculus Type problems. Find the zeros of f ( x).
AB Clculus Exm Review Sheet A. Preclculus Type prolems A1 Find the zeros of f ( x). This is wht you think of doing A2 A3 Find the intersection of f ( x) nd g( x). Show tht f ( x) is even. A4 Show tht f
More information10 Vector Integral Calculus
Vector Integrl lculus Vector integrl clculus extends integrls s known from clculus to integrls over curves ("line integrls"), surfces ("surfce integrls") nd solids ("volume integrls"). These integrls hve
More information