UCLA Math 135, Winter 2015 Ordinary Differential Equations Review of First-Order Equations from Math 33b

Size: px
Start display at page:

Download "UCLA Math 135, Winter 2015 Ordinary Differential Equations Review of First-Order Equations from Math 33b"

Transcription

1 UCLA Mah 35, Winer 05 Ordinary Differenial Equaions Review of Firs-Order Equaions from Mah 33b 7. Numerical Mehods C. David Levermore Deparmen of Mahemaics Universiy of Maryland January 9, Numerical Mehods Conens 7.. Numerical Approximaion 7.. Explici and Implici Euler Mehods 7.3. Explici One-Sep Mehods Based on Taylor Approximaion Explici Euler Mehod Revisied Local and Global Errors Higher-Order Taylor-Based Mehods (no covered) 7.4. Explici One-Sep Mehods Based on Quadraure Explici Euler Mehod Revisied Again Runge Trapeziodal Mehod Runge Midpoin Mehod Runge-Kua Mehod (no covered) General Runge-Kua Mehods (no covered) c 05 C. David Levermore Reurn o Main Webpage

2 7. Numerical Mehods 7.. Numerical Approximaion. Analyic mehods are eiher difficul or impossible o apply o many firs-order differenial equaions. In such cases direcion fields are he only graphical mehod which we have covered ha can be applied. However, i can be hard o undersand how any paricular soluion behaves from he direcion field of is governing equaion. If we are ineresed in undersanding how a paricular soluion behaves hen a numerical mehod can be used o consruc an accurae approximaion o he soluion. This approximaion hen can be graphed much like an explici soluion. Suppose we are ineresed in he soluion Y () of he iniial-value problem dy (7.) d = f(, y), y( I) = y I, over he ime inerval [ I, F ] i.e. for I F. Here I is called he iniial ime while F is called he final ime. A numerical mehod selecs imes { n } N n=0 such ha and compues values {y n } N n=0 such ha I = 0 < < < < N < N = F, y 0 = Y ( 0 ) = y I, y n approximaes Y ( n ) for n =,,, N. For good numerical mehods, hese approximaions will improve as N increases. So for sufficienly large N we can plo he poins {( n, y n )} N n=0 in he (, y)-plane and connec he dos o ge an accurae picure of how Y () behaves over he ime inerval [ I, F ]. Here we will inroduce a few basic numerical mehods in simple seings. The numerical mehods used in sofware packages such as MATLAB are generally far more sophisicaed han hose we will sudy here. They are however buil upon he same fundamenal ideas as he simpler mehods we will sudy. Throughou his chaper we will make he following wo basic simplificaions. We will employ uniform ime seps. This means ha given N we se (7.) h = F I N, and n = I + nh for n = 0,,, N, where h is called he sep size. We will employ one-sep mehods. This means ha given f(, y) and h he value of y n+ for n = 0,,, N will depend only on y n. Sophisicaed sofware packages use mehods in which he sep size is chosen adapively. In oher words, he choice of n+ will depend on he behavior of recen approximaions for example, on ( n, y n ) and ( n, y n ). Employing uniform ime seps grealy simplifies he algorihms, and hereby simplifies he programming we have o do. If we do no like he way a run looks, we will simply ry again wih a larger N. Similarly, sophisicaed sofware packages someimes use so-called muli-sep mehods for which he value of y n+ for n = m, m +,, N will depend on y n, y n,, and y n m for some posiive ineger m. Employing one-sep mehods again simplifies he algorihms, and hereby simplifies he programming we have o do.

3 7.. Explici and Implici Euler Mehods. The simples (and leas accurae) numerical mehods are he Euler mehods. These can be derived many ways. Here we give a simple approach based on he definiion of he derivaive hrough difference quoiens. If we sar wih he fac ha Y ( + h) Y () lim = Y () = f(, Y ()), h 0 h hen for small posiive h we have Y ( + h) Y () f(, Y ()). h Upon solving his for Y ( + h) we find ha Y ( + h) Y () + hf(, Y ()). If we le = n above (so ha + h = n+ ) his is equivalen o Y ( n+ ) Y ( n ) + hf( n, Y ( n )). Because y n and y n+ approximae Y ( n ) and Y ( n+ ) respecively, his suggess seing (7.3) y n+ = y n + hf( n, y n ) for n = 0,,, N. This so-called Euler mehod was inroduced by Leonhard Euler in 768. Alernaively, we could have sared wih he fac ha Y () Y ( h) lim h 0 h Then for small posiive h we have = Y () = f(, Y ()). Y () Y ( h) f(, Y ()). h Upon solving his for Y ( h) we find ha Y ( h) Y () hf(, Y ()). If we le = n+ above (so ha h = n ) his is equivalen o Y ( n+ ) hf( n+, Y ( n+ )) Y ( n ). Because y n and y n+ approximae Y ( n ) and Y ( n+ ) respecively, his suggess seing (7.4) y n+ hf( n+, y n+ ) = y n for n = 0,,, N. This mehod is called he implici Euler or backward Euler mehod. I is called he implici Euler mehod because equaion (7.4) implicily relaes y n+ o y n. I is called he backward Euler mehod because he difference quoien upon which i is based seps backward in ime (from o h). In conras, he Euler mehod (7.3) someimes called he explici Euler or forward Euler mehod because i gives y n+ explicily and because he difference quoien upon which i is based seps forward in ime (from o + h). Remark. One sep of he implici Euler mehod will be much slower han one sep of he explici Euler mehod unless equaion (7.4) can be explicily solved for y n+. This can be done when f(, y) is a fairly simple funcion if y. For example, his can be done when f(, y) is linear or quadraic in eiher y or y. In general equaion (7.4) mus be 3

4 4 solved for y n+ numerically (say by he Newon mehod), which akes ime. However, here are equaions for which he implici Euler mehod ouperforms he explici Euler mehod because he explici Euler mehod has o ake so many more ime seps ha is speed advanage per ime sep canno compensae Explici One-Sep Mehods Based on Taylor Approximaion. The explici (or forward) Euler mehod can be undersood as he firs in a sequence of explici mehods ha can be derived from he Taylor approximaion formula Explici Euler Mehod Revisied. The explici Euler mehod can be derived from he firs-order Taylor approximaion, which is also known as he angen line approximaion. This approximaion saes ha if Y () is wice coninuously differeniable hen (7.5) Y ( + h) = Y () + hy () + O(h ). Here he O(h ) means ha he remainder vanishes a leas as fas as h as h ends o zero. I is clear from (7.5) ha for small posiive h we have Y ( + h) Y () + hy (). Because Y () saisfies (7.), his is he same as Y ( + h) Y () + hf(, Y ()). If we le = n above (so ha + h = n+ ) his is equivalen o Y ( n+ ) Y ( n ) + hf( n, Y ( n )). Because y n and y n+ approximae Y ( n ) and Y ( n+ ) respecively, his suggess seing (7.6) y n+ = y n + hf( n, y n ) for n = 0,,, N, which is exacly he Euler mehod (7.3). This view of he Euler mehod is illusraed by he following diagram Local and Global Errors. One advanage of viewing he Euler mehod hrough he angen line approximaion (7.5) is ha we gain some undersanding of how is error behaves as we increase N, he number of ime seps or wha is equivalen by (7.), as we decrease h, he sep size. The O(h ) erm in (7.5) represens he local error, which is error he approximaion makes a each sep. Roughly speaking, if we halve he sep size h hen by (7.5) he local error will reduce by a facor of one quarer, while by (7.) he number of seps N we mus ake o ge o a prescribed ime (say F ) will double. If we assume ha errors add (which is ofen he case) hen he error a F will reduce by a facor of one half. In oher words, doubling he number of ime seps will reduce he error by abou a facor of one half. Similarly, ripling he number of ime seps will reduce he error by abou a facor of one hird. Indeed, i can be shown (bu we will no do so) ha he error of he explici Euler mehod is O(h) over he inerval [ I, F ]. The bes way o hink abou his is ha if we ake N seps and he error made a each sep is O(h ) hen we can expec ha he acummulaion of he local errors will lead o a global error of O(h )N. This is

5 5 y y n+ y n+ Y () y n n n+ n+ Figure 7.. Illusraion of he explici Euler mehod. y y n y n+ O(h ) y N h Y () O(h) n n+... N Figure 7.. Illusraion of global error arising hrough he accumulaion of local errors for he explici Euler mehod. illusraed in he following figure. Because (7.) saes ha hn = F I, which is a number ha is independen of h and N, we see ha global error of he explici Euler mehod is O(h). This was shown by Cauchy in 84. Moreover, i can be shown ha he error of he implici Euler mehod behaves he same way. Global error is a more meaningful concep han local error because i ells us how fas a mehod converges over he enire inerval [ I, F ]. Therefore we idenify he order of

6 6 a mehod by he order of is global error. In paricular, mehods like he Euler mehods wih global errors of O(h) are firs-order mehods. By reasoning similar o ha given in he previous paragraph, mehods whose local error is O(h m+ ) will have a global error of O(h m+ )N = O(h m ) and hereby are m h -order mehods. Higher-order mehods are more complicaed han he explici Euler mehod. The hope is ha his cos is overcome by he fac ha is error improves faser as you increase N or wha is equivalen by (7.), as you decrease h. For example, if we halve he sep size h of a fourh-order mehod hen he global error will reduce by a facor of /6. Similarly, ripling he number of ime seps will reduce he error by abou a facor of / Higher-Order Taylor-Based Mehods. The second-order Taylor approximaion saes ha if Y () is hrice coninuously differeniable hen (7.7) Y ( + h) = Y () + hy () + h Y () + O(h 3 ). Here he O(h 3 ) means ha he remainder vanishes a leas as fas as h 3 as h ends o zero. I is clear from (7.7) ha for small posiive h one has (7.8) Y ( + h) Y () + hy () + h Y (). Because Y () saisfies (7.), we see by he chain rule from mulivariable calculus ha Y () = d d( Y () ) = d d f(, Y ()) = f(, Y ()) + Y () y f(, Y ()) = f(, Y ()) + f(, Y ()) y f(, Y ()). Hence, equaion (7.8) is he same as ) Y ( + h) Y () + hf(, Y ()) + ( h f(, Y ()) + f(, Y ()) y f(, Y ()). If we le = n above (so ha + h = n+ ) his is equivalen o ) Y ( n+ ) Y ( n ) + hf( n, Y ( n )) + ( h f( n, Y ( n )) + f( n, Y ( n )) y f( n, Y ( n )). Because y n and y n+ approximae Y ( n ) and Y ( n+ ) respecively, his suggess seing ) y n+ = y n + hf( n, y n ) + ( (7.9) h f( n, y n ) + f( n, y n ) y f( n, y n ) for n = 0,,, N. We call his he second-order Taylor-based mehod. Remark. We can generalize our derivaion of he second-order Taylor-based mehod by using he m h -order Taylor approximaion o derive an explici numerical mehod whose error is O(h m ) over he inerval [ I, F ] a so-called m h -order mehod. However, he formulas for hese mehods grow in complexiy. For example, he hird-order mehod

7 7 is (7.0) ) y n+ = y n + hf( n, y n ) + ( h f( n, y n ) + f( n, y n ) y f( n, y n ) + [ 6 h3 f( n, y n ) + f( n, y n ) y f( n, y n ) + f( n, y n ) yy f( n, y n ) ( ) ] + f( n, y n ) + f( n, y n ) y f( n, y n ) y f( n, y n ) for n = 0,,, N. This complexiy of hese mehods makes hem far less pracical for general algorihms han he nex class of mehods we will sudy Explici One-Sep Mehods Based on Quadraure. The saring poin for our nex class of mehods will be he Fundamenal Theorem of Calculus specifically, he fac Y ( + h) Y () = Because Y () saisfies (7.), his becomes (7.) Y ( + h) = Y () + +h +h Y (s) ds. f(s, Y (s)) ds. In 895 Carl Runge proposed using quadraure rules (numerical inegraion) o consruc approximaions o he definie inegral above in he form (7.) +h f(s, Y (s)) ds = K(h,, Y ()) + O(h m+ ), where m is some posiive ineger. The key poin here is ha K(h,, Y ()) depends on Y (), bu does no depend on Y (s) for any s. When approximaion (7.) is placed ino (7.) we obain Y ( + h) = Y () + K(h,, Y ()) + O(h m+ ). If we le = n above (so ha + h = n+ ) his is equivalen o Y ( n+ ) = Y ( n ) + K(h, n, Y ( n )) + O(h m+ ). Because y n and y n+ approximae Y ( n ) and Y ( n+ ) respecively, his suggess seing (7.3) y n+ = y n + K(h, n, y n ) for n = 0,,, N, Hence, every approximaion of he form (7.) yields he m h -order explici one-sep mehod (7.3) for approximaing soluions of (7.). Here we will presen mehods associaed wih four basic quadraure rules ha are covered in mos calculus courses: he lef-hand rule, he rapezoidal rule, he midpoin rule, and he Simpson rule.

8 Explici Euler Mehod Revisied Again. The lef-hand rule approximaes he definie inegral on he lef-hand side of (7.) as +h f(s, Y (s)) ds = hf(, Y ()) + O(h ). This approximaion is already in he form (7.) wih K(h,, y) = hf(, y). Mehod (7.3) hereby becomes y n+ = y n + hf( n, y n ) for n = 0,,, N, which is exacly he explici Euler mehod (7.3). In pracice, he explici Euler mehod is implemened by iniializing y 0 = y I and hen for n = 0,, N cycling hrough he insrucions where n = I + nh. f n = f( n, y n ), y n+ = y n + hf n, Example. Le Y () be he soluion of he iniial-value problem dy d = + y, y(0) =. Use he explici Euler mehod wih h =. o approximae Y (.). Soluion. We iniialize 0 = 0 and y 0 =. The explici Euler mehod hen gives Therefore Y (.) y =.. f 0 = f( 0, y 0 ) = 0 + = y = y 0 + hf 0 = +. =. f = f(, y ) = (.) + (.) =.0 +. =. y = y + hf =. +.. =. +. =. The explici Euler mehod is implemened by he following MATLAB funcion M-file. funcion [,y] = EulerExplici(f, I, yi, F, N) = zeros(n +, ); y = zeros(n +, ); () = I; y() = yi; h = (F - I)/N; for j = :N (j + ) = (j) + h; y(j + ) = y(j) + h*f((j), y(j)); end Remark. There are some hings you should noice. Firs, (j) is j and y(j) is y j, he approximaion of y( j ). In paricular, y(j) is no he same as Y (j), which denoes he soluion Y () evaluaed a = j. (You mus pay aenion o he fon in which a leer is wrien!) The shif of he indices by one is needed because indexed variables in MATLAB begin wih he index. In paricular, () and y() denoe he iniial ime

9 0 and value y 0. Consequenly, all subsequen indices are shifed oo, so ha () and y() denoe and y, (3) and y(3) denoe and y, ec Runge-Trapezoidal Mehod. The rapezoidal rule approximaes he definie inegral on he lef-hand side of (7.) as +h f(s, Y (s)) ds = h [ f(, Y ()) + f( + h, Y ( + h)) ] + O(h 3 ). This approximaion is no in he form (7.) because of he Y ( + h) on he righ-hand side. If we approximae his Y ( + h) by he explici Euler mehod hen we obain +h f(s, Y (s)) ds = h [ f(, Y ()) + f ( + h, Y () + hf(, Y ()) )] + O(h 3 ). This approximaion is in he form (7.) wih Mehod (7.3) hereby becomes K(h,, y) = h [ f(, y) + f ( + h, y + hf(, y) )]. y n+ = y n + h [ f(n, y n ) + f ( n+, y n + hf( n, y n ) )] for n = 0,,, N. This is someimes called he improved Euler mehod. However, ha name is also used for oher mehods and is no very descripive. Raher, we will call his he Rungerapezoidal mehod because i was proposed by Runge based on he rapeziodal rule. This name makes he origins of he mehod clear. In pracice, he Runge-rapezoidal mehod is implemened by iniializing y 0 = y I and hen for n = 0,, N cycling hrough he insrucions f n = f( n, y n ), f n+ = f( n+, ỹ n+ ), ỹ n+ = y n + hf n, y n+ = y n + h[f n + f n+ ], where n = I + nh. Example. Le y() be he soluion of he iniial-value problem dy d = + y, y(0) =. Use he Runge-rapezoidal mehod wih h =. o approximae y(.). Soluion. We iniialize 0 = 0 and y 0 =. The Runge-rapezoidal mehod hen gives f 0 = f( 0, y 0 ) = 0 + = ỹ = y 0 + hf 0 = +. =. f = f(, ỹ ) = (.) + (.) = =.48 y = y 0 + h[ f 0 + f ] = +. ( +.48) = =.48 We hen have y(.) y =.48. Remark. Noice ha wo seps of he explici Euler mehod wih h =. gave y(.)., while one sep of he Runge-rapezoidal mehod wih h =. gave y(.).48, 9

10 0 y ỹ n+ y n+ Y () y n y n + h f n+ n n+ Figure 7.3. Illusraion of he Runge-rapazoidal mehod. The mehod is described as follows: Firs evaluae y n+ using he explici Euler mehod, hen find f n+ by evaluaing f(y, ) a ỹ n+ and n+. Finally y n+ is he midpoin of ỹ n+ and he correcion y n + h f n+. Noice how he line leaving ỹ n+ is parallel o he segmen beween y n and y n +h f n+. which is much closer o he exac value. As hese wo calculaions required roughly he same compuaional effor, his shows he advanange of using he second-order mehod. The Runge-rapezoidal mehod is implemened by he following MATLAB funcion M-file. funcion [,y] = RungeTrap(f, I, yi, F, N) = zeros(n +, ); y = zeros(n +, ); () = I; y() = yi; h = (F - I)/N; hhalf = h/; for j = :N (j + ) = (j) + h; fnow = f((j), y(j)); yplus = y(j) + h*fnow; fplus = f((j + ), yplus); y(j + ) = y(j) + hhalf*(fnow + fplus); end Remark. Here (j) and y(j) have he same meaning as hey did in he M-file for he explici Euler mehod. In paricular, we have he same shif of he indices by one. Here we have inroduced he so-called working variables fnow, yplus, and fplus o emporarily hold he values of f j, ỹ j, and f j during each cycle of he loop. These values do no

11 have o be saved, and so are overwrien wih each new cycle. Here we have isolaed he funcion evaluaions for fnow and fplus ino wo separae insrucions. This is good coding pracice ha makes adapaions easier. For example, you can replace he funcion calls o f(,y) by explici formulas in hose wo lines wihou changing he res of he coding Runge-Midpoin Mehod. The midpoin rule approximaes he definie inegral on he lef-hand side of (7.) as +h f(s, Y (s)) ds = hf ( + h, Y ( + h)) + O(h 3 ). This approximaion is no in he form (7.) because of he Y (+ h) on he righ-hand side. If we approximae his Y ( + h) by he explici Euler mehod hen we obain +h f(s, Y (s)) ds = hf ( + h, Y () + hf(, Y ())) + O(h 3 ). This approximaion is in he form (7.) wih Mehod (7.3) hereby becomes K(h,, y) = hf ( + h, y + hf(, y)). y n+ = y n + hf ( n+, y n + hf( n, y n ) ) for n = 0,,, N. This is someimes called he modified Euler mehod. However, ha name is also used for oher mehods and is no very descripive. Raher, we will call his he Rungemidpoin mehod because i was proposed by Runge based on he midpoin rule. This name makes he origins of he mehod clear. In pracice, he Runge-midpoin mehod is implemened by iniializing y 0 = y I and hen for n = 0,, N cycling hrough he insrucions f n+ where n = I + nh and n+ f n = f( n, y n ), = f( n+, y n+ ), = I + (n + )h. Remark. The half-ineger subscrips on n+ variables are associaed wih he ime = n + y n+ = y n + hf n, y n+ = y n + hf n+,, y n+, and f n+ indicae ha hose h, which is halfway beween he imes n and n+. While i may seem srange a firs, his noaional device is a handy way o help keep rack of he meanings of differen variables. Example. Le y() be he soluion of he iniial-value problem dy d = + y, y(0) =. Use he Runge-midpoin mehod wih h =. o approximae y(.).

12 y y n+ y n+ y n Y () n n+ n+ Figure 7.4. Illusraion of he Runge-midpoin mehod. The mehod is described as follows: Firs evalue y n+ by aking he midpoin of he segmen beween y n and he value y n +hf(y n, n ) prediced by he explici Euler mehod. Nex, find f n+ by evaluaing f(y, ) a y n+ and n+. Fnally, find y n+ by sepping from y n in he direcion of f n+, ha is y n+ = y n + hf n+. Noice how he line leaving y n+ is parallel o he segmen beween y n and y n+. Soluion. We iniialize 0 = 0 and y 0 =. Then he Runge-midpoin mehod gives f 0 = f( 0, y 0 ) = 0 + = y f = y 0 + hf 0 = +. =. = f(, y ) = (.) + (.) =.0 +. =., y = y 0 + hf = +. (.) = +.44 =.44. We hen have y(.) y =.44. Remark. Noice ha he Runge-rapezoidal mehod gave y(.).48 while he Runge-midpoin mehod gave y(.).44. The resuls are abou he same because boh mehods are second-order. Here he Runge-rapezoidal mehod gave a beer approximaion. For oher problems he Runge-midpoin mehod migh give a beer approximaion. The Runge-midpoin mehod is implemened by he following MATLAB funcion M-file. funcion [,y] = RungeMid(f, I, yi, F, N) = zeros(n +, ); y = zeros(n +, ); () = I; y() = yi; h = (F - I)/N; hhalf = h/;

13 3 for j = :N half = (j) + hhalf; (j + ) = (j) + h; fnow = f((j), y(j)); yhalf = y(j) + hhalf*fnow; fhalf = f(half, yhalf); y(j + ) = y(j) + h*fhalf; end Remark. Here (j) and y(j) have he same meaning as hey did in he M-file for he explici Euler mehod. In paricular, we have he same shif of he indices by one. Here we have inroduced he working variables fnow, half, yhalf, and fhalf o emporarily hold he values of f j, j, y j, and f j during each cycle of he loop. These values do no have o be saved, and so are overwrien wih each new cycle Runge-Kua Mehod. The Simpson rule approximaes he definie inegral on he lef-hand side of (7.) as +h f(s, Y (s)) ds = h 6 [ f(, Y ())+4f ( + h, Y (+ h)) +f ( +h, Y (+h) )] +O(h 5 ). This approximaion is no in he form (7.) because of he Y ( + h) and Y ( + h) on he righ-hand side. If we approximae hese wih he explici Euler mehod as we did before hen we will degrade he local error o O(h 3 ). We would like o find an approximaion ha is consisen wih he O(h 5 ) local error of he Simpson rule. In 90 Wilhelm Kua found such an approximaion, which led o he so-called Runge-Kua mehod. We will no give a derivaion of his mehod here. Such derivaions can be found in numerical analysis books. In pracice he Runge-Kua mehod is implemened by iniializing y 0 = y I and hen for n = 0,, N cycling hrough he insrucions f n+ f n+ f n = f( n, y n ), = f( n+, ỹ n+ ), ), = f( n+, y n+ f n+ = f( n+, ỹ n+ ), ỹ n+ y n+ = y n + hf n, = y n + h f n+,, ỹ n+ = y n + hf n+ y n+ = y n + h[ f 6 n + f n+ + f n+ + f ] n+, where n = I + nh and n+ = I + (n + )h. Remark. The Runge-Kua mehod requires four evaluaions of f(, y) o advance each ime sep, whereas he second-order mehods each required only wo. Therefore i requires roughly wice as much compuaional work per ime sep as hose mehods.

14 4 Remark. Noice ha because we see ha ỹ n+ y n+ y n Y ( n ), Y ( n + h), Y ( n + h), ỹ n+ Y ( n + h), f n+ f n+ f n f ( n, Y ( n ) ) f ( n + h, Y ( n + h)), f ( n + h, Y ( n + h)), f n+ f ( n + h, Y ( n + h) ), y n+ Y ( n ) + h 6 [ f(n, Y ( n )) + 4f ( n + h, Y ( n + h)) + f ( n + h, Y ( n + h) )]. The Runge-Kua mehod hereby looks consisan wih he Simpson rule approximaion. This argumen does no show ha he Runge-Kua mehod is fourh order, bu i is. Example. Le y() be he soluion of he iniial-value problem dy d = + y, y(0) =. Use he Runge-Kua mehod wih h =. o approximae y(.). Soluion. We iniialize 0 = 0 and y 0 =. The Runge-Kua mehod hen gives f 0 = f( 0, y 0 ) = 0 + = ỹ f y f = y 0 + hf 0 = +. =. = f( = y 0 + h f = f(, ỹ ) = (.) + (.) =.0 +. =., y = +.. =. ) = (.) + (.) = = ỹ = y 0 + hf = = = f = f(, ỹ ) = (.) + (.57768) = y = y 0 + h[ f f + f + f ] [ ]. We hen have y(.) y Of course, you would no be expeced o carry ou such arihmeic calculaions o nine decimal places on an exam. Remark. One sep of he Runge-Kua mehod wih h =. yielded he approximaion y(.) This is more accurae han he approximaions we had obained wih eiher second-order mehod. However, ha is no a fair comparison because he Runge-Kua mehod required roughly wice he compuaional work. A beer comparison would be wih he approximaion produced by wo seps of eiher second-order mehod wih h =.. Remark. You will no be required o memorize he Runge-Kua mehod. You also will no be required o carry ou one sep of i on an exam or quiz because, as he above example illusraes, he arihmeic ges messy even for fairly simple differenial equaions.

15 However, you should undersand he implicaions of i being a fourh-order mehod namely, he relaionship beween is error and he sep size h. You also should be able o recognize he Runge-Kua mehod if i is presened o you in MATLAB code. The Runge-Kua mehod is implemened by he following MATLAB funcion M-file. funcion [,y] = RungeKua(f, I, yi, F, N) = zeros(n +, ); y = zeros(n +, ); () = I; y() = yi; h = (F - I)/N; hhalf = h/; hsixh = h/6; for j = :N half = (j) + hhalf; (j + ) = (j) + h; fnow = f((j), y(j)); yhalfone = y(j) + hhalf*fnow; fhalfone = f(half, yhalfone); yhalfwo = y(j) + hhalf*fhalfone; fhalfwo = f(half, yhalfwo); yplus = y(j) + h*fhalfwo; fplus = f((j + ), yplus); y(j + ) = y(j) + hsixh*(fnow + *fhalfone + *fhalfwo + fplus); end Remark. Here (j) and y(j) have he same meaning as hey did in he M-file for he explici Euler mehod. In paricular, we have he same shif of he indices by one. Here we have inroduced he working variables fnow, half, yhalfone, fhalfone, yhalfwo, fhalfwo, yplus, and fplus o emporarily hold he values of f j, j, ỹ j, f j, y j, f j, ỹ j, and f j General Runge-Kua Mehods. All he mehods presened in his secion are members of he family of general Runge-Kua mehods. The MATLAB command ode45 uses he Dormand-Prince mehod, which is anoher member of his Runge- Kua family ha was discovered in 980! The Runge-Kua family coninues o be enlarged by new mehods, some of which migh replace he Dormand-Prince mehod in fuure versions of MATLAB. An inroducion o hese modern mehods requires a graduae course in numerical analysis. Here we have he more modes goal of inroducing hose family members presened by Wilhelm Kua in his 90 paper. Carl Runge had described jus a few mehods in his 895 paper, including he Runge rapezoid and midpoin mehods. In 900 Karl Heun presened a family of mehods ha included all hose sudied by Runge as special cases. Heun characerized he compuaional effor of hese mehods by how many evaluaions of f(, y) are needed o compue K(h,, y). We say a mehod ha requires s evaluaions of f(, y) is an s-sage mehod. The explici Euler mehod, for which K(h,, y) = hf(, y), is he only one-sage mehod.

16 6 Heun considered he family of wo-sage mehods in he form (7.4a) K(h,, y) = α k + α k, wih α + α =, where k and k are given by wo evaluaions of f(, y) as (7.4b) k = hf(, y), k = hf( + βh, y + βk ), for some β > 0. Heun showed he wo-sage mehod (7.4) is second-order for every f(, y) if and only if α = β, α = β. These include he Runge rapeziodal mehod, which is given by α = α = and β =, and he Runge midpoin mehod, which is given by α = 0, α =, and β =. Heun also showed ha no wo-sage mehod (7.4) is hird-order for every f(, y). Remark. Second-order, wo-sage mehods are ofen called Heun mehods in recogniion of his work. Of hese Heun favored he mehod given by α =, α 4 = 3, and 4 β =, which is hird order in he special case when 3 yf = 0. Heun also considered families of hree- and four-sage mehods in his 900 paper. However in 90 Kua inroduced families of s-sage mehods ha where more general when s 3. For example, Kua considered he family of hree-sage mehods in he form (7.5a) K(h,, y) = α k + α k + α 3 k 3, wih α + α + α 3 =, where k, k, and k 3 are given by hree evaluaions of f(, y) as (7.5b) k = hf(, y), k = hf( + β h, y + γ k ), wih β = γ, k 3 = hf( + β 3 h, y + γ 3 k + γ 3 k ), wih β 3 = γ 3 + γ 3. Kua showed he hree-sage mehod (7.5) is second-order for every f(, y) if and only if α β + α 3 β 3 = ; and is hird-order for every f(, y) if and only if in addiion α β + α 3 β 3 = 3, α 3γ 3 β = 6. Kua also showed ha no hree-sage mehod (7.5) is fourh-order for every f(, y). Heun had shown he analogus resuls resriced o he case γ 3 = 0. He favored he hird-order mehod given by α = 4, α = 0, α 3 = 3 4, β = γ = 3, β 3 = γ 3 = 3, γ 3 = 0, which is he hird-order mehod requiring he fewes arihmeic operaions. favored he hird-order mehod given by α = 6, α = 3, α 3 = 6, β = γ =, β 3 =, γ 3 =, γ 3 =, which agrees wih he Simpson rule in he special case when y f = 0. Similarly, Kua considered he family of four-sage mehods in he form (7.6a) K(h,, y) = α k + α k + α 3 k 3 + α 4 k 4, wih α + α + α 3 + α 4 =, Kua

17 where k, k, k 3, and k 4 are given by four evaluaions of f(, y) as (7.6b) k = hf(, y), k = hf( + β h, y + γ k ), wih β = γ, k 3 = hf( + β 3 h, y + γ 3 k + γ 3 k ), wih β 3 = γ 3 + γ 3, k 4 = hf( + β 4 h, y + γ 4 k + γ 4 k + γ 43 k 3 ), wih β 4 = γ 4 + γ 4 + γ 43. Kua showed he four-sage mehod (7.6) is second-order for every f(, y) if and only if α β + α 3 β 3 + α 4 β 4 = ; is hird-order for every f(, y) if and only if in addiion α β + α 3 β 3 + α 4 β 4 = 3, α 3γ 3 β + α 4 ( γ4 β + γ 43 β 3 ) = 6 ; and is fourh-order for every f(, y) if and only if in addiion α β 3 + α 3 β3 3 + α 4 β4 3 =, α ( ) 4 3γ 3 β + α 4 γ4 β + γ 43 β3 =, ( ) α 3 β 3 γ 3 β + α 4 β 4 γ4 β + γ 43 β 3 =, α 8 4γ 43 γ 3 β =. 4 Kua also showed ha no four-sage mehod (7.6) is fifh-order for every f(, y). Heun had shown he analogus resuls resriced o he case γ 3 = γ 4 = γ 4 = 0. Kua favored he classical Runge-Kua mehod presened in he previous subsecion, which is given by α = 6, α = 3, α 3 = 3, α 4 = 6, β = γ =, β 3 = γ 3 =, γ 3 = 0, β 4 = γ 43 =, γ 4 = γ 4 = 0. This is he fourh-order mehod ha boh requires he fewes arihmeic operaions and is consisan wih he Simpson rule. More generally, Kua considered he family of s-sage mehods in he form s s (7.7a) K(h,, y) = α j k j, wih α j =, j= where k j for j =,, s are given by s evaluaions of f(, y) as (7.7b) k = hf(, y), ( ) j j k j = hf + β j h, y + γ ji k i, wih β j = γ ji, for j =,, s. i= Kua showed ha no five-sage mehod (7.7) is fifh-order for every f(, y). This resul was surprising because for s =,, 3, and 4 here were s-sage mehods ha were s h - order. Kua hen characerized hose six-sage mehods (7.7) ha are fifh-order for every f(, y). We will no give he condiions he found here. Remark. Programmable elecrionic compuers were invened over fify years afer Runge, Heun, and Kua carried ou heir work. Early numerical compuaions had less precision han hey do oday. Higher-order mehods suffer from round-off error j= i= 7

18 8 more han lower-order mehods. Because round-off error is larger on machines wih less precision, here was lile advanage o using higher-order mehods on early machines. As machines became more precise, he classical Runge-Kua mehod became widely used o solve differenial equaions because i offers a nice balance beween order and round-off error. Remark. One of he mos imporan developmens in Runge-Kua mehods since heir invenion is embedded mehods, which emerged in he 950s. These mehods mainain a prescribed error olerance by selecing a differen h for each ime sep based upon an error esimae made by compairing relaed Runge-Kua mehods of orders m and m +. By relaed we mean ha he mehods are buil from he same evaluaions of f(, y), so ha hey can be compued simulaniously. The MATLAB command ode45 uses a fourh-order/fifh-order Runge-Kua embedded mehod. Originally i used a fourhorder mehod invened by Fehlberg in 969, someimes denoed RKF4(5). Currenly i uses a fifh-order mehod invened by J.R. Dormand and P.J. Prince in 980, someimes denoed RKDP5(4). This mehod migh be replaced by a higher-order embedded mehod as faser machines wih smaller round-off error become more common. One candidae o fill his role is an eighh-order mehod invened by Dormand and Prince in 98, a sevenh-order/eighh-order Runge-Kua embedded mehod someimes denoed RKDP8(7). There are oher candidaes.

Ordinary dierential equations

Ordinary dierential equations Chaper 5 Ordinary dierenial equaions Conens 5.1 Iniial value problem........................... 31 5. Forward Euler's mehod......................... 3 5.3 Runge-Kua mehods.......................... 36

More information

Chapter 2. First Order Scalar Equations

Chapter 2. First Order Scalar Equations Chaper. Firs Order Scalar Equaions We sar our sudy of differenial equaions in he same way he pioneers in his field did. We show paricular echniques o solve paricular ypes of firs order differenial equaions.

More information

Simulation-Solving Dynamic Models ABE 5646 Week 2, Spring 2010

Simulation-Solving Dynamic Models ABE 5646 Week 2, Spring 2010 Simulaion-Solving Dynamic Models ABE 5646 Week 2, Spring 2010 Week Descripion Reading Maerial 2 Compuer Simulaion of Dynamic Models Finie Difference, coninuous saes, discree ime Simple Mehods Euler Trapezoid

More information

t is a basis for the solution space to this system, then the matrix having these solutions as columns, t x 1 t, x 2 t,... x n t x 2 t...

t is a basis for the solution space to this system, then the matrix having these solutions as columns, t x 1 t, x 2 t,... x n t x 2 t... Mah 228- Fri Mar 24 5.6 Marix exponenials and linear sysems: The analogy beween firs order sysems of linear differenial equaions (Chaper 5) and scalar linear differenial equaions (Chaper ) is much sronger

More information

MATH 128A, SUMMER 2009, FINAL EXAM SOLUTION

MATH 128A, SUMMER 2009, FINAL EXAM SOLUTION MATH 28A, SUMME 2009, FINAL EXAM SOLUTION BENJAMIN JOHNSON () (8 poins) [Lagrange Inerpolaion] (a) (4 poins) Le f be a funcion defined a some real numbers x 0,..., x n. Give a defining equaion for he Lagrange

More information

Single and Double Pendulum Models

Single and Double Pendulum Models Single and Double Pendulum Models Mah 596 Projec Summary Spring 2016 Jarod Har 1 Overview Differen ypes of pendulums are used o model many phenomena in various disciplines. In paricular, single and double

More information

Vehicle Arrival Models : Headway

Vehicle Arrival Models : Headway Chaper 12 Vehicle Arrival Models : Headway 12.1 Inroducion Modelling arrival of vehicle a secion of road is an imporan sep in raffic flow modelling. I has imporan applicaion in raffic flow simulaion where

More information

) were both constant and we brought them from under the integral.

) were both constant and we brought them from under the integral. YIELD-PER-RECRUIT (coninued The yield-per-recrui model applies o a cohor, bu we saw in he Age Disribuions lecure ha he properies of a cohor do no apply in general o a collecion of cohors, which is wha

More information

( ) a system of differential equations with continuous parametrization ( T = R + These look like, respectively:

( ) a system of differential equations with continuous parametrization ( T = R + These look like, respectively: XIII. DIFFERENCE AND DIFFERENTIAL EQUATIONS Ofen funcions, or a sysem of funcion, are paramerized in erms of some variable, usually denoed as and inerpreed as ime. The variable is wrien as a funcion of

More information

= ( ) ) or a system of differential equations with continuous parametrization (T = R

= ( ) ) or a system of differential equations with continuous parametrization (T = R XIII. DIFFERENCE AND DIFFERENTIAL EQUATIONS Ofen funcions, or a sysem of funcion, are paramerized in erms of some variable, usually denoed as and inerpreed as ime. The variable is wrien as a funcion of

More information

Math 2142 Exam 1 Review Problems. x 2 + f (0) 3! for the 3rd Taylor polynomial at x = 0. To calculate the various quantities:

Math 2142 Exam 1 Review Problems. x 2 + f (0) 3! for the 3rd Taylor polynomial at x = 0. To calculate the various quantities: Mah 4 Eam Review Problems Problem. Calculae he 3rd Taylor polynomial for arcsin a =. Soluion. Le f() = arcsin. For his problem, we use he formula f() + f () + f ()! + f () 3! for he 3rd Taylor polynomial

More information

EXERCISES FOR SECTION 1.5

EXERCISES FOR SECTION 1.5 1.5 Exisence and Uniqueness of Soluions 43 20. 1 v c 21. 1 v c 1 2 4 6 8 10 1 2 2 4 6 8 10 Graph of approximae soluion obained using Euler s mehod wih = 0.1. Graph of approximae soluion obained using Euler

More information

FIRST-ORDER ORDINARY DIFFERENTIAL EQUATIONS III: Numerical and More Analytic Methods David Levermore Department of Mathematics University of Maryland

FIRST-ORDER ORDINARY DIFFERENTIAL EQUATIONS III: Numerical and More Analytic Methods David Levermore Department of Mathematics University of Maryland FIRST-ORDER ORDINARY DIFFERENTIAL EQUATIONS III: Numerical and More Analytic Methods David Levermore Department of Mathematics University of Maryland 30 September 0 Because the presentation of this material

More information

Lecture 2-1 Kinematics in One Dimension Displacement, Velocity and Acceleration Everything in the world is moving. Nothing stays still.

Lecture 2-1 Kinematics in One Dimension Displacement, Velocity and Acceleration Everything in the world is moving. Nothing stays still. Lecure - Kinemaics in One Dimension Displacemen, Velociy and Acceleraion Everyhing in he world is moving. Nohing says sill. Moion occurs a all scales of he universe, saring from he moion of elecrons in

More information

Two Coupled Oscillators / Normal Modes

Two Coupled Oscillators / Normal Modes Lecure 3 Phys 3750 Two Coupled Oscillaors / Normal Modes Overview and Moivaion: Today we ake a small, bu significan, sep owards wave moion. We will no ye observe waves, bu his sep is imporan in is own

More information

The Fundamental Theorems of Calculus

The Fundamental Theorems of Calculus FunamenalTheorems.nb 1 The Funamenal Theorems of Calculus You have now been inrouce o he wo main branches of calculus: ifferenial calculus (which we inrouce wih he angen line problem) an inegral calculus

More information

HOMEWORK # 2: MATH 211, SPRING Note: This is the last solution set where I will describe the MATLAB I used to make my pictures.

HOMEWORK # 2: MATH 211, SPRING Note: This is the last solution set where I will describe the MATLAB I used to make my pictures. HOMEWORK # 2: MATH 2, SPRING 25 TJ HITCHMAN Noe: This is he las soluion se where I will describe he MATLAB I used o make my picures.. Exercises from he ex.. Chaper 2.. Problem 6. We are o show ha y() =

More information

Some Basic Information about M-S-D Systems

Some Basic Information about M-S-D Systems Some Basic Informaion abou M-S-D Sysems 1 Inroducion We wan o give some summary of he facs concerning unforced (homogeneous) and forced (non-homogeneous) models for linear oscillaors governed by second-order,

More information

5.2. The Natural Logarithm. Solution

5.2. The Natural Logarithm. Solution 5.2 The Naural Logarihm The number e is an irraional number, similar in naure o π. Is non-erminaing, non-repeaing value is e 2.718 281 828 59. Like π, e also occurs frequenly in naural phenomena. In fac,

More information

Chapter 7: Solving Trig Equations

Chapter 7: Solving Trig Equations Haberman MTH Secion I: The Trigonomeric Funcions Chaper 7: Solving Trig Equaions Le s sar by solving a couple of equaions ha involve he sine funcion EXAMPLE a: Solve he equaion sin( ) The inverse funcions

More information

23.2. Representing Periodic Functions by Fourier Series. Introduction. Prerequisites. Learning Outcomes

23.2. Representing Periodic Functions by Fourier Series. Introduction. Prerequisites. Learning Outcomes Represening Periodic Funcions by Fourier Series 3. Inroducion In his Secion we show how a periodic funcion can be expressed as a series of sines and cosines. We begin by obaining some sandard inegrals

More information

5.1 - Logarithms and Their Properties

5.1 - Logarithms and Their Properties Chaper 5 Logarihmic Funcions 5.1 - Logarihms and Their Properies Suppose ha a populaion grows according o he formula P 10, where P is he colony size a ime, in hours. When will he populaion be 2500? We

More information

Predator - Prey Model Trajectories and the nonlinear conservation law

Predator - Prey Model Trajectories and the nonlinear conservation law Predaor - Prey Model Trajecories and he nonlinear conservaion law James K. Peerson Deparmen of Biological Sciences and Deparmen of Mahemaical Sciences Clemson Universiy Ocober 28, 213 Ouline Drawing Trajecories

More information

Final Spring 2007

Final Spring 2007 .615 Final Spring 7 Overview The purpose of he final exam is o calculae he MHD β limi in a high-bea oroidal okamak agains he dangerous n = 1 exernal ballooning-kink mode. Effecively, his corresponds o

More information

Physics 235 Chapter 2. Chapter 2 Newtonian Mechanics Single Particle

Physics 235 Chapter 2. Chapter 2 Newtonian Mechanics Single Particle Chaper 2 Newonian Mechanics Single Paricle In his Chaper we will review wha Newon s laws of mechanics ell us abou he moion of a single paricle. Newon s laws are only valid in suiable reference frames,

More information

Ordinary differential equations. Phys 750 Lecture 7

Ordinary differential equations. Phys 750 Lecture 7 Ordinary differenial equaions Phys 750 Lecure 7 Ordinary Differenial Equaions Mos physical laws are expressed as differenial equaions These come in hree flavours: iniial-value problems boundary-value problems

More information

Math Week 14 April 16-20: sections first order systems of linear differential equations; 7.4 mass-spring systems.

Math Week 14 April 16-20: sections first order systems of linear differential equations; 7.4 mass-spring systems. Mah 2250-004 Week 4 April 6-20 secions 7.-7.3 firs order sysems of linear differenial equaions; 7.4 mass-spring sysems. Mon Apr 6 7.-7.2 Sysems of differenial equaions (7.), and he vecor Calculus we need

More information

10. State Space Methods

10. State Space Methods . Sae Space Mehods. Inroducion Sae space modelling was briefly inroduced in chaper. Here more coverage is provided of sae space mehods before some of heir uses in conrol sysem design are covered in he

More information

Class Meeting # 10: Introduction to the Wave Equation

Class Meeting # 10: Introduction to the Wave Equation MATH 8.5 COURSE NOTES - CLASS MEETING # 0 8.5 Inroducion o PDEs, Fall 0 Professor: Jared Speck Class Meeing # 0: Inroducion o he Wave Equaion. Wha is he wave equaion? The sandard wave equaion for a funcion

More information

KINEMATICS IN ONE DIMENSION

KINEMATICS IN ONE DIMENSION KINEMATICS IN ONE DIMENSION PREVIEW Kinemaics is he sudy of how hings move how far (disance and displacemen), how fas (speed and velociy), and how fas ha how fas changes (acceleraion). We say ha an objec

More information

Math 333 Problem Set #2 Solution 14 February 2003

Math 333 Problem Set #2 Solution 14 February 2003 Mah 333 Problem Se #2 Soluion 14 February 2003 A1. Solve he iniial value problem dy dx = x2 + e 3x ; 2y 4 y(0) = 1. Soluion: This is separable; we wrie 2y 4 dy = x 2 + e x dx and inegrae o ge The iniial

More information

Chapter 3 Boundary Value Problem

Chapter 3 Boundary Value Problem Chaper 3 Boundary Value Problem A boundary value problem (BVP) is a problem, ypically an ODE or a PDE, which has values assigned on he physical boundary of he domain in which he problem is specified. Le

More information

Fishing limits and the Logistic Equation. 1

Fishing limits and the Logistic Equation. 1 Fishing limis and he Logisic Equaion. 1 1. The Logisic Equaion. The logisic equaion is an equaion governing populaion growh for populaions in an environmen wih a limied amoun of resources (for insance,

More information

1 1 + x 2 dx. tan 1 (2) = ] ] x 3. Solution: Recall that the given integral is improper because. x 3. 1 x 3. dx = lim dx.

1 1 + x 2 dx. tan 1 (2) = ] ] x 3. Solution: Recall that the given integral is improper because. x 3. 1 x 3. dx = lim dx. . Use Simpson s rule wih n 4 o esimae an () +. Soluion: Since we are using 4 seps, 4 Thus we have [ ( ) f() + 4f + f() + 4f 3 [ + 4 4 6 5 + + 4 4 3 + ] 5 [ + 6 6 5 + + 6 3 + ]. 5. Our funcion is f() +.

More information

Math 116 Practice for Exam 2

Math 116 Practice for Exam 2 Mah 6 Pracice for Exam Generaed Ocober 3, 7 Name: SOLUTIONS Insrucor: Secion Number:. This exam has 5 quesions. Noe ha he problems are no of equal difficuly, so you may wan o skip over and reurn o a problem

More information

CSE 3802 / ECE Numerical Methods in Scientific Computation. Jinbo Bi. Department of Computer Science & Engineering

CSE 3802 / ECE Numerical Methods in Scientific Computation. Jinbo Bi. Department of Computer Science & Engineering CSE 3802 / ECE 3431 Numerical Mehods in Scienific Compuaion Jinbo Bi Deparmen of Compuer Science & Engineering hp://www.engr.uconn.edu/~jinbo 1 Ph.D in Mahemaics The Insrucor Previous professional experience:

More information

EXPLICIT TIME INTEGRATORS FOR NONLINEAR DYNAMICS DERIVED FROM THE MIDPOINT RULE

EXPLICIT TIME INTEGRATORS FOR NONLINEAR DYNAMICS DERIVED FROM THE MIDPOINT RULE Version April 30, 2004.Submied o CTU Repors. EXPLICIT TIME INTEGRATORS FOR NONLINEAR DYNAMICS DERIVED FROM THE MIDPOINT RULE Per Krysl Universiy of California, San Diego La Jolla, California 92093-0085,

More information

dy dx = xey (a) y(0) = 2 (b) y(1) = 2.5 SOLUTION: See next page

dy dx = xey (a) y(0) = 2 (b) y(1) = 2.5 SOLUTION: See next page Assignmen 1 MATH 2270 SOLUTION Please wrie ou complee soluions for each of he following 6 problems (one more will sill be added). You may, of course, consul wih your classmaes, he exbook or oher resources,

More information

KEY. Math 334 Midterm I Fall 2008 sections 001 and 003 Instructor: Scott Glasgow

KEY. Math 334 Midterm I Fall 2008 sections 001 and 003 Instructor: Scott Glasgow 1 KEY Mah 4 Miderm I Fall 8 secions 1 and Insrucor: Sco Glasgow Please do NOT wrie on his eam. No credi will be given for such work. Raher wrie in a blue book, or on our own paper, preferabl engineering

More information

STATE-SPACE MODELLING. A mass balance across the tank gives:

STATE-SPACE MODELLING. A mass balance across the tank gives: B. Lennox and N.F. Thornhill, 9, Sae Space Modelling, IChemE Process Managemen and Conrol Subjec Group Newsleer STE-SPACE MODELLING Inroducion: Over he pas decade or so here has been an ever increasing

More information

The fundamental mass balance equation is ( 1 ) where: I = inputs P = production O = outputs L = losses A = accumulation

The fundamental mass balance equation is ( 1 ) where: I = inputs P = production O = outputs L = losses A = accumulation Hea (iffusion) Equaion erivaion of iffusion Equaion The fundamenal mass balance equaion is I P O L A ( 1 ) where: I inpus P producion O oupus L losses A accumulaion Assume ha no chemical is produced or

More information

3.1 More on model selection

3.1 More on model selection 3. More on Model selecion 3. Comparing models AIC, BIC, Adjused R squared. 3. Over Fiing problem. 3.3 Sample spliing. 3. More on model selecion crieria Ofen afer model fiing you are lef wih a handful of

More information

Matrix Versions of Some Refinements of the Arithmetic-Geometric Mean Inequality

Matrix Versions of Some Refinements of the Arithmetic-Geometric Mean Inequality Marix Versions of Some Refinemens of he Arihmeic-Geomeric Mean Inequaliy Bao Qi Feng and Andrew Tonge Absrac. We esablish marix versions of refinemens due o Alzer ], Carwrigh and Field 4], and Mercer 5]

More information

arxiv:quant-ph/ v1 5 Jul 2004

arxiv:quant-ph/ v1 5 Jul 2004 Numerical Mehods for Sochasic Differenial Equaions Joshua Wilkie Deparmen of Chemisry, Simon Fraser Universiy, Burnaby, Briish Columbia V5A 1S6, Canada Sochasic differenial equaions (sdes) play an imporan

More information

In this chapter the model of free motion under gravity is extended to objects projected at an angle. When you have completed it, you should

In this chapter the model of free motion under gravity is extended to objects projected at an angle. When you have completed it, you should Cambridge Universiy Press 978--36-60033-7 Cambridge Inernaional AS and A Level Mahemaics: Mechanics Coursebook Excerp More Informaion Chaper The moion of projeciles In his chaper he model of free moion

More information

Morning Time: 1 hour 30 minutes Additional materials (enclosed):

Morning Time: 1 hour 30 minutes Additional materials (enclosed): ADVANCED GCE 78/0 MATHEMATICS (MEI) Differenial Equaions THURSDAY JANUARY 008 Morning Time: hour 30 minues Addiional maerials (enclosed): None Addiional maerials (required): Answer Bookle (8 pages) Graph

More information

Christos Papadimitriou & Luca Trevisan November 22, 2016

Christos Papadimitriou & Luca Trevisan November 22, 2016 U.C. Bereley CS170: Algorihms Handou LN-11-22 Chrisos Papadimiriou & Luca Trevisan November 22, 2016 Sreaming algorihms In his lecure and he nex one we sudy memory-efficien algorihms ha process a sream

More information

Section 4.4 Logarithmic Properties

Section 4.4 Logarithmic Properties Secion. Logarihmic Properies 59 Secion. Logarihmic Properies In he previous secion, we derived wo imporan properies of arihms, which allowed us o solve some asic eponenial and arihmic equaions. Properies

More information

Variational Iteration Method for Solving System of Fractional Order Ordinary Differential Equations

Variational Iteration Method for Solving System of Fractional Order Ordinary Differential Equations IOSR Journal of Mahemaics (IOSR-JM) e-issn: 2278-5728, p-issn: 2319-765X. Volume 1, Issue 6 Ver. II (Nov - Dec. 214), PP 48-54 Variaional Ieraion Mehod for Solving Sysem of Fracional Order Ordinary Differenial

More information

Chapter 6. Systems of First Order Linear Differential Equations

Chapter 6. Systems of First Order Linear Differential Equations Chaper 6 Sysems of Firs Order Linear Differenial Equaions We will only discuss firs order sysems However higher order sysems may be made ino firs order sysems by a rick shown below We will have a sligh

More information

Solutions from Chapter 9.1 and 9.2

Solutions from Chapter 9.1 and 9.2 Soluions from Chaper 9 and 92 Secion 9 Problem # This basically boils down o an exercise in he chain rule from calculus We are looking for soluions of he form: u( x) = f( k x c) where k x R 3 and k is

More information

18 Biological models with discrete time

18 Biological models with discrete time 8 Biological models wih discree ime The mos imporan applicaions, however, may be pedagogical. The elegan body of mahemaical heory peraining o linear sysems (Fourier analysis, orhogonal funcions, and so

More information

2. Nonlinear Conservation Law Equations

2. Nonlinear Conservation Law Equations . Nonlinear Conservaion Law Equaions One of he clear lessons learned over recen years in sudying nonlinear parial differenial equaions is ha i is generally no wise o ry o aack a general class of nonlinear

More information

Linear Time-invariant systems, Convolution, and Cross-correlation

Linear Time-invariant systems, Convolution, and Cross-correlation Linear Time-invarian sysems, Convoluion, and Cross-correlaion (1) Linear Time-invarian (LTI) sysem A sysem akes in an inpu funcion and reurns an oupu funcion. x() T y() Inpu Sysem Oupu y() = T[x()] An

More information

u(x) = e x 2 y + 2 ) Integrate and solve for x (1 + x)y + y = cos x Answer: Divide both sides by 1 + x and solve for y. y = x y + cos x

u(x) = e x 2 y + 2 ) Integrate and solve for x (1 + x)y + y = cos x Answer: Divide both sides by 1 + x and solve for y. y = x y + cos x . 1 Mah 211 Homework #3 February 2, 2001 2.4.3. y + (2/x)y = (cos x)/x 2 Answer: Compare y + (2/x) y = (cos x)/x 2 wih y = a(x)x + f(x)and noe ha a(x) = 2/x. Consequenly, an inegraing facor is found wih

More information

2.7. Some common engineering functions. Introduction. Prerequisites. Learning Outcomes

2.7. Some common engineering functions. Introduction. Prerequisites. Learning Outcomes Some common engineering funcions 2.7 Inroducion This secion provides a caalogue of some common funcions ofen used in Science and Engineering. These include polynomials, raional funcions, he modulus funcion

More information

Multi-scale 2D acoustic full waveform inversion with high frequency impulsive source

Multi-scale 2D acoustic full waveform inversion with high frequency impulsive source Muli-scale D acousic full waveform inversion wih high frequency impulsive source Vladimir N Zubov*, Universiy of Calgary, Calgary AB vzubov@ucalgaryca and Michael P Lamoureux, Universiy of Calgary, Calgary

More information

Hamilton- J acobi Equation: Explicit Formulas In this lecture we try to apply the method of characteristics to the Hamilton-Jacobi equation: u t

Hamilton- J acobi Equation: Explicit Formulas In this lecture we try to apply the method of characteristics to the Hamilton-Jacobi equation: u t M ah 5 2 7 Fall 2 0 0 9 L ecure 1 0 O c. 7, 2 0 0 9 Hamilon- J acobi Equaion: Explici Formulas In his lecure we ry o apply he mehod of characerisics o he Hamilon-Jacobi equaion: u + H D u, x = 0 in R n

More information

Starting from a familiar curve

Starting from a familiar curve In[]:= NoebookDirecory Ou[]= C:\Dropbox\Work\myweb\Courses\Mah_pages\Mah_5\ You can evaluae he enire noebook by using he keyboard shorcu Al+v o, or he menu iem Evaluaion Evaluae Noebook. Saring from a

More information

Matlab and Python programming: how to get started

Matlab and Python programming: how to get started Malab and Pyhon programming: how o ge sared Equipping readers he skills o wrie programs o explore complex sysems and discover ineresing paerns from big daa is one of he main goals of his book. In his chaper,

More information

Math 115 Final Exam December 14, 2017

Math 115 Final Exam December 14, 2017 On my honor, as a suden, I have neiher given nor received unauhorized aid on his academic work. Your Iniials Only: Iniials: Do no wrie in his area Mah 5 Final Exam December, 07 Your U-M ID # (no uniqname):

More information

Unsteady Flow Problems

Unsteady Flow Problems School of Mechanical Aerospace and Civil Engineering Unseady Flow Problems T. J. Craf George Begg Building, C41 TPFE MSc CFD-1 Reading: J. Ferziger, M. Peric, Compuaional Mehods for Fluid Dynamics H.K.

More information

4.1 - Logarithms and Their Properties

4.1 - Logarithms and Their Properties Chaper 4 Logarihmic Funcions 4.1 - Logarihms and Their Properies Wha is a Logarihm? We define he common logarihm funcion, simply he log funcion, wrien log 10 x log x, as follows: If x is a posiive number,

More information

Announcements: Warm-up Exercise:

Announcements: Warm-up Exercise: Fri Apr 13 7.1 Sysems of differenial equaions - o model muli-componen sysems via comparmenal analysis hp//en.wikipedia.org/wiki/muli-comparmen_model Announcemens Warm-up Exercise Here's a relaively simple

More information

d 1 = c 1 b 2 - b 1 c 2 d 2 = c 1 b 3 - b 1 c 3

d 1 = c 1 b 2 - b 1 c 2 d 2 = c 1 b 3 - b 1 c 3 and d = c b - b c c d = c b - b c c This process is coninued unil he nh row has been compleed. The complee array of coefficiens is riangular. Noe ha in developing he array an enire row may be divided or

More information

Echocardiography Project and Finite Fourier Series

Echocardiography Project and Finite Fourier Series Echocardiography Projec and Finie Fourier Series 1 U M An echocardiagram is a plo of how a porion of he hear moves as he funcion of ime over he one or more hearbea cycles If he hearbea repeas iself every

More information

Section 4.4 Logarithmic Properties

Section 4.4 Logarithmic Properties Secion. Logarihmic Properies 5 Secion. Logarihmic Properies In he previous secion, we derived wo imporan properies of arihms, which allowed us o solve some asic eponenial and arihmic equaions. Properies

More information

Math 334 Fall 2011 Homework 11 Solutions

Math 334 Fall 2011 Homework 11 Solutions Dec. 2, 2 Mah 334 Fall 2 Homework Soluions Basic Problem. Transform he following iniial value problem ino an iniial value problem for a sysem: u + p()u + q() u g(), u() u, u () v. () Soluion. Le v u. Then

More information

15. Vector Valued Functions

15. Vector Valued Functions 1. Vecor Valued Funcions Up o his poin, we have presened vecors wih consan componens, for example, 1, and,,4. However, we can allow he componens of a vecor o be funcions of a common variable. For example,

More information

Continuous Time. Time-Domain System Analysis. Impulse Response. Impulse Response. Impulse Response. Impulse Response. ( t) + b 0.

Continuous Time. Time-Domain System Analysis. Impulse Response. Impulse Response. Impulse Response. Impulse Response. ( t) + b 0. Time-Domain Sysem Analysis Coninuous Time. J. Robers - All Righs Reserved. Edied by Dr. Rober Akl 1. J. Robers - All Righs Reserved. Edied by Dr. Rober Akl 2 Le a sysem be described by a 2 y ( ) + a 1

More information

Sections 2.2 & 2.3 Limit of a Function and Limit Laws

Sections 2.2 & 2.3 Limit of a Function and Limit Laws Mah 80 www.imeodare.com Secions. &. Limi of a Funcion and Limi Laws In secion. we saw how is arise when we wan o find he angen o a curve or he velociy of an objec. Now we urn our aenion o is in general

More information

!!"#"$%&#'()!"#&'(*%)+,&',-)./0)1-*23)

!!#$%&#'()!#&'(*%)+,&',-)./0)1-*23) "#"$%&#'()"#&'(*%)+,&',-)./)1-*) #$%&'()*+,&',-.%,/)*+,-&1*#$)()5*6$+$%*,7&*-'-&1*(,-&*6&,7.$%$+*&%'(*8$&',-,%'-&1*(,-&*6&,79*(&,%: ;..,*&1$&$.$%&'()*1$$.,'&',-9*(&,%)?%*,('&5

More information

Section 3.5 Nonhomogeneous Equations; Method of Undetermined Coefficients

Section 3.5 Nonhomogeneous Equations; Method of Undetermined Coefficients Secion 3.5 Nonhomogeneous Equaions; Mehod of Undeermined Coefficiens Key Terms/Ideas: Linear Differenial operaor Nonlinear operaor Second order homogeneous DE Second order nonhomogeneous DE Soluion o homogeneous

More information

An introduction to the theory of SDDP algorithm

An introduction to the theory of SDDP algorithm An inroducion o he heory of SDDP algorihm V. Leclère (ENPC) Augus 1, 2014 V. Leclère Inroducion o SDDP Augus 1, 2014 1 / 21 Inroducion Large scale sochasic problem are hard o solve. Two ways of aacking

More information

WEEK-3 Recitation PHYS 131. of the projectile s velocity remains constant throughout the motion, since the acceleration a x

WEEK-3 Recitation PHYS 131. of the projectile s velocity remains constant throughout the motion, since the acceleration a x WEEK-3 Reciaion PHYS 131 Ch. 3: FOC 1, 3, 4, 6, 14. Problems 9, 37, 41 & 71 and Ch. 4: FOC 1, 3, 5, 8. Problems 3, 5 & 16. Feb 8, 018 Ch. 3: FOC 1, 3, 4, 6, 14. 1. (a) The horizonal componen of he projecile

More information

Brock University Physics 1P21/1P91 Fall 2013 Dr. D Agostino. Solutions for Tutorial 3: Chapter 2, Motion in One Dimension

Brock University Physics 1P21/1P91 Fall 2013 Dr. D Agostino. Solutions for Tutorial 3: Chapter 2, Motion in One Dimension Brock Uniersiy Physics 1P21/1P91 Fall 2013 Dr. D Agosino Soluions for Tuorial 3: Chaper 2, Moion in One Dimension The goals of his uorial are: undersand posiion-ime graphs, elociy-ime graphs, and heir

More information

Expert Advice for Amateurs

Expert Advice for Amateurs Exper Advice for Amaeurs Ernes K. Lai Online Appendix - Exisence of Equilibria The analysis in his secion is performed under more general payoff funcions. Wihou aking an explici form, he payoffs of he

More information

LAB # 2 - Equilibrium (static)

LAB # 2 - Equilibrium (static) AB # - Equilibrium (saic) Inroducion Isaac Newon's conribuion o physics was o recognize ha despie he seeming compleiy of he Unierse, he moion of is pars is guided by surprisingly simple aws. Newon's inspiraion

More information

SMT 2014 Calculus Test Solutions February 15, 2014 = 3 5 = 15.

SMT 2014 Calculus Test Solutions February 15, 2014 = 3 5 = 15. SMT Calculus Tes Soluions February 5,. Le f() = and le g() =. Compue f ()g (). Answer: 5 Soluion: We noe ha f () = and g () = 6. Then f ()g () =. Plugging in = we ge f ()g () = 6 = 3 5 = 5.. There is a

More information

Math 334 Test 1 KEY Spring 2010 Section: 001. Instructor: Scott Glasgow Dates: May 10 and 11.

Math 334 Test 1 KEY Spring 2010 Section: 001. Instructor: Scott Glasgow Dates: May 10 and 11. 1 Mah 334 Tes 1 KEY Spring 21 Secion: 1 Insrucor: Sco Glasgow Daes: Ma 1 and 11. Do NOT wrie on his problem saemen bookle, excep for our indicaion of following he honor code jus below. No credi will be

More information

1 Review of Zero-Sum Games

1 Review of Zero-Sum Games COS 5: heoreical Machine Learning Lecurer: Rob Schapire Lecure #23 Scribe: Eugene Brevdo April 30, 2008 Review of Zero-Sum Games Las ime we inroduced a mahemaical model for wo player zero-sum games. Any

More information

Biol. 356 Lab 8. Mortality, Recruitment, and Migration Rates

Biol. 356 Lab 8. Mortality, Recruitment, and Migration Rates Biol. 356 Lab 8. Moraliy, Recruimen, and Migraion Raes (modified from Cox, 00, General Ecology Lab Manual, McGraw Hill) Las week we esimaed populaion size hrough several mehods. One assumpion of all hese

More information

MATH 4330/5330, Fourier Analysis Section 6, Proof of Fourier s Theorem for Pointwise Convergence

MATH 4330/5330, Fourier Analysis Section 6, Proof of Fourier s Theorem for Pointwise Convergence MATH 433/533, Fourier Analysis Secion 6, Proof of Fourier s Theorem for Poinwise Convergence Firs, some commens abou inegraing periodic funcions. If g is a periodic funcion, g(x + ) g(x) for all real x,

More information

EECE 301 Signals & Systems Prof. Mark Fowler

EECE 301 Signals & Systems Prof. Mark Fowler EECE 3 Signals & Sysems Prof. Mark Fowler Noe Se #2 Wha are Coninuous-Time Signals??? Reading Assignmen: Secion. of Kamen and Heck /22 Course Flow Diagram The arrows here show concepual flow beween ideas.

More information

The equation to any straight line can be expressed in the form:

The equation to any straight line can be expressed in the form: Sring Graphs Par 1 Answers 1 TI-Nspire Invesigaion Suden min Aims Deermine a series of equaions of sraigh lines o form a paern similar o ha formed by he cables on he Jerusalem Chords Bridge. Deermine he

More information

Analyze patterns and relationships. 3. Generate two numerical patterns using AC

Analyze patterns and relationships. 3. Generate two numerical patterns using AC envision ah 2.0 5h Grade ah Curriculum Quarer 1 Quarer 2 Quarer 3 Quarer 4 andards: =ajor =upporing =Addiional Firs 30 Day 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 andards: Operaions and Algebraic Thinking

More information

PROBLEMS FOR MATH 162 If a problem is starred, all subproblems are due. If only subproblems are starred, only those are due. SLOPES OF TANGENT LINES

PROBLEMS FOR MATH 162 If a problem is starred, all subproblems are due. If only subproblems are starred, only those are due. SLOPES OF TANGENT LINES PROBLEMS FOR MATH 6 If a problem is sarred, all subproblems are due. If onl subproblems are sarred, onl hose are due. 00. Shor answer quesions. SLOPES OF TANGENT LINES (a) A ball is hrown ino he air. Is

More information

Math Wednesday March 3, , 4.3: First order systems of Differential Equations Why you should expect existence and uniqueness for the IVP

Math Wednesday March 3, , 4.3: First order systems of Differential Equations Why you should expect existence and uniqueness for the IVP Mah 2280 Wednesda March 3, 200 4., 4.3: Firs order ssems of Differenial Equaions Wh ou should epec eisence and uniqueness for he IVP Eample: Consider he iniial value problem relaed o page 4 of his eserda

More information

The Arcsine Distribution

The Arcsine Distribution The Arcsine Disribuion Chris H. Rycrof Ocober 6, 006 A common heme of he class has been ha he saisics of single walker are ofen very differen from hose of an ensemble of walkers. On he firs homework, we

More information

Guest Lectures for Dr. MacFarlane s EE3350 Part Deux

Guest Lectures for Dr. MacFarlane s EE3350 Part Deux Gues Lecures for Dr. MacFarlane s EE3350 Par Deux Michael Plane Mon., 08-30-2010 Wrie name in corner. Poin ou his is a review, so I will go faser. Remind hem o go lisen o online lecure abou geing an A

More information

Online Appendix to Solution Methods for Models with Rare Disasters

Online Appendix to Solution Methods for Models with Rare Disasters Online Appendix o Soluion Mehods for Models wih Rare Disasers Jesús Fernández-Villaverde and Oren Levinal In his Online Appendix, we presen he Euler condiions of he model, we develop he pricing Calvo block,

More information

Ordinary Differential Equations

Ordinary Differential Equations Lecure 22 Ordinary Differenial Equaions Course Coordinaor: Dr. Suresh A. Karha, Associae Professor, Deparmen of Civil Engineering, IIT Guwahai. In naure, mos of he phenomena ha can be mahemaically described

More information

Random Walk with Anti-Correlated Steps

Random Walk with Anti-Correlated Steps Random Walk wih Ani-Correlaed Seps John Noga Dirk Wagner 2 Absrac We conjecure he expeced value of random walks wih ani-correlaed seps o be exacly. We suppor his conjecure wih 2 plausibiliy argumens and

More information

Finish reading Chapter 2 of Spivak, rereading earlier sections as necessary. handout and fill in some missing details!

Finish reading Chapter 2 of Spivak, rereading earlier sections as necessary. handout and fill in some missing details! MAT 257, Handou 6: Ocober 7-2, 20. I. Assignmen. Finish reading Chaper 2 of Spiva, rereading earlier secions as necessary. handou and fill in some missing deails! II. Higher derivaives. Also, read his

More information

1.6. Slopes of Tangents and Instantaneous Rate of Change

1.6. Slopes of Tangents and Instantaneous Rate of Change 1.6 Slopes of Tangens and Insananeous Rae of Change When you hi or kick a ball, he heigh, h, in meres, of he ball can be modelled by he equaion h() 4.9 2 v c. In his equaion, is he ime, in seconds; c represens

More information

72 Calculus and Structures

72 Calculus and Structures 72 Calculus and Srucures CHAPTER 5 DISTANCE AND ACCUMULATED CHANGE Calculus and Srucures 73 Copyrigh Chaper 5 DISTANCE AND ACCUMULATED CHANGE 5. DISTANCE a. Consan velociy Le s ake anoher look a Mary s

More information

Comparison between the Discrete and Continuous Time Models

Comparison between the Discrete and Continuous Time Models Comparison beween e Discree and Coninuous Time Models D. Sulsky June 21, 2012 1 Discree o Coninuous Recall e discree ime model Î = AIS Ŝ = S Î. Tese equaions ell us ow e populaion canges from one day o

More information

Designing Information Devices and Systems I Spring 2019 Lecture Notes Note 17

Designing Information Devices and Systems I Spring 2019 Lecture Notes Note 17 EES 16A Designing Informaion Devices and Sysems I Spring 019 Lecure Noes Noe 17 17.1 apaciive ouchscreen In he las noe, we saw ha a capacior consiss of wo pieces on conducive maerial separaed by a nonconducive

More information

V The Fourier Transform

V The Fourier Transform V he Fourier ransform Lecure noes by Assaf al 1. Moivaion Imagine playing hree noes on he piano, recording hem (soring hem as a.wav or.mp3 file), and hen ploing he resuling waveform on he compuer: 100Hz

More information

Math 116 Second Midterm March 21, 2016

Math 116 Second Midterm March 21, 2016 Mah 6 Second Miderm March, 06 UMID: EXAM SOLUTIONS Iniials: Insrucor: Secion:. Do no open his exam unil you are old o do so.. Do no wrie your name anywhere on his exam. 3. This exam has pages including

More information