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

Size: px
Start display at page:

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

Transcription

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 nd construct out of the function vlues n pproximtion Q. We wnt to hve smll qudrture error Q I using s few function evlutions s possible. We cn do this using interpoltion: construct the interpolting polynomil px let Q := pxdx by writing Q in terms of the function vlues we obtin qudrture rule of the form Q = w 1 f x w n f x n In the specil cse tht the function f x is polynomil of degree n 1 we obtin px = f x since the interpolting polynomil is unique, nd hence Q = I. Therefore the qudrture rule is exct for ll polynomils of degree n 1. Midpoint Rule, Trpezoid Rule, Simpson Rule We consider some specil cses with n = 1,, points: Midpoint Rule: Let n = 1 nd pick the midpoint x 1 := + b/. Then px = f x 1 constnt function nd Q Midpt = b f x 1 Trpezoid Rule: the trpezoid: Let n = nd pick the endpoints: x 1 :=, x := b. Then px is liner function nd Q is the re of Q Trp = b f + f b Simpson Rule: Let n = nd pick the endpoints nd midpoint: x 1 :=, x := +b/, x := b. Then px is qudrtic function nd we obtin Q Simpson = b f x f x + f x. 6 Proof: Let us consider the intervl [,b = [,r where r = b /. We know tht Q = pxdx = w 1 f x 1 + w f x + w f x nd we wnt to find w 1,w,w. We lso know tht we must hve Q = I for f x = 1, f x = x, f x = x yielding the equtions r w w 1 + w 1 = 1dx = r w 1 + w + w r = w 1 r + w + w r = r r xdx = x dx = r

2 AMSC/CMSC 46/466 T. von Petersdorff Solving this system for w 1,w,w yields w 1 = w = r, w = 4 r. The midpoint rule is gurnteed to be exct for polynomils of degree. But ctully it is lso exct for ll polynomils of degree 1: On the intervl [,r consider f x = c + x. Then the term c is exctly integrted by the midpoint rule. For the term x the exct integrl is zero, nd the midpoint rule lso gives zero for this term. The Simpson rule is gurnteed to be exct for polynomils of degree. But ctully it is lso exct for ll polynomils of degree : On the intervl [,r consider f x = c + x + c x + c x. Then the term c + x + c x is exctly integrted by the Simpson rule. For the term c x the exct integrl is zero, nd the Simpson rule lso gives zero for this term..1 Errors for the Midpoint Rule, Trpezoid Rule, Simpson Rule ote tht we hve for the qudrture error I Q = f x pxdx nd we know for the interpolting polynomil tht f x px 1 mx f n x x x 1 x x n n! t [,b yielding I Q 1 n! mx f n x t [,b x x 1 x x n dx. 1 Error for Trpezoid Rule: Here we need to compute x x b dx. Let us consider the intervl [,b = [,r: r r x x b dx = x + rx r dx = r x dx = [ r x 1 x r = 4 r As r = b / nd n = the formul 1 becomes I Q Trp b mx f x 1 t [,b Error for Midpoint Rule: We wnt to exploit tht the Midpoint Rule is exct for polynomils of degree 1 nd consider the interpolting polynomil px which interpoltes f t the nodes x 1,x 1 which is the tngent line: px = f [x + f [x,x x x = px + f [x,x x x pxdx = pxdx + f [x,x x x dx = Q + Hence we hve using the interpoltion error for px I Q = f x pxdx 1! mx t [,b f x x x 1 x x 1 dx } {{ } [ 1 x x 1 b = b yielding I Q Midpt b mx f x 4 t [,b

3 AMSC/CMSC 46/466 T. von Petersdorff Error for Simpson Rule: We wnt to exploit tht the Simpson Rule is exct for polynomils of degree nd consider the interpolting polynomil px which interpoltes f t the nodes x 1,x,x,x which lso hs the correct slope in the midpoint: px = px + f [x 1,x,x,x x x 1 x x x x pxdx = pxdx + f [x 1,x,x,x x x 1 x x x x dx = Q + since the function x x 1 x x x x is ntisymmetric with respect to the midpoint x. Hence we hve using the interpoltion error for px I Q = f x pxdx 1 mx f 4 b x x x 1 x x x x dx. 4! t [,b We consider the intervl [,b = [,r with r = b /. Then we hve for the integrl x x1 x x x x r dx = x + rx x r r dx = r r x x dx = [r x r5 = r5 yielding I Q Simpson b 5 9 mx f 4 x. t [,b. Higher Order Rules For given nodes x 1,...,x n we cn construct qudrture rule Q = w 1 f x w n f x n with n interpolting polynomil of degree n 1. Using the method from the Simpson rule we cn find the weights w 1,...,w n by solving liner system. For equidistnt nodes this gives for n = 9 nodes weights w j which re lterntingly positive nd negtive, nd for lrger vlues of n the size of the weights w j increses exponentilly: For [,1 we get n n w j This mens tht in mchine rithmetic there will be substntil subtrctive cncelltion. The reson for the negtive weights is tht interpolting polynomils of lrge degree tend to hve very lrge oscilltions, s we sw erlier. For interpoltion we hve seen tht one cn void these problems by crefully plcing the nodes in nonuniform wy so tht they re more closely clustered together t the endpoints. For interpoltion good choice re the so-clled Chebyshev nodes which re the zeros of Chebyshev polynomils. This choice of nodes is lso useful for numericl integrtion. Insted of the zeros of Chebyshev polynomils one cn lso choose the extrem of Chebyshev polynomils, nd in this cse there is n efficient lgorithm to compute Q Clenshw-Curtis qudrture. Another choice re the so-clled Guss nodes for Gussin qudrture, see section 5 below. These nodes re lso more closely clustered ner the endpoints, but they re chosen to mximize the polynomil degree for which the rule is exct. Composite Rules For prcticl integrtion problem it is better to increse the ccurcy by first subdividing the intervl into smller subintervls with prtition = x < x 1 < < x < x = b

4 AMSC/CMSC 46/466 T. von Petersdorff 4 nd intervl sizes h j := x j x j. Then we pply one of the bsic rules midpoint, trpezoid or Simpson rule on ech subintervl nd dd everything together. This is clled composite rule. For exmple, the composite trpezoid rule is defined by Q Trp := Q Trp [x,x QTrp [x,x where Q Trp [x j,x j = h j 1 f x j + f x j. Similrly we cn define the composite midpoint rule nd the composite Simpson rule. Work: For the composite trpezoid rule with subintervls we use + 1 function evlutions. For the composite midpoint rule with subintervls we use function evlutions. For the composite Simpson rule with subintervls we use + 1 function evlutions..1 Error for Composite Rules The error of the composite trpezoid rule is the sum of the errors on ech subintervl: I Q Trp = I [x j,x j Q Trp [x j,x j I [x j,x j Q Trp I Q Trp I [x j,x j Q Trp [x j,x j 1 1 [x j,x j [x j,x j mx f t Similrly we cn obtin estimtes for the composite midpoint rule nd the composite Simpson rule. h j. Subintervls of equl size The simplest choice is to choose ll subintervls of the sme size h = b /. In this cse we obtin for the composite trpezoid rule I Q Trp 1 mx f t h 1 mx f t h 1 [x j,x j 1 [,b 1 I Q Trp 1 1 b mx f t [,b If f x is continuous for x [,b we therefore obtin with C = b 1 mx [,b f t tht I Q Trp C. This shows tht the error tends to zero s. Composite midpoint rule: If f x is continuous for x [,b we obtin in the sme wy where we lso hve I Q Midpt C. I Q Midpt 1 4 b mx f t [,b Composite Simpson rule: If f 4 x is continuous for x [,b we obtin in the sme wy I Q Simpson 1 b mx f 4 t [,b In this cse we hve I Q Simpson C, so the composite Simpson rule will converge fster thn the composite trpezoid or 4 midpoint rule.

5 AMSC/CMSC 46/466 T. von Petersdorff 5. If we only know tht f x is continuous Wht hppens if f x is not smooth enough, i.e., there does not exist continuous second derivtive f x on [,b? Assume tht f x is continuous on [,b. Then we know from clculus tht we obtin the integrl s the limit of Riemnn sums: Define subdivision = x < x 1 < < x = b with mximl intervl size d := mx,..., x j x j. Then pick points t j [x j,x j in ech subintervl nd define the Riemnn sum R := f t j x j x j If we use sequence of subdivisions with d we hve R I s. For given subdivision define R left s the Riemnn sum where we use the left endpint t j := x j of ech subintervl. Let R right denote the Riemnn sum where we use the right endpoint t j := x j, nd let R mid denote the Riemnn sum where we use the midpoint t j := 1 x j + x j. Ech of these Riemnn sums converges to I for sequence of subdivisions with d. ote tht we hve nd hence Q Midpt = R mid, Q Trp = 1 R left + R right, Q Simpson = 1 6 R left + 4R mid + R right Q Midpt I, Q Trp I, Q Simpson I for sequence of subdivisions with d..4 Subintervls of different size, dptive subdivision For the compositive trpezoid rule Q Trp I Q Trp the qudrture error I [x j,x j Q Trp [x j,x j 1 1 mx [x j,x j f t depends on the size of the nd derivtive mx [x j,x j f t on ech subintervl, multiplied by h j where h j is the length of the subintervl. If f x is smll in one prt of [,b we cn use lrge intervl sizes h j there. If f x is lrge in nother prt of [,b we should compenste for tht with smll intervl sizes h j there. This is clled n dptive subdivision. Exmple: We wnt to find 6 I = f xdx, h j with f x = x x 1 + x 4 Here f is smll for x >, so we cn use lrge subintervls. For smller x nd in prticulr close to x =.5 we hve lrge vlues for f, hence we should use smller subintervls. An dptive subdivision should look like this: subdivision for dptive qudrture x

6 AMSC/CMSC 46/466 T. von Petersdorff 6 4 Adptive qudrture In prctice we do not know f x. We re only given subroutine f x, the intervl [,b nd desired tolernce Tol e.g., Tol = 1 5. We then wnt to find subdivision x < x 1 < < x such tht the composite trpezoid rule gives n pproximtion Q Trp with Q Trp I Tol. How cn we do this? For n dptive lgorithm we need the following ingredients: On ech subintervl [α,β of length h := β α we need n pproximtion for the integrl I [α,β : we use the trpezoid rule Q Trp [α,β = h f α + f β n error estimte for Q Trp [α,β I [α,β : Obviously we don t know the exct integrl I [α,β. But we cn evlute the function in the midpoint γ = α + β/ nd find the Simpson rule pproximtion Q Simp [α,β = h 6 f α + 4 f γ + f β. We know tht Q Trp [α,β, QSimp [α,β stisfy Q Trp [α,β I [α,β h 1 mx f t = C h, t [α,β Q Simp [α,β I [α,β h5 9 mx t [α,β f 4 t = C 4 h 5 Clerly for smll intervl length h the Simpson pproximtion is much closer to I [α,β thn the trpezoid pproximtion. Therefore we cn pproximte the error using Q Trp [α,β I [α,β Q Trp [α,β QSimp [α,β where the right hnd side cn be esily computed. This will be good pproximtion for the error if the subintervl is smll. n ccurcy gol Q Trp [α,β I [α,β Tol [α,β for the subintervl: On the whole intervl we wnt n error Q Trp I Tol. Therefore it seems resonble to require for the subintervl [α, β tolernce proportionl to its length h: We wnt Q Trp [α,β I [α,β h Tol b e.g., for n subintervl of hlf the length we wnt hlf of the qudrture error. We cn implement these ides using recursive Mtlb function Q=dptintf,,b,Tol s follows: function Q = dptintf,,b,tol f = f; fb = fb; QT = b-/*f+fb; % Trpezoid rule c = +b/; fc = fc; % evlute f in midpoint QS = b-/6*f+4*fc+fb; % Simpson rule % for smll intervls we cn pproximte error QT-I by QT-QS if bsqt-qs<=tol % if estimted error is <= Tol Q = QT; % ccept trpezoid rule vlue else Q = dptintf,,c,tol/ + dptintf,c,b,tol/; % use lgorithm for [,c nd [c,b with Tol/ end We sve this s n m-file dptint.m. Then we cn pproximte the integrl in our exmple using >> f x^-x/1+x^4 >> Q = dptintf,,6,1e- Q =

7 AMSC/CMSC 46/466 T. von Petersdorff 7 The ctul error is Q I Here dptint uses the subdivision shown in the figure on pge 5 with = 1 subintervls. ote tht we evlute the function lso in the midpoints of these intervls, so the totl number of function evlutions needed is 6. Remrks: 1. The recursion will terminte: Assume tht f x is continuous on [,b. Then for ny given ε > there exists δ > such tht s,t [,b with s t < δ = f s f t < ε 4 We re given tolernce Tol. After k levels of recursion we hve subintervls [α,β of length β α = k b. We need to show tht the condition Q Trp [α,β QSimp [α,β Tol β α 5 b is stisfied if k is sufficiently lrge. We hve with γ := 1 α + β Therefore 5 holds if we hve Q Trp Q Trp [α,β QSimp [α,β = 1 β α[ f α f γ + [ f β f γ [α,β QSimp [α,β 1 β α f α f γ + f β f γ! Tol β α b We now use ε := Tol b nd obtin δ > such tht 4 holds. Therefore 5 will hold if k stisfies k b < δ.. During the recursion the bove code ctully re-evlutes the lredy computed vlues f nd fb gin. We cn fix this using function Q = dptintf,,b,tol,f,fb if nrgin==4 % if function is clled s dptintf,,b,tol f = f; fb = fb; % compute f,fb end % otherwise we get f,fb pssed s rguments... Q = dptintf,,c,tol/,f,fc + dptintf,c,b,tol/,fc,fb; end. The lgorithm is bsed on the ssumption tht QS is better pproximtion thn QT. Hence we should get more ccurte result by chnging the line Q = QT to Q = QS. For the bove exmple we then get Q = with the smller error Q I ote tht we re now using composite Simpson rule pproximtion for Q, but using subdivision bsed on error bounds for the trpezoid rule. In order to obtin good error estimte for the Simpson rule we would need dditionl function evlutions to compute vlue Q which is more precise thn QS so tht we cn pproximte QS I by QS Q. 4. ote tht dptive qudrture cn give completely wrong results: f Q = dptintf,-1,,1e-4 Q = e-5 The correct vlue is I = nd is lmost zero outside of [.8,.8: e x dx Wht hppened? The function f x hs shrp pek ner x =

8 AMSC/CMSC 46/466 T. von Petersdorff exp - 1 x x The dptive qudrture evlutes for = nd b = the vlues f, f yielding QT. At the midpoint c = 1 we get f 1, so lso QS nd hence QT QS which is less thn our tolernce 1 4. Hence our progrm ccepts the trpezoid rule vlue QT, bsed on only three function vlues t x =,1,, completely missing the pek ner x =. A qudrture method cn never gurntee tht the error is less thn the tolernce: The only informtion we hve re finitely mny function vlues, nd the function could hve some crzy behvior between those vlues. If function hs fetures like shrp peks or singulrities which the qudrture my miss we cn help the qudrture method by subdividing the integrl: In our exmple we cn split the integrl t x = : Q = dptintf,-1,,1e-4 + dptintf,,,1e-4 Q = which gives n error Q I Adptive qudrture works efficiently even for functions with singulrities We sw in section.: For functions f x where f x is continuous we cn use subintervls of equl size, nd the qudrture error decys like Q Trp I c. For integrls like I = x 1/ dx this does not work since for f x = x 1/ the nd derivtive f x = 9 x 5/ becomes infinite ner. We now use our dptive lgorithm: fx = x 1/ : subdivision for dptive qudrture x f x^1/; Tol = 1e-; Q = dptintf,,1,tol; err = bsq - /4 % given tolernce % qudrture error, exct integrl is I=/4

9 AMSC/CMSC 46/466 T. von Petersdorff 9 For Tol=1e-,1e-4,1e-6, etc. we get for the number of function evlutions nd the error Q I Tol Q I We see tht ech time gets multiplied by bout 1, nd the error gets multiplied by bout 1, hence we hve Q I C. Therefore our lgorithm gives dptive subdivisions where the composite trpezoid rule Q I decys with the sme rte O we cn chieve for smooth functions. 5 Gussin qudrture 5.1 Introduction Sometimes we wnt to find integrls of functions with singulrities, e.g. I = x 1/ e x dx ote tht the function x 1/ hs infinite derivitives t x =. Therefore composite rules with subintervls of equl size will perform poorly however, dptive qudrture works well. Assume tht we wnt to compute mny integrls of the form I = x 1/ f xdx where f x is smooth function. Then it mkes sense to design custom qudrture rule x 1/ f xdx w 1 f x w n f x n where we try to find the optiml plcement of the nodes x 1,...,x n. 5. Guss rule I = f xρxdx w 1 f x w n f x n We wnt to pproximte integrls of the form I[ f := f xρxdx where the function ρx > except for finitely mny points where ρ = or ρ. We ssume tht pxρxdx < for ll polynomils px. In the previous section we hd the intervl [,b = [,1 nd the function ρx = x 1/. ote tht we cn lso use ρx = 1 or ρx = x /. We wnt to pproximte the integrl with qudrture rule I[ f Q[ f := w 1 f x w n f x n For ny choice of nodes x 1,...,x n we cn construct the interpolting polynomil px nd pproximte I[ f = f xρxdx by Q[ f := pxρxdx = w 1 f x w n f x n

10 AMSC/CMSC 46/466 T. von Petersdorff 1 This rule is exct for ll polynomils of degree n 1. Our gol is to choose the nodes x 1,...,x n such tht Q[ f = I[ f for ll polynomils of degree n 1. The node polynomil is given by ω n x = x x 1 x x n. Assume we re given n polynomil p n x of degree n 1. We cn divide p n x by ω n x nd obtin quotient polynomil q n x nd reminder polynomil r n x where q n x, r n x re of degree n 1: p n x = q n x ω n x + r n x Hence I [p n = I [q n ω n + I [r n Q[p n = Q[q n ω n + Q[r n Since the rule Q is exct for polynomils of degree n 1 we hve Q[r n = I [r n. Since q n x ω n x is zero in ll nodes x 1,...,x n we hve Q[q n ω n =. Hence we hve Q[p n = I [p n if nd only if I [q n ω n =. Result: Our qudrture rule Q is exct for ll polynomils p n x of degree n 1 iff ω n x stisfies I [q n ω n = for ll polynomils q n x of degree n 1, i.e., x k ω n xρxdx = for k =,...,n 1 6 Step 1: Find node polynomil ω n x = x x 1 x x n = x n + c n x n + + x + c stisfying 6. I.e., find n unknowns c,...,c n stisfying n liner equtions given by 6. After we hve found the integrls [ α k := I x k = x k ρxdx for k =,...,n 1 we cn write the liner system 6 s α α 1 α n α 1 α..... αn α n α n α n c. c n = Solving this liner system gives us the node polynomil ωx = x n + c n x n + + c = x x 1 x x n. This liner system hs lwys unique solution. Step : find the nodes x 1,...,x n by solving ωx =. This lwys gives n distinct roots x 1,...,x n in the open intervl,b. α n α n+1. α n Step : find the weights w 1,...,w n such tht Q [ x k = I [ x k for k =,...,n 1: This gives the liner system x1 xn.. x1 n xn n w 1. w n = α. α n 7 8 This liner system hs lwys unique solution. The weights w j re ll positive. Therefore evluting Q[ f = w 1 f x w n f x n in mchine rithmetic is numericlly stble if f x does not chnge sign.

11 AMSC/CMSC 46/466 T. von Petersdorff Exmple 1: x 4/7 f xdx w 1 f x 1 + w f x Here ρx = x 4/7, [,b = [,1 nd n =. We first compute the integrls α = x 4/7 1dx = 7 11, α 1 = x 4/7 xdx = 7 18, α = x 4/7 x dx = 7 5, α = x 4/7 x dx = 7 Step 1: find node polynomil ωx = x + x + c such tht which gives the liner system [ α α 1 α 1 α which hs the solution [ c [ c [.475 =.15 x 4/7 x k x + x + c dx = for k =,1 [ α = α, i.e., [ [ c [ 7 = 5 7, hence ωx = x 1.15x = x x 1 x x. Step : find the nodes x 1,x by solving ωx = : The qudrtic formul gives x 1 =., x =.85. Step : find the weights w 1,w such tht Q [ x k = I [ x k for k =,1: [ [ [ [ 1 1 w1 α 1 1 =, i.e., x 1 x w α which hs the solution w 1 = 7 7, w = Our qudrture rule is exct for ll polynomils of degree n 1 =. Let us try out this rule for I = error is Q I 1 4. [ w1 w = [ x 4/7 e x dx: We obtin Q = w 1 e x 1 + w e x = 1.147, the exct vlue is I = 1.166, the 5.4 Exmple : f xdx w 1 f x 1 + w f x + w f x Here ρx = 1, [, b = [, 1 nd n =. We first compute the integrls α = 1dx =, α 1 = xdx =, α = x dx =, α = x dx =, α 4 = x 4 dx = 5, α 5 = x 5 dx = Step 1: find node polynomil ωx = x + c x + x + c such tht which gives the liner system α α 1 α α 1 α α α α α 4 c which hs the solution = 5 c x k x + c x + x + c dx = for k =,1, c c = α α 4 α 5, i.e., 5 c c, hence ωx = x 5 x = x x 1x x x x. Step : find the nodes x 1,x,x by solving ωx = x x 5 =. This gives x 1 = 5, x =, x = 5 = 5

12 AMSC/CMSC 46/466 T. von Petersdorff 1 Step : find the weights w 1,w,w such tht Q [ x k = I [ x k for k =,1: which hs the solution x 1 x x x1 x x w 1 w w = α α 1 α, i.e., w 1 = 5 9, w = 8 9, w = 5 9 Our qudrture rule is exct for ll polynomils of degree n 1 = 5. Let us try out this rule for I = the error is Q I = w 1 w w = e x dx: We obtin Q = w 1 e x 1 + w e x + w e x =.57, the exct vlue is I =.54, 5.5 Exmple : f xe x dx w 1 f x 1 + w f x Here ρx = e x,,b =, nd n =. The infinite intervl, is llowed since px. We first compute the integrls pxe x dx < for ll polynomils α = e x 1dx = 1, α 1 = e x xdx = 1, α = e x x dx =, α = e x x dx = 6 Step 1: find node polynomil ωx = x + x + c such tht which gives the liner system [ α α 1 α 1 α which hs the solution [ c [ = 4 [ c e x x k x + x + c dx = for k =,1 [ α = α, i.e., [ [ c, hence ωx = x 4x + = x x 1 x x. Step : find the nodes x 1,x by solving ωx = : The qudrtic formul gives x 1 =, x = + [ = 6 Step : find the weights w 1,w such tht Q [ x k = I [ x k for k =,1: [ 1 1 x 1 x [ w1 w [ α = α 1, i.e., [ [ w1 w [ 1 = 1 which hs the solution w 1 = , w = Our qudrture rule is exct for ll polynomils of degree n 1 =. Let us try out this rule for I = e x sinxdx: We obtin Q = w 1 sinx 1 + w sinx =.446, the exct vlue is I =.5, the error is Q I = As we increse n the qudrture error goes to zero: n Q n I

13 AMSC/CMSC 46/466 T. von Petersdorff Proofs for Guss qudrture We hve to prove tht ll the steps work s climed. Step 1: find node polynomil ωx = x n + c n x n + + c such tht x k ωxρxdx = for k =,...,n 1 9 This gives the liner system 7. We clim tht this liner system hs unique solution. Proof: The liner system with zero right hnd side vector corresponds to finding px = c n x n + + c such tht But then = x k pxρxdx = for k =,...,n 1 cn x n + + c x pxρxdx = px ρxdx Since ρx > except for finitely mny points we must hve px =. Hence the liner system with zero right hnd side vector hs only the solution c = = c n =, nd the mtrix is nonsingulr. We cn define for two functions u,v on,b the inner product u,v := uxvxρxdx The condition 9 sys tht ωx is polynomil of degree n which is orthogonl on ll lower degree polynomil. Such polynomil is clled n orthogonl polynomil. Step : find the nodes x 1,...,x n by solving ωx =. We clim tht the function ωx hs n distinct simple roots in the open intervl,b. Proof: Let t 1,...,t r denote ll points in,b where ωx chnges sign. We wnt to show tht r = n. Assume tht r < n. As x t 1 x t r ωx lwys hs for x t j lwys the sme sign, sy positive, we must hve x t 1 x t r ωxρxdx > On the other hnd this integrl must be zero by the orthogonlity 9. Step : find the weights w 1,...,w n by solving the liner system 8. We clim tht this liner system hs unique solution. Proof: Finding n interpolting polynomil c + + c n x n leds to liner system with the trnspose mtrix. The interpoltion problem hs unique solution, hence the mtrix is nonsingulr. The weights w 1,...,w n re ll positive: For j {1,...,n} define the polynomil of degree n 1 p j x := k=1,...,n k j x x k then p j x is of degree n nd therefore exctly integrted by the Guss rule: < I [ p [ j = Q p j = w j p j x j }{{} >

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

The Regulated and Riemann Integrals

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

More information

Numerical Analysis: Trapezoidal and Simpson s Rule

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

More information

Math 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

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

Review of Calculus, cont d

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

More information

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

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

More information

Lecture 20: Numerical Integration III

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

More information

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

38 Riemann sums and existence of the definite integral.

38 Riemann sums and existence of the definite integral. 38 Riemnn sums nd existence of the definite integrl. In the clcultion of the re of the region X bounded by the grph of g(x) = x 2, the x-xis nd 0 x b, two sums ppered: ( n (k 1) 2) b 3 n 3 re(x) ( n These

More information

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

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

More information

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

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

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

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

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

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

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

Section 6.1 Definite Integral

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

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

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

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

Suppose we want to find the area under the parabola and above the x axis, between the lines x = 2 and x = -2.

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

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

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

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

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

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 8 Winter 2015 Applications of Integration

Math 8 Winter 2015 Applications of Integration Mth 8 Winter 205 Applictions of Integrtion Here re few importnt pplictions of integrtion. The pplictions you my see on n exm in this course include only the Net Chnge Theorem (which is relly just the Fundmentl

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

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

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

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

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

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

Numerical Integration

Numerical Integration Numericl Integrtion Wouter J. Den Hn London School of Economics c 2011 by Wouter J. Den Hn June 3, 2011 Qudrture techniques I = f (x)dx n n w i f (x i ) = w i f i i=1 i=1 Nodes: x i Weights: w i Qudrture

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

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

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

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

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

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

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

1 The fundamental theorems of calculus.

1 The fundamental theorems of calculus. The fundmentl theorems of clculus. The fundmentl theorems of clculus. Evluting definite integrls. The indefinite integrl- new nme for nti-derivtive. Differentiting integrls. Tody we provide the connection

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

Riemann is the Mann! (But Lebesgue may besgue to differ.)

Riemann is the Mann! (But Lebesgue may besgue to differ.) Riemnn is the Mnn! (But Lebesgue my besgue to differ.) Leo Livshits My 2, 2008 1 For finite intervls in R We hve seen in clss tht every continuous function f : [, b] R hs the property tht for every ɛ >

More information

Interpreting Integrals and the Fundamental Theorem

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

Main topics for the First Midterm

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

More information

7.2 Riemann Integrable Functions

7.2 Riemann Integrable Functions 7.2 Riemnn Integrble Functions Theorem 1. If f : [, b] R is step function, then f R[, b]. Theorem 2. If f : [, b] R is continuous on [, b], then f R[, b]. Theorem 3. If f : [, b] R is bounded nd continuous

More information

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

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

More information

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

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

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

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

Review of basic calculus

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

More information

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

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

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

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

More information

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

Chapter 0. What is the Lebesgue integral about?

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

More information

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

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

Chapter 6 Notes, Larson/Hostetler 3e

Chapter 6 Notes, Larson/Hostetler 3e Contents 6. Antiderivtives nd the Rules of Integrtion.......................... 6. Are nd the Definite Integrl.................................. 6.. Are............................................ 6. Reimnn

More information

n f(x i ) x. i=1 In section 4.2, we defined the definite integral of f from x = a to x = b as n f(x i ) x; f(x) dx = lim i=1

n f(x i ) x. i=1 In section 4.2, we defined the definite integral of f from x = a to x = b as n f(x i ) x; f(x) dx = lim i=1 The Fundmentl Theorem of Clculus As we continue to study the re problem, let s think bck to wht we know bout computing res of regions enclosed by curves. If we wnt to find the re of the region below the

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

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

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

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

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

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

More information

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

Matrices, Moments and Quadrature, cont d

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

More information

Anti-derivatives/Indefinite Integrals of Basic Functions

Anti-derivatives/Indefinite Integrals of Basic Functions Anti-derivtives/Indefinite Integrls of Bsic Functions Power Rule: In prticulr, this mens tht x n+ x n n + + C, dx = ln x + C, if n if n = x 0 dx = dx = dx = x + C nd x (lthough you won t use the second

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

4.4 Areas, Integrals and Antiderivatives

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

More information

f(x i )l i (x)dx = w i f(x i ) := I n [f] where w i = i=0

f(x i )l i (x)dx = w i f(x i ) := I n [f] where w i = i=0 Polynomil Interpolting Qudrture Atkinson Chpter 5, Stoer & Bulirsch Chpter 3, Dhlquist & Bjork Chpter 5 Sections mrked with re not on the exm 1 Qudrture Will first consider 1D f C[, b], then singulrities,

More information

Riemann Sums and Riemann Integrals

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

More information

Polynomial Approximations for the Natural Logarithm and Arctangent Functions. Math 230

Polynomial Approximations for the Natural Logarithm and Arctangent Functions. Math 230 Polynomil Approimtions for the Nturl Logrithm nd Arctngent Functions Mth 23 You recll from first semester clculus how one cn use the derivtive to find n eqution for the tngent line to function t given

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

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

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

More information

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

Riemann Sums and Riemann Integrals

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

More information

Lab 11 Approximate Integration

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

Lecture 1: Introduction to integration theory and bounded variation

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

More information

ODE: Existence and Uniqueness of a Solution

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

More information

Math 131. Numerical Integration Larson Section 4.6

Math 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

Improper Integrals, and Differential Equations

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

More information

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

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

More information

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

Overview of Calculus

Overview of Calculus Overview of Clculus June 6, 2016 1 Limits Clculus begins with the notion of limit. In symbols, lim f(x) = L x c In wors, however close you emn tht the function f evlute t x, f(x), to be to the limit L

More information

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

Overview of Calculus I

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

More information

The 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

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

5: The Definite Integral

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

MATH 144: Business Calculus Final Review

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

More information

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