Differential equations. Differential equations

Size: px
Start display at page:

Download "Differential equations. Differential equations"

Transcription

1 Differential equations A differential equation (DE) describes ow a quantity canges (as a function of time, position, ) d - A ball dropped from a building: t gt () dt d S qx - Uniformly loaded beam: wx () dx wx x L EI EI - Scrödinger equation: r + Vrr Er (3) m - Heat conduction: c P Tr t ktr t t (4) - DEs can be classified in various ways: Ordinary DEs (ODEs) Partial DEs (PDEs) Only one independent variable Many independent variables Eqs () and () Eqs (3) and (4) Initial value problems(ivp) Boundary value problems (BVP) Function value(s) known at certain values of te variable(s) Function value(s) known on te domain borders Want function value(s) at arbitrary variable value(s) Want function values in oter point(s) in te domain Eqs () and (4) Eqs (), (3) and (4) In D: ft 0 y 0, compute ft In D: fx y, fx y, compute fx (two-point BVP) Scientific computing III 03: 3 Differential equations Differential equations Te difference between initial value problems and boundary value problems can be illustrated as below (according to NR, fig 90) boundary conditions boundary conditions initial values boundary values - In general boundary value problems are arder to solve tan initial value problems: BVPs need iteration IVP you only need to integrate te equations in time to reac te desired point - In tis capter we deal wit ordinary differential equations bot IVPs and BVPs - Probably tere will be no time partial differential equations Scientific computing III 03: 3 Differential equations

2 Te simplest ODE (IVP) is dy ft dt and its solution (starting from time t 0 ) yt c+ fd (Integration of te differential equation) t 0 - Te solution yt is unique up to te constant c ie we get a family of solutions - Te initial condition is needed to fix te value of te constant and to get a unique solution: yt 0 y 0 t Te general form of an IVP is dy fty dt Scientific computing III 03: 3 Differential equations 3 Solution metods for a single ODE are easily generalized to a group if ODEs (Use of vector notation makes it easier) y t f t y A y t y t, fty f t y, y 0 y n t f n t y A A n dy y' dt y' fty, yt 0 y 0 ODEs aving also iger derivatives can be transformed to groups of ODEs so tat metods presented ere can be applied to tese iger order ODEs: y n ft y y' y n yt 0 A y' t 0 A y n t 0 A n y ' y y ' y 3 y n ' y t 0 A y t 0 A y n t 0 A n ft y y y n Scientific computing III 03: 3 Differential equations 4

3 Numerical solution calls for discretization of te problem - Instead of computing yt at any t we obtain values t i in discrete points (We talk about time ere, but t can - of course - be any variable to be solved) - Te interval between points (in IVPs te time step) may vary as a function of time (variable time step) Tere several error sources in te integration of ODEs: - Discretization error: a too large time step decrease te time step - Instability: small errors introduced in te beginning grow exponentially cange te algoritm - Stiff ODEs: penomena wit different time scales step size selected according to te fastest processes Scientific computing III 03: 3 Differential equations 5 Someting general can be said about te existence of te solution of te IVP y' ft y - A function fty is said to satisfy a Lipscitz condition in te variable y in te set D R if L 0 so tat fty ft y Ly y wenever t y t y D - L is called te Lipscitz constant of f - A set D R is said to be convex if wenever t y t y D te point t + t y + y also belongs to D for eac, 0 - Suppose fty is defined in a convex set D R If L 0, suc tat fty L, for all ty D ten y f satisfies te Lipscitz condition on D in variable y wit Lipscitz constant L - Suppose tat D ty a t b y and tat fty is continuous on D If f satisfies te Lipscitz condition on D in variable y ten te IVP y' fty, a t b, ya as a unique solution yt for a t b Scientific computing III 03: 3 Differential equations 6

4 - Example: y' + tsinty, 0 t y0 0 - Keeping t constant we apply te mean value teorem to function fy + tsinty : df dy fy fy , y, y y y y y t fy cost fy fy fy fy y y y y fy 4 y y - Tus L 4 and te IVP as a unique solution - Wat about te stability of te IVP? - Te IVP y' ft y, a t b, ya is said to be a well-posed problem (or a stable problem) if A unique solution exists For any 0, k 0 wit te property tat, wenever 0 and t, a unique solution zt to te problem z' ft z + t, a t b, za + 0 (PB) (perturbed problem) exists wit zt yt k, t a t b - One can sow tat te IVP y' ft y is a well-posed problem if ) fty is a continuous function of t and y for all t y D and ) it satisfies te Lipscitz condition fty ft y Ly y, t y t y D Scientific computing III 03: 3 Differential equations 7 - Example: D ty 0 t y y' y + t + y0 - Since y + t +, te function ft y y + t + satisfies te Lipscitz condition y - Morever, f is continuous te problem is well posed - Let s see wat we get wen we perturb te problem: dz ---- z + t + +, 0 t, z0 + dt 0 - Solutions to te original and perturbed problems are yt e t + t, zt + 0 e t + t + - One can now easily see tat if and 0 ten yt zt 0 e t 0 + e t t Scientific computing III 03: 3 Differential equations 8

5 - Te above discussion concerns te stability of te problem itself - A problem is stable (well-posed) if te solution depends continuously on te initial value and on te rigt-and side function f - Te IVP could, owever, be stable but ill-conditioned - Condition number gives te sensitivity of te solution to te initial data - A large condition number means an ill-conditioned problem - Assume we ave a perturbed IVP: y' t; ftyt ;, yt 0 ; y 0 +, t a b - Let s write zt ; yt ; yt, were yt is te solution of te unperturbed IVP Tis gives us ftyt z' t; ftyt ; ftyt zt ; and zt y 0 ; - Te above approximation is valid for small (we ave a well-posed problem) - From te equation we can readily solve z: zt ; exp - Tis means tat if t ft'yt' dt' y t 0 ftyt , t a b y ten zt ; probably remains bounded by as t increases In tis case te problem is well-conditioned - An example of an ill-conditioned problem is: y' y+ gt, y 0 y 0, 0 - Now we can calculate zt ; e t indicating tat te cange in yt becomes increasing large as t increases Scientific computing III 03: 3 Differential equations 9 - As anoter example of an ill-conditioned problem consider y' 00y 0e t, y0 IVP: y' ay + be t - Te solution is yt e t - Perturbed problem: y' 00y 0e t, y0 +, as te solution yt ; e t + e 00t Solution: y0 y 0 fty ay + be t f y yt a y a+ 0 + ay 0 + be at be t zt ; exp t ft'yt' dt' y 0 t 00y 0e t exp dt' y e 00t 0 Scientific computing III 03: 3 Differential equations 0

6 Stability of te solution of an IVP y' t ft y: - Solution is stable if 0 0, suc tat every solution of te problem ŷ tat fulfills also fulfills for all t0 y0 ŷ0 yt ŷt - Solution is asymptotically stable if it is stable and lim yt ŷt 0 t - A simple example: y' y Solution is yt y0 e t - If 0 all solutions grow and diverge from eac oter exponentially: unstable solution - If 0 all solution converge to zero: asymptotically stable solution - If is complex ( a + ib) ten stability depends on Re: yt y0 e a + ibt - If Re 0 ten we get an oscillatory solution tat is stable but no asymptotically stable In addition to te stability definitions given above, te numerical metod used to solve te IVP can also be stable or unstable Scientific computing III 03: 3 Differential equations Euler s metod is te simplest possible metod to solve an IVP It is not used muc in practical problems but its derivation illustrates te concepts needed in deriving more advanced metods Te IVP we are trying to solve is te same as before dy fty, a t b, ya dt Te problem is discretized by computing te y values in mes points t 0 t t N in interval a b: t i a + i, i 0N - Te distance between te consecutive points b a N is called te step size - Assume te solution yt as two continuous derivatives - We will expand it as a Taylor series yt i + yt i t i+ t i y' t i t, i + t i y'' i i t i t i+ or yt i+ yt i + y' t i + -- y '' i - Since yt is te solution to te IVP we can write te expansion as yt i+ yt i + ft i yt i + -- y '' i Scientific computing III 03: 3 Differential equations

7 - In Euler s metod we simply drop te nd order term and get te iteration formula y 0, y i + y i + ft i y i, i 0 N - So we get an approximation to te solution y i yt i - Te algoritm is extremely simple Set b a N, t a, y For i N do Set y y + ft y Set t a + i Scientific computing III 03: 3 Differential equations 3 - As a simple example take dyt sint y0 0 0 t 3 dt - Te exact solution is yt cost - Te Euler algoritm in awk: BEGIN { 05; y0; tm30; ntm/; print 0,y; for (i0;i<n;i++) { ti*; yy+*sin(t); t(i+)* print t,y; } } cost Euler solution - In te figure one can see te grapical interpretation of te alrgoritm - Wen te problem is well-posed ft i y i y' t i ft i yt i - Euler s metod is easily generalized to groups of equations: y k + y k + ft k y k Scientific computing III 03: 3 Differential equations 4

8 - Wat about te error beavior of te Euler s metod? - By subtracting te exact solution from te Euler iteration result we get y'' yt k + y k+ yt k y k ft k yt k ft k y k k , () k t k t k + - Te left and side of tis equation is te total error of te approximation y k + and it consists of Errors cumulated from te previous step at t k Error formed in computing te current step (local error) - Error is called local because if we appened to get te exact value in te previous step ( k ) ten te only error tat is left is y'' k l k+ - In general te local error is defined as l n ŷt n y n and ŷ is te solution of te local problem: y' ˆ t ftŷ t ŷt n y n cumulated local - Due to te local error y'' k O Euler s metod is of te order one - In general te order of a metod is p if te local error beaves as O p + Scientific computing III 03: 3 Differential equations 5 - Using te mean value teorem we can estimate te term in te brackets in (): ft k yt k ft k y k ft k k yt, y k y k k yt k y k - Substituting tis to eq () we get were yt k + y k+ yt k y k ft k k y'' yt y k y k k y'' yt k y k + f y t k k k f y t k k ft k k y - So we get te total error at step k + as e k + e k + f y t k k + l k + error at previous step amplification factor local error - As far as + f y t k k te total error in Euler s metod does not grow - If + f y t k k te error grows during te iteration witout limits Scientific computing III 03: 3 Differential equations 6

9 - Let s look at te test problem y' y, were is a complex constant - Te solution is yt y0 e t - Applying Euler s metod we get y k y k + y k + y k y0 - Let now Re 0 so tat te solutions are asymptotically stable and approac zero - Tis means tat te numerical approximations y k must not grow In Euler s metod tis means + + k - Te absolute stability region D of a numerical metod consists of tose complex numbers z tat fulfill te condition y k y k, k Generally for te Euler s metod: + f y - Absolute stability interval is te part of te real axis tat belongs to D - Te absolute stability region of Euler s metod is te circle D z C z + and te interval is 0 Scientific computing III 03: 3 Differential equations 7 - Example: solving y' 00y + 00, y0 y 0 using Euler s metod - Exact solution is yt y 0 e 00t + and it is clearly stable - Euler s metod gives a difference equation y k + y k + 00y k y k + 00 wit solution y k y Let te initial value be y 0 - Exact solution is now yt e 00t + - Euler s metod gives y k 00 k + - We see immediately tat if 00 te solution y k grows witout limit wen k increases Scientific computing III 03: 3 Differential equations 8

10 - Te error formula of Euler s metod contains bot in te error amplification term and in te local error term: y'' e k + e k + f y t k k k In practical computations sould be as large as possible in order to speed up te calculations so small tat te error amplification factor < so small tat te local error term is acceptable - Te derivatives are difficult to compute but te local term can be estimated based on te iterations: y y a '' k ' y k ' t k t k - By requiring tat te local error fulfills te condition y a '' we get te upper limit to te step size y a '' Scientific computing III 03: 3 Differential equations 9 - Even if it would be possible - from te point of view of te consumed CPU time - to decrease te step size indefinitely we wouldn t get better and better results: finally te round-off errors sow up - Te figure on te rigt sows te relative error of te solution of te IVP y' sint y t 3 using step sizes and using single precision floating point numers - You probably remember te same penomenon in computing te derivative of a function using simple difference quotient Scientific computing III 03: 3 Differential equations 0

11 and develop iger order metods We can go furter in te Taylor s series yt i+ yt i t i + t i y' t i t i + t i y'' t i + - Tese metods ave te advantage of iger-order local truncation error - However, one as to calculate te iger derivatives f n t y wic is time consuming in many practical problems An alternative to te Euler s metod is an implicit version of it (backward Euler s metod): - Integrate y' t fty over one time step t k + yt k + yt k + ftyt t k - By approximating te intergral by t k + t k ft k y k we get te Euler s metod - However, we can also use t k+ t k ft k + y k + wen we get te backward Euler: y k + y k + ft k + y k+ - Te word implicit means tat new point y k + is on bot sides of te iteration formula It as to be solved by numerical metods - One can sow tat tis metods as a error amplification factor f y wic means tat wen applied to a stable linear problem wit constant coefficients wen Re 0, we get for all 0 dt Scientific computing III 03: 3 Differential equations Te metods described above were presented to illustrate te important concepts in numerical integration of IVPs Tey are seldom used in practical applications Probably te most often used metod to solve IVPs is te Runge-Kutta (RK) metod (or one of te many RK metods) It offers te iger orders witout te need to compute derivatives of f Te only drawback is tat te number of function evaluations of f per time step may be large We need a couple of results concerning te Taylor s teorem of a function of two variables - Suppose fy t as all its partial derivatives up to n + continuous on D ty a t b c y d - Let t 0 y 0 D - For every t y D tt 0 y y 0 wit fty P n ty + R n t y P n ty ft 0 y 0 t t 0 ft 0 y y y t 0 ft 0 y y t t 0 y y ft0 t y ft0 y y 0 + t t 0 y y 0 ft0 y ty n n t t0 n! j n j y y 0 j n + + t n j y j ft 0 y 0 j 0 R n ty n n + t t0 n+! j n + y y 0 j n + t n + j y j j - In oter words P n is te Taylor polynomial and R n is te remainder term f Scientific computing III 03: 3 Differential equations

12 - Let s see ow by using te RK metod we could increase te order of te Euler s metod by one - Tis means tat we ave to approximate te term Higer order Taylor metod: T ty fty + -- f ' t y y 0 yt 0 wit error no greater tan O - We take te approximation to ave te form a y i + y i + T n t y ft + y+ i i - Since dfty f' ty fty + fty y' t and y't dt t y T ty fty -- fty fty y' t t y - Now we expand ft + y+ into a Taylor polynomial of degree one about ty - Te coefficients a,, and can be determined by setting fty fty + -- f ' ty a ft + y+ fty -- + fty + -- fty y' t a fty a (remember ) t y ft y a + + fty t y' f y and matcing te coefficients of f and its derivatives T n ft i y i + -- f ' t i y i n f n n+! a ft + y+ a fty + a fty + a t fty + a R y t + y+ R t + y f f + t y ty f t i y i Scientific computing III 03: 3 Differential equations 3 - Te results is a, --, -- fty and T t y f t+ -- y + -- fty R t + -- y + -- fty - If te nd partial derivatives of f are bounded ten te remainder term R is of order O - Te metod derived above is a nd order (and two-stage) RK metod and te algoritm itself is simple: y 0 y0 y i+ y i + ft i + -- y i + -- ft i y i - Tis as a name of its own: te midpoint metod Scientific computing III 03: 3 Differential equations 4

13 - However, te most used RK metod is te 4 t order version: y 0 y0 k ft i y i k k ft i + -- y i k k 3 ft i + -- y i k 4 ft i + y i + k 3 y i + y i + -- k 6 + k + k 3 + k 4 - Note tat in tis algoritm te function f is evaluated 4 times per time step - In general a s-stage RK metod can be written as s y i + y i + b j k j j k j ft i + c j y i + a jl k l l c j s l a jl Scientific computing III 03: 3 Differential equations 5 - One can describe te RK metod as follows: Take an Euler step of lengt c from t i y i Te derivative at te new point is k Return to te original point and take a new Euler step ( c 3 ) using te weigted average of k and k as te derivative We get a new derivative k 3 - In tis way a number of approximation are computed for te derivative and tey all are used in te end to compute te step taken from t i y i - Te number of stages in a RK metod is not directly te order of te metod: Order Stages s 7 3 s 7 - Te table above explains te popularity of te four-stage RK metod Scientific computing III 03: 3 Differential equations 6

14 Most practical routines for integration of an IVP require te user to give an upper limit to te error in te end result - Te program ten adjusts te time step accordingly - Tis means tat te algoritm someow as to be able to estimate te error - One way to do tis is to compute te solution at te same time wit step sizes and - Assuming tat te local error introduced by te larger step is twice tat of te smaller step one can get an estimate for te error by l n -- ỹ n y n, p were ỹ n and y n are te solution at time n - However, computing wit two time steps is an extra effort - In te RK metod te error estimate can be computed by solving te IVP wit two RK solvers simultaneously - Te two solvers can be cosen in suc a way tat te derivatives needed by te lower order solver are already computed by te iger order metod - Tis pair of solvers is called te embedded Runge-Kutta pair - Tey are sometimes also called Runge-Kutta-Felberg metods - If te RK metod is written in te form y n + y n + Ft n y n f ; ten te metod is stable if F fulfills te Lipscitz condition Ftyf ; Ftzf ; L y z, for all a t b, y z Scientific computing III 03: 3 Differential equations 7 Below is a comparison of te maximum error of various one-step metods - A one-step metod is a metod tat only uses y i to compute te next step y i + - Te IVP was y' 5ty ,, t t y 0 t 0 - Te exact solution is yt t - Te trapezoidal metod is y k + y k + -- ft k + y k + + ft k y k From J Haataja et al, Numeeriset menetelmät käytännössä, CSC, 999 Scientific computing III 03: 3 Differential equations 8

15 In multistep (MS) metods one uses also information from earlier time steps tan only te previous one - Ie we want to use also y k, y k, ft k y k, ft k y k, to approximate te next point y k + - In general a r step linear multistep metod can be written as f j ft j y j were te coefficients fulfill te conditions, r + 0, r Metods can be derived by approximating te integral in wit a polynomial and by integrating it j y k + j j f k + j j r + j r + t k + yt k + yt k + ftyt dt Pt a 0 + a t + a t + + a s t s t k Scientific computing III 03: 3 Differential equations 9 - Te unknown coefficients a i are determined by fixing te polynomial to certain values y i and f i, i k + kk - Te good point in te MS metods is tat te function f is only evaluted once per time step - On te oter and, in te beginning of te iteration tere are no previous data points available - Tese can be generated by perfoming a couple of steps using a one-step metod - Also, canging te time step is not so straigtforward in MS metods - MS metods are divide to explicit (open) metods, 0 and implicit (closed) metods, 0 Scientific computing III 03: 3 Differential equations 30

16 Of te explicit MS metods te Adams-Basford (AB) is maybe te most well known - It is of te form 0 y k + y k + j f k + j j r + - Te unknown new iteration point does not sow up in te RHS of te equation so tis is an open metod - Below are te five first AB metods y k+ y k + f k y k + --3f k f k y k+ y k f k 6f k + 5f k y k+ y k f 4 k 59f k + 37f k 9f k 3 y k+ y k f 70 k 774f k + 66f k 74f k 3 + 5f k 4 - One can sow tat an AB metod wit r steps is of te order O r - Te stability interval of te AB metods are rater narrow, so tat tey are not suitable for stiff problems Scientific computing III 03: 3 Differential equations 3 Te implicit Adams-Moulton (AM) metod is more suitable for stiff problems: y k + y k + j f k + j j r + - Te five first AM metods are y k+ y k + f k + y k+ y k + -- f k + + f k y k+ y k f k f k f k y k+ y k f 4 k + + 9f k 5f k + f k y k+ y k f 70 k f k 64f k + 06f k + 9f k 3 - Wen r te order of te AM metod is r+ - Te absolute stability intervals of te metods are Scientific computing III 03: 3 Differential equations 3

17 - Te AM metods give better results tan te AB metods - However, te drawback of te AM metod is tat due to its implicity one as to solve te new iteration point from a group of equations - A combination metod often used is so called predictor-corrector metod - In it te AB metod produces a initial prediction to te new y value wile te AM metod is used to correct it more precise - Te correction may be done many times but not until te final convergence - For example te pair of 3 rd degree: yp k + y k f k 6f k + 5f k yc k + y k ft k + yp k+ + 8f k f k Scientific computing III 03: 3 Differential equations 33 r So called backward differentiation formulae (BDF) metods are well suited for stiff ODEs - Tey are derived by requiring a polynomial going troug te previous iteration points: r P r t yt n j l jn t, were l jn t is te Lagrange interpolation polynomial j - Because P is (an approximate) solution Pr ' tn + y' t n + ft n + yt n + - Combining te above equations and solving yt n + we get r y n + j y n j + ft n+ y n +, j 0 were j and are obtained by expanding te Lagrange interpolation polynomial in te first equation above - Te metod is implicit and te order is r - Below are te five first BDF metods: y k+ y k + f k + (Tis is backward Euler) 4 y k+ -- y 3 k -- y 3 k + -- f 3 k + y k y k y k y k f k + y k y 5 k y 5 k y 5 k y 5 k f 5 k y k y 37 k y 37 k y 37 k y 37 k y 37 k f 37 k + Scientific computing III 03: 3 Differential equations 34

18 Stiff ODEs are tose were tere are two or more disparate time scales - An example: y' 00y + 00t + 0, y0 y 0 - Solution: yt y 0 e 00t + t + - By varying te initial value y 0 sligtly causes large deviations in te initial beavior of te solution - Euler metod is results very sensitive to te initial value: even a small error during te iteration causes te iteration to pick a solution wit a different y 0 ; particularly one wit y 0 - Morever, wit large enoug time steps we get outside te stability interval - Demo Exact solutions for y Stiffness is difficult to define exactly: ) Process described by te ODE contains disparate timescales ) A group of ODEs is stiff if te eigenvalues of te Jacobian J ( J ij f i y j ) as eigenvalues tat differ greatly in magnitude 3) Wen using an explicit metod a muc smaller time step must be used as wic would be dictated by te accuracy criteria Scientific computing III 03: 3 Differential equations 35 - Example (from NR, section 66) - Exact solution u' 998u + 998v v' 999u 999v u e t e 000t v e t + e 000t - Using Euler s metod we ave to use really small steps: - Altoug te smootness of te function would allow a longer time step outside te initial transient beavior (term e 000t ) - Wat about aving a small step in te beginning and increasing it at - say - t 0 u u t exact t Scientific computing III 03: 3 Differential equations 36

19 - Below is te results of a version of Euler wic canges te stepsize after a certain time: u t - Tis does not elp because te instability of te transient is still tere toug te solution itself is a smootly varying function - Or to put it in anoter way: In order te solution to be stable we must use a smaller time step tan te one based only on te accuracy criteria Scientific computing III 03: 3 Differential equations 37 - For comparison consider te following equation tat is not stiff but as a rater similar solution: u' u + v v' u v - And te solution wit initial conditions u0, v0 0 is u v -- + e t -- e t - Using Euler wit gives reasonable results: u 0 3 exact 0 0 t Scientific computing III 03: 3 Differential equations 38

20 - For stiff ODEs te implicit metods work better - Take a simple example: y' cy, c 0 - Euler s iteration gives us y n + y n + y' n cy n - Te metod is unstable if -- c - Now using implicit metod (backward Euler) we get y n + y n + y' n + or y y n n + c - Tis metod is stable for all values of - So wit implicit metods we can use larger time steps in considering te stability of te metod - However, te accuracy may require to use smaller stepsize Scientific computing III 03: 3 Differential equations 39 Practical tools: GSL: routines for many stepping algoritms and for timestep control (including various Runge-Kutta and implicit metods) Matlab: also many routines: say elp funfun to get a list Maxima: symbolic solver, example solving te last example equation: Scientific computing III 03: 3 Differential equations 40

21 Practical tools (continued) - SLATEC library includes (at least) te following algoritms: DDEABM: Adams-Basfort metod DDEBDF: backward differentiation; for stiff problems DDERKF: Runge-Kutta-Felberg metod - User sould, in addition, provide te function tat calculates te RHS of te equation(s) and for te backward differentiation metod Jacobian J of te problem needed: y ' y ' y N ' f t y y N f t y y N f N ty y N J f f y y f yn f f f y y yn f N f N y y f N yn Wat metod to use? For non-stiff ODEs explicit RK, or predictor-corrector and AM if computing te derivative is expensive For stiff ODEs BDF and implicit RK - Now a nice demo Scientific computing III 03: 3 Differential equations 4 Differential equations: boundary value problems Boundary value problems (BVPs) are arder to solve because te conditions ave to be fulfilled in more tan one point - Te general form of D BVP is y' fx y gya yb 0 ( y and g ave N components) - Linear boundary conditions (BC) can be written in te form B a ya + B b yb b - If te BCs are separable tey can be written as ya b a yb b b - Sometimes te DE and BC contain a parameter : y' fx y gya yb 0 and te objective is to determine tose values of for wic te system as non-trivial solutions (eigenvalues and eigenfunctions) - Eg Scrödinger equation -- + V r r Er - In D a particle constrained by infinite potential walls: -- '' x + Vx x Ex, wic can be written as a system of st order DEs a 0 b 0 x x Vx Ex ' x Sources: J Haataja et al, Numeeriset menetelmät käytännössä, CSC, 999; R L Burden, J D Faires, Numerical Analysis, PWS-KENT, 989 Scientific computing III 03: 3 Differential equations 4

22 Differential equations: boundary value problems - In te sooting metod (SM) we utilize metods developed for IVPs - We integrate te DE starting from a cosen initial condition: y' fx y, ya s - We ave to coose s so tat te solution yx; s fulfills te BC gya ; s yb; s 0 - Te solution of te original BVP is tus yx; s * were s * is te solution of te group of equations Fs gs yb; s 0 - Tis generally a non-linear group of equations Scientific computing III 03: 3 Differential equations 43 Differential equations: boundary value problems - A common form of BVPs is te nd order equation y'' fxyy', a x b, ya yb, - Tis is converted to a pair of st order DEs as ( y y, y' y ) y ' y y ' fxy y - Existence of te solution: - Assume tat te function f and its derivatives f y, f y' are continuous in D xyy' a x b y y' - Now, if for all for all x y y' D te following apply a) fxyy' 0 and y b) M suc tat fxyy' M y' ten te abovementioned BVP as a unique solution Scientific computing III 03: 3 Differential equations 44

23 Differential equations: boundary value problems - An example: y'' + e xy + siny' 0, x, y 0, y 0 or y'' fxyy', fxyy' e xy siny' Now fxyy' xe xy 0, fxyy' y y' cosy' So, te equation as a unique solution Solution of te IVP y'' + e xy + siny' 0 y 0 y' c wit values c c 06 c 0569 c 04 Scientific computing III 03: 3 Differential equations 45 Differential equations: boundary value problems - Te linear form of te nd order BVP can be written as y'' px y' + qx y+ rx, a x b, ya, yb () - For tis form te existence of a unique solution requires tat a) px, qx, rx are continuous in a b and b) qx 0 in a b - Consider two IVPs based on te BVP above: y'' px y' + qx y+ rx, x a b, ya, y' a 0, solution y x y'' px y' + qx y, x a b, ya 0, y' a, solution y x y y - It is easy to sow tat te unique solution to te original equation () can be expressed in terms of y x and y x: yx assuming y b 0 y y x b y, y b x a y y b x - A demo using GSL No need to worry about tis One can sow tat if y is te solution of y'' px y' + qx y wit y a y b 0 ten y x 0 x ab Scientific computing III 03: 3 Differential equations 46

24 Differential equations: boundary value problems - In te multiple sooting metod (MSM) te interval is divided into smaller parts and te SM is applied to every part so tat te parts join to eac oter continuously - Using te metod you end up solving a (possibly nonlinear) group of equations - Divide te interval a b to parts a x x x m b - Let y' xx ; k s k be te solution to te IVP y' fx y, yx k s k on te interval x x k x k + - In te MSM metod we pursue te vectors s k, k m tat satisfy te continuity and boundary conditions yx k + ; x k s k s k +, k m gs ybx ; m s m 0 - Te unknown initial values s s s s m T are obtained from te nonlinear system of equations Fs yx ; x s s yx 3 ; x s s 3 0 gs yx m ; x m s m Scientific computing III 03: 3 Differential equations 47 Differential equations: boundary value problems Te finite difference metod is not based on solving te corresponding IVP but te BVP is discretized to a finite mes and derivatives are approximated by finite differences - An example sows ow te metod works - Te BVP is y'' fxyy' ya yb - Divide interval a b to m parts: b a , x m i a + i, i 0 m - Approximate te derivatives in te BVP by finite differences: y y' x n n+ y n y y'' x n n + y n + y n - Now we get te difference equation y n + y n + y n y f x n y n+ y n n , n m y 0, y m JHaataja et al, Numeeriset menetelmät käytännössä, example 75 Scientific computing III 03: 3 Differential equations 48

25 - In matrix form Ay fy Differential equations: boundary value problems A f y x y y y 0 0 y f y x y 3 y , y y, fy 3 f y x 3 y 4 y y m f y x m y m y m m Note tat tis is a nonlinear group of equations Scientific computing III 03: 3 Differential equations 49 ifferential equations: boundary value problems - Tere are also metods based on expansion of te solution in terms of basis functions; eg collocation metod (CM), Galerkin s metod - Take for example te equation y'' fxyy', ya, yb - We expand te solution in terms of basis functions N : yx N i c i i x - Te basis set can be cosen in an appropriate way considering te boundary conditions - In te CM metod te above expansion is substituted in te equation and we require tat it solves te equation in N points x j witin te interval a b: N N N c i i '' x j f x j c i i x j c i i ' x j, j N i i i - From tis equation we can determine te coefficients c c c N Scientific computing III 03: 3 Differential equations 50

26 Differential equations: boundary value problems Practical tools: Matlab: see elp funfun for more information NAG: many routines for BVPs SLATEC: many routines for BVPs NETLIB: see te package ode (ttp://wwwnetliborg/ode/) Scientific computing III 03: 3 Differential equations 5

Physically Based Modeling: Principles and Practice Implicit Methods for Differential Equations

Physically Based Modeling: Principles and Practice Implicit Methods for Differential Equations Pysically Based Modeling: Principles and Practice Implicit Metods for Differential Equations David Baraff Robotics Institute Carnegie Mellon University Please note: Tis document is 997 by David Baraff

More information

Chapter 4: Numerical Methods for Common Mathematical Problems

Chapter 4: Numerical Methods for Common Mathematical Problems 1 Capter 4: Numerical Metods for Common Matematical Problems Interpolation Problem: Suppose we ave data defined at a discrete set of points (x i, y i ), i = 0, 1,..., N. Often it is useful to ave a smoot

More information

Consider a function f we ll specify which assumptions we need to make about it in a minute. Let us reformulate the integral. 1 f(x) dx.

Consider a function f we ll specify which assumptions we need to make about it in a minute. Let us reformulate the integral. 1 f(x) dx. Capter 2 Integrals as sums and derivatives as differences We now switc to te simplest metods for integrating or differentiating a function from its function samples. A careful study of Taylor expansions

More information

LIMITATIONS OF EULER S METHOD FOR NUMERICAL INTEGRATION

LIMITATIONS OF EULER S METHOD FOR NUMERICAL INTEGRATION LIMITATIONS OF EULER S METHOD FOR NUMERICAL INTEGRATION LAURA EVANS.. Introduction Not all differential equations can be explicitly solved for y. Tis can be problematic if we need to know te value of y

More information

AMS 147 Computational Methods and Applications Lecture 09 Copyright by Hongyun Wang, UCSC. Exact value. Effect of round-off error.

AMS 147 Computational Methods and Applications Lecture 09 Copyright by Hongyun Wang, UCSC. Exact value. Effect of round-off error. Lecture 09 Copyrigt by Hongyun Wang, UCSC Recap: Te total error in numerical differentiation fl( f ( x + fl( f ( x E T ( = f ( x Numerical result from a computer Exact value = e + f x+ Discretization error

More information

Numerical Differentiation

Numerical Differentiation Numerical Differentiation Finite Difference Formulas for te first derivative (Using Taylor Expansion tecnique) (section 8.3.) Suppose tat f() = g() is a function of te variable, and tat as 0 te function

More information

Chapter 8. Numerical Solution of Ordinary Differential Equations. Module No. 2. Predictor-Corrector Methods

Chapter 8. Numerical Solution of Ordinary Differential Equations. Module No. 2. Predictor-Corrector Methods Numerical Analysis by Dr. Anita Pal Assistant Professor Department of Matematics National Institute of Tecnology Durgapur Durgapur-7109 email: anita.buie@gmail.com 1 . Capter 8 Numerical Solution of Ordinary

More information

5 Ordinary Differential Equations: Finite Difference Methods for Boundary Problems

5 Ordinary Differential Equations: Finite Difference Methods for Boundary Problems 5 Ordinary Differential Equations: Finite Difference Metods for Boundary Problems Read sections 10.1, 10.2, 10.4 Review questions 10.1 10.4, 10.8 10.9, 10.13 5.1 Introduction In te previous capters we

More information

lecture 26: Richardson extrapolation

lecture 26: Richardson extrapolation 43 lecture 26: Ricardson extrapolation 35 Ricardson extrapolation, Romberg integration Trougout numerical analysis, one encounters procedures tat apply some simple approximation (eg, linear interpolation)

More information

Polynomial Interpolation

Polynomial Interpolation Capter 4 Polynomial Interpolation In tis capter, we consider te important problem of approximatinga function fx, wose values at a set of distinct points x, x, x,, x n are known, by a polynomial P x suc

More information

Differential Equations

Differential Equations Pysics-based simulation xi Differential Equations xi+1 xi xi+1 xi + x x Pysics-based simulation xi Wat is a differential equation? Differential equations describe te relation between an unknown function

More information

Runge-Kutta methods. With orders of Taylor methods yet without derivatives of f (t, y(t))

Runge-Kutta methods. With orders of Taylor methods yet without derivatives of f (t, y(t)) Runge-Kutta metods Wit orders of Taylor metods yet witout derivatives of f (t, y(t)) First order Taylor expansion in two variables Teorem: Suppose tat f (t, y) and all its partial derivatives are continuous

More information

Copyright c 2008 Kevin Long

Copyright c 2008 Kevin Long Lecture 4 Numerical solution of initial value problems Te metods you ve learned so far ave obtained closed-form solutions to initial value problems. A closedform solution is an explicit algebriac formula

More information

1 The concept of limits (p.217 p.229, p.242 p.249, p.255 p.256) 1.1 Limits Consider the function determined by the formula 3. x since at this point

1 The concept of limits (p.217 p.229, p.242 p.249, p.255 p.256) 1.1 Limits Consider the function determined by the formula 3. x since at this point MA00 Capter 6 Calculus and Basic Linear Algebra I Limits, Continuity and Differentiability Te concept of its (p.7 p.9, p.4 p.49, p.55 p.56). Limits Consider te function determined by te formula f Note

More information

Gradient Descent etc.

Gradient Descent etc. 1 Gradient Descent etc EE 13: Networked estimation and control Prof Kan) I DERIVATIVE Consider f : R R x fx) Te derivative is defined as d fx) = lim dx fx + ) fx) Te cain rule states tat if d d f gx) )

More information

Chapter 5 FINITE DIFFERENCE METHOD (FDM)

Chapter 5 FINITE DIFFERENCE METHOD (FDM) MEE7 Computer Modeling Tecniques in Engineering Capter 5 FINITE DIFFERENCE METHOD (FDM) 5. Introduction to FDM Te finite difference tecniques are based upon approximations wic permit replacing differential

More information

HOMEWORK HELP 2 FOR MATH 151

HOMEWORK HELP 2 FOR MATH 151 HOMEWORK HELP 2 FOR MATH 151 Here we go; te second round of omework elp. If tere are oters you would like to see, let me know! 2.4, 43 and 44 At wat points are te functions f(x) and g(x) = xf(x)continuous,

More information

NUMERICAL DIFFERENTIATION. James T. Smith San Francisco State University. In calculus classes, you compute derivatives algebraically: for example,

NUMERICAL DIFFERENTIATION. James T. Smith San Francisco State University. In calculus classes, you compute derivatives algebraically: for example, NUMERICAL DIFFERENTIATION James T Smit San Francisco State University In calculus classes, you compute derivatives algebraically: for example, f( x) = x + x f ( x) = x x Tis tecnique requires your knowing

More information

Flavius Guiaş. X(t + h) = X(t) + F (X(s)) ds.

Flavius Guiaş. X(t + h) = X(t) + F (X(s)) ds. Numerical solvers for large systems of ordinary differential equations based on te stocastic direct simulation metod improved by te and Runge Kutta principles Flavius Guiaş Abstract We present a numerical

More information

Polynomial Interpolation

Polynomial Interpolation Capter 4 Polynomial Interpolation In tis capter, we consider te important problem of approximating a function f(x, wose values at a set of distinct points x, x, x 2,,x n are known, by a polynomial P (x

More information

NUMERICAL SOLUTION OF ODE IVPs. Overview

NUMERICAL SOLUTION OF ODE IVPs. Overview NUMERICAL SOLUTION OF ODE IVPs 1 Quick review of direction fields Overview 2 A reminder about and 3 Important test: Is the ODE initial value problem? 4 Fundamental concepts: Euler s Method 5 Fundamental

More information

Finite Difference Method

Finite Difference Method Capter 8 Finite Difference Metod 81 2nd order linear pde in two variables General 2nd order linear pde in two variables is given in te following form: L[u] = Au xx +2Bu xy +Cu yy +Du x +Eu y +Fu = G According

More information

Numerical Analysis MTH603. dy dt = = (0) , y n+1. We obtain yn. Therefore. and. Copyright Virtual University of Pakistan 1

Numerical Analysis MTH603. dy dt = = (0) , y n+1. We obtain yn. Therefore. and. Copyright Virtual University of Pakistan 1 Numerical Analysis MTH60 PREDICTOR CORRECTOR METHOD Te metods presented so far are called single-step metods, were we ave seen tat te computation of y at t n+ tat is y n+ requires te knowledge of y n only.

More information

Preface. Here are a couple of warnings to my students who may be here to get a copy of what happened on a day that you missed.

Preface. Here are a couple of warnings to my students who may be here to get a copy of what happened on a day that you missed. Preface Here are my online notes for my course tat I teac ere at Lamar University. Despite te fact tat tese are my class notes, tey sould be accessible to anyone wanting to learn or needing a refreser

More information

Scientific Computing: An Introductory Survey

Scientific Computing: An Introductory Survey Scientific Computing: An Introductory Survey Chapter 9 Initial Value Problems for Ordinary Differential Equations Prof. Michael T. Heath Department of Computer Science University of Illinois at Urbana-Champaign

More information

Lecture Notes to Accompany. Scientific Computing An Introductory Survey. by Michael T. Heath. Chapter 9

Lecture Notes to Accompany. Scientific Computing An Introductory Survey. by Michael T. Heath. Chapter 9 Lecture Notes to Accompany Scientific Computing An Introductory Survey Second Edition by Michael T. Heath Chapter 9 Initial Value Problems for Ordinary Differential Equations Copyright c 2001. Reproduction

More information

Solution. Solution. f (x) = (cos x)2 cos(2x) 2 sin(2x) 2 cos x ( sin x) (cos x) 4. f (π/4) = ( 2/2) ( 2/2) ( 2/2) ( 2/2) 4.

Solution. Solution. f (x) = (cos x)2 cos(2x) 2 sin(2x) 2 cos x ( sin x) (cos x) 4. f (π/4) = ( 2/2) ( 2/2) ( 2/2) ( 2/2) 4. December 09, 20 Calculus PracticeTest s Name: (4 points) Find te absolute extrema of f(x) = x 3 0 on te interval [0, 4] Te derivative of f(x) is f (x) = 3x 2, wic is zero only at x = 0 Tus we only need

More information

MAT244 - Ordinary Di erential Equations - Summer 2016 Assignment 2 Due: July 20, 2016

MAT244 - Ordinary Di erential Equations - Summer 2016 Assignment 2 Due: July 20, 2016 MAT244 - Ordinary Di erential Equations - Summer 206 Assignment 2 Due: July 20, 206 Full Name: Student #: Last First Indicate wic Tutorial Section you attend by filling in te appropriate circle: Tut 0

More information

2.8 The Derivative as a Function

2.8 The Derivative as a Function .8 Te Derivative as a Function Typically, we can find te derivative of a function f at many points of its domain: Definition. Suppose tat f is a function wic is differentiable at every point of an open

More information

Differential Calculus (The basics) Prepared by Mr. C. Hull

Differential Calculus (The basics) Prepared by Mr. C. Hull Differential Calculus Te basics) A : Limits In tis work on limits, we will deal only wit functions i.e. tose relationsips in wic an input variable ) defines a unique output variable y). Wen we work wit

More information

SECTION 3.2: DERIVATIVE FUNCTIONS and DIFFERENTIABILITY

SECTION 3.2: DERIVATIVE FUNCTIONS and DIFFERENTIABILITY (Section 3.2: Derivative Functions and Differentiability) 3.2.1 SECTION 3.2: DERIVATIVE FUNCTIONS and DIFFERENTIABILITY LEARNING OBJECTIVES Know, understand, and apply te Limit Definition of te Derivative

More information

Fourth Order RK-Method

Fourth Order RK-Method Fourth Order RK-Method The most commonly used method is Runge-Kutta fourth order method. The fourth order RK-method is y i+1 = y i + 1 6 (k 1 + 2k 2 + 2k 3 + k 4 ), Ordinary Differential Equations (ODE)

More information

2.3 Product and Quotient Rules

2.3 Product and Quotient Rules .3. PRODUCT AND QUOTIENT RULES 75.3 Product and Quotient Rules.3.1 Product rule Suppose tat f and g are two di erentiable functions. Ten ( g (x)) 0 = f 0 (x) g (x) + g 0 (x) See.3.5 on page 77 for a proof.

More information

Material for Difference Quotient

Material for Difference Quotient Material for Difference Quotient Prepared by Stepanie Quintal, graduate student and Marvin Stick, professor Dept. of Matematical Sciences, UMass Lowell Summer 05 Preface Te following difference quotient

More information

How to Find the Derivative of a Function: Calculus 1

How to Find the Derivative of a Function: Calculus 1 Introduction How to Find te Derivative of a Function: Calculus 1 Calculus is not an easy matematics course Te fact tat you ave enrolled in suc a difficult subject indicates tat you are interested in te

More information

CS 450 Numerical Analysis. Chapter 9: Initial Value Problems for Ordinary Differential Equations

CS 450 Numerical Analysis. Chapter 9: Initial Value Problems for Ordinary Differential Equations Lecture slides based on the textbook Scientific Computing: An Introductory Survey by Michael T. Heath, copyright c 2018 by the Society for Industrial and Applied Mathematics. http://www.siam.org/books/cl80

More information

The Laplace equation, cylindrically or spherically symmetric case

The Laplace equation, cylindrically or spherically symmetric case Numerisce Metoden II, 7 4, und Übungen, 7 5 Course Notes, Summer Term 7 Some material and exercises Te Laplace equation, cylindrically or sperically symmetric case Electric and gravitational potential,

More information

Finite Difference Methods Assignments

Finite Difference Methods Assignments Finite Difference Metods Assignments Anders Söberg and Aay Saxena, Micael Tuné, and Maria Westermarck Revised: Jarmo Rantakokko June 6, 1999 Teknisk databeandling Assignment 1: A one-dimensional eat equation

More information

ALGEBRA AND TRIGONOMETRY REVIEW by Dr TEBOU, FIU. A. Fundamental identities Throughout this section, a and b denotes arbitrary real numbers.

ALGEBRA AND TRIGONOMETRY REVIEW by Dr TEBOU, FIU. A. Fundamental identities Throughout this section, a and b denotes arbitrary real numbers. ALGEBRA AND TRIGONOMETRY REVIEW by Dr TEBOU, FIU A. Fundamental identities Trougout tis section, a and b denotes arbitrary real numbers. i) Square of a sum: (a+b) =a +ab+b ii) Square of a difference: (a-b)

More information

2.1 THE DEFINITION OF DERIVATIVE

2.1 THE DEFINITION OF DERIVATIVE 2.1 Te Derivative Contemporary Calculus 2.1 THE DEFINITION OF DERIVATIVE 1 Te grapical idea of a slope of a tangent line is very useful, but for some uses we need a more algebraic definition of te derivative

More information

Math 102 TEST CHAPTERS 3 & 4 Solutions & Comments Fall 2006

Math 102 TEST CHAPTERS 3 & 4 Solutions & Comments Fall 2006 Mat 102 TEST CHAPTERS 3 & 4 Solutions & Comments Fall 2006 f(x+) f(x) 10 1. For f(x) = x 2 + 2x 5, find ))))))))) and simplify completely. NOTE: **f(x+) is NOT f(x)+! f(x+) f(x) (x+) 2 + 2(x+) 5 ( x 2

More information

Lecture 15. Interpolation II. 2 Piecewise polynomial interpolation Hermite splines

Lecture 15. Interpolation II. 2 Piecewise polynomial interpolation Hermite splines Lecture 5 Interpolation II Introduction In te previous lecture we focused primarily on polynomial interpolation of a set of n points. A difficulty we observed is tat wen n is large, our polynomial as to

More information

Introduction to Derivatives

Introduction to Derivatives Introduction to Derivatives 5-Minute Review: Instantaneous Rates and Tangent Slope Recall te analogy tat we developed earlier First we saw tat te secant slope of te line troug te two points (a, f (a))

More information

Lecture 21. Numerical differentiation. f ( x+h) f ( x) h h

Lecture 21. Numerical differentiation. f ( x+h) f ( x) h h Lecture Numerical differentiation Introduction We can analytically calculate te derivative of any elementary function, so tere migt seem to be no motivation for calculating derivatives numerically. However

More information

2.3 More Differentiation Patterns

2.3 More Differentiation Patterns 144 te derivative 2.3 More Differentiation Patterns Polynomials are very useful, but tey are not te only functions we need. Tis section uses te ideas of te two previous sections to develop tecniques for

More information

Exam 1 Review Solutions

Exam 1 Review Solutions Exam Review Solutions Please also review te old quizzes, and be sure tat you understand te omework problems. General notes: () Always give an algebraic reason for your answer (graps are not sufficient),

More information

Time (hours) Morphine sulfate (mg)

Time (hours) Morphine sulfate (mg) Mat Xa Fall 2002 Review Notes Limits and Definition of Derivative Important Information: 1 According to te most recent information from te Registrar, te Xa final exam will be eld from 9:15 am to 12:15

More information

LECTURE 14 NUMERICAL INTEGRATION. Find

LECTURE 14 NUMERICAL INTEGRATION. Find LECTURE 14 NUMERCAL NTEGRATON Find b a fxdx or b a vx ux fx ydy dx Often integration is required. However te form of fx may be suc tat analytical integration would be very difficult or impossible. Use

More information

Differentiation in higher dimensions

Differentiation in higher dimensions Capter 2 Differentiation in iger dimensions 2.1 Te Total Derivative Recall tat if f : R R is a 1-variable function, and a R, we say tat f is differentiable at x = a if and only if te ratio f(a+) f(a) tends

More information

Precalculus Test 2 Practice Questions Page 1. Note: You can expect other types of questions on the test than the ones presented here!

Precalculus Test 2 Practice Questions Page 1. Note: You can expect other types of questions on the test than the ones presented here! Precalculus Test 2 Practice Questions Page Note: You can expect oter types of questions on te test tan te ones presented ere! Questions Example. Find te vertex of te quadratic f(x) = 4x 2 x. Example 2.

More information

Lecture XVII. Abstract We introduce the concept of directional derivative of a scalar function and discuss its relation with the gradient operator.

Lecture XVII. Abstract We introduce the concept of directional derivative of a scalar function and discuss its relation with the gradient operator. Lecture XVII Abstract We introduce te concept of directional derivative of a scalar function and discuss its relation wit te gradient operator. Directional derivative and gradient Te directional derivative

More information

f a h f a h h lim lim

f a h f a h h lim lim Te Derivative Te derivative of a function f at a (denoted f a) is f a if tis it exists. An alternative way of defining f a is f a x a fa fa fx fa x a Note tat te tangent line to te grap of f at te point

More information

3.4 Worksheet: Proof of the Chain Rule NAME

3.4 Worksheet: Proof of the Chain Rule NAME Mat 1170 3.4 Workseet: Proof of te Cain Rule NAME Te Cain Rule So far we are able to differentiate all types of functions. For example: polynomials, rational, root, and trigonometric functions. We are

More information

Section 2.7 Derivatives and Rates of Change Part II Section 2.8 The Derivative as a Function. at the point a, to be. = at time t = a is

Section 2.7 Derivatives and Rates of Change Part II Section 2.8 The Derivative as a Function. at the point a, to be. = at time t = a is Mat 180 www.timetodare.com Section.7 Derivatives and Rates of Cange Part II Section.8 Te Derivative as a Function Derivatives ( ) In te previous section we defined te slope of te tangent to a curve wit

More information

Chapter Seven The Quantum Mechanical Simple Harmonic Oscillator

Chapter Seven The Quantum Mechanical Simple Harmonic Oscillator Capter Seven Te Quantum Mecanical Simple Harmonic Oscillator Introduction Te potential energy function for a classical, simple armonic oscillator is given by ZÐBÑ œ 5B were 5 is te spring constant. Suc

More information

5.1 We will begin this section with the definition of a rational expression. We

5.1 We will begin this section with the definition of a rational expression. We Basic Properties and Reducing to Lowest Terms 5.1 We will begin tis section wit te definition of a rational epression. We will ten state te two basic properties associated wit rational epressions and go

More information

232 Calculus and Structures

232 Calculus and Structures 3 Calculus and Structures CHAPTER 17 JUSTIFICATION OF THE AREA AND SLOPE METHODS FOR EVALUATING BEAMS Calculus and Structures 33 Copyrigt Capter 17 JUSTIFICATION OF THE AREA AND SLOPE METHODS 17.1 THE

More information

MAT 145. Type of Calculator Used TI-89 Titanium 100 points Score 100 possible points

MAT 145. Type of Calculator Used TI-89 Titanium 100 points Score 100 possible points MAT 15 Test #2 Name Solution Guide Type of Calculator Used TI-89 Titanium 100 points Score 100 possible points Use te grap of a function sown ere as you respond to questions 1 to 8. 1. lim f (x) 0 2. lim

More information

Quaternion Dynamics, Part 1 Functions, Derivatives, and Integrals. Gary D. Simpson. rev 01 Aug 08, 2016.

Quaternion Dynamics, Part 1 Functions, Derivatives, and Integrals. Gary D. Simpson. rev 01 Aug 08, 2016. Quaternion Dynamics, Part 1 Functions, Derivatives, and Integrals Gary D. Simpson gsim1887@aol.com rev 1 Aug 8, 216 Summary Definitions are presented for "quaternion functions" of a quaternion. Polynomial

More information

4. The slope of the line 2x 7y = 8 is (a) 2/7 (b) 7/2 (c) 2 (d) 2/7 (e) None of these.

4. The slope of the line 2x 7y = 8 is (a) 2/7 (b) 7/2 (c) 2 (d) 2/7 (e) None of these. Mat 11. Test Form N Fall 016 Name. Instructions. Te first eleven problems are wort points eac. Te last six problems are wort 5 points eac. For te last six problems, you must use relevant metods of algebra

More information

CS522 - Partial Di erential Equations

CS522 - Partial Di erential Equations CS5 - Partial Di erential Equations Tibor Jánosi April 5, 5 Numerical Di erentiation In principle, di erentiation is a simple operation. Indeed, given a function speci ed as a closed-form formula, its

More information

Name: Answer Key No calculators. Show your work! 1. (21 points) All answers should either be,, a (finite) real number, or DNE ( does not exist ).

Name: Answer Key No calculators. Show your work! 1. (21 points) All answers should either be,, a (finite) real number, or DNE ( does not exist ). Mat - Final Exam August 3 rd, Name: Answer Key No calculators. Sow your work!. points) All answers sould eiter be,, a finite) real number, or DNE does not exist ). a) Use te grap of te function to evaluate

More information

1 Calculus. 1.1 Gradients and the Derivative. Q f(x+h) f(x)

1 Calculus. 1.1 Gradients and the Derivative. Q f(x+h) f(x) Calculus. Gradients and te Derivative Q f(x+) δy P T δx R f(x) 0 x x+ Let P (x, f(x)) and Q(x+, f(x+)) denote two points on te curve of te function y = f(x) and let R denote te point of intersection of

More information

Poisson Equation in Sobolev Spaces

Poisson Equation in Sobolev Spaces Poisson Equation in Sobolev Spaces OcMountain Dayligt Time. 6, 011 Today we discuss te Poisson equation in Sobolev spaces. It s existence, uniqueness, and regularity. Weak Solution. u = f in, u = g on

More information

ETNA Kent State University

ETNA Kent State University Electronic Transactions on Numerical Analysis. Volume 34, pp. 14-19, 2008. Copyrigt 2008,. ISSN 1068-9613. ETNA A NOTE ON NUMERICALLY CONSISTENT INITIAL VALUES FOR HIGH INDEX DIFFERENTIAL-ALGEBRAIC EQUATIONS

More information

Combining functions: algebraic methods

Combining functions: algebraic methods Combining functions: algebraic metods Functions can be added, subtracted, multiplied, divided, and raised to a power, just like numbers or algebra expressions. If f(x) = x 2 and g(x) = x + 2, clearly f(x)

More information

1.72, Groundwater Hydrology Prof. Charles Harvey Lecture Packet #9: Numerical Modeling of Groundwater Flow

1.72, Groundwater Hydrology Prof. Charles Harvey Lecture Packet #9: Numerical Modeling of Groundwater Flow 1.7, Groundwater Hydrology Prof. Carles Harvey Lecture Packet #9: Numerical Modeling of Groundwater Flow Simulation: Te prediction of quantities of interest (dependent variables) based upon an equation

More information

Analytic Functions. Differentiable Functions of a Complex Variable

Analytic Functions. Differentiable Functions of a Complex Variable Analytic Functions Differentiable Functions of a Complex Variable In tis capter, we sall generalize te ideas for polynomials power series of a complex variable we developed in te previous capter to general

More information

Numerical Differential Equations: IVP

Numerical Differential Equations: IVP Chapter 11 Numerical Differential Equations: IVP **** 4/16/13 EC (Incomplete) 11.1 Initial Value Problem for Ordinary Differential Equations We consider the problem of numerically solving a differential

More information

Chapter 1D - Rational Expressions

Chapter 1D - Rational Expressions - Capter 1D Capter 1D - Rational Expressions Definition of a Rational Expression A rational expression is te quotient of two polynomials. (Recall: A function px is a polynomial in x of degree n, if tere

More information

Ordinary Differential Equations

Ordinary Differential Equations CHAPTER 8 Ordinary Differential Equations 8.1. Introduction My section 8.1 will cover the material in sections 8.1 and 8.2 in the book. Read the book sections on your own. I don t like the order of things

More information

Order of Accuracy. ũ h u Ch p, (1)

Order of Accuracy. ũ h u Ch p, (1) Order of Accuracy 1 Terminology We consider a numerical approximation of an exact value u. Te approximation depends on a small parameter, wic can be for instance te grid size or time step in a numerical

More information

Pre-Calculus Review Preemptive Strike

Pre-Calculus Review Preemptive Strike Pre-Calculus Review Preemptive Strike Attaced are some notes and one assignment wit tree parts. Tese are due on te day tat we start te pre-calculus review. I strongly suggest reading troug te notes torougly

More information

Robotic manipulation project

Robotic manipulation project Robotic manipulation project Bin Nguyen December 5, 2006 Abstract Tis is te draft report for Robotic Manipulation s class project. Te cosen project aims to understand and implement Kevin Egan s non-convex

More information

The derivative function

The derivative function Roberto s Notes on Differential Calculus Capter : Definition of derivative Section Te derivative function Wat you need to know already: f is at a point on its grap and ow to compute it. Wat te derivative

More information

A = h w (1) Error Analysis Physics 141

A = h w (1) Error Analysis Physics 141 Introduction In all brances of pysical science and engineering one deals constantly wit numbers wic results more or less directly from experimental observations. Experimental observations always ave inaccuracies.

More information

LIMITS AND DERIVATIVES CONDITIONS FOR THE EXISTENCE OF A LIMIT

LIMITS AND DERIVATIVES CONDITIONS FOR THE EXISTENCE OF A LIMIT LIMITS AND DERIVATIVES Te limit of a function is defined as te value of y tat te curve approaces, as x approaces a particular value. Te limit of f (x) as x approaces a is written as f (x) approaces, as

More information

MATH745 Fall MATH745 Fall

MATH745 Fall MATH745 Fall MATH745 Fall 5 MATH745 Fall 5 INTRODUCTION WELCOME TO MATH 745 TOPICS IN NUMERICAL ANALYSIS Instructor: Dr Bartosz Protas Department of Matematics & Statistics Email: bprotas@mcmasterca Office HH 36, Ext

More information

Mathematics for chemical engineers. Numerical solution of ordinary differential equations

Mathematics for chemical engineers. Numerical solution of ordinary differential equations Mathematics for chemical engineers Drahoslava Janovská Numerical solution of ordinary differential equations Initial value problem Winter Semester 2015-2016 Outline 1 Introduction 2 One step methods Euler

More information

Click here to see an animation of the derivative

Click here to see an animation of the derivative Differentiation Massoud Malek Derivative Te concept of derivative is at te core of Calculus; It is a very powerful tool for understanding te beavior of matematical functions. It allows us to optimize functions,

More information

New Streamfunction Approach for Magnetohydrodynamics

New Streamfunction Approach for Magnetohydrodynamics New Streamfunction Approac for Magnetoydrodynamics Kab Seo Kang Brooaven National Laboratory, Computational Science Center, Building 63, Room, Upton NY 973, USA. sang@bnl.gov Summary. We apply te finite

More information

lecture 35: Linear Multistep Mehods: Truncation Error

lecture 35: Linear Multistep Mehods: Truncation Error 88 lecture 5: Linear Multistep Meods: Truncation Error 5.5 Linear ultistep etods One-step etods construct an approxiate solution x k+ x(t k+ ) using only one previous approxiation, x k. Tis approac enoys

More information

Chapter XI. Solution of Ordinary Differential Equations

Chapter XI. Solution of Ordinary Differential Equations dy d 7 Capter XI Solution of Ordinary Differential Equations Several approaces are described for te solution of ODE (ordinary differential equations). Tese include: Te Taylor series Metod Te Euler Metod

More information

1 1. Rationalize the denominator and fully simplify the radical expression 3 3. Solution: = 1 = 3 3 = 2

1 1. Rationalize the denominator and fully simplify the radical expression 3 3. Solution: = 1 = 3 3 = 2 MTH - Spring 04 Exam Review (Solutions) Exam : February 5t 6:00-7:0 Tis exam review contains questions similar to tose you sould expect to see on Exam. Te questions included in tis review, owever, are

More information

2.11 That s So Derivative

2.11 That s So Derivative 2.11 Tat s So Derivative Introduction to Differential Calculus Just as one defines instantaneous velocity in terms of average velocity, we now define te instantaneous rate of cange of a function at a point

More information

Bob Brown Math 251 Calculus 1 Chapter 3, Section 1 Completed 1 CCBC Dundalk

Bob Brown Math 251 Calculus 1 Chapter 3, Section 1 Completed 1 CCBC Dundalk Bob Brown Mat 251 Calculus 1 Capter 3, Section 1 Completed 1 Te Tangent Line Problem Te idea of a tangent line first arises in geometry in te context of a circle. But before we jump into a discussion of

More information

Two Step Hybrid Block Method with Two Generalized Off-step Points for Solving Second Ordinary Order Differential Equations Directly

Two Step Hybrid Block Method with Two Generalized Off-step Points for Solving Second Ordinary Order Differential Equations Directly Global Journal of Pure and Applied Matematics. ISSN 0973-768 Volume 2, Number 2 (206), pp. 59-535 Researc India Publications ttp://www.ripublication.com/gjpam.tm Two Step Hybrid Block Metod wit Two Generalized

More information

Rules of Differentiation

Rules of Differentiation LECTURE 2 Rules of Differentiation At te en of Capter 2, we finally arrive at te following efinition of te erivative of a function f f x + f x x := x 0 oing so only after an extene iscussion as wat te

More information

Fall 2014 MAT 375 Numerical Methods. Numerical Differentiation (Chapter 9)

Fall 2014 MAT 375 Numerical Methods. Numerical Differentiation (Chapter 9) Fall 2014 MAT 375 Numerical Metods (Capter 9) Idea: Definition of te derivative at x Obviuos approximation: f (x) = lim 0 f (x + ) f (x) f (x) f (x + ) f (x) forward-difference formula? ow good is tis

More information

THE IDEA OF DIFFERENTIABILITY FOR FUNCTIONS OF SEVERAL VARIABLES Math 225

THE IDEA OF DIFFERENTIABILITY FOR FUNCTIONS OF SEVERAL VARIABLES Math 225 THE IDEA OF DIFFERENTIABILITY FOR FUNCTIONS OF SEVERAL VARIABLES Mat 225 As we ave seen, te definition of derivative for a Mat 111 function g : R R and for acurveγ : R E n are te same, except for interpretation:

More information

(5.5) Multistep Methods

(5.5) Multistep Methods (5.5) Mulstep Metods Consider te inial-value problem for te ordinary differenal equaon: y t f t, y, a t b, y a. Let y t be te unique soluon. In Secons 5., 5. and 5.4, one-step numerical metods: Euler Metod,

More information

1 ode.mcd. Find solution to ODE dy/dx=f(x,y). Instructor: Nam Sun Wang

1 ode.mcd. Find solution to ODE dy/dx=f(x,y). Instructor: Nam Sun Wang Fin solution to ODE /=f(). Instructor: Nam Sun Wang oe.mc Backgroun. Wen a sstem canges wit time or wit location, a set of ifferential equations tat contains erivative terms "/" escribe suc a namic sstem.

More information

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

ACCESS TO SCIENCE, ENGINEERING AND AGRICULTURE: MATHEMATICS 1 MATH00030 SEMESTER /2019 ACCESS TO SCIENCE, ENGINEERING AND AGRICULTURE: MATHEMATICS MATH00030 SEMESTER 208/209 DR. ANTHONY BROWN 6. Differential Calculus 6.. Differentiation from First Principles. In tis capter, we will introduce

More information

A.P. CALCULUS (AB) Outline Chapter 3 (Derivatives)

A.P. CALCULUS (AB) Outline Chapter 3 (Derivatives) A.P. CALCULUS (AB) Outline Capter 3 (Derivatives) NAME Date Previously in Capter 2 we determined te slope of a tangent line to a curve at a point as te limit of te slopes of secant lines using tat point

More information

Key Concepts. Important Techniques. 1. Average rate of change slope of a secant line. You will need two points ( a, the formula: to find value

Key Concepts. Important Techniques. 1. Average rate of change slope of a secant line. You will need two points ( a, the formula: to find value AB Calculus Unit Review Key Concepts Average and Instantaneous Speed Definition of Limit Properties of Limits One-sided and Two-sided Limits Sandwic Teorem Limits as x ± End Beaviour Models Continuity

More information

Functions of the Complex Variable z

Functions of the Complex Variable z Capter 2 Functions of te Complex Variable z Introduction We wis to examine te notion of a function of z were z is a complex variable. To be sure, a complex variable can be viewed as noting but a pair of

More information

(a) At what number x = a does f have a removable discontinuity? What value f(a) should be assigned to f at x = a in order to make f continuous at a?

(a) At what number x = a does f have a removable discontinuity? What value f(a) should be assigned to f at x = a in order to make f continuous at a? Solutions to Test 1 Fall 016 1pt 1. Te grap of a function f(x) is sown at rigt below. Part I. State te value of eac limit. If a limit is infinite, state weter it is or. If a limit does not exist (but is

More information

Lab 6 Derivatives and Mutant Bacteria

Lab 6 Derivatives and Mutant Bacteria Lab 6 Derivatives and Mutant Bacteria Date: September 27, 20 Assignment Due Date: October 4, 20 Goal: In tis lab you will furter explore te concept of a derivative using R. You will use your knowledge

More information

Financial Econometrics Prof. Massimo Guidolin

Financial Econometrics Prof. Massimo Guidolin CLEFIN A.A. 2010/2011 Financial Econometrics Prof. Massimo Guidolin A Quick Review of Basic Estimation Metods 1. Were te OLS World Ends... Consider two time series 1: = { 1 2 } and 1: = { 1 2 }. At tis

More information

Sin, Cos and All That

Sin, Cos and All That Sin, Cos and All Tat James K. Peterson Department of Biological Sciences and Department of Matematical Sciences Clemson University Marc 9, 2017 Outline Sin, Cos and all tat! A New Power Rule Derivatives

More information