Numerical Methods for Partial Differential Equations

Size: px
Start display at page:

Download "Numerical Methods for Partial Differential Equations"

Transcription

1 Numerical Methods for Partial Differetial Equatios Eric de Sturler Uiversity of Illiois at Urbaa-Champaig Cosider the liear first order hyperbolic equatio Øu Øu Øt + a(x, t) Øx = 0 I spite of its simple appearece it is ot always easy to solve accurately. Let s first review the exact solutio (agai). dx Alog the curve defied by dt = a du (x, t) we have dt = Øu Øt + Øu dx Øx dt = 0, ad so the solutio does ot chage. The solutio at ay poit i time is the defied by fidig where the charateristic curve goig through that poit crosses the boudary (i space or time) of the domai. Hece we ca start with a set of poits ad itegrate (trace) the characteristic curves from those poits /15/01

2 So we ca take a set of poits x0, x1, x2, x3,... ad itegrate the charateristic curves umerically with startig poit x(0) = xj. The for ay poit (x,t) o such a curve the solutio will be u(x,t) = u(xj, 0) = u 0 (x) the give iitial data (of the PDE). If a(x, t) is Lipschitz cotiuous i x ad cotiuous i t the characteristic curves caot cross ad the solutio is everywhere well-defied (i classical sese) give appropriate boudary ad iitial coditio. If a is costat the characteristic curves are straight parallel lies x at = k ad the solutio satisfies u(x, t) = u 0 (x at). If the equatio is oliear (quasi-liear) ad a depeds oly o u the characteristics are also straight lies (why?), but they will, i geeral, ot be parallel. The solutio satisfies u(x, t) = u 0 (x a(u)t) ad is costat alog the lie x a(u)t = k. As log as the characteristics do ot cross or fa out the solutio is well-defied. t u x /15/01

3 The characteristics play a essetial role i the aalysis of umerical schemes for hyperbolic equatios. I geeral we study so-called systems of coservatio laws: Øu Øt = Øf(u) Øx, where u is a vector of ukow fuctios ad f is a vector of so-called flux fuctios. Let u = [u 1 u 2 ] T ad f(u) = [f 1 (u) f 2 (u)] T the we ca write u t 1 u t 2 + Øf 1 Øf 1 Øu 1 Øu 2 Øf 2 Øf 2 Øu 1 Øu 2 Øu 1 Øx Øu 2 Øx = 0 u t 1 Øf 1 Øf 1 Øu 1 Øf 2 Øf 2 Øu 1 Øu 2 Øu 1 Øu Cosider Øx Øu = 0, ad write A(u) = Øf (Jacobia), the u 2 Øu t Øx the system ca be writte as ut = A(u)ux ad the characteristic speeds are give by the eigevalues of A(u). The system of equatios is called hyperbolic if A has all real eigevalues ad ad full set of idepedet eigevectors. I such a case the matrix A(u) is diagoalizable: A = S 1 S w SA = S where S is the matrix of left eigevectors. S ad are fuctios of u. This gives the characteristic ormal form Sut = Sux /15/01

4 If it is possible to defie a vector r(u) such that r t = Su t ad r x = Su x ( r is called a vector of Riema ivariats), the we ca write r t + r x = 0 where = (r) ad i geeral each compoet of will deped o all compoets of r. Hece, the characteristic curves will geerally ot be straight lies. For a system of more tha 2 equatios the Riema ivariats may ot exist. To solve this system usig the method of characteristics we have to itegrate first the characteristic curves ad the the solutio alog those curves. Especially i more spatial dimesios this becomes very complicated (although it is supposed to lead to beautiful geometric problems). Lookig at more pragmatic solutio methods we first cosider explicit methods. First we look at. ut + aux = 0 We use the (upwid) discretizatio U j +1 U j t + a U j U j 1 x = 0, which leads to U j +1 = U j a t x U j U j 1 t U j +1 = U j a t x U j U j 1 U +1 j = (1 )U j + U j 1, where = a t +1 x. So U j depeds o the two values U j ad U j 1. Each of these i tur depeds o two values at the time level 1, ad so o till we get to the iitial coditio. We see that depeds o the values U j 1, U j +1,, U j. U j +1 0,U j /15/01

5 +1 0 We see that U j depeds o the values U j 1,U j, U j +1,, U j. P The solutio at (space-time) poit P depeds o the data i a triagle as idicated i the above figure. For a ihomogeeous equatio with rhs term h j the solutio at P depeds o data give at every grid poit i the triagle. Hece, we call this triagle the domai of depedece. I cotrast for the PDE the domai of depedece is just the characteristic curve up till (icludig) the iitial value o that curve. A ihomogeeous term will be itegrated over this curve. It turs out for the iteratio to be stable the domai of depedece of the umerical scheme (at each poit) must cotai the domai of depedece of the differetial equatio at that poit. This coditio is called the Courat-Friedrich-Lewy coditio or short CFL coditio. This coditio is ecessary but ot sufficiet. It is easy to see that if the coditio is ot satisfied the solutio may ot coverge, because we ca alter data alog the characteristic curve that is ot picked up by the umerical scheme (see also book p.88&89) /15/01

6 The CFL coditio also shows why we must use a upwid differece scheme (if we use a oe-sided scheme). Why? We see that the CLF coditio gives a time step costrait a t x [ 1 +1 We see that for a > 0 we eed to use U j 1 ad U j to approximate U j ad for a < 0 we eed to use U j+1 ad U j (for the explicit method). Takig both cases ito accout we get for the CFL coditio a t x [ 1 We might be tempted to take a cetral (first) differece to take both possibilities ito accout immediately. The cetral scheme gives U +1 j = U j a t 2 x U j+1 U j 1 If we satisfy x we satisfy the CFL coditio for both sigs of a. Now cosider the stability usig Fourier aalysis for costat a igorig boudary coditios. a t Substitute U j = (k)e ikj x ito the iteratio: (k)e ikj x a t 2 x ( (k)e ikj x e ik x (k)e ikj x e ik x ) = (k)e ikj x (1 a t 2 x ( e ik x e ik x )) = (k)e ikj x (1 a t 2 x 2i si k x ) = (k)e ikj x (1 a t x i si k x ) /15/01

7 So we get (k) = (1 a t x i si k x ) ad the scheme is ustable for (almost) ay k ad ay t. So the cetral scheme satisfies the CFL coditio but is evertheless ustable. Which shows that the CFL coditio is ecessary, but ot sufficiet. Aother scheme usig the same three poit o the old time level is the upwid scheme: U j +1 = U j a t x +xu j for a < 0 U j a t x xu j for a > 0 where a = a j. To study this scheme we oly eed to cosider oe case, say a > 0 U j +1 = U j a t x U j U j 1 +1 (k)e ikj x = (k)e ikj x a t x ( (k)e ikj x (k)e ikj x e ik x ) w +1 (k)e ikj x = (k)e ikj x (1 a t x ( 1 e ik x )) w (k) = (1 a t x ( 1 e ik x )) (k) 2 = (1 + e ik x )(1 + e ik x ) = (1 ) (1 ) e ik x (k) 2 = (1 ) (1 ) cos k x = + 2(1 ) (1 2 si 2 k 2 x ) (k) 2 = 1 4(1 ) si k x /15/01

8 I order for the scheme to be stable, we eed (k) 2 = 1 4(1 ) si 2 1 2k x [ 1 which meas (1 ) m 0 u 0 [ [ 1 ( 0 [ a t x [ 1) ad (1 ) [ 1 2 Now for 0 [ [ 1 we have max(1 ) = 1 4 for = 1 2. So the scheme is stable for 0 [ [ 1. We fid the essetially the same amplificatio factor for a < 0 where a is replaced by a. The scheme clearly satisfies the CFL coditio ad so i this case the CFL coditio gives the correct stability limits. Apart from stability we also eed to cosider the error behavior of this scheme. Agai we assume a > 0 ad that the grid satisfies the CFL cod. A 1- C P t B +1 The solutio at U j (P) equals the solutio at the poit where the characteristic crosses the lie t = t (C). We ca fid that value usig liear iterpolatio of the solutio betwee the poits ad. U j 1 This turs out to be exactly the value that the explicit first order upwid differece scheme gives. U j /15/01

9 First ote that the characteristic speed is a. So the characteristic that +1 passes through x j crosses the lie t = t at the poit x j a t dx (the characteristic is defied by = a t dx = a dt) dt This gives a relative weight (i liear iterpolatio) to U j of 1 a t x ad to of. So liear iterpolatio leads to the update U j 1 a t x U +1 j = (1 a t ) x U j + a t x U j 1 which is exactly the update of the explicit scheme with upwid first order fiite differece. I additio, for small eough t all coefficiets are positive, ad i that case the right side coefficiets sum to 1 (left side coefficiet). So we satisfy a maximum priciple. Now cosider the trucatio error ( a > 0): T j = u j +1 u j t a u j u j 1 j x = [u t tu tt + + au x 1 2 xu xx + ] j T j = [ 1 2 tu tt 1 2 a xu xx] j + So the trucatio error is O( t + x). If a is costat we have u tt = a 2 u xx ad T j = 1( 2 1 )a xu xx + x ad so the choice t = a removes the lowest order compoets of the trucatio error. Note that this exactly the CFL coditio (limit o time step) /15/01

10 Proceedig i the usual way, we fid for the error e +1 j = (1 )e j + e j 1 tt j From which we ca derive, assumig 0 [ [ 1, E +1 = max j e +1 j [ E + tmax j T j ad with T j [ T we fid E [ tt [ t f T So if we assume T [ tm tt + a xm xx, we ca make the error arbitrarily small by takig small eough time steps ad grid size while satisfyig the requiremets for a maximum priciple. It is easy to see that our aalysis remais valid for variable a ad the equatio for the error remais valid with variable v. Moreover, we have to satisfy our stability requiremet at every poit. Also check that if a chages sig ad we adapt the local discretizatio (upwid) the equatio for the error remais valid (with = a j ). Clearly, if a ca chage sig we may have to adapt the boudary coditios. Mai poit: the aalysis remais valid. t x /15/01

11 However, if we allow the iitial coditio to cotai poits where the solutio or its derivatives are ot cotiuous we have a problem. The equatio is the ot well-defied. I the parabolic equatio we showed that after some ifiitesimal time the solutio will be differetiable (at least if the Fourier expasio coverges). This is obviously ot the case here. I geeral, discotiuities of the solutio or its derivatives (may) propagate through the solutio. Hece a classical solutio does ot exist ad we must look for a geeralized solutio. As we saw i a earlier example, for oliear equatios discotiuities may arise eve if the iitial coditio is cotiuous with cotiuous (higher) derivatives. Our stability aalysis does ot hold for such cases. For Fourier aalysis we agai assume that a > 0 ad costat. Sice we kow the exact solutio looks like u 0 (x at) we take for the Fourier aalysis u(x, t) = e i(kx+ t) The, u satisfies the differetial equatio exactly if = ka Note that the amplitude of u does ot chage (o dampig). The solutio at a give poit chages i a time step i phase by ak t We saw that the umerical solutio usig our first order upwid scheme has eigefuctios ad amplificatio factor e ikj x (k) = 1 (1 e ik x ) /15/01

12 We saw that the umerical solutio usig our first order upwid scheme has eigefuctios ad amplificatio factor. e ikj x (k) = 1 (1 e ik x ) For 0 [ [ 1 this scheme is dampig (i cotrast to exact solutio). For the chage i phase we fid arg = arcta Followig the book we fid (for small (k x)[1 1 6 ( 1 )(1 2 )(k x) 2 + ] sik x 1 + cos x k x) that the phase chage is Amplitude error: O((k x) 2 ) gives global error of O(k x) Phase error: ak t $ O([k x] 2 ), relative error O([k x] 2 ) Chage i amplitude: (k) 2 = 1 4(1 ) si 2 1 2k x sik x 1 + cos x Chage i phase: arg = arcta ad (for small k x) (k x)[1 1 6 ( 1 )(1 2 )(k x) 2 + ] We see that for = 1 ad = 1 2 we have o phase error, ad i additio for = 1 we also do t have a amplitude error. So for = 1 the umerical solutio is exact. Of course, this caot be achieved for variable a (for a fixed mesh) /15/01

13 I may cases the (first order) upwid scheme is ot sufficietly accurate; maily because of its dampig of high frequecies. This teds to smooth steep gradiets. We saw that the upwid scheme could be derived by assumig a straight (lie) characteristic with slope ad usig liear iterpolatio at the previous time level. So, let s cosider quadratic iterpolatio at the previous time level (ad everythig else the same). So, let s cosider quadratic iterpolatio at the previous time level (ad everythig else the same). Usig a Lagrage iterpolatio formula gives (1- ) x x P t A Q B C (1+ ) 2 u A + (1 2 )u B ( 1 ) 2 u C. This gives the iteratio U +1 j = ( 1+ ) 2 U j 1 + (1 2 )U j ( 1 ) 2 U j /15/01

14 The scheme, U +1 j = (1+ ) 2 U j 1 + (1 2 )U j (1 ) Lax-Wedroff scheme. We ca also write this as U j +1 = U j 0x U j x 2 U j Fourier aalysis the leads to (k) = 1 i si k x 2 2 si k x This gives 2 = (1 2 ) si k x arg = arcta 2 U j+1 sik x si k x l [1 1 6 ( 1 2 ) 2 + ], is called the 2 = (1 2 ) si 4 1 2k x arg = arcta si k x si k x l [1 1 6 ( 1 2 ) 2 + ] Compared with the upwid scheme we see that Lax-Wedroff has much smaller dampig si 4 (k x/2) (especially for small k x) has same order of phase error (but larger o average) The phase error is always egative, so the scheme lags i time /15/01

15 For use with variable a we rederive the scheme usig Taylor approx. u(x, t + t) = u(x, t) + tu t t2 u tt t3 u ttt + Next we covert time derivatives ito space derivatives usig the PDE: u t = au x This gives u tt = (au x ) t = a t u x au xt = a t u x a(u t ) x = a t u x a( au x ) x u tt = a t u x + a(au x ) x We substitute ito the Taylor approximatio... u(x, t + t) = u(x, t) a tu x t2 [ a t u x + a(au x ) x ] + O( t 3 ) Discretizatio the gives U +1 j = U j a j t 0xU j x t2 (a t ) 0xU j j x + a j x a j Oe simplificatio is to replace the (a t ) j term: a j t 0xU j x 1( 2 a t ) j t 2 0xU j x xu j x 2 = t a j + 1( 2 a t ) j t 0xU j x +1/2 l ta 0xU j j x We see from U +1 j = (1+ ) 2 U j 1 + (1 2 )U j (1 ) 2 U j+1 that the scheme does ot satisfy a maximum priciple, sice ot all coefficiets are positive. (they do form a covex combiatio). Hece, we may expect the scheme to have oscillatios /15/01

16 Coservatio laws take the form u t + Ø Øx f (u) where u is a fuctio of x ad t ad f is a fuctio of u oly. We have Ø Øx f (u) = f u u x, which we have already studied with f u h a(u) We ca write Lax-Wedroff for this equatio: u t = [f(u)] x u tt = f xt = f tx = [f u u t ] x = [f u f x ] x = [af x ] x u t = [f(u)] x u tt = f xt = f tx = [f u u t ] x = [f u f x ] x = [af x ] x This gives for Lax-Wedroff (usig previous Taylor approximatio): U j +1 = U j t x 0x f U j ( t x )2 x a U j x f U j Typically, i x a U j we replace U j!1/2 by 2 U j + U j!1. 1 Furthermore, substitutig for F j f U j ad A j!1/2 for a U j!1/2 we get U j +1 = U j t 2 x 1 A t j+1/2 x +x F j A t j 1/2 x x F j /15/01

17 The coservative form of Burger s (iviscid) equatio ut + uux = 0 is give by ut + ( 1 2u 2 ) x = 0 which gives f(u) = 1 2u 2 As log as o shocks develop, i.e. o characteristics cross or fa out, the solutio is easily obtaied from the characteristics: dx dt = u alog which the (iitial) solutio propagates (is costat). The solutio is the give by. u(x, t) = u 0 (x tu(x, t)) After the characteristics cross the solutio becomes formally multivalued. I certai coditios this eve makes sese physically, such as breakig waves (o the beach), but i may others, such as pressure i a gas, it does ot. I the latter case we eed to pick oe solutio from the set of solutios. Typically oly oe solutio is physically relevat. I the quasiliear case it is kow there is oly oe physically relevat solutio. I geeral we refer to some selected physical solutio as a weak or geeralized solutio. There are several ways to derive this solutio. Oe way is the vaishig viscosity solutio. First we cosider the solutio with small viscosity: u : ut + uux = uxx. The we take the limit for the viscosity ( ) goig to zero: lim d0 u /15/01

18 A alterative way to derive/defie a weak solutio is a solutio that satisfies the equivalet itegral form of the same physical problem. Also ote that at ay time to the left ad to the right of the shock the solutio is well-defied ad at the shock the solutio jumps. So all we eed to kow is the speed with which the shock propagates. It turs out (as we will see) that the shock moves with the average speed across the shock: S = f(ur ) f(u L ) u R u L i u). which is ofte deoted as S = [f] [u] (jump i f divided by jump This coditio for the shock speed is called the Rakie-Hugoiot coditio. Let s cosider the itegral form of the advectio equatio: the chage over a time iterval of the desity or cocetratio u iside some volume is give by the total iflow (per volume) over that time iterval: G u(t + t)dg = G u(t)dg t ØG f(u) $ da d dt G u (t)dg = ØG f(u) $ da Applyig Gauss divergece theorem to the right side gives d dt G u(t)dg = G $ f(u)dg w G u t + $ f(u)dg = 0 I oe dimesio this becomes G u t + f(u) x dg = /15/01

19 This itegral G ut + f(u) x dg = 0 reduces to our differetial equatio if we assume the relatio holds at every poit (arbitrarily small volume) at all times. However, eve if this is ot the case, the itegral equatio still holds. Writig it (more geeral) as G u(t + t)dg = G u(t)dg t t+ t [ ØG f(u) $ da] requires either differetiability i time or i space; just that the itegrals exists. Ay solutio u(x, t) that satisfies this itegral equatio is said to be a weak solutio if the differetial equatio. Now we use the itegral equatio to derive the shock speed. We apply the itegral equatio to a small iterval aroud the shock. We assume the shock is at y(t) where a < y < b. The oedimesioal form of d b dt a u(t)dx = f(u a ) f(u b ) Let I = b a udx = y a udx + b y udx, the we get d dt G u (t)dg = ØG f(u) $ da d dt I = y a u t dx + u L dy dt + b y u t dx u R dy dt = y a f x dx + u L s + b y f x dx u R s d dt I = f (u a ) f(u L ) f(u b ) + f(u R ) + u L s u R s = f(u a ) f(u b ) f(u L ) + f(u R ) + u L s u R s = 0 g f(u R ) f(u L ) = s[u R u L ] is /15/01

20 A alterative derivatio that does t require brigig the d/dt uder the itegral is as follows. We assume a iterval x 1 (t) < y(t) < x 2 (t), which is sufficietly small that we assume u costat o each side of the shock. d x 2 x dt x 1 udx + 2 x1 [f(u)] x dx = 0 w d x 2 dt x 1 udx + f(u(x 2, t)) f(u(x 1, t)) = 0 d x 2 dt x 1 udx = d y x dt x1 udx + 2 y udx = d y dt x1 u 1 x dx + 2 y u 2 dx d ( dt y x 1 )u 1 + d ( dt x 2 y)u 2 = [u 1 u 2 ] dy dt = [u 1 u 2 ]s Fially, this gives (agai) [u 1 u 2 ]s + f(u 2 ) f(u 1 ) = 0 w s = f (u 2 ) f(u 1 ) u 2 u 1 = [ f(u)] [u] Burger s equatio ca be simulated usig Lax-Wedroff for the coservative form U j +1 = U j t 2 x 1 A t j+1/2 x +x F j A t j 1/2 x x F j We ca write the upwid scheme i a aalogous form U j +1 = U j 1 2 t x 1 sga j+1/2 +x F j sg a j 1/2 x F j where a j!1/2 h!xf j!x U j I practice, oe sometimes switches adaptively betwee the two schemes to get the best of both (less dampig ad less oscillatios), followig the work by va Leer /15/01

21 Lax-Wedroff is particularly useful for systems of equatios. The mai reaso is that the stability coditio ivolves oly the magitude of the velocity, ot the sig. Cosider agai ut + [f(u)] x = 0, but with u a vector of ukow fuctios This gives ut = fx ad utt = ftx = (Aut) x = (Afx) x where A is the matrix Øf Øu = Lax-Wedroff the becomes Øf i Øu j ij U j +1 = U j ( t x ) 0x f U j ( t x )2 x A U j x f U j which ca be simplified as before. For the special case that A is costat ad f(u) = Au the scheme becomes U j +1 = U j ( t x ) A 0x U j ( t x )2 A 2 x 2 U j ad we ca apply Fourier aalysis. We substitute (where must be a eigevector of ) U j = e ikj x Û Û A This is a solutio if [ I (I i( t x ) si k xa 2( t x )2 si k xa2 )]Û = 0 For this Û must be a eigevector; let be the correspodig eigevalue The (usig = t/ x) = 1 i sik x 2 2 si k x which is exactly what we get for sigle equatio /15/01

22 Sice = 1 i sik x 2 2 si k x (with = t/ x ) must hold for every eigevalue we have [ 1 g t x [ 1 for all Hece, the scheme is stable if t x [ 1 where is the spectral radius of A, the maximum absolute eigevalue. This geeralizes the cocept of stability to systems of equatios. Note that sice stability for Lax-Wedroff depeds oly o the magitude of the eigevalues, ot o their sig, there is o eed to chage the form of the update with a chage i sig. Chagig the update depedig o the sig would be hard for systems of equatios. We would eed to compute the eigevalues ad eigevectors ad decompose the solutio alog the eigevectors, ad use forward or backward differeces based o the sig of the eigevalues. Lax-Wedroff also has a two-step variat that avoids the computatio of the Jacobia matrix : A U +1/2 j+1/2 = 1 2 U j + U j+1 1( t ) 2 x f U j+1 f U j U +1 j = U j ( t ) x f U +1/2 j+1/2 +1/2 f U j 1/2 It is based o predictig the values at x +1/2 +1/2 j+1/2,t j+1/2 cetral scheme for updatig the ext time level. ad the usig a /15/01

23 Aother popular scheme for u t + au x = 0 is the box scheme P t U +1/2 +1/2 j +U j+1 2 t + a x U +1 j+1/2+u j+1/2 2 x = 0 (for costat a) If ot costat it should be evaluated at +1/2 a a j+1/2. With some work we fid that the scheme is secod order accurate i space ad i time. Whe applied to u t + [f(u)] x = 0 the scheme is writte as t U +1/2 +1/2 j +U j+1 2 t + x F +1 j+1/2+f j+1/2 2 x = 0 where F j h f U j. Although the scheme is implicit, i simple cases it becomes explicit if boudary value is kow. U +1 j+1 = U +1/2 j 1 + j+1/2 1 +1/2 1 j+1/2 U j+1 U+1 j, where +1/2 = a j+1/2. j+1/2 +1/2 t x Assumig a > 0 ad the value of U 0 (t) +1 give, for U 1 all values o the +1 right are kow ad we ca update U 1 explicitly. After that we ca +1 update U 2 explicitly, ad so o. Likewise if a < 0 o the right boudary. For oliear equatios i coservative form the update is slightly more complicated as a oliear equatio has to be solved. For systems of equatios the method becomes truly implicit /15/01

24 Sice ot all coefficiets i the box scheme are positive, it does ot satisfy the maximum priciple. However, it is easy to see that as log as the scheme is applied i the right directio (give ) the CFL coditio is always satisfied. a From Fourier aalysis we fid: (k) = cos 1 2 k x i si 1 2 k x cos 1 2 k x+i si 1 2 k x So (k) = 1 ad arg (k) = 2 arcta ta 1 2 k x l ( 1 2 ) 2 + So we see that the scheme has o dampig ad is absolutely stable as log as we take the discretizatio i the right directio. The box method has a phase advace error for ad a phase lag > 1 error for. [ 1 Sice the scheme does ot satisfy the maximum priciple it also causes oscillatios. Sice the scheme is ot dampig, these oscillatios become mode severe tha for Lax-Wedroff. If these oscillatios become too severe they ca be damped usig a average with. U +1 + (1 )U > /15/01

25 The last scheme we discuss (believe me there are may more) is leap-frog. For the oliear advectio equatio i coservative form u t + [f(u)] x the leap-frog scheme is as follows U j +1 U j 1 2 t + f U j+1 f U j 1 2 x = 0 For u t + au x = 0 it becomes U +1 j = U 1 j a t x U j+1 U j 1 Hece, the method is explicit, but eeds additioal work to start. Assumig U 0 is give, we eed a alterative way to compute U 1. We ca use Lax-Wedroff or ay other coveiet oe-step scheme. After this the leap-frog scheme ca update the further time levels explicitly By ispectio we see that the CFL coditio requires [ 1. I the case f = au (costat a) Fourier aalysis leads to the followig equatio for (k) i si k x = 0 This has the two solutios 1,2 = i si k x! [1 2 si 2 k x] 1/ /15/01

26 The product of the roots equals 1. Hece, for the scheme to be stable, we must require the roots to be complex (so that both have modulus 1) The roots are complex for all k iff 1 2 si 2 k x m 0. Hece [ 1. So Fourier aalysis gives the same coditio as the CFL umber. Note that i the stable case there is o dampig. However, sice there are two solutios for we have oe solutio mode that is spurious. The correct solutio mode correspods to the positive root T = i sik x + [1 2 si 2 k x] 1/2 arg T = arcsi( si k x) l ( 1 2 ) 2 + For the spurious solutio mode we have S l 1[1 + i ] This gives a mode that oscillates ad moves i the wrog directio. I some cases this mode has to be filtered out /15/01

27 The real advatage of the leap-frog method is for (certai) coupled first order equatios: u t + av x = 0 v t + au x = 0 Note that this system of first order equatios is equivalet to the secod order wave equatio (costat ): a u tt + a 2 u xx = 0 It turs out we ca implemet the leap-frog method very efficietly i a so-called staggered scheme. The staggered scheme looks as follows +1-1 V U j-1 j j+1 j-1 j j+1 U j +1 U j t V +3/2 j+1/2 V+1/2 j+1/2 + a V j+1/2 +1/2 V+1/2 j 1/2 x = 0 +1 U j +1 t + a U j+1 x = /15/01

28 This (staggered) discretizatio ca be writte as tu + xv = 0 ad tv + xu = 0 where = a t x ad the two equatios are evaluated at grid poits that are offset by half a cell. I order to apply Fourier aalysis we apply the aalysis to a vector cotaiig both a U compoet ad a V compoet. U j, V j+1/2 = e ikj x (Û, Vˆ) This satisfies the equatios if 1 2i si 1 2 k x Û 2i si 1 2 k x 1 Vˆ = 0 1 2i si 1 2 k x Û for o-zero 2i si 1 2 k x 1 Vˆ = 0 Û Vˆ this meas det 1 2i si 1 2 k x 2i si 1 2 k x 1 = 0 w si k x = 2 2(1 2 2 si k x ) + 1 = 0! = (1 2 2 si k x )! 2 si 1 2 k x si k x! = (1 2 2 s 2 )! 2 s s 2 It is easy to see that for 2 s 2 > 1 oe of the roots will have magitude larger tha 1. So, we must have 2 s 2 [ /15/01

29 ! = (1 2 2 s 2 )! 2 s s 2 For 2 s 2 = 1 we have! = 1. For 2 s 2 < 1 we have! = (1 2 2 s 2 )! 2i s 1 2 s 2, ad 2 = (1 2 2 s 2 ) s 2 (1 2 s 2 ) = 1 For the argumets of the two solutios we have arg! =! arcsi(2 s[1 2 s 2 ] 1/2 ) l! [ ( 1 2 ) 2 + ] So for 2 [ 1 ( s 2 [ 1) the scheme is ot dampig. Note that = 1 correspods to the CFL coditio. The two modes travel i opposite directios with equal speeds. The accuracy of this scheme is better tha the box scheme. The aalysis of amplitude ad phase errors is detailed further i sectio 4.9. Please study carefully! /15/01

30 Some of the umerical schemes discussed require more boudary coditios to start tha give for the PDE. Hece, we must fid meaigful boudary coditios i other ways. This holds, for example, for both the Lax-Wedroff scheme ad the ustaggered leap-frog scheme. Oe possibility is to use the characteristic curves that move ito the domai to defie a boudary coditio cosistet with the physics. Aother possibility is to use coservatio priciples to derive a boudary coditio that gives the same coservatio property for the differece scheme as for the PDE. We also must assess the stability ad accuracy resultig from our choices. Some relatively easy choices are to use schemes that do ot eed iformatio from both sides for the last poit (o the side where o boudary coditio is give) such as the upwid scheme. Aother possibility is to set the first or higher derivatives of uspecified variables to zero o the boudary. To maitai some coservative scheme we could proceed as follows Assume u(0, t) = 0 ad 1 u(x, t)dx = 1 0 u t dx = 1 0 f x dx d dt f x dx = f(u(0, t)) f(u(1, t)) For Lax-Wedroff we could base the boudary value o x j U +1 +1/2 j U j = t[f(u 1/2 ) +1/2 f(u J 1/2 )] /15/01

31 A importat way of choosig ad aalyzig boudary coditios is to cosider what happes to a wave travellig out of the domai. Care must be take ot to create spurious solutios reflectig back ito the domai. A detailed aalysis for oe particular example is give i the book (pp ). Cosider the equatios u t + av x = 0 v t + au x = 0 with boudary coditio v = 0 at x = 0 ad oe additioal bc (to be specified). Exact solutio: waves movig to the right: u R = e ik(x at) ad v R = e ik(x at) waves movig to the left: u L = e ik(x+at) ad v L = e ik(x+at) We cosider solvig these equatios usig the ustaggered leap-frog method. We substitute for possible solutios: U j = j Û ad V j = j Vˆ (ote these are compoets of a vector) We substitute this ito the differece scheme U j +1 U j 1 + a t x V j+1 V j +1 V j 1 + a t x U j+1 V j 1 = 0 U j 1 = 0 Substitutig our solutio above gives ad ( 2 1) ( 2 1) ( 2 1) ( 2 1) Û Vˆ = /15/01

32 ( 2 1) ( 2 1) ( 2 1) ( 2 1) Û Vˆ = 0 For a otrivial solutio we eed det ( 2 1) ( 2 1) ( 2 1) ( 2 1) = 0 g ( 2 1) ( 2 1) 2 = 0 We are iterested i spatial solutios (to defie boudary coditios) so we cosider solutio give some. We fid =! ( ) 1/2!1/2 where = ( 2 1). Cosider ow the solutio for some low frequecy mode We take l e ika t l 1 + ika t; this gives l 2ik x. For small eough we get from =! ( ) 1/2!1/2 that l!(1 )!1/2 This gives (1 ) 1/2 l e ik x which correspods to a right movig wave ad (1 ) 1/2 l e ik x which correspods to a left movig wave. The two waves correspodig to (1 )!1/2 are the spurious modes from the leap-frog method. For each we deote the roots as RT, LT, RS, LS. From the approximate solutios for above we see that RS = RT, ad LS = LT = 1 RT /15/01

33 For the eigevalues from ( 2 1) ( 2 1) ( 2 1) ( 2 1) Û we get for each solutio. Vˆ = 0 Û Vˆ = 1 2 We ca costruct solutios with various spatial behavior ad a give time variatio (from choice of ) from these four solutios. Now suppose that the true left movig wave has uit amplitude ad there is o cotamiatio with a spurious mode (additioal bc). Solutio: U j = V j LT j Û LT VˆLT j + RT Û RT VˆRT + Û RS VˆRS We must pick the boudary coditios such that ad take desired values. Clearly we wat = 0 (o spurious mode) ad = 1 to match the exact solutio. It turs out we ca do this by takig U 0 U 1 = 0 ad V 0 + V 1 = 0 The coditio o V approximates the coditio v = 0 o the left. The first correspods to a zero first derivative. Now we substitute these ito our solutio ad use the relatios for. We use the ormalizatio Û LT = Û RT = Û RS = 1. The first boudary coditio gives: (1 LT ) + (1 RT ) + (1 RS ) = 0 which becomes (relatios for ) 1 (1 RT ) + (1 RT ) + (1 + RT ) = /15/01

34 From the secod boudary coditio, V 0 + V 1 = 0, we get 1 (1 + RT )VˆLT + (1 + RT )VˆRT + (1 RT )VˆRS = 0 Usig the relatio (previously give) for the eigevectors we get (after some further algebraic maipulatio --see book--) 1 (1 + RT ) + (1 + RT ) (1 RT ) = 0 Together with 1 (1 RT ) + (1 RT ) + (1 + RT ) = 0 1 this gives the solutio: = RT ad = 0 For higher dimesioal (spatial) problems several of the schemes ca be exteded relatively easily; however, the stability properties may chage. May specialized schemes exist that approximate upwid schemes. Please study sectio 4.11 carefully /15/01

Lecture 8: Solving the Heat, Laplace and Wave equations using finite difference methods

Lecture 8: Solving the Heat, Laplace and Wave equations using finite difference methods Itroductory lecture otes o Partial Differetial Equatios - c Athoy Peirce. Not to be copied, used, or revised without explicit writte permissio from the copyright ower. 1 Lecture 8: Solvig the Heat, Laplace

More information

Math 257: Finite difference methods

Math 257: Finite difference methods Math 257: Fiite differece methods 1 Fiite Differeces Remember the defiitio of a derivative f f(x + ) f(x) (x) = lim 0 Also recall Taylor s formula: (1) f(x + ) = f(x) + f (x) + 2 f (x) + 3 f (3) (x) +...

More information

PRELIM PROBLEM SOLUTIONS

PRELIM PROBLEM SOLUTIONS PRELIM PROBLEM SOLUTIONS THE GRAD STUDENTS + KEN Cotets. Complex Aalysis Practice Problems 2. 2. Real Aalysis Practice Problems 2. 4 3. Algebra Practice Problems 2. 8. Complex Aalysis Practice Problems

More information

Taylor expansion: Show that the TE of f(x)= sin(x) around. sin(x) = x - + 3! 5! L 7 & 8: MHD/ZAH

Taylor expansion: Show that the TE of f(x)= sin(x) around. sin(x) = x - + 3! 5! L 7 & 8: MHD/ZAH Taylor epasio: Let ƒ() be a ifiitely differetiable real fuctio. A ay poit i the eighbourhood of 0, the fuctio ƒ() ca be represeted by a power series of the followig form: X 0 f(a) f() f() ( ) f( ) ( )

More information

Lesson 10: Limits and Continuity

Lesson 10: Limits and Continuity www.scimsacademy.com Lesso 10: Limits ad Cotiuity SCIMS Academy 1 Limit of a fuctio The cocept of limit of a fuctio is cetral to all other cocepts i calculus (like cotiuity, derivative, defiite itegrals

More information

6.3 Testing Series With Positive Terms

6.3 Testing Series With Positive Terms 6.3. TESTING SERIES WITH POSITIVE TERMS 307 6.3 Testig Series With Positive Terms 6.3. Review of what is kow up to ow I theory, testig a series a i for covergece amouts to fidig the i= sequece of partial

More information

Computational Fluid Dynamics. Lecture 3

Computational Fluid Dynamics. Lecture 3 Computatioal Fluid Dyamics Lecture 3 Discretizatio Cotiued. A fourth order approximatio to f x ca be foud usig Taylor Series. ( + ) + ( + ) + + ( ) + ( ) = a f x x b f x x c f x d f x x e f x x f x 0 0

More information

( ) (( ) ) ANSWERS TO EXERCISES IN APPENDIX B. Section B.1 VECTORS AND SETS. Exercise B.1-1: Convex sets. are convex, , hence. and. (a) Let.

( ) (( ) ) ANSWERS TO EXERCISES IN APPENDIX B. Section B.1 VECTORS AND SETS. Exercise B.1-1: Convex sets. are convex, , hence. and. (a) Let. Joh Riley 8 Jue 03 ANSWERS TO EXERCISES IN APPENDIX B Sectio B VECTORS AND SETS Exercise B-: Covex sets (a) Let 0 x, x X, X, hece 0 x, x X ad 0 x, x X Sice X ad X are covex, x X ad x X The x X X, which

More information

TMA4205 Numerical Linear Algebra. The Poisson problem in R 2 : diagonalization methods

TMA4205 Numerical Linear Algebra. The Poisson problem in R 2 : diagonalization methods TMA4205 Numerical Liear Algebra The Poisso problem i R 2 : diagoalizatio methods September 3, 2007 c Eiar M Røquist Departmet of Mathematical Scieces NTNU, N-749 Trodheim, Norway All rights reserved A

More information

Chapter 4. Fourier Series

Chapter 4. Fourier Series Chapter 4. Fourier Series At this poit we are ready to ow cosider the caoical equatios. Cosider, for eample the heat equatio u t = u, < (4.) subject to u(, ) = si, u(, t) = u(, t) =. (4.) Here,

More information

L 5 & 6: RelHydro/Basel. f(x)= ( ) f( ) ( ) ( ) ( ) n! 1! 2! 3! If the TE of f(x)= sin(x) around x 0 is: sin(x) = x - 3! 5!

L 5 & 6: RelHydro/Basel. f(x)= ( ) f( ) ( ) ( ) ( ) n! 1! 2! 3! If the TE of f(x)= sin(x) around x 0 is: sin(x) = x - 3! 5! aylor epasio: Let ƒ() be a ifiitely differetiable real fuctio. At ay poit i the eighbourhood of =0, the fuctio ca be represeted as a power series of the followig form: X 0 f(a) f() ƒ() f()= ( ) f( ) (

More information

Most text will write ordinary derivatives using either Leibniz notation 2 3. y + 5y= e and y y. xx tt t

Most text will write ordinary derivatives using either Leibniz notation 2 3. y + 5y= e and y y. xx tt t Itroductio to Differetial Equatios Defiitios ad Termiolog Differetial Equatio: A equatio cotaiig the derivatives of oe or more depedet variables, with respect to oe or more idepedet variables, is said

More information

Eigenvalues and Eigenvectors

Eigenvalues and Eigenvectors 5 Eigevalues ad Eigevectors 5.3 DIAGONALIZATION DIAGONALIZATION Example 1: Let. Fid a formula for A k, give that P 1 1 = 1 2 ad, where Solutio: The stadard formula for the iverse of a 2 2 matrix yields

More information

Z ß cos x + si x R du We start with the substitutio u = si(x), so du = cos(x). The itegral becomes but +u we should chage the limits to go with the ew

Z ß cos x + si x R du We start with the substitutio u = si(x), so du = cos(x). The itegral becomes but +u we should chage the limits to go with the ew Problem ( poits) Evaluate the itegrals Z p x 9 x We ca draw a right triagle labeled this way x p x 9 From this we ca read off x = sec, so = sec ta, ad p x 9 = R ta. Puttig those pieces ito the itegralrwe

More information

Linear Regression Demystified

Linear Regression Demystified Liear Regressio Demystified Liear regressio is a importat subject i statistics. I elemetary statistics courses, formulae related to liear regressio are ofte stated without derivatio. This ote iteds to

More information

Notes on iteration and Newton s method. Iteration

Notes on iteration and Newton s method. Iteration Notes o iteratio ad Newto s method Iteratio Iteratio meas doig somethig over ad over. I our cotet, a iteratio is a sequece of umbers, vectors, fuctios, etc. geerated by a iteratio rule of the type 1 f

More information

b i u x i U a i j u x i u x j

b i u x i U a i j u x i u x j M ath 5 2 7 Fall 2 0 0 9 L ecture 1 9 N ov. 1 6, 2 0 0 9 ) S ecod- Order Elliptic Equatios: Weak S olutios 1. Defiitios. I this ad the followig two lectures we will study the boudary value problem Here

More information

Castiel, Supernatural, Season 6, Episode 18

Castiel, Supernatural, Season 6, Episode 18 13 Differetial Equatios the aswer to your questio ca best be epressed as a series of partial differetial equatios... Castiel, Superatural, Seaso 6, Episode 18 A differetial equatio is a mathematical equatio

More information

Complex Analysis Spring 2001 Homework I Solution

Complex Analysis Spring 2001 Homework I Solution Complex Aalysis Sprig 2001 Homework I Solutio 1. Coway, Chapter 1, sectio 3, problem 3. Describe the set of poits satisfyig the equatio z a z + a = 2c, where c > 0 ad a R. To begi, we see from the triagle

More information

Chapter 10: Power Series

Chapter 10: Power Series Chapter : Power Series 57 Chapter Overview: Power Series The reaso series are part of a Calculus course is that there are fuctios which caot be itegrated. All power series, though, ca be itegrated because

More information

Advanced Analysis. Min Yan Department of Mathematics Hong Kong University of Science and Technology

Advanced Analysis. Min Yan Department of Mathematics Hong Kong University of Science and Technology Advaced Aalysis Mi Ya Departmet of Mathematics Hog Kog Uiversity of Sciece ad Techology September 3, 009 Cotets Limit ad Cotiuity 7 Limit of Sequece 8 Defiitio 8 Property 3 3 Ifiity ad Ifiitesimal 8 4

More information

MIDTERM 3 CALCULUS 2. Monday, December 3, :15 PM to 6:45 PM. Name PRACTICE EXAM SOLUTIONS

MIDTERM 3 CALCULUS 2. Monday, December 3, :15 PM to 6:45 PM. Name PRACTICE EXAM SOLUTIONS MIDTERM 3 CALCULUS MATH 300 FALL 08 Moday, December 3, 08 5:5 PM to 6:45 PM Name PRACTICE EXAM S Please aswer all of the questios, ad show your work. You must explai your aswers to get credit. You will

More information

Numerical Methods for Ordinary Differential Equations

Numerical Methods for Ordinary Differential Equations Numerical Methods for Ordiary Differetial Equatios Braislav K. Nikolić Departmet of Physics ad Astroomy, Uiversity of Delaware, U.S.A. PHYS 460/660: Computatioal Methods of Physics http://www.physics.udel.edu/~bikolic/teachig/phys660/phys660.html

More information

1 1 2 = show that: over variables x and y. [2 marks] Write down necessary conditions involving first and second-order partial derivatives for ( x0, y

1 1 2 = show that: over variables x and y. [2 marks] Write down necessary conditions involving first and second-order partial derivatives for ( x0, y Questio (a) A square matrix A= A is called positive defiite if the quadratic form waw > 0 for every o-zero vector w [Note: Here (.) deotes the traspose of a matrix or a vector]. Let 0 A = 0 = show that:

More information

1.3 Convergence Theorems of Fourier Series. k k k k. N N k 1. With this in mind, we state (without proof) the convergence of Fourier series.

1.3 Convergence Theorems of Fourier Series. k k k k. N N k 1. With this in mind, we state (without proof) the convergence of Fourier series. .3 Covergece Theorems of Fourier Series I this sectio, we preset the covergece of Fourier series. A ifiite sum is, by defiitio, a limit of partial sums, that is, a cos( kx) b si( kx) lim a cos( kx) b si(

More information

Sequences and Series of Functions

Sequences and Series of Functions Chapter 6 Sequeces ad Series of Fuctios 6.1. Covergece of a Sequece of Fuctios Poitwise Covergece. Defiitio 6.1. Let, for each N, fuctio f : A R be defied. If, for each x A, the sequece (f (x)) coverges

More information

Math 113 Exam 3 Practice

Math 113 Exam 3 Practice Math Exam Practice Exam will cover.-.9. This sheet has three sectios. The first sectio will remid you about techiques ad formulas that you should kow. The secod gives a umber of practice questios for you

More information

Numerical Methods for PDEs

Numerical Methods for PDEs Numerical Methods for PDEs Hyperbolic PDEs: Coupled system/noliear coservatio laws/a oliear Lax-Wedroff scheme (Lecture 18, Week 6 Markus Schmuck Departmet of Mathematics ad Maxwell Istitute for Mathematical

More information

The z-transform. 7.1 Introduction. 7.2 The z-transform Derivation of the z-transform: x[n] = z n LTI system, h[n] z = re j

The z-transform. 7.1 Introduction. 7.2 The z-transform Derivation of the z-transform: x[n] = z n LTI system, h[n] z = re j The -Trasform 7. Itroductio Geeralie the complex siusoidal represetatio offered by DTFT to a represetatio of complex expoetial sigals. Obtai more geeral characteristics for discrete-time LTI systems. 7.

More information

Chapter 2 The Solution of Numerical Algebraic and Transcendental Equations

Chapter 2 The Solution of Numerical Algebraic and Transcendental Equations Chapter The Solutio of Numerical Algebraic ad Trascedetal Equatios Itroductio I this chapter we shall discuss some umerical methods for solvig algebraic ad trascedetal equatios. The equatio f( is said

More information

Partial Differential Equations

Partial Differential Equations Partial Differetial Equatios Part 2 Massimo Ricotti ricotti@astro.umd.edu Uiversity of Marylad Partial Differetial Equatios p.1/15 Upwid differecig I additio to amplitude errors (istability or dampig),

More information

Chapter 9: Numerical Differentiation

Chapter 9: Numerical Differentiation 178 Chapter 9: Numerical Differetiatio Numerical Differetiatio Formulatio of equatios for physical problems ofte ivolve derivatives (rate-of-chage quatities, such as velocity ad acceleratio). Numerical

More information

1 Approximating Integrals using Taylor Polynomials

1 Approximating Integrals using Taylor Polynomials Seughee Ye Ma 8: Week 7 Nov Week 7 Summary This week, we will lear how we ca approximate itegrals usig Taylor series ad umerical methods. Topics Page Approximatig Itegrals usig Taylor Polyomials. Defiitios................................................

More information

Infinite Sequences and Series

Infinite Sequences and Series Chapter 6 Ifiite Sequeces ad Series 6.1 Ifiite Sequeces 6.1.1 Elemetary Cocepts Simply speakig, a sequece is a ordered list of umbers writte: {a 1, a 2, a 3,...a, a +1,...} where the elemets a i represet

More information

We are mainly going to be concerned with power series in x, such as. (x)} converges - that is, lims N n

We are mainly going to be concerned with power series in x, such as. (x)} converges - that is, lims N n Review of Power Series, Power Series Solutios A power series i x - a is a ifiite series of the form c (x a) =c +c (x a)+(x a) +... We also call this a power series cetered at a. Ex. (x+) is cetered at

More information

PAPER : IIT-JAM 2010

PAPER : IIT-JAM 2010 MATHEMATICS-MA (CODE A) Q.-Q.5: Oly oe optio is correct for each questio. Each questio carries (+6) marks for correct aswer ad ( ) marks for icorrect aswer.. Which of the followig coditios does NOT esure

More information

Chapter 6 Infinite Series

Chapter 6 Infinite Series Chapter 6 Ifiite Series I the previous chapter we cosidered itegrals which were improper i the sese that the iterval of itegratio was ubouded. I this chapter we are goig to discuss a topic which is somewhat

More information

Løsningsførslag i 4M

Løsningsførslag i 4M Norges tekisk aturviteskapelige uiversitet Istitutt for matematiske fag Side 1 av 6 Løsigsførslag i 4M Oppgave 1 a) A sketch of the graph of the give f o the iterval [ 3, 3) is as follows: The Fourier

More information

6 Integers Modulo n. integer k can be written as k = qn + r, with q,r, 0 r b. So any integer.

6 Integers Modulo n. integer k can be written as k = qn + r, with q,r, 0 r b. So any integer. 6 Itegers Modulo I Example 2.3(e), we have defied the cogruece of two itegers a,b with respect to a modulus. Let us recall that a b (mod ) meas a b. We have proved that cogruece is a equivalece relatio

More information

Enumerative & Asymptotic Combinatorics

Enumerative & Asymptotic Combinatorics C50 Eumerative & Asymptotic Combiatorics Stirlig ad Lagrage Sprig 2003 This sectio of the otes cotais proofs of Stirlig s formula ad the Lagrage Iversio Formula. Stirlig s formula Theorem 1 (Stirlig s

More information

SECTION 2 Electrostatics

SECTION 2 Electrostatics SECTION Electrostatics This sectio, based o Chapter of Griffiths, covers effects of electric fields ad forces i static (timeidepedet) situatios. The topics are: Electric field Gauss s Law Electric potetial

More information

ECE-S352 Introduction to Digital Signal Processing Lecture 3A Direct Solution of Difference Equations

ECE-S352 Introduction to Digital Signal Processing Lecture 3A Direct Solution of Difference Equations ECE-S352 Itroductio to Digital Sigal Processig Lecture 3A Direct Solutio of Differece Equatios Discrete Time Systems Described by Differece Equatios Uit impulse (sample) respose h() of a DT system allows

More information

(A sequence also can be thought of as the list of function values attained for a function f :ℵ X, where f (n) = x n for n 1.) x 1 x N +k x N +4 x 3

(A sequence also can be thought of as the list of function values attained for a function f :ℵ X, where f (n) = x n for n 1.) x 1 x N +k x N +4 x 3 MATH 337 Sequeces Dr. Neal, WKU Let X be a metric space with distace fuctio d. We shall defie the geeral cocept of sequece ad limit i a metric space, the apply the results i particular to some special

More information

Section A assesses the Units Numerical Analysis 1 and 2 Section B assesses the Unit Mathematics for Applied Mathematics

Section A assesses the Units Numerical Analysis 1 and 2 Section B assesses the Unit Mathematics for Applied Mathematics X0/70 NATIONAL QUALIFICATIONS 005 MONDAY, MAY.00 PM 4.00 PM APPLIED MATHEMATICS ADVANCED HIGHER Numerical Aalysis Read carefully. Calculators may be used i this paper.. Cadidates should aswer all questios.

More information

The Method of Least Squares. To understand least squares fitting of data.

The Method of Least Squares. To understand least squares fitting of data. The Method of Least Squares KEY WORDS Curve fittig, least square GOAL To uderstad least squares fittig of data To uderstad the least squares solutio of icosistet systems of liear equatios 1 Motivatio Curve

More information

Math 113 Exam 3 Practice

Math 113 Exam 3 Practice Math Exam Practice Exam 4 will cover.-., 0. ad 0.. Note that eve though. was tested i exam, questios from that sectios may also be o this exam. For practice problems o., refer to the last review. This

More information

Finite Dierence Schemes

Finite Dierence Schemes MATH-459 Numerical Methods for Coservatio Laws by Prof. Ja S. Hesthave Solutio set 2: Fiite Dierece Schemes Exercise 2. Cosistecy A method is cosistet if its local trucatio error T k satises T k (x, t)

More information

A 2nTH ORDER LINEAR DIFFERENCE EQUATION

A 2nTH ORDER LINEAR DIFFERENCE EQUATION A 2TH ORDER LINEAR DIFFERENCE EQUATION Doug Aderso Departmet of Mathematics ad Computer Sciece, Cocordia College Moorhead, MN 56562, USA ABSTRACT: We give a formulatio of geeralized zeros ad (, )-discojugacy

More information

CS537. Numerical Analysis and Computing

CS537. Numerical Analysis and Computing CS57 Numerical Aalysis ad Computig Lecture Locatig Roots o Equatios Proessor Ju Zhag Departmet o Computer Sciece Uiversity o Ketucky Leigto KY 456-6 Jauary 9 9 What is the Root May physical system ca be

More information

Question 1: The magnetic case

Question 1: The magnetic case September 6, 018 Corell Uiversity, Departmet of Physics PHYS 337, Advace E&M, HW # 4, due: 9/19/018, 11:15 AM Questio 1: The magetic case I class, we skipped over some details, so here you are asked to

More information

Convergence of random variables. (telegram style notes) P.J.C. Spreij

Convergence of random variables. (telegram style notes) P.J.C. Spreij Covergece of radom variables (telegram style otes).j.c. Spreij this versio: September 6, 2005 Itroductio As we kow, radom variables are by defiitio measurable fuctios o some uderlyig measurable space

More information

TR/46 OCTOBER THE ZEROS OF PARTIAL SUMS OF A MACLAURIN EXPANSION A. TALBOT

TR/46 OCTOBER THE ZEROS OF PARTIAL SUMS OF A MACLAURIN EXPANSION A. TALBOT TR/46 OCTOBER 974 THE ZEROS OF PARTIAL SUMS OF A MACLAURIN EXPANSION by A. TALBOT .. Itroductio. A problem i approximatio theory o which I have recetly worked [] required for its solutio a proof that the

More information

Linear Elliptic PDE s Elliptic partial differential equations frequently arise out of conservation statements of the form

Linear Elliptic PDE s Elliptic partial differential equations frequently arise out of conservation statements of the form Liear Elliptic PDE s Elliptic partial differetial equatios frequetly arise out of coservatio statemets of the form B F d B Sdx B cotaied i bouded ope set U R. Here F, S deote respectively, the flux desity

More information

Time-Domain Representations of LTI Systems

Time-Domain Representations of LTI Systems 2.1 Itroductio Objectives: 1. Impulse resposes of LTI systems 2. Liear costat-coefficiets differetial or differece equatios of LTI systems 3. Bloc diagram represetatios of LTI systems 4. State-variable

More information

Streamfunction-Vorticity Formulation

Streamfunction-Vorticity Formulation Streamfuctio-Vorticity Formulatio A. Salih Departmet of Aerospace Egieerig Idia Istitute of Space Sciece ad Techology, Thiruvaathapuram March 2013 The streamfuctio-vorticity formulatio was amog the first

More information

ENGI Series Page 6-01

ENGI Series Page 6-01 ENGI 3425 6 Series Page 6-01 6. Series Cotets: 6.01 Sequeces; geeral term, limits, covergece 6.02 Series; summatio otatio, covergece, divergece test 6.03 Stadard Series; telescopig series, geometric series,

More information

September 2012 C1 Note. C1 Notes (Edexcel) Copyright - For AS, A2 notes and IGCSE / GCSE worksheets 1

September 2012 C1 Note. C1 Notes (Edexcel) Copyright   - For AS, A2 notes and IGCSE / GCSE worksheets 1 September 0 s (Edecel) Copyright www.pgmaths.co.uk - For AS, A otes ad IGCSE / GCSE worksheets September 0 Copyright www.pgmaths.co.uk - For AS, A otes ad IGCSE / GCSE worksheets September 0 Copyright

More information

5.1. The Rayleigh s quotient. Definition 49. Let A = A be a self-adjoint matrix. quotient is the function. R(x) = x,ax, for x = 0.

5.1. The Rayleigh s quotient. Definition 49. Let A = A be a self-adjoint matrix. quotient is the function. R(x) = x,ax, for x = 0. 40 RODICA D. COSTIN 5. The Rayleigh s priciple ad the i priciple for the eigevalues of a self-adjoit matrix Eigevalues of self-adjoit matrices are easy to calculate. This sectio shows how this is doe usig

More information

x 2 x x x x x + x x +2 x

x 2 x x x x x + x x +2 x Math 5440: Notes o particle radom walk Aaro Fogelso September 6, 005 Derivatio of the diusio equatio: Imagie that there is a distributio of particles spread alog the x-axis ad that the particles udergo

More information

Linear Differential Equations of Higher Order Basic Theory: Initial-Value Problems d y d y dy

Linear Differential Equations of Higher Order Basic Theory: Initial-Value Problems d y d y dy Liear Differetial Equatios of Higher Order Basic Theory: Iitial-Value Problems d y d y dy Solve: a( ) + a ( )... a ( ) a0( ) y g( ) + + + = d d d ( ) Subject to: y( 0) = y0, y ( 0) = y,..., y ( 0) = y

More information

Let us give one more example of MLE. Example 3. The uniform distribution U[0, θ] on the interval [0, θ] has p.d.f.

Let us give one more example of MLE. Example 3. The uniform distribution U[0, θ] on the interval [0, θ] has p.d.f. Lecture 5 Let us give oe more example of MLE. Example 3. The uiform distributio U[0, ] o the iterval [0, ] has p.d.f. { 1 f(x =, 0 x, 0, otherwise The likelihood fuctio ϕ( = f(x i = 1 I(X 1,..., X [0,

More information

x a x a Lecture 2 Series (See Chapter 1 in Boas)

x a x a Lecture 2 Series (See Chapter 1 in Boas) Lecture Series (See Chapter i Boas) A basic ad very powerful (if pedestria, recall we are lazy AD smart) way to solve ay differetial (or itegral) equatio is via a series expasio of the correspodig solutio

More information

A sequence of numbers is a function whose domain is the positive integers. We can see that the sequence

A sequence of numbers is a function whose domain is the positive integers. We can see that the sequence Sequeces A sequece of umbers is a fuctio whose domai is the positive itegers. We ca see that the sequece,, 2, 2, 3, 3,... is a fuctio from the positive itegers whe we write the first sequece elemet as

More information

CHAPTER 10 INFINITE SEQUENCES AND SERIES

CHAPTER 10 INFINITE SEQUENCES AND SERIES CHAPTER 10 INFINITE SEQUENCES AND SERIES 10.1 Sequeces 10.2 Ifiite Series 10.3 The Itegral Tests 10.4 Compariso Tests 10.5 The Ratio ad Root Tests 10.6 Alteratig Series: Absolute ad Coditioal Covergece

More information

U8L1: Sec Equations of Lines in R 2

U8L1: Sec Equations of Lines in R 2 MCVU U8L: Sec. 8.9. Equatios of Lies i R Review of Equatios of a Straight Lie (-D) Cosider the lie passig through A (-,) with slope, as show i the diagram below. I poit slope form, the equatio of the lie

More information

ME 501A Seminar in Engineering Analysis Page 1

ME 501A Seminar in Engineering Analysis Page 1 Accurac, Stabilit ad Sstems of Equatios November 0, 07 Numerical Solutios of Ordiar Differetial Equatios Accurac, Stabilit ad Sstems of Equatios Larr Caretto Mecaical Egieerig 0AB Semiar i Egieerig Aalsis

More information

A Proof of Birkhoff s Ergodic Theorem

A Proof of Birkhoff s Ergodic Theorem A Proof of Birkhoff s Ergodic Theorem Joseph Hora September 2, 205 Itroductio I Fall 203, I was learig the basics of ergodic theory, ad I came across this theorem. Oe of my supervisors, Athoy Quas, showed

More information

Hydro code II. Simone Recchi

Hydro code II. Simone Recchi Hydro code II Simoe Recchi 16.06.2011 Literature E.F. Toro: Riema Solvers ad Numerical Methods for Fluid Dyamics, Spriger R.J. LeVeque: Fiite Volume Methods for Hyperbolic Problems, Cambridge Uiversity

More information

18.01 Calculus Jason Starr Fall 2005

18.01 Calculus Jason Starr Fall 2005 Lecture 18. October 5, 005 Homework. Problem Set 5 Part I: (c). Practice Problems. Course Reader: 3G 1, 3G, 3G 4, 3G 5. 1. Approximatig Riema itegrals. Ofte, there is o simpler expressio for the atiderivative

More information

MAT1026 Calculus II Basic Convergence Tests for Series

MAT1026 Calculus II Basic Convergence Tests for Series MAT026 Calculus II Basic Covergece Tests for Series Egi MERMUT 202.03.08 Dokuz Eylül Uiversity Faculty of Sciece Departmet of Mathematics İzmir/TURKEY Cotets Mootoe Covergece Theorem 2 2 Series of Real

More information

Sequences A sequence of numbers is a function whose domain is the positive integers. We can see that the sequence

Sequences A sequence of numbers is a function whose domain is the positive integers. We can see that the sequence Sequeces A sequece of umbers is a fuctio whose domai is the positive itegers. We ca see that the sequece 1, 1, 2, 2, 3, 3,... is a fuctio from the positive itegers whe we write the first sequece elemet

More information

Notes for Lecture 5. 1 Grover Search. 1.1 The Setting. 1.2 Motivation. Lecture 5 (September 26, 2018)

Notes for Lecture 5. 1 Grover Search. 1.1 The Setting. 1.2 Motivation. Lecture 5 (September 26, 2018) COS 597A: Quatum Cryptography Lecture 5 (September 6, 08) Lecturer: Mark Zhadry Priceto Uiversity Scribe: Fermi Ma Notes for Lecture 5 Today we ll move o from the slightly cotrived applicatios of quatum

More information

Machine Learning for Data Science (CS 4786)

Machine Learning for Data Science (CS 4786) Machie Learig for Data Sciece CS 4786) Lecture & 3: Pricipal Compoet Aalysis The text i black outlies high level ideas. The text i blue provides simple mathematical details to derive or get to the algorithm

More information

Math 113, Calculus II Winter 2007 Final Exam Solutions

Math 113, Calculus II Winter 2007 Final Exam Solutions Math, Calculus II Witer 7 Fial Exam Solutios (5 poits) Use the limit defiitio of the defiite itegral ad the sum formulas to compute x x + dx The check your aswer usig the Evaluatio Theorem Solutio: I this

More information

Kinetics of Complex Reactions

Kinetics of Complex Reactions Kietics of Complex Reactios by Flick Colema Departmet of Chemistry Wellesley College Wellesley MA 28 wcolema@wellesley.edu Copyright Flick Colema 996. All rights reserved. You are welcome to use this documet

More information

Math 312 Lecture Notes One Dimensional Maps

Math 312 Lecture Notes One Dimensional Maps Math 312 Lecture Notes Oe Dimesioal Maps Warre Weckesser Departmet of Mathematics Colgate Uiversity 21-23 February 25 A Example We begi with the simplest model of populatio growth. Suppose, for example,

More information

Problem Cosider the curve give parametrically as x = si t ad y = + cos t for» t» ß: (a) Describe the path this traverses: Where does it start (whe t =

Problem Cosider the curve give parametrically as x = si t ad y = + cos t for» t» ß: (a) Describe the path this traverses: Where does it start (whe t = Mathematics Summer Wilso Fial Exam August 8, ANSWERS Problem 1 (a) Fid the solutio to y +x y = e x x that satisfies y() = 5 : This is already i the form we used for a first order liear differetial equatio,

More information

MATH 10550, EXAM 3 SOLUTIONS

MATH 10550, EXAM 3 SOLUTIONS MATH 155, EXAM 3 SOLUTIONS 1. I fidig a approximate solutio to the equatio x 3 +x 4 = usig Newto s method with iitial approximatio x 1 = 1, what is x? Solutio. Recall that x +1 = x f(x ) f (x ). Hece,

More information

CS321. Numerical Analysis and Computing

CS321. Numerical Analysis and Computing CS Numerical Aalysis ad Computig Lecture Locatig Roots o Equatios Proessor Ju Zhag Departmet o Computer Sciece Uiversity o Ketucky Leigto KY 456-6 September 8 5 What is the Root May physical system ca

More information

An efficient time integration method for extra-large eddy simulations

An efficient time integration method for extra-large eddy simulations A efficiet time itegratio method for extra-large eddy simulatios M.A. Scheibeler Departmet of Mathematics Master s Thesis A efficiet time itegratio method for extra-large eddy simulatios M.A. Scheibeler

More information

n 3 ln n n ln n is convergent by p-series for p = 2 > 1. n2 Therefore we can apply Limit Comparison Test to determine lutely convergent.

n 3 ln n n ln n is convergent by p-series for p = 2 > 1. n2 Therefore we can apply Limit Comparison Test to determine lutely convergent. 06 微甲 0-04 06-0 班期中考解答和評分標準. ( poits) Determie whether the series is absolutely coverget, coditioally coverget, or diverget. Please state the tests which you use. (a) ( poits) (b) ( poits) (c) ( poits)

More information

Salmon: Lectures on partial differential equations. 3. First-order linear equations as the limiting case of second-order equations

Salmon: Lectures on partial differential equations. 3. First-order linear equations as the limiting case of second-order equations 3. First-order liear equatios as the limitig case of secod-order equatios We cosider the advectio-diffusio equatio (1) v = 2 o a bouded domai, with boudary coditios of prescribed. The coefficiets ( ) (2)

More information

Lesson 03 Heat Equation with Different BCs

Lesson 03 Heat Equation with Different BCs PDE & Complex Variables P3- esso 3 Heat Equatio with Differet BCs ( ) Physical meaig (SJF ) et u(x, represet the temperature of a thi rod govered by the (coductio) heat equatio: u t =α u xx (3.) where

More information

Ma 530 Introduction to Power Series

Ma 530 Introduction to Power Series Ma 530 Itroductio to Power Series Please ote that there is material o power series at Visual Calculus. Some of this material was used as part of the presetatio of the topics that follow. What is a Power

More information

Similarity Solutions to Unsteady Pseudoplastic. Flow Near a Moving Wall

Similarity Solutions to Unsteady Pseudoplastic. Flow Near a Moving Wall Iteratioal Mathematical Forum, Vol. 9, 04, o. 3, 465-475 HIKARI Ltd, www.m-hikari.com http://dx.doi.org/0.988/imf.04.48 Similarity Solutios to Usteady Pseudoplastic Flow Near a Movig Wall W. Robi Egieerig

More information

Introduction to Machine Learning DIS10

Introduction to Machine Learning DIS10 CS 189 Fall 017 Itroductio to Machie Learig DIS10 1 Fu with Lagrage Multipliers (a) Miimize the fuctio such that f (x,y) = x + y x + y = 3. Solutio: The Lagragia is: L(x,y,λ) = x + y + λ(x + y 3) Takig

More information

SNAP Centre Workshop. Basic Algebraic Manipulation

SNAP Centre Workshop. Basic Algebraic Manipulation SNAP Cetre Workshop Basic Algebraic Maipulatio 8 Simplifyig Algebraic Expressios Whe a expressio is writte i the most compact maer possible, it is cosidered to be simplified. Not Simplified: x(x + 4x)

More information

PHY4905: Nearly-Free Electron Model (NFE)

PHY4905: Nearly-Free Electron Model (NFE) PHY4905: Nearly-Free Electro Model (NFE) D. L. Maslov Departmet of Physics, Uiversity of Florida (Dated: Jauary 12, 2011) 1 I. REMINDER: QUANTUM MECHANICAL PERTURBATION THEORY A. No-degeerate eigestates

More information

Recitation 4: Lagrange Multipliers and Integration

Recitation 4: Lagrange Multipliers and Integration Math 1c TA: Padraic Bartlett Recitatio 4: Lagrage Multipliers ad Itegratio Week 4 Caltech 211 1 Radom Questio Hey! So, this radom questio is pretty tightly tied to today s lecture ad the cocept of cotet

More information

Topic 9: Sampling Distributions of Estimators

Topic 9: Sampling Distributions of Estimators Topic 9: Samplig Distributios of Estimators Course 003, 2016 Page 0 Samplig distributios of estimators Sice our estimators are statistics (particular fuctios of radom variables), their distributio ca be

More information

PRACTICE FINAL/STUDY GUIDE SOLUTIONS

PRACTICE FINAL/STUDY GUIDE SOLUTIONS Last edited December 9, 03 at 4:33pm) Feel free to sed me ay feedback, icludig commets, typos, ad mathematical errors Problem Give the precise meaig of the followig statemets i) a f) L ii) a + f) L iii)

More information

7.1 Convergence of sequences of random variables

7.1 Convergence of sequences of random variables Chapter 7 Limit Theorems Throughout this sectio we will assume a probability space (, F, P), i which is defied a ifiite sequece of radom variables (X ) ad a radom variable X. The fact that for every ifiite

More information

Ma 530 Infinite Series I

Ma 530 Infinite Series I Ma 50 Ifiite Series I Please ote that i additio to the material below this lecture icorporated material from the Visual Calculus web site. The material o sequeces is at Visual Sequeces. (To use this li

More information

R is a scalar defined as follows:

R is a scalar defined as follows: Math 8. Notes o Dot Product, Cross Product, Plaes, Area, ad Volumes This lecture focuses primarily o the dot product ad its may applicatios, especially i the measuremet of agles ad scalar projectio ad

More information

CHAPTER 5. Theory and Solution Using Matrix Techniques

CHAPTER 5. Theory and Solution Using Matrix Techniques A SERIES OF CLASS NOTES FOR 2005-2006 TO INTRODUCE LINEAR AND NONLINEAR PROBLEMS TO ENGINEERS, SCIENTISTS, AND APPLIED MATHEMATICIANS DE CLASS NOTES 3 A COLLECTION OF HANDOUTS ON SYSTEMS OF ORDINARY DIFFERENTIAL

More information

Fall 2013 MTH431/531 Real analysis Section Notes

Fall 2013 MTH431/531 Real analysis Section Notes Fall 013 MTH431/531 Real aalysis Sectio 8.1-8. Notes Yi Su 013.11.1 1. Defiitio of uiform covergece. We look at a sequece of fuctios f (x) ad study the coverget property. Notice we have two parameters

More information

The axial dispersion model for tubular reactors at steady state can be described by the following equations: dc dz R n cn = 0 (1) (2) 1 d 2 c.

The axial dispersion model for tubular reactors at steady state can be described by the following equations: dc dz R n cn = 0 (1) (2) 1 d 2 c. 5.4 Applicatio of Perturbatio Methods to the Dispersio Model for Tubular Reactors The axial dispersio model for tubular reactors at steady state ca be described by the followig equatios: d c Pe dz z =

More information

FREE VIBRATION RESPONSE OF A SYSTEM WITH COULOMB DAMPING

FREE VIBRATION RESPONSE OF A SYSTEM WITH COULOMB DAMPING Mechaical Vibratios FREE VIBRATION RESPONSE OF A SYSTEM WITH COULOMB DAMPING A commo dampig mechaism occurrig i machies is caused by slidig frictio or dry frictio ad is called Coulomb dampig. Coulomb dampig

More information

f(x) dx as we do. 2x dx x also diverges. Solution: We compute 2x dx lim

f(x) dx as we do. 2x dx x also diverges. Solution: We compute 2x dx lim Math 3, Sectio 2. (25 poits) Why we defie f(x) dx as we do. (a) Show that the improper itegral diverges. Hece the improper itegral x 2 + x 2 + b also diverges. Solutio: We compute x 2 + = lim b x 2 + =

More information

Differentiable Convex Functions

Differentiable Convex Functions Differetiable Covex Fuctios The followig picture motivates Theorem 11. f ( x) f ( x) f '( x)( x x) ˆx x 1 Theorem 11 : Let f : R R be differetiable. The, f is covex o the covex set C R if, ad oly if for

More information