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

Size: px
Start display at page:

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

Transcription

1 Lecture Note 4: Numericl differentition nd integrtion Xioqun Zng Sngi Jio Tong University Lst updted: November, 0

2 Numericl Anlysis. Numericl differentition.. Introduction Find n pproximtion of f (x 0 ), f (x 0 ),..., in terms of only f(x). Since we use Used in Secnt metod. > 0, forwrd difference formul < 0, bckwrd difference formul Use grp to illustrte tis. Not successful due to round-off error. Quntittive study of te error: f f(x 0 + ) f(x 0 ) (x 0 ) = lim, 0 f (x 0 ) f(x 0 + ) f(x 0 ) Assume tt x 0 (, b). Suppose tt f C [, b]. x = x 0 + [, b]. Use Tylor s expnsion. So f(x 0 + ) = f(x 0 ) + f (x 0 ) + f (ξ). f (x 0 ) = f(x 0 + ) f(x 0 ) Te error is of O() since f (ξ) is bounded. Error: 0., is O(0.) Error: 0.00, is O(0.00). f (ξ). : To get n ccurte f (x 0 ), must be very smll. However, smll denomintor exggerte te round-off error of f(x 0 + ) f(x 0 ). (Recll loss of significnt digits.) Error is of O( α ). α is te order of te formul. Error 0.0, order : = O(0.0), order : = O(0.). Error 0.000, order : = O(0.000), order : = O(0.0). To minimize te influence of te round-off error, iger order formuls re desired. Higer order formul. Ide: Involving more points tn only x 0, x 0 +.

3 Numericl Anlysis Metod: using polynomil P (x) interpoltion to pproximte f(x), nd use P (x 0 ) to pproximte f (x 0 ).. Construct polynomil P n (x) tt psses troug ll te given points. (Lgrnge or Newton s divided difference). P n (x) f(x), so P n(x) f (x).. Use P n(x 0 ) s te formul to pproximte f (x). Use grp to illustrte. Polynomil interpoltion (Newton s divided difference formul) n i f(x) = f[x 0,..., x i ] (x x j ) + f (n+) n (x x j ). (n + )! j=0 Two-point formul. (f (x 0 ) f(x0+) f(x0) ) Interpolte f(x) using two points x 0, x. j=0 f(x) = f[x 0 ] + f[x 0, x ](x x 0 ) + f (ξ(x)) (x x 0 )(x x ). Tke derivtive on bot nd side. f (x) =f[x 0, x ] ( + df (ξ(x)) dx (x x 0 )(x x ) + f (ξ(x)) Replce x by x 0 nd x by x 0 +, we obtin f (x 0 ) = f[x 0, x 0 + ] f (ξ(x)). Te sme s obtined from Tylor s expnsion. Higer order formul: tree-point formul. Interpolte f(x) using tree points x 0, x nd x. f(x) =f[x 0 ] + f[x 0, x ](x x 0 ) + f[x 0, x, x ](x x 0 )(x x ) + f (ξ(x)) (x x 0 )(x x )(x x ). Tke derivtive on bot nd sides, (x x 0 ) + f ) (ξ(x)) (x x ) f (x) = f[x 0, x ] + f[x 0, x, x ](x x 0 ) + f[x 0, x, x ](x x ) ( df (ξ(x)) + (x x 0 )(x x )(x x ) dx + f (ξ(x)) ) ((x x 0 )(x x ) + (x x )(x x ) + (x x 0 )(x x ))

4 Numericl Anlysis Let x = x 0, x = x 0, nd x = x 0 +. We ve f (x 0 ) = f[x 0, x ] + f[x 0, x, x ] f (ξ(x)) f[x 0, x ] + f[x 0, x, x ] = f(x 0 ) f(x 0 ) Centrl difference formul Error term = f(x 0 + ) f(x 0 ) f(x 0 + ) f(x 0 ). f (ξ(x)), O( ). Let x = x 0, x = x +, x = x +. We ve f (x 0 ) = f[x 0, x ] f[x 0, x, x ] + f (ξ(x)) f[x 0, x ] + f[x 0, x, x ] = f(x 0 + ) f(x 0 ) Anoter tree-point formul Error term = f(x 0) + 4f(x 0 + ) f(x 0 + ) f(x 0 ) + 4f(x 0 + ) f(x 0 + ). f (ξ(x)), O( ). f(x 0+) f(x 0 ) f(x0 ) f(x0) + f(x 0+) f(x 0+) f(x0+) f(x0) Te error of te centrl difference formul is lf of te oter. Te reson: x nd x re closer to x 0 in its derivtion. Similrly, we ve Five-point formul. f (x 0 ) = (f(x 0 ) 8f(x 0 )+8f(x+0+) f(x 0 +))+ 4 0 f (5) (ξ) Cn construct formule involving more points. 4

5 Numericl Anlysis Interpoltion error: Assume > 0. Summry of formuls f(x) P n (x) = f (n+) (ξ) (n + )! (x x )(x x )... (x x n ). Two-points: x 0 nd x 0 + Forwrd difference formul. Two-points: x 0 nd x 0 Bckwrd difference formul. Tree points: x 0, x 0, x 0 + Centrl difference formul. Tree points: x 0, x 0 +, x 0 + f(x 0 + ) f(x 0 ), error = O(). f(x 0 ) f(x 0 ), error = O(). f(x 0 + ) f(x 0 ), error = O( ). f(x 0 ) + 4f(x 0 + ) f(x 0 + ), error = O( ). Five points: x 0, x 0, x 0, x 0 +, x 0 + f(x 0 ) 8f(x 0 ) + 8f(x 0 + ) f(x 0 + ), error = O( 4 )... Higer order derivtive Expnd f t x 0 nd evlute t x 0, x 0 + : f(x 0 + ) = f(x 0 ) + f (x 0 ) + f (x 0 ) + f (x 0 ) + 4 f (4) (ξ ) 4 (.) f(x 0 ) = f(x 0 ) f (x 0 ) + f (x 0 ) f (x 0 ) + 4 f (4) (ξ ) 4 were x 0 < ξ < x 0 < ξ < x 0 +. Add te two equtions, we ve f(x 0 + ) + f(x 0 ) = f(x 0 ) + f (x 0 ) + 4 [f (4) (ξ ) + f (4) (ξ )] 4 5 (.)

6 Numericl Anlysis We obtin f (x 0 ) = [f(x 0 ) f(x 0 ) + f(x 0 + )] f (4) (ξ) for some x 0 < ξ < x Ricrdson s extrpoltion Use less ccurte formuls to generte ig ccurcy formul. Forwrd difference formul: f(x 0 + ) f(x 0 ) Assume tt f is smoot enoug. Expnd te terms involved in te formul by Tylor s expnsion. f(x 0 + ) = f(x 0 ) + f (x 0 ) + f (x 0 ) So te error of tis formul is f (x 0 ) = f(x 0 + ) f(x 0 ) Error is O(). + f (x 0 ) + f (x 0 ) + f (x 0 ) f (n)(x0) n +... n! f (n)(x0) n +... n! Ricrdson s extrpoltion: Using oter s to eliminte te term of O(). Replce by : f (x 0 ) = f(x 0) f(x 0 ) f (x 0 ) Summing togeter nd dividing by : f (x 0 ) = f(x 0 + ) f(x 0 ) Centrl difference formul. Error O( )! + f (x 0 ) + f (x 0 )...+ f (n)(x0) ( ) n +... n! + f (5) (x 0 ) To get more ccurcy formul: Replce by in te bove formul f (x 0 ) = f(x 0 + ) f(x 0 ) 4 One 4 T wo f (x 0 ) = (f(x 0 + ) f(x 0 )) Error O( 4 ) + 4f (x 0 ) + f (5) (x 0 ) f(x 0 + ) f(x 0 ) 4 f (x 0 ) = f(x 0 ) 8f(x 0 ) + 8f(x 0 + ) f(x 0 + ) + f (5) (x 0 ) f (5) (x 0 )

7 Numericl Anlysis. Numericl integrtion.. Elements of Numericl integrtion Te need often rises for evluting te definite integrl of function tt s no explicit ntiderivtive or wose ntiderivtive is not esy to obtin. We wnt to compute f(x)dx using only f(x), i.e. Clled numericl qudrture. f(x) n i f(x i ) Bsic ide: use piecewise polynomil to pproximte f(x). For ec subintervl, select set of distinct nodes x0,, x n from te intervl [, b]. Ten integrte te interpolting polynomil P n (x) = n f(x i)l i (x) nd its trunction error term over [, b] to obtin f(x) = = i P n (x) + (n + )! i f(x i ) + (n + )!,b,b Π n (x x i )f (n+) (ξ(x))dx Π n (x x i )f (n+) (ξ(x))dx were i (x) = L i(x) for ec i = 0,, n nd ξ(x) [, b]. Numericl qudrture: nd error Trpezoidl rule E n (f) = (n + )! f(x) n i f(x i ) Π n (x x i )f (n+) (ξ(x))dx Use liner polynomil nd pproximte f(x) by trpezoid re. Wen f is positive vlue function, te integrl is given by te trpezoid re (f(x 0 ) + f(x ))/. Used piecewise liner function to pproximte f(x) using x 0 =, x = b, = b. P n (x) = f(x 0 ) x x + f(x ) x x 0 x 0 x x x 0 7

8 Numericl Anlysis x x 0 (f(x 0 ) x x x 0 x + f(x ) x x 0 x x 0 dx = f(x 0) x 0 x (x x ) x x=x 0 + f(x ) x x 0 (x x 0) x x=x 0 = f(x 0)(x 0 x ) + f(x )(x x 0 ) Remrks: = (f(x 0) + f(x ))(x x 0 ) = (f(x 0) + f(x )). Te error term for te Trpezoidl rule involves f, so te rule gives te exct result wen pplied to ny function wose second derivtive is identiclly zero, tt is, ny polynomil of degree one or less. Simpson s rule Assume tt te polynomil on [x 0, x ] is P (x). Write P (x) = αx + βx + γ x x 0 P (x)dx = x x 0 (αx + βx + γ)dx = ( αx + βx + γx) x x=x 0 = α(x x 0) + β(x x 0) + γ(x x 0 ) = (α(x x 0 )(x + x x 0 + x 0) + β(x x 0 )(x + x 0 ) + γ(x x 0 )) = x x 0 (α(x + x x 0 + x 0) + β(x + x 0 ) + γ) = (α(x + x x 0 + x 0) + β(x + x 0 ) + γ) Let us prove tt α(x + x x 0 + x 0) + β(x + x 0 ) + γ = f(x 0 ) + 4f(x ) + f(x ) Since P (x) is te interpoltion of f t x 0, x nd x, we ve f(x 0 ) = αx 0 + βx 0 + γ ( ) ( ) f(x ) = αx x0 + x x0 + x + βx + γ = α + β + γ f(x ) = αx + βx + γ 8

9 Numericl Anlysis So f(x 0 ) + 4f(x ) + f(x ) ( ) =α(x x0 + x x ) + βα(x x 0 + x + x ) + γ =... x.. Composite formul x 0 P (x) = (f(x 0) + 4f(x ) + f(x )). We wnt to find f(x)dx using piecewise polynomil to void (Runge s penomenon). Cut [, b] into n subintervls using eqully spced nodes. x 0 =, x, x,..., x n = b. Do integrl on ec subintervl. Composite Trpezoidl formul: let = (b )/n nd x j = + j, j = 0,, n. I n (f) := (f(x 0 )/ + f(x ) + f(x ) f(x n ) + f(x n )/) := n [f() + f(x j ) + f(b)] j= Composite Simpson rule: coose n even integer n nd divide [, b] into n subintervls wit = (b )/n nd x j = + j. Group te nodes every tree points, nd we coose te unique polynomil of degree wic goes troug te points. Do Integrl on ec sub-intervl. I n (f) := (f(x 0) + 4f(x ) + f(x ) + 4f(x ) + f(x 4 ) f(x n ) + 4f(x n ) + f(x n )). Remrk := n/ n/ (f(x 0) + f(x j ) + 4 f(x j ) + f(x n )). j= j=. Wy not use one polynomil nd ten integrl? (Runge s penomenon). lim n + I n (f) = f(x)dx. How fst does it converge?. Trpezoid: order. Simpson: order 4. I n(f) f(x)dx C I n(f) f(x)dx C4 9

10 Numericl Anlysis 4. If 00 points, = b 00 = 0. Error 0 4 or Error nlysis Lemm (Weigted men vlue teorem) Suppose tt g(x), w(x) C[, b] nd w(x) doesn t cnge sign in [, b]. Ten, tere exists θ (, b) suc tt g(x)w(x)dx = g(θ) Error nlysis for Trpezoidl rule w(x)dx I n (f) = (f(x 0 )/ + f(x ) + f(x ) f(x n ) + f(x n )/) Teorem Suppose f C [, b]. Ten ξ n [, b] suc tt Proof. f(x)dx I n (f) = (b )f (ξ n ) Step Let P (x) be te unique polynomil tt goes troug x i nd x i+. Error is Ten f(x) P (x) = f (ξ(x)) (x x i )(x x i+ ), ξ(x) (x i, x i+ ). E i = = xi+ x i xi+ x i (f(x) P (x))dx f (ξ(x)) (x x i )(x x i+ )dx (x x i )(x x i+ ) is continuous nd doesn t cnge te sign in [x i, x i+ ] f (ξ(x)) is continuous. By te weigted men vlue teorem, tere exists η i [x i, x i+ ] suc tt E i = f (η i ) xi+ x i (x x i )(x x i+ )dx. We ve Finlly, xi+ x i (x x i )(x x i+ )dx = (x i+ x i ). E i = f (η i ) 0

11 Numericl Anlysis Step Te totl error is n E = E i = n Notice tt n = b. Ten, Clim: Tere exists η [, b] suc tt n proof: f (η i ) = n ( ) n f (η i ) n ( ) n (b ) f(x) I n (x) = f (η i ) n n f (η i ) = f (η). min f (x) f (η i ) mx f (x) x [,b] x [,b] n n min f (x) f (η i ) n mx f (x) x [,b] x [,b] min f (x) n f (η i ) mx x [,b] n f (x) x [,b] Since f is continuous on [, b]. it must ttin ll vlue between its minimum nd mximum t, sy c nd d. Let g(x) = f (x) n f (η i ). n Ten, g(c) 0, g(d) 0. Applying intermedite vlue teorem, we get g (η) = 0. Hence f (η) = n f (η i ). n Corollry Te error is f(x)dx I n (f) M(b ).

12 Numericl Anlysis Error nlysis for Composite Simpson s rule. I n (f) = n/ (f(x i ) + 4f(x i+ ) + f(x i+ )) Teorem Suppose f C 4 [, b]. Ten ξ n [, b] suc tt f(x)dx I n (f) = (b )f (4) (ξ n ) 4 80 Proof. Let E i be te error in te intervl [x i, x i+ ]. Ten, E i = xi+ x i (f(x) P (x))dx = xi+ x i f (ξ(x)) (x x i )(x x i+ )(x x i+ )dx, were ξ(x) [x i, x i+ ]. Let g(x) = f (ξ(x)) nd w(x) = (x x i )(x x i+ )(x x i+ ). We cnnot use te Weigted Men Vlue Teorem, becuse w(x) > 0, wen x i < x < x i+, w(x) < 0, wen x i+i < x < x i+. Clim: η i [x i, x i+ ] s.t. E i = 5 90 f (4) (η i ). Proof. Will not prove it. So, te totl error is 5 n/ 90 f (4) (η i ) = n Need to nlyze n 5 n/ f (4) (η i ) 90 n n/ f (4) (η i ). We ve m f (4) (η i ) M, m n Since f (4) is continuous, η [, b] s.t. n/ = n/ f (4) (η i ) = f (4) (η). (b )4 80 n f (4) (η i ) M. n/ f (4) (η i ). Corollry Te error is f(x)dx I n (f) M(b ) 4. 80

13 Numericl Anlysis Degree of precision Trpezoidl rule is O( ). ( (b )f (ξ) ). Simpson s rule is O( 4 ). ( (b )f (4) (ξ) 80 4 ). Simpson s rule is so muc better tn te Trpezoidl rule. Definition: A numericl integrtion formul I n (f) is sid ve degree of precision m if. I n (f) = f(x)dx for ll f(x) = xk, k m.. I n (f) f(x)dx for f(x) = xm+. I n (f + g) = I n (f) + I n (g), I n (λf) = λi n (f). Tis is equivlent to: A numericl integrtion formul I n (f) is sid ve degree of precision m if. I n (f) = f(x)dx for ll polynomil f(x) of degree m.. I n (f) f(x)dx for some polynomil f(x) of degree m +. It is expected tt Trpezoidl rule, te degree is, nd Simpson s rule, te degree is. In fct, Trp. rule s degree of precision, nd Simpson s rule s degree of precision. Let prove tt Simpson s rule is exct if f(x) is polynomil of degree. Te reson is tt te error x P (x) on [x 0, x ] cncels tt on [x, x ]. Proof. Step Let prove tt Simpson s rule is exct if f(x) = x. We only need to prove it in subintervl [x i, x i+ ], i.e., (f(x i) + 4f(x i+ ) + f(x i+ ))dx = xi+ x i x dx. In fct Note tt xi+ x i x dx = x4 4 xi+ x=x i = 4 (x4 i+ x 4 i) x 4 i+ x 4 i = (x i+ x i )(x i+ + x i+x i + x i+ x i + x i) nd x i+ x i =.

14 Numericl Anlysis So xi+ x i On te oter nd, x dx = (x i+ + x i+x i + x i+ x i + x i). f(x i )+4f(x i+ ) + f(x i+ ) = x i + 4( x i + x i+ ) + x i+ = x i + (x i + x i+ ) + x i+ Terefore, = x i + (x i+ + x i+x i + x i+ x i + x i) + x i+ = (x i+ + x i+x i + x i+ x i + x i) (f(x i) + 4f(x i+ ) + f(x i+ )) = (x i+ + x i+x i + x i+ x i + x i) Summing ll togeter, I n (x ) = x dx. Higer order metod (Closed Newton-Cote formul) Trpezoid: points; Simpson s rule: points. Higer order: wit more points. 4 points (/8 rule): interpolte polynomil of degree. x x 0 f(x)dx x x 0 P (x)dx = 8 (f(x 0) + f(x ) + f(x ) + f(x )). Error O( 4 ). f(x)dx 8 n/ (f(x i ) + f(x i+ ) + f(x i+ ) + f(x i+ )). 5 points (Boole s rule): interpolte polynomil of degree 4. x4 x 0 f(x)dx x4 x 0 P (x)dx = 45 (7f(x 0)+f(x )+f(x )+f(x )+7f(x 4 )). 4

15 Numericl Anlysis f(x)dx 8 Te error is O( ). n/4 Summry: Closed Newton-Cotes Formuls 45 (7f(x 4i)+f(x 4i+ )+f(x 4i+ )+f(x 4i+ )+7f(x 4i+4 )) Trpezoidl Simpson s /8 Boole? Num. of Points 4 5 Deg. of inter. poly. 4 5 Deg. of Precision. 5 5 Order. of Error(composite formul) O( ) O( 4 ) O( 4 ) O( ) O( ) Even polynomils (odd number of points) re better. Te left prt of te errors x n+ P n (x)) cncels te rigt prt!. Romberg integrtion Te min ide of Romber integrtion is to use te composite Trpezoidl rule to give preliminry pproximtion nd ten pplies te Ricrdson verge process to get iger order trunction error. Te Romberg integrtion lgoritm produces tringulr rry of numbers, ll of wic re numericl estimtes of te definite integrl f(x)dx. Te rry is denoted s R, R, R, R, R, R, R n, R n, R n, R n,n Let n be positive number. Te first column R n, contins estimtes of te integrl obtined by te recursive trpezoid formul wit decresing vlues of te step size n ( wit n equl subintervls). R, = (f() + f(b)) ( = b ) R, = (f() + f(b) + f( + )) = b b (f() + f(b) + f( + 4 ) = (R, + f( + )) ( = b ) R, = (R, + (f( + ) + f( + ))) 5 ( = b )

16 Numericl Anlysis In generl R k, = k (R k, + k f( + (i ) k )) i= for ec k =,,, n, k = b k. It cn be sown tt if f C [, b], te composite Trpezoidl rule cn be written wit n lterntive error term in te form f(x)dx R k, = Replce k+ = k /, giving f(x)dx R k+, = i= i= K i i k = K k + i= K i i k+ = 4 K k + Using Ricrdson s verging tecnique, we get f(x)dx [R k+, + R k+, R k, ] = Higer order formul (second column) for ec k =,,, n i= K i i k i= K i i k 4 i K i 4i ( 4 i ) i k = K 4 4 k + R k, = R k, + R k, R k, i= K i 4i ( 4 i ) i k Continue to pply te Ricrdson extrpoltion procedure to tese vlues, we ve, for ec k =,,, n, nd j =,, k, n O( j k pproximtion formul defined by Remrks R k,j = R k,j + R k,j R k,j 4 j Order of computing R,, R,, R,, R,, R,, R, etc. Stopping criterion for n: bot R n,n R n,n nd R n,n R n,n re smller tn tolernce.

17 Numericl Anlysis.4 Gussin Qudrture In order to find f(x)dx. f(x)dx I n(f). Generl form: I n (f) = w 0 f(x 0 ) + w f(x ) + w f(x ) w n f(x n ) In Newton-Cotes formuls, eqully spced. Te degree of precision is t most m if m points used. How to furter improve te ccurcy? Use non-eqully spced points! Gussin qudrture: coose x 0, x,..., x n nd w 0, w,..., w n simultneously so tt I n (f) s degree of precision s ig s possible. We ve n + unknowns, wic cn be determined by n + equtions for monomils, x, x,..., x n+. We will see tt n + coices llow us to rec degree of precision n +. Exmple: two points, n =. We wnt f(x)dx. I n (f) = w 0 f(x 0 ) + w f(x ). We wnt to coose x 0, x, w 0 nd w s.t. (Here n + =.) I n (f) = f(x)dx, f(x) = x k, k. So we ve 4 unknowns, 4 equtions. w 0 + w = dx = w 0 x 0 + w x = xdx = 0 w 0 x 0 + w x = x dx = w 0 x 0 + w x = x dx = 0 (.) Solve tis system of nonliner equtions to get x 0, x, w 0 nd w. Ten I n (f) = w 0 f(x 0 ) + w f(x ) will be exct for every polynomil of degree. Solution of te eqution.. () implies w x = w 0 x 0. 7

18 Numericl Anlysis. So (4) implies w 0 x 0 w 0 x 0 x = 0 w 0 x 0 = w 0 x 0 x x 0 = x x = ±x 0.. we wnt to coose different points, so x x 0. Ten x = x So w x 0 = w 0 x 0. Ten w = w () implies w =. w 0 =, w =.. () implies x 0 + x =. x = x 0 =, x =. Formul I (f) = f( ) + f( ) Let try ex dx. I (e x ) = e + e =.48 Exmple: tree points, n =. We wnt f(x)dx. I n (f) = w 0 f(x 0 ) + w f(x ) + w f(x ). We wnt to coose x 0, x, x, w 0, w nd w s.t. (Here n + = 5.) I n (f) = f(x)dx, f(x) = x k, k 5. So we ve w 0 + w + w = dx = w 0 x 0 + w x + w x = xdx = 0 w 0 x 0 + w x + w x = x dx = w 0 x 0 + w x + w x = x dx = 0 w 0 x w x 4 + w x 4 = x4 dx = 5 w 0 x w x 5 + w x 5 = x5 dx = 0 (.4) unknowns, equtions. Solve tis system of nonliner equtions to get x 0, x, w 0 nd w. Ten I n (f) = w 0 f(x 0 ) + w f(x ) will be exct for every polynomil of degree. Solution of te eqution. 8

19 Numericl Anlysis. ()(4)() implies In mtrix form, w 0 x 0 + w x + w x = xdx = 0 w 0 x 0 + w x + w x = x dx = 0 w 0 x w x 5 + w x 5 = x5 dx = 0 x 0 x x w 0x 0 w x = 0 0 x 4 0 x 4 x 4 w x 0 (.5) We ve two cses () If w 0x 0 w x = 0, ten one of te following olds. i) x i = 0 for t lest w x two indices. Ten x i = x j. Impossible. ii) x i = 0 (sy, x 0 = 0) for only one index. So w = w = 0. Ten I n (f) = w 0 f(0) No solution. (b) Ten te mtrix is nonsingulr. It implies x 0 = x. So x 0 = x.. Ten w 0 + w = w (w 0 w )x 0 = w x (w 0 + w )x 0 = w x (w 0 w )x 0 = w x (.) (w 0 + w )x 4 0 = 5 w x 4 (w 0 w )x 5 0 = w x 5. ()(4)() implies (w 0 w ) x 0 x 0 = w x x x 5 x 5 Ten eiter x = x 0 wic is impossible or bot nds sides re zero vectors. So w 0 = w nd w = 0 (impossible) or w 0 = w nd x = 0 4. So 5. ()() implies x 0 = 5. Ten w 0 = w w 0 x 0 = w 0 x 4 0 = 5 (.7) x 0 = 5, x = 9 5.

20 Numericl Anlysis. () implies w 0 = Finlly, w 0 = 5 9, w = 8 9, w = 5 9, x 0 = 5, x = 0, x = 5. Formul I (f) = 5 9 f( 5 ) f(0) f( 5 ) Let try ex dx. I (e x ) = 5 9 e e e 5 =.50 ex dx = e x =.504. Tble.: Gussin Qudrture Nodes nd Weigts n Degree of Precision Nodes x 0 x n Weigts w 0 w i

Chapter 2. Numerical Integration also called quadrature. 2.2 Trapezoidal Rule. 2.1 A basic principle Extending the Trapezoidal Rule DRAWINGS

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

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

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

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

Key words. Numerical quadrature, piecewise polynomial, convergence rate, trapezoidal rule, midpoint rule, Simpson s rule, spectral accuracy.

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

Review of Calculus, cont d

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

More information

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

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

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

Math Week 5 concepts and homework, due Friday February 10

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

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

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

More information

Derivatives, Finding Roots, Interpolating and Integration

Derivatives, Finding Roots, Interpolating and Integration 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,

More information

1 The Riemann Integral

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

More information

COSC 3361 Numerical Analysis I Numerical Integration and Differentiation (III) - Gauss Quadrature and Adaptive Quadrature

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

Numerical integration. Quentin Louveaux (ULiège - Institut Montefiore) Numerical analysis / 10

Numerical integration. Quentin Louveaux (ULiège - Institut Montefiore) Numerical analysis / 10 Numericl integrtion Quentin Louveux (ULiège Institut Montefiore) Numericl nlysis 2018 1 / 10 Numericl integrtion We consider definite integrls Z b f (x)dx better to it use if known! A We do not ssume tht

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

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

Topic 6b Finite Difference Approximations

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

The Riemann Integral

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

More information

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

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

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

Lecture 14 Numerical integration: advanced topics

Lecture 14 Numerical integration: advanced topics Lecture 14 Numericl integrtion: dvnced topics Weinn E 1,2 nd Tiejun Li 2 1 Deprtment of Mthemtics, Princeton University, weinn@princeton.edu 2 School of Mthemticl Sciences, Peking University, tieli@pku.edu.cn

More information

COT4501 Spring Homework VII

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

Integration Techniques

Integration Techniques Integrtion Techniques. Integrtion of Trigonometric Functions Exmple. Evlute cos x. Recll tht cos x = cos x. Hence, cos x Exmple. Evlute = ( + cos x) = (x + sin x) + C = x + 4 sin x + C. cos 3 x. Let u

More information

Numerical Integration Problems

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

University of Houston, Department of Mathematics Numerical Analysis II

University of Houston, Department of Mathematics Numerical Analysis II University of Houston, Deprtment of Mtemtics Numericl Anlysis II 6 Glerkin metod, finite differences nd colloction 6.1 Glerkin metod Consider sclr 2nd order ordinry differentil eqution in selfdjoint form

More information

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

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

More information

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

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

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

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

1 Error Analysis of Simple Rules for Numerical Integration

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

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

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

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

More information

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

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

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

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

AN INTEGRAL INEQUALITY FOR CONVEX FUNCTIONS AND APPLICATIONS IN NUMERICAL INTEGRATION

AN INTEGRAL INEQUALITY FOR CONVEX FUNCTIONS AND APPLICATIONS IN NUMERICAL INTEGRATION Applied Mthemtics E-Notes, 5(005), 53-60 c ISSN 1607-510 Avilble free t mirror sites of http://www.mth.nthu.edu.tw/ men/ AN INTEGRAL INEQUALITY FOR CONVEX FUNCTIONS AND APPLICATIONS IN NUMERICAL INTEGRATION

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

RGMIA Research Report Collection, Vol. 1, No. 1, SOME OSTROWSKI TYPE INEQUALITIES FOR N-TIME DIFFERENTIA

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

Sections 5.2: The Definite Integral

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

More information

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

Definite integral. Mathematics FRDIS MENDELU

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

More information

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

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

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

More information

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

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

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

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

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

Math 554 Integration

Math 554 Integration Mth 554 Integrtion Hndout #9 4/12/96 Defn. A collection of n + 1 distinct points of the intervl [, b] P := {x 0 = < x 1 < < x i 1 < x i < < b =: x n } is clled prtition of the intervl. In this cse, we

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

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

DOING PHYSICS WITH MATLAB MATHEMATICAL ROUTINES

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

Trapezoidal Rule, n = 1, x 0 = a, x 1 = b, h = b a. f (x)dx = h 2 (f (x 0) + f (x 1 )) h3

Trapezoidal Rule, n = 1, x 0 = a, x 1 = b, h = b a. f (x)dx = h 2 (f (x 0) + f (x 1 )) h3 Trpezoidl Rule, n = 1, x 0 =, x 1 = b, h = b f (x)dx = h 2 (f (x 0) + f (x 1 )) h3 12 f (ξ). Simpson s Rule: n = 3, x 0 =, x 1 = +b 2, x 2 = b, h = b 2. Qudrture Rule, double node t x 1 P 3 (x)dx = f (x

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

Definite Integrals. The area under a curve can be approximated by adding up the areas of rectangles = 1 1 +

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

Arithmetic Mean Derivative Based Midpoint Rule

Arithmetic Mean Derivative Based Midpoint Rule Applied Mthemticl Sciences, Vol. 1, 018, no. 13, 65-633 HIKARI Ltd www.m-hikri.com https://doi.org/10.1988/ms.018.858 Arithmetic Men Derivtive Bsed Midpoint Rule Rike Mrjulis 1, M. Imrn, Symsudhuh 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

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

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

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

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

6.5 Numerical Approximations of Definite Integrals

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

INTRODUCTION TO INTEGRATION

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

More information

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

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

More information

Numerical Methods I Orthogonal Polynomials

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

More information

Midpoint Approximation

Midpoint Approximation Midpoint Approximtion Sometimes, we need to pproximte n integrl of the form R b f (x)dx nd we cnnot find n ntiderivtive in order to evlute the integrl. Also we my need to evlute R b f (x)dx where we do

More information

Lecture 4: Piecewise Cubic Interpolation

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

More information

5.1 Evaluating a polynomial

5.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 information

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

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

More information

Introduction to Numerical Analysis

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

More information

Numerical Integration - (4.3)

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

Solutions to Assignment #8

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

More information

The Fundamental Theorem of Calculus. The Total Change Theorem and the Area Under a Curve.

The Fundamental Theorem of Calculus. The Total Change Theorem and the Area Under a Curve. Clculus Li Vs The Fundmentl Theorem of Clculus. The Totl Chnge Theorem nd the Are Under Curve. Recll the following fct from Clculus course. If continuous function f(x) represents the rte of chnge of F

More information

ACCESS TO SCIENCE, ENGINEERING AND AGRICULTURE: MATHEMATICS 1 MATH00030 SEMESTER /2019

ACCESS TO SCIENCE, ENGINEERING AND AGRICULTURE: MATHEMATICS 1 MATH00030 SEMESTER /2019 ACCESS TO SCIENCE, ENGINEERING AND AGRICULTURE: MATHEMATICS MATH00030 SEMESTER 208/209 DR. ANTHONY BROWN 7.. Introduction to Integrtion. 7. Integrl Clculus As ws the cse with the chpter on differentil

More information

12 Basic Integration in R

12 Basic Integration in R 14.102, Mt for Economists Fll 2004 Lecture Notes, 10/14/2004 Tese notes re primrily bsed on tose written by Andrei Bremzen for 14.102 in 2002/3, nd by Mrek Pyci for te MIT Mt Cmp in 2003/4. I ve mde only

More information

Chapters 4 & 5 Integrals & Applications

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

More information

2

2 1 Notes for Numericl Anlysis Mth 5466 by S. Adjerid Virgini Polytechnic Institute nd Stte University (A Rough Drft) 2 Contents 1 Differentition nd Integrtion 5 1.1 Introduction............................

More information

Calculus II: Integrations and Series

Calculus 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

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

p(x) = 3x 3 + x n 3 k=0 so the right hand side of the equality we have to show is obtained for r = b 0, s = b 1 and 2n 3 b k x k, q 2n 3 (x) =

p(x) = 3x 3 + x n 3 k=0 so the right hand side of the equality we have to show is obtained for r = b 0, s = b 1 and 2n 3 b k x k, q 2n 3 (x) = Norwegin University of Science nd Technology Deprtment of Mthemticl Sciences Pge 1 of 5 Contct during the exm: Elen Celledoni, tlf. 73593541, cell phone 48238584 PLESE NOTE: this solution is for the students

More information

MAT 772: Numerical Analysis. James V. Lambers

MAT 772: Numerical Analysis. James V. Lambers MAT 772: Numericl Anlysis Jmes V. Lmbers August 23, 2016 2 Contents 1 Solution of Equtions by Itertion 7 1.1 Nonliner Equtions....................... 7 1.1.1 Existence nd Uniqueness................ 7 1.1.2

More information

LECTURE 19. Numerical Integration. Z b. is generally thought of as representing the area under the graph of fèxè between the points x = a and

LECTURE 19. Numerical Integration. Z b. is generally thought of as representing the area under the graph of fèxè between the points x = a and LECTURE 9 Numericl Integrtion Recll from Clculus I tht denite integrl is generlly thought of s representing the re under the grph of fèxè between the points x = nd x = b, even though this is ctully only

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

QUADRATURE is an old-fashioned word that refers to

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

Introduction to Numerical Analysis. Hector D. Ceniceros

Introduction to Numerical Analysis. Hector D. Ceniceros Introduction to Numericl Anlysis Hector D. Ceniceros c Drft dte November 27, 2018 Contents Contents i Prefce 1 1 Introduction 3 1.1 Wht is Numericl Anlysis?.................. 3 1.2 An Illustrtive Exmple.....................

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