Comparison of Second Order Numerical Techniques for Linear and Non-Linear ODEs

Size: px
Start display at page:

Download "Comparison of Second Order Numerical Techniques for Linear and Non-Linear ODEs"

Transcription

1 Comparson of Second Order Numercal Technques for Lnear and Non-Lnear ODEs Davd Keffer Department of Chemcal Engneerng Unverst of Tennessee, Knoxvlle date begun: September 999 updated: October, 5 updated agan: Februar 8, 4 Table of Contents I. Purpose... II. Sngle Ordnar Dfferental Equaton... II.A. Second Order ethod for Generc ODE... 3 II.B. Second Order Implct ethod for Lnear ODE... 3 Opton. Solve for sequentall... 4 Opton. Solve for all smultaneousl... 4 II.C. Comparson of Second Order Explct and Implct ethods... 6 III. Sstems of Ordnar Dfferental Equatons... 7 III.A. Second Order ethod for a Sstem of Generc ODEs... 7 III.B. Second Order Implct ethod for a Sstem of Lnear ODE... 7 Opton. Solve for sequentall... 8 Opton. Solve for all (k ) smultaneousl... 8 Appx. atlab Subroutnes... Code A.. Heun s ethod ODE (heun_short)... Code A.. Implct ethod, Sequental Soluton ODE (lnode_o_seq short)... Code A.3. Implct ethod, Smultaneous Soluton ODE (lnode_o_sm short)... Code A.4. Heun s ethod n ODEs (heunn_short)... 3 Code A.5. Implct ethod, Sequental Soluton n ODEs (lnode_o_seq_n_short)... 4

2 I. Purpose The purpose of ths lecture package s not to ntroduce a new second order numercal soluton technque for solvng ODEs when we alread have a ver excellent fourth-second order numercal soluton technque for solvng ODEs. Rather, the purpose s to ntroduce these second order technques because the are used to solve PDEs. B frst applng the technques to ODEs, we shall see how the ft nto the faml of methods that nclude the Euler method and the Runge-Kutta method. When we then see the technque used for the soluton of PDEs, t won t seem so foregn. Addtonall, n ths document we compare mplct and explct second order algorthms. The mplct algorthms work onl for lnear ODEs. The explct algorthms are appled to an (nonlnear or lnear) ODEs. Agan, these mplct technques are not tpcall used to solve ODEs because f we have a lnear ODE we wll solve t analtcall. However, the lnear technques are used to solve lnear PDEs. We ntroduce them here, where the applcaton to ODEs s famlar and we can clearl compare the advantages and dsadvantages of mplct and explct technques. II. Sngle Ordnar Dfferental Equaton Consder the sngle frst-order ODE (ether lnear or nonlnear) d f (, t) () dt wth the ntal condton ( t o ) o () We can agan solve ths numercall, usng an Euler-lke formula ~ ( t t ) f (3) where ~ f s an approxmaton to the dervatve over the nterval from t to t. For a second order method, the approxmaton to the dervatve s smpl an average of the values at t and t. ~ f f, t, f t (4)

3 The problem s that we don t know the value of that appears on the rght hand sde of equaton (4). II.A. Second Order ethod for Generc ODE In the general case (meanng that equaton () s ether lnear or nonlnear n ), we can use the Euler method to approxmate for the purposes of equaton (4). ( t t ) f t, (5) We then substtute ths value nto equaton (4) and substtute the resultng value of f ~ nto equaton (3), eldng a second order method: ) ~ t, f t, ( t t ) f t ( t t ) f ( t t ) f, (6 Ths mplementaton of the second order method s a member of a class of methods known as predctor-corrector methods, because ou use Euler s method to predct and ou use equaton (6) to correct the value. Specfcall, equaton (6) s called Heun s method. A code that mplements equaton (6) s provded at the of these notes n appx A.. II.B. Second Order Implct ethod for Lnear ODE In obtanng equaton (6), we were forced to make an addtonal approxmaton, namel we had to use the Euler method for a prelmnar estmate of. If the ODE (eqn. ()) s lnear, then we do not have to make ths approxmaton n order to solve the problem. Therefore, an mplct method that does not make ths approxmaton wll be more accurate than Heun s method. When we appl ths technque to PDEs we wll be seekng to gan advantages n accurac wherever we can fnd them. We now derve the mplct method. Consder a lnear ODE of the form d dt f (, t) a( t) ( t) b( t) (7) wth the ntal condton of equaton (). We substtute ths lnear ODE nto equaton (4) obtanng ~ f a b a b (8) 3

4 where we have used the shorthand notaton that a a( t ), as we have done for and b as well. We substtute equaton (8) nto equaton (3) ( t t ) a b a b (9) We solve for the unknown,, obtanng A, A, B () where A, j s the coeffcent (n general a functon of the ndepent varable t) n front of the j th varable at the th tme, t, and has the form t t - a j f j A, j () t t -- a j f j ( t t ) B b b () Ths method s classfed as an mplct method because the value of the unknown appears on both the left hand sde and rght hand sde of equaton (9). Opton. Solve for sequentall We could proceed as we dd n the Euler method, where we evaluate at t, then use that result to generate at t, etc. through repeated applcatons of equaton (). Ths s totall legtmate and wll lead to the correct approxmaton of the soluton. A code that mplements the sequental soluton of ths mplct method s gven n appx A.. Opton. Solve for all smultaneousl Consder that we dvde the ndepent varable, t, nto n ntervals, each of sze ( t f to ) t (3) n where s the ntal tme from the ntal condton n equaton () and t f s the fnal tme, beond whch we are no longer nterested n the soluton of the ODE. Our approxmate soluton wll be evaluated at n+ ponts, the ntal condton and the n subsequent values of t. If we desgnate 4

5 the soluton of the ODE at each of these ponts as for = to n+, then we can wrte the followng set equatons: o for = A A B,, for = to n+ (4) Ths s a sstem of lnear algebrac equatons. It can be wrtten n matrx form as: A B (5) where the vector B s prncpall defned b equaton (), except for the frst entr whch s the ntal condton, B B Bn o (6) and where the matrx A s prncpall defned b equaton (), except for the frst row whch s the ntal condton, A A, A, A n A, n n, n (7) Thus, we have transformed the numercal soluton of a lnear ODE nto the soluton of a sstem of lnear algebrac equatons, whch we know how to solve. One nverson of ths matrx effectvel solve the ODE problem. The transformaton of ODEs to lnear algebrac equatons through the dscretzaton of the ndepent and depent varables s a commonl encountered transformaton. It s one that s used ubqutousl through-out the soluton of PDEs and Integral Equatons. Therefore, t was educatonal to ntroduce the concept here, even though we would lkel never use ths methodolog to solve a sngle lnear ODE as we dd here. Note that the sequental and smultaneous solutons of the mplct method eld (to wthn machne precson) the same result. The mplct method wll eld a more accurate soluton than Heun s method. 5

6 A code that mplements the smultaneous soluton of ths mplct method s gven n appx A.3. II.C. Comparson of Second Order Explct and Implct ethods Consder the ntal value problem: d a( x) b( x) dx where we have an ntal condton of the form: ( x x o ) o wth the specfc values gven b: a ( x), b( x) xsn(3x), ( x ) Ths IVP has the analtcal soluton nh 57 x e cos(3 ) x x 6x 5sn(3x) 39x We now ths ODE usng the three second-order methods descrbed above, Heun s method, the mplct sequental method and the mplct smultaneous method. For all methods, we set x f = 4 and use n = ntervals. Plots of the soluton and absolute error are shown below..5 x absolute error.5 Heun lnear, sequental lnear,smultaneous - analtcal Heun lnear, sequental lnear,smultaneous x x From the plot of the solutons, t s dffcult to see the dfference between the methods for ths tme step. From the plot of the error, one sees that the errors of the two mplct methods are 6

7 exactl the same and both are better than Heun s method. The wavness of the absolute error s due to the non-monotonc nature of the soluton. III. Sstems of Ordnar Dfferental Equatons A general sstem of frst order ODEs can be expressed as d dt f (, t) (8) wth the ntal condtons ( t o ) o (9) III.A. Second Order ethod for a Sstem of Generc ODEs In the general case (the equatons are ether lnear or nonlnear n, we can wrte the straghtforward mult-equaton analog of Heun s method. We agan use Euler s method to predct the value of the functon, p ~ t t ) f ( t t ) f (, t ) () ( We super-scrpted ths wth a p to dentf ths as the predcton step. The predcton step s followed b the correcton step ~ ( t t ) f ( t ) (, ) t f t p f (, t ) () Therefore, these technques are sometmes called predctor-corrector methods. As we dd n the sngle equaton case, we sequentall solve for each based on. A code that mplements equatons () and () s provded at the of these notes n appx A.4. Ths s essentall Heun s method exted to a sstem of ODEs. III.B. Second Order Implct ethod for a Sstem of Lnear ODE We can also repeat the dervaton for a more accurate second order method f ever equaton n the sstem of ODEs s lnear. In fact, f the equatons are lnear, we don t even need to make the approxmaton that we can solate the dervatves on the left hand sde of the equaton, as we dd above n the general soluton. If the equatons are lnear, the general sstem can be wrtten as C(t) d A(t)(t) B(t) () dt 7

8 Equaton () would be dentcal to equaton (9) f C (t) were the dentt matrx. In solvng a sstem of mass and energ balances, ths s frequentl the case. The dervaton of the method, now becomes more complcated. We need three ndces on the elements of A (t). The frst ndex ndcates the equaton. The second ndex ndcates the varable. The thrd ndex ndcates the tme step, once we have performed the dscretzaton of ( k ) tme necessar to obtan the numercal soluton. We wll use the notaton A, j to desgnate the coeffcent (the tme functonalt s now mplct) of the j th varable n the th equaton at (k ) dscretzed tme t k. Smlarl, A represents the entre matrx of coeffcents at dscretzed tme t k. If C s a constant matrx, we can dscretze equaton () as C ( k ) t k t ( k) k ( k) ( k) ( k) ( k ) ( k ) ( k ) A B A B (3) Once agan, ou can proceed to solve ths problem sequentall or smultaneousl. Opton. Solve for sequentall We can rearrange equaton (3) to solate our vector of unknowns t ( k ) ( k ) t ( k ) ( k ) t ( k ) ( k ) C A C A B B (4) Everthng on the rght-hand sde of equaton (4) s known. You nvert and solve for (k ) (k ). A code that mplements the sequental soluton of ths mplct method s gven n appx A.5. Opton. Solve for all (k ) smultaneousl We could wrte equaton (4) for all values of k from to n+ (for a dscretzaton of t nvolvng n ntervals). We then have a sstem of m ODEs, we now have a sstem of m(n+) lnear algebrac equatons. We could nvert ths larger matrx f we so chose. In solvng all of the equatons smultaneousl, we would have to create a sngle matrx of unknowns. We have some freedom as to how we choose to order our unknowns. Two possble arrangements for a sstem wth m equatons and n tme ntervals are shown below. 8

9 Y ( n ( n m m ( n m () () ) () () ) () () ) or () () Y (5) ( n) ( n ) In the frst arrangement, the unknowns are grouped b varable. In the second arrangement, the unknowns are grouped b tme. The latter form s preferable for two reasons. Frst, t reduces the bandwdth of the resultng matrx, whch equates to a qucker computaton. Second, t also facltates the mathematcal descrpton of the sstem. Here we assume that the vector of unknowns takes the form of the second arrangement. We then can wrte a sstem of m(n+) lnear algebrac equatons of the form A Y B (6) where, n order to present a compact descrpton of the matrx and vector n equaton (6), we frst rewrte equaton (4) as ( k ) ( k ) B k, k k, k k (7) where the matrx, k, k, and the vector, B k, are defned b comparson to equaton (4). The matrx and vector used n equaton (6) are related to the smaller matrces and vectors used n equaton (7) b the followng equatons: 9

10 ,, 3,3 3,,, n n n n I A (8) and 3 n o B B B B (9) Thus, we have shown how we can transform the numercal soluton of a sstem of lnear frstorder ODEs nto the soluton of a sstem of lnear algebrac equatons. A code that mplements the smultaneous soluton of ths mplct method s left as an exercse for the curous reader.

11 Appx. atlab Subroutnes In ths secton, we provde routnes for mplementng the varous optmzaton methods descrbed above that are not translated from Numercal Recpes. Note that these codes correspond to the theor and notaton exactl as lad out n ths book. These codes do not contan extensve error checkng, whch would complcate the codng and defeat ther purpose as learnng tools. That sad, these codes work and can be used to solve problems. As before, on the course webste, two entrel equvalent versons of ths code are provded and are ttled code.m and code_short.m. The short verson s presented here. The longer verson, contanng nstructons and servng more as a learnng tool, s not presented here. The numercal mechancs of the two versons of the code are dentcal. Code A.. Heun s ethod ODE (heun_short) functon [x,]=heun(n,xo,xf,o); dx = (xf-xo)/n; x = zeros(n+,); for = ::n+ x() = xo + (-)dx; = zeros(n+,); () = o; for = ::n x = x(); = (); k = funkeval(x,); x = x() + dx; = () + dxk; k = funkeval(x,); ddx =./.(k + k); (+) = () + dxddx; close all; plot = ; f (plot == ) plot (x,,'k-o'), xlabel( 'x' ), label ( '' ); fd = fopen('heun_out.txt','w'); fprntf(fd,'x \n'); fprntf(fd,'%3.5e %3.5e \n', [x,]'); fclose(fd); functon ddx = funkeval(x,); ddx = -.^; An example of usng heun_short s gven below.» [x,]=heun_short(,,,);

12 Ths program generates outputs n three forms. Frst, the x and vectors are stored n memor and can be drectl accessed. Second, the program generates a plot of vs. x. Thrd, the program generates an output fle, heun_out.txt, that contans x and vectors n tabulated form. Code A.. Implct ethod, Sequental Soluton ODE (lnode_o_seq short) functon [x,]=lnode_o_seq short(n,xo,xf,o); dx = (xf-xo)/n; x = zeros(n+,); for = ::n+ x() = xo + (-)dx; = zeros(n+,); () = o; for = ::n+ A =. -.5dxfunkeval_a(x()); Aj = dxfunkeval_a(x(-)); B =.5dx(funkeval_b(x()) + funkeval_b(x(-))); () =./A(B - Aj(-)); close all; plot = ; f (plot == ) plot (x,,'k-o'), xlabel( 'x' ), label ( '' ); % % wrte result to fle 'lnode_o_seq out.txt' % fd = fopen('lnode_o_seq out.txt','w'); fprntf(fd,'x \n'); fprntf(fd,'%3.5e %3.5e \n', [x,]'); fclose(fd); % ddx = a(x)(x) + b(x); functon a = funkeval_a(x); a = -x; functon b = funkeval_b(x); b = sn(x); An example of usng lnode_o_seq short s gven below. >> [x,]=lnode_o_seq short(,,,); Code A.3. Implct ethod, Smultaneous Soluton ODE (lnode_o_sm short) functon [x,]=lnode_o_sm short(n,xo,xf,o); dx = (xf-xo)/n; x = zeros(n+,); for = ::n+ x() = xo + (-)dx; = zeros(n+,); A = zeros(n+,n+); B = zeros(n+,);

13 A(,) =.; B() = o; for = ::n+ B() =.5dx(funkeval_b(x()) + funkeval_b(x(-))); A(,) =. -.5dxfunkeval_a(x()); A(,-) = dxfunkeval_a(x(-)); nva = nv(a); = nvab; close all; plot = ; f (plot == ) plot (x,,'k-o'), xlabel( 'x' ), label ( '' ); fd = fopen('lnode_o_sm out.txt','w'); fprntf(fd,'x \n'); fprntf(fd,'%3.5e %3.5e \n', [x,]'); fclose(fd); % ddx = a(x)(x) + b(x); functon a = funkeval_a(x); a = -x; functon b = funkeval_b(x); b = sn(x); An example of usng lnode_o_sm short s gven below. >> [x,]=lnode_o_sm short(,,,); Code A.4. Heun s ethod n ODEs (heunn_short) functon [x,]=heunn_short(n,xo,xf,o); dx = (xf-xo)/n; x = zeros(n+,); for = ::n+ x() = xo + (-)dx; m=max(sze(o)); = zeros(n+,m); (,:m) = o(:m); ddx = zeros(,m); temp = zeros(,m); k = zeros(,m); k = zeros(,m); for = ::n x = x(); temp(:m) = (,:m); k(:m) = funkeval(x,temp); x = x() + dx; temp(:m) = (,:m) + dxk(:m); k(:m) = funkeval(x,temp); ddx(:m) =./.(k(:m) + k(:m)); (+,:m) = (,:m) + dxddx(:m); 3

14 close all; plot = ; f (plot == ) for = ::m color_ndex = get_plot_color(); plot (x(:),(:,),color_ndex); hold on; hold off; xlabel( 'x' ); label ( '' ); leg (ntstr([:m]')); fd = fopen('heunn_out.txt','w'); fprntf(fd,'x ()... (m) \n'); for = ::n+ fprntf(fd,'%3.5e ', x()); for j = ::m fprntf(fd,'%3.5e ', (,j)); fprntf(fd,' \n'); fclose(fd); functon ddx = funkeval(x,); ddx() = -.() -.() -.5(3)^; ddx() = -.() - 4.() -.5(3); ddx(3) = -.5() -.4() -.(3); An example of usng heunn_short s gven below. >> [x,]=heunn_short(,,,[,,]); Code A.5. Implct ethod, Sequental Soluton n ODEs (lnode_o_seq_n_short) functon [x,]=lnode_o_seq_n(n,xo,xf,o); dx = (xf-xo)/n; x = zeros(n+,); for = ::n+ x() = xo + (-)dx; m=max(sze(o)); = zeros(n+,m); (,:m) = o(:m); for k = ::n+ AA = zeros(m,m); BB = zeros(m,); for = ::m BB() =.5dx(funkeval_b(,x(k)) + funkeval_b(,x(k-))); for j = ::m AA(,j) = funkeval_c(,j,x(k)) -.5dxfunkeval_a(,j,x(k)); term = funkeval_c(,j,x(k-)) +.5dxfunkeval_a(,j,x(k-)); BB() = BB() + term(k-,j); nvaa = nv(aa); 4

15 (k,:m) = nvaabb; close all; plot = ; f (plot == ) for = ::m color_ndex = get_plot_color(); plot (x(:),(:,),color_ndex); hold on; hold off; xlabel( 'x' ); label ( '' ); leg (ntstr([:m]')); fd = fopen('lnode_o_seq_n_out.txt','w'); fprntf(fd,'x ()... (m) \n'); for = ::n+ fprntf(fd,'%3.5e ', x()); for j = ::m fprntf(fd,'%3.5e ', (,j)); fprntf(fd,' \n'); fclose(fd); % c(x)d_/dx = A(x)_ + b(x); functon aout = funkeval_a(,j,x); amat = [ ; - -]; aout = amat(,j); functon bout = funkeval_b(,x); bvec = [/(+x); ]; bout = bvec(); functon cout = funkeval_c(,j,x); cmat = [ ; ]; cout = cmat(,j); An example of usng lnode_o_seq_n_short s gven below. >> [x,]=lnode_o_seq_n_short(,,,[,]); 5

Numerical Solution of Ordinary Differential Equations

Numerical Solution of Ordinary Differential Equations Numercal Methods (CENG 00) CHAPTER-VI Numercal Soluton of Ordnar Dfferental Equatons 6 Introducton Dfferental equatons are equatons composed of an unknown functon and ts dervatves The followng are examples

More information

6.3.4 Modified Euler s method of integration

6.3.4 Modified Euler s method of integration 6.3.4 Modfed Euler s method of ntegraton Before dscussng the applcaton of Euler s method for solvng the swng equatons, let us frst revew the basc Euler s method of numercal ntegraton. Let the general from

More information

Chapter 12. Ordinary Differential Equation Boundary Value (BV) Problems

Chapter 12. Ordinary Differential Equation Boundary Value (BV) Problems Chapter. Ordnar Dfferental Equaton Boundar Value (BV) Problems In ths chapter we wll learn how to solve ODE boundar value problem. BV ODE s usuall gven wth x beng the ndependent space varable. p( x) q(

More information

EEE 241: Linear Systems

EEE 241: Linear Systems EEE : Lnear Systems Summary #: Backpropagaton BACKPROPAGATION The perceptron rule as well as the Wdrow Hoff learnng were desgned to tran sngle layer networks. They suffer from the same dsadvantage: they

More information

Appendix B. The Finite Difference Scheme

Appendix B. The Finite Difference Scheme 140 APPENDIXES Appendx B. The Fnte Dfference Scheme In ths appendx we present numercal technques whch are used to approxmate solutons of system 3.1 3.3. A comprehensve treatment of theoretcal and mplementaton

More information

CHAPTER 5 NUMERICAL EVALUATION OF DYNAMIC RESPONSE

CHAPTER 5 NUMERICAL EVALUATION OF DYNAMIC RESPONSE CHAPTER 5 NUMERICAL EVALUATION OF DYNAMIC RESPONSE Analytcal soluton s usually not possble when exctaton vares arbtrarly wth tme or f the system s nonlnear. Such problems can be solved by numercal tmesteppng

More information

Linear Feature Engineering 11

Linear Feature Engineering 11 Lnear Feature Engneerng 11 2 Least-Squares 2.1 Smple least-squares Consder the followng dataset. We have a bunch of nputs x and correspondng outputs y. The partcular values n ths dataset are x y 0.23 0.19

More information

Chapter 5. Solution of System of Linear Equations. Module No. 6. Solution of Inconsistent and Ill Conditioned Systems

Chapter 5. Solution of System of Linear Equations. Module No. 6. Solution of Inconsistent and Ill Conditioned Systems Numercal Analyss by Dr. Anta Pal Assstant Professor Department of Mathematcs Natonal Insttute of Technology Durgapur Durgapur-713209 emal: anta.bue@gmal.com 1 . Chapter 5 Soluton of System of Lnear Equatons

More information

Lecture 21: Numerical methods for pricing American type derivatives

Lecture 21: Numerical methods for pricing American type derivatives Lecture 21: Numercal methods for prcng Amercan type dervatves Xaoguang Wang STAT 598W Aprl 10th, 2014 (STAT 598W) Lecture 21 1 / 26 Outlne 1 Fnte Dfference Method Explct Method Penalty Method (STAT 598W)

More information

Numerical Heat and Mass Transfer

Numerical Heat and Mass Transfer Master degree n Mechancal Engneerng Numercal Heat and Mass Transfer 06-Fnte-Dfference Method (One-dmensonal, steady state heat conducton) Fausto Arpno f.arpno@uncas.t Introducton Why we use models and

More information

NUMERICAL DIFFERENTIATION

NUMERICAL DIFFERENTIATION NUMERICAL DIFFERENTIATION 1 Introducton Dfferentaton s a method to compute the rate at whch a dependent output y changes wth respect to the change n the ndependent nput x. Ths rate of change s called the

More information

Handout # 6 (MEEN 617) Numerical Integration to Find Time Response of SDOF mechanical system. and write EOM (1) as two first-order Eqs.

Handout # 6 (MEEN 617) Numerical Integration to Find Time Response of SDOF mechanical system. and write EOM (1) as two first-order Eqs. Handout # 6 (MEEN 67) Numercal Integraton to Fnd Tme Response of SDOF mechancal system State Space Method The EOM for a lnear system s M X + DX + K X = F() t () t = X = X X = X = V wth ntal condtons, at

More information

Salmon: Lectures on partial differential equations. Consider the general linear, second-order PDE in the form. ,x 2

Salmon: Lectures on partial differential equations. Consider the general linear, second-order PDE in the form. ,x 2 Salmon: Lectures on partal dfferental equatons 5. Classfcaton of second-order equatons There are general methods for classfyng hgher-order partal dfferental equatons. One s very general (applyng even to

More information

For now, let us focus on a specific model of neurons. These are simplified from reality but can achieve remarkable results.

For now, let us focus on a specific model of neurons. These are simplified from reality but can achieve remarkable results. Neural Networks : Dervaton compled by Alvn Wan from Professor Jtendra Malk s lecture Ths type of computaton s called deep learnng and s the most popular method for many problems, such as computer vson

More information

NON-CENTRAL 7-POINT FORMULA IN THE METHOD OF LINES FOR PARABOLIC AND BURGERS' EQUATIONS

NON-CENTRAL 7-POINT FORMULA IN THE METHOD OF LINES FOR PARABOLIC AND BURGERS' EQUATIONS IJRRAS 8 (3 September 011 www.arpapress.com/volumes/vol8issue3/ijrras_8_3_08.pdf NON-CENTRAL 7-POINT FORMULA IN THE METHOD OF LINES FOR PARABOLIC AND BURGERS' EQUATIONS H.O. Bakodah Dept. of Mathematc

More information

DEMO #8 - GAUSSIAN ELIMINATION USING MATHEMATICA. 1. Matrices in Mathematica

DEMO #8 - GAUSSIAN ELIMINATION USING MATHEMATICA. 1. Matrices in Mathematica demo8.nb 1 DEMO #8 - GAUSSIAN ELIMINATION USING MATHEMATICA Obectves: - defne matrces n Mathematca - format the output of matrces - appl lnear algebra to solve a real problem - Use Mathematca to perform

More information

2 Finite difference basics

2 Finite difference basics Numersche Methoden 1, WS 11/12 B.J.P. Kaus 2 Fnte dfference bascs Consder the one- The bascs of the fnte dfference method are best understood wth an example. dmensonal transent heat conducton equaton T

More information

Consistency & Convergence

Consistency & Convergence /9/007 CHE 374 Computatonal Methods n Engneerng Ordnary Dfferental Equatons Consstency, Convergence, Stablty, Stffness and Adaptve and Implct Methods ODE s n MATLAB, etc Consstency & Convergence Consstency

More information

Econ107 Applied Econometrics Topic 3: Classical Model (Studenmund, Chapter 4)

Econ107 Applied Econometrics Topic 3: Classical Model (Studenmund, Chapter 4) I. Classcal Assumptons Econ7 Appled Econometrcs Topc 3: Classcal Model (Studenmund, Chapter 4) We have defned OLS and studed some algebrac propertes of OLS. In ths topc we wll study statstcal propertes

More information

Numerical Solutions of a Generalized Nth Order Boundary Value Problems Using Power Series Approximation Method

Numerical Solutions of a Generalized Nth Order Boundary Value Problems Using Power Series Approximation Method Appled Mathematcs, 6, 7, 5-4 Publshed Onlne Jul 6 n ScRes. http://www.scrp.org/journal/am http://.do.org/.436/am.6.77 umercal Solutons of a Generalzed th Order Boundar Value Problems Usng Power Seres Approxmaton

More information

Difference Equations

Difference Equations Dfference Equatons c Jan Vrbk 1 Bascs Suppose a sequence of numbers, say a 0,a 1,a,a 3,... s defned by a certan general relatonshp between, say, three consecutve values of the sequence, e.g. a + +3a +1

More information

Lecture 10 Support Vector Machines II

Lecture 10 Support Vector Machines II Lecture 10 Support Vector Machnes II 22 February 2016 Taylor B. Arnold Yale Statstcs STAT 365/665 1/28 Notes: Problem 3 s posted and due ths upcomng Frday There was an early bug n the fake-test data; fxed

More information

A new Approach for Solving Linear Ordinary Differential Equations

A new Approach for Solving Linear Ordinary Differential Equations , ISSN 974-57X (Onlne), ISSN 974-5718 (Prnt), Vol. ; Issue No. 1; Year 14, Copyrght 13-14 by CESER PUBLICATIONS A new Approach for Solvng Lnear Ordnary Dfferental Equatons Fawz Abdelwahd Department of

More information

Generalized Linear Methods

Generalized Linear Methods Generalzed Lnear Methods 1 Introducton In the Ensemble Methods the general dea s that usng a combnaton of several weak learner one could make a better learner. More formally, assume that we have a set

More information

Transfer Functions. Convenient representation of a linear, dynamic model. A transfer function (TF) relates one input and one output: ( ) system

Transfer Functions. Convenient representation of a linear, dynamic model. A transfer function (TF) relates one input and one output: ( ) system Transfer Functons Convenent representaton of a lnear, dynamc model. A transfer functon (TF) relates one nput and one output: x t X s y t system Y s The followng termnology s used: x y nput output forcng

More information

1 Matrix representations of canonical matrices

1 Matrix representations of canonical matrices 1 Matrx representatons of canoncal matrces 2-d rotaton around the orgn: ( ) cos θ sn θ R 0 = sn θ cos θ 3-d rotaton around the x-axs: R x = 1 0 0 0 cos θ sn θ 0 sn θ cos θ 3-d rotaton around the y-axs:

More information

Note 10. Modeling and Simulation of Dynamic Systems

Note 10. Modeling and Simulation of Dynamic Systems Lecture Notes of ME 475: Introducton to Mechatroncs Note 0 Modelng and Smulaton of Dynamc Systems Department of Mechancal Engneerng, Unversty Of Saskatchewan, 57 Campus Drve, Saskatoon, SK S7N 5A9, Canada

More information

New Method for Solving Poisson Equation. on Irregular Domains

New Method for Solving Poisson Equation. on Irregular Domains Appled Mathematcal Scences Vol. 6 01 no. 8 369 380 New Method for Solvng Posson Equaton on Irregular Domans J. Izadan and N. Karamooz Department of Mathematcs Facult of Scences Mashhad BranchIslamc Azad

More information

Lecture 12: Discrete Laplacian

Lecture 12: Discrete Laplacian Lecture 12: Dscrete Laplacan Scrbe: Tanye Lu Our goal s to come up wth a dscrete verson of Laplacan operator for trangulated surfaces, so that we can use t n practce to solve related problems We are mostly

More information

A New Refinement of Jacobi Method for Solution of Linear System Equations AX=b

A New Refinement of Jacobi Method for Solution of Linear System Equations AX=b Int J Contemp Math Scences, Vol 3, 28, no 17, 819-827 A New Refnement of Jacob Method for Soluton of Lnear System Equatons AX=b F Naem Dafchah Department of Mathematcs, Faculty of Scences Unversty of Gulan,

More information

THE VIBRATIONS OF MOLECULES II THE CARBON DIOXIDE MOLECULE Student Instructions

THE VIBRATIONS OF MOLECULES II THE CARBON DIOXIDE MOLECULE Student Instructions THE VIBRATIONS OF MOLECULES II THE CARBON DIOXIDE MOLECULE Student Instructons by George Hardgrove Chemstry Department St. Olaf College Northfeld, MN 55057 hardgrov@lars.acc.stolaf.edu Copyrght George

More information

x yi In chapter 14, we want to perform inference (i.e. calculate confidence intervals and perform tests of significance) in this setting.

x yi In chapter 14, we want to perform inference (i.e. calculate confidence intervals and perform tests of significance) in this setting. The Practce of Statstcs, nd ed. Chapter 14 Inference for Regresson Introducton In chapter 3 we used a least-squares regresson lne (LSRL) to represent a lnear relatonshp etween two quanttatve explanator

More information

Linear Approximation with Regularization and Moving Least Squares

Linear Approximation with Regularization and Moving Least Squares Lnear Approxmaton wth Regularzaton and Movng Least Squares Igor Grešovn May 007 Revson 4.6 (Revson : March 004). 5 4 3 0.5 3 3.5 4 Contents: Lnear Fttng...4. Weghted Least Squares n Functon Approxmaton...

More information

PART 8. Partial Differential Equations PDEs

PART 8. Partial Differential Equations PDEs he Islamc Unverst of Gaza Facult of Engneerng Cvl Engneerng Department Numercal Analss ECIV 3306 PAR 8 Partal Dfferental Equatons PDEs Chapter 9; Fnte Dfference: Ellptc Equatons Assocate Prof. Mazen Abualtaef

More information

MMA and GCMMA two methods for nonlinear optimization

MMA and GCMMA two methods for nonlinear optimization MMA and GCMMA two methods for nonlnear optmzaton Krster Svanberg Optmzaton and Systems Theory, KTH, Stockholm, Sweden. krlle@math.kth.se Ths note descrbes the algorthms used n the author s 2007 mplementatons

More information

E91: Dynamics. E91: Dynamics. Numerical Integration & State Space Representation

E91: Dynamics. E91: Dynamics. Numerical Integration & State Space Representation E91: Dnamcs Numercal Integraton & State Space Representaton The Algorthm In steps of Δ f ( new ) f ( old ) df ( d old ) Δ Numercal Integraton of ODEs d d f() h Δ Intal value problem: Gven the ntal state

More information

Introduction to Vapor/Liquid Equilibrium, part 2. Raoult s Law:

Introduction to Vapor/Liquid Equilibrium, part 2. Raoult s Law: CE304, Sprng 2004 Lecture 4 Introducton to Vapor/Lqud Equlbrum, part 2 Raoult s Law: The smplest model that allows us do VLE calculatons s obtaned when we assume that the vapor phase s an deal gas, and

More information

Lectures - Week 4 Matrix norms, Conditioning, Vector Spaces, Linear Independence, Spanning sets and Basis, Null space and Range of a Matrix

Lectures - Week 4 Matrix norms, Conditioning, Vector Spaces, Linear Independence, Spanning sets and Basis, Null space and Range of a Matrix Lectures - Week 4 Matrx norms, Condtonng, Vector Spaces, Lnear Independence, Spannng sets and Bass, Null space and Range of a Matrx Matrx Norms Now we turn to assocatng a number to each matrx. We could

More information

Kernel Methods and SVMs Extension

Kernel Methods and SVMs Extension Kernel Methods and SVMs Extenson The purpose of ths document s to revew materal covered n Machne Learnng 1 Supervsed Learnng regardng support vector machnes (SVMs). Ths document also provdes a general

More information

CSci 6974 and ECSE 6966 Math. Tech. for Vision, Graphics and Robotics Lecture 21, April 17, 2006 Estimating A Plane Homography

CSci 6974 and ECSE 6966 Math. Tech. for Vision, Graphics and Robotics Lecture 21, April 17, 2006 Estimating A Plane Homography CSc 6974 and ECSE 6966 Math. Tech. for Vson, Graphcs and Robotcs Lecture 21, Aprl 17, 2006 Estmatng A Plane Homography Overvew We contnue wth a dscusson of the major ssues, usng estmaton of plane projectve

More information

ORDINARY DIFFERENTIAL EQUATIONS EULER S METHOD

ORDINARY DIFFERENTIAL EQUATIONS EULER S METHOD Numercal Analss or Engneers German Jordanan Unverst ORDINARY DIFFERENTIAL EQUATIONS We wll eplore several metods o solvng rst order ordnar derental equatons (ODEs and we wll sow ow tese metods can be appled

More information

Lecture 2: Numerical Methods for Differentiations and Integrations

Lecture 2: Numerical Methods for Differentiations and Integrations Numercal Smulaton of Space Plasmas (I [AP-4036] Lecture 2 by Lng-Hsao Lyu March, 2018 Lecture 2: Numercal Methods for Dfferentatons and Integratons As we have dscussed n Lecture 1 that numercal smulaton

More information

FTCS Solution to the Heat Equation

FTCS Solution to the Heat Equation FTCS Soluton to the Heat Equaton ME 448/548 Notes Gerald Recktenwald Portland State Unversty Department of Mechancal Engneerng gerry@pdx.edu ME 448/548: FTCS Soluton to the Heat Equaton Overvew 1. Use

More information

A Hybrid Variational Iteration Method for Blasius Equation

A Hybrid Variational Iteration Method for Blasius Equation Avalable at http://pvamu.edu/aam Appl. Appl. Math. ISSN: 1932-9466 Vol. 10, Issue 1 (June 2015), pp. 223-229 Applcatons and Appled Mathematcs: An Internatonal Journal (AAM) A Hybrd Varatonal Iteraton Method

More information

36.1 Why is it important to be able to find roots to systems of equations? Up to this point, we have discussed how to find the solution to

36.1 Why is it important to be able to find roots to systems of equations? Up to this point, we have discussed how to find the solution to ChE Lecture Notes - D. Keer, 5/9/98 Lecture 6,7,8 - Rootndng n systems o equatons (A) Theory (B) Problems (C) MATLAB Applcatons Tet: Supplementary notes rom Instructor 6. Why s t mportant to be able to

More information

Additional Codes using Finite Difference Method. 1 HJB Equation for Consumption-Saving Problem Without Uncertainty

Additional Codes using Finite Difference Method. 1 HJB Equation for Consumption-Saving Problem Without Uncertainty Addtonal Codes usng Fnte Dfference Method Benamn Moll 1 HJB Equaton for Consumpton-Savng Problem Wthout Uncertanty Before consderng the case wth stochastc ncome n http://www.prnceton.edu/~moll/ HACTproect/HACT_Numercal_Appendx.pdf,

More information

Errors for Linear Systems

Errors for Linear Systems Errors for Lnear Systems When we solve a lnear system Ax b we often do not know A and b exactly, but have only approxmatons  and ˆb avalable. Then the best thng we can do s to solve ˆx ˆb exactly whch

More information

Chapter Newton s Method

Chapter Newton s Method Chapter 9. Newton s Method After readng ths chapter, you should be able to:. Understand how Newton s method s dfferent from the Golden Secton Search method. Understand how Newton s method works 3. Solve

More information

Solution of Linear System of Equations and Matrix Inversion Gauss Seidel Iteration Method

Solution of Linear System of Equations and Matrix Inversion Gauss Seidel Iteration Method Soluton of Lnear System of Equatons and Matr Inverson Gauss Sedel Iteraton Method It s another well-known teratve method for solvng a system of lnear equatons of the form a + a22 + + ann = b a2 + a222

More information

ME 501A Seminar in Engineering Analysis Page 1

ME 501A Seminar in Engineering Analysis Page 1 umercal Solutons of oundary-value Problems n Os ovember 7, 7 umercal Solutons of oundary- Value Problems n Os Larry aretto Mechancal ngneerng 5 Semnar n ngneerng nalyss ovember 7, 7 Outlne Revew stff equaton

More information

STAT 511 FINAL EXAM NAME Spring 2001

STAT 511 FINAL EXAM NAME Spring 2001 STAT 5 FINAL EXAM NAME Sprng Instructons: Ths s a closed book exam. No notes or books are allowed. ou may use a calculator but you are not allowed to store notes or formulas n the calculator. Please wrte

More information

Rockefeller College University at Albany

Rockefeller College University at Albany Rockefeller College Unverst at Alban PAD 705 Handout: Maxmum Lkelhood Estmaton Orgnal b Davd A. Wse John F. Kenned School of Government, Harvard Unverst Modfcatons b R. Karl Rethemeer Up to ths pont n

More information

e i is a random error

e i is a random error Chapter - The Smple Lnear Regresson Model The lnear regresson equaton s: where + β + β e for,..., and are observable varables e s a random error How can an estmaton rule be constructed for the unknown

More information

The Fundamental Theorem of Algebra. Objective To use the Fundamental Theorem of Algebra to solve polynomial equations with complex solutions

The Fundamental Theorem of Algebra. Objective To use the Fundamental Theorem of Algebra to solve polynomial equations with complex solutions 5-6 The Fundamental Theorem of Algebra Content Standards N.CN.7 Solve quadratc equatons wth real coeffcents that have comple solutons. N.CN.8 Etend polnomal denttes to the comple numbers. Also N.CN.9,

More information

Foundations of Arithmetic

Foundations of Arithmetic Foundatons of Arthmetc Notaton We shall denote the sum and product of numbers n the usual notaton as a 2 + a 2 + a 3 + + a = a, a 1 a 2 a 3 a = a The notaton a b means a dvdes b,.e. ac = b where c s an

More information

Report on Image warping

Report on Image warping Report on Image warpng Xuan Ne, Dec. 20, 2004 Ths document summarzed the algorthms of our mage warpng soluton for further study, and there s a detaled descrpton about the mplementaton of these algorthms.

More information

Linear Regression Analysis: Terminology and Notation

Linear Regression Analysis: Terminology and Notation ECON 35* -- Secton : Basc Concepts of Regresson Analyss (Page ) Lnear Regresson Analyss: Termnology and Notaton Consder the generc verson of the smple (two-varable) lnear regresson model. It s represented

More information

THE SUMMATION NOTATION Ʃ

THE SUMMATION NOTATION Ʃ Sngle Subscrpt otaton THE SUMMATIO OTATIO Ʃ Most of the calculatons we perform n statstcs are repettve operatons on lsts of numbers. For example, we compute the sum of a set of numbers, or the sum of the

More information

Finite Difference Method

Finite Difference Method 7/0/07 Instructor r. Ramond Rump (9) 747 698 rcrump@utep.edu EE 337 Computatonal Electromagnetcs (CEM) Lecture #0 Fnte erence Method Lecture 0 These notes ma contan coprghted materal obtaned under ar use

More information

Application of B-Spline to Numerical Solution of a System of Singularly Perturbed Problems

Application of B-Spline to Numerical Solution of a System of Singularly Perturbed Problems Mathematca Aeterna, Vol. 1, 011, no. 06, 405 415 Applcaton of B-Splne to Numercal Soluton of a System of Sngularly Perturbed Problems Yogesh Gupta Department of Mathematcs Unted College of Engneerng &

More information

DUE: WEDS FEB 21ST 2018

DUE: WEDS FEB 21ST 2018 HOMEWORK # 1: FINITE DIFFERENCES IN ONE DIMENSION DUE: WEDS FEB 21ST 2018 1. Theory Beam bendng s a classcal engneerng analyss. The tradtonal soluton technque makes smplfyng assumptons such as a constant

More information

Grid Generation around a Cylinder by Complex Potential Functions

Grid Generation around a Cylinder by Complex Potential Functions Research Journal of Appled Scences, Engneerng and Technolog 4(): 53-535, 0 ISSN: 040-7467 Mawell Scentfc Organzaton, 0 Submtted: December 0, 0 Accepted: Januar, 0 Publshed: June 0, 0 Grd Generaton around

More information

Integrals and Invariants of Euler-Lagrange Equations

Integrals and Invariants of Euler-Lagrange Equations Lecture 16 Integrals and Invarants of Euler-Lagrange Equatons ME 256 at the Indan Insttute of Scence, Bengaluru Varatonal Methods and Structural Optmzaton G. K. Ananthasuresh Professor, Mechancal Engneerng,

More information

Lecture 13 APPROXIMATION OF SECOMD ORDER DERIVATIVES

Lecture 13 APPROXIMATION OF SECOMD ORDER DERIVATIVES COMPUTATIONAL FLUID DYNAMICS: FDM: Appromaton of Second Order Dervatves Lecture APPROXIMATION OF SECOMD ORDER DERIVATIVES. APPROXIMATION OF SECOND ORDER DERIVATIVES Second order dervatves appear n dffusve

More information

6.3.7 Example with Runga Kutta 4 th order method

6.3.7 Example with Runga Kutta 4 th order method 6.3.7 Example wth Runga Kutta 4 th order method Agan, as an example, 3 machne, 9 bus system shown n Fg. 6.4 s agan consdered. Intally, the dampng of the generators are neglected (.e. d = 0 for = 1, 2,

More information

ADVANCED MACHINE LEARNING ADVANCED MACHINE LEARNING

ADVANCED MACHINE LEARNING ADVANCED MACHINE LEARNING 1 ADVANCED ACHINE LEARNING ADVANCED ACHINE LEARNING Non-lnear regresson technques 2 ADVANCED ACHINE LEARNING Regresson: Prncple N ap N-dm. nput x to a contnuous output y. Learn a functon of the type: N

More information

Kinematics in 2-Dimensions. Projectile Motion

Kinematics in 2-Dimensions. Projectile Motion Knematcs n -Dmensons Projectle Moton A medeval trebuchet b Kolderer, c1507 http://members.net.net.au/~rmne/ht/ht0.html#5 Readng Assgnment: Chapter 4, Sectons -6 Introducton: In medeval das, people had

More information

Numerical Methods. ME Mechanical Lab I. Mechanical Engineering ME Lab I

Numerical Methods. ME Mechanical Lab I. Mechanical Engineering ME Lab I 5 9 Mechancal Engneerng -.30 ME Lab I ME.30 Mechancal Lab I Numercal Methods Volt Sne Seres.5 0.5 SIN(X) 0 3 7 5 9 33 37 4 45 49 53 57 6 65 69 73 77 8 85 89 93 97 0-0.5 Normalzed Squared Functon - 0.07

More information

Some modelling aspects for the Matlab implementation of MMA

Some modelling aspects for the Matlab implementation of MMA Some modellng aspects for the Matlab mplementaton of MMA Krster Svanberg krlle@math.kth.se Optmzaton and Systems Theory Department of Mathematcs KTH, SE 10044 Stockholm September 2004 1. Consdered optmzaton

More information

Analytical Chemistry Calibration Curve Handout

Analytical Chemistry Calibration Curve Handout I. Quck-and Drty Excel Tutoral Analytcal Chemstry Calbraton Curve Handout For those of you wth lttle experence wth Excel, I ve provded some key technques that should help you use the program both for problem

More information

Appendix for Causal Interaction in Factorial Experiments: Application to Conjoint Analysis

Appendix for Causal Interaction in Factorial Experiments: Application to Conjoint Analysis A Appendx for Causal Interacton n Factoral Experments: Applcaton to Conjont Analyss Mathematcal Appendx: Proofs of Theorems A. Lemmas Below, we descrbe all the lemmas, whch are used to prove the man theorems

More information

The Multiple Classical Linear Regression Model (CLRM): Specification and Assumptions. 1. Introduction

The Multiple Classical Linear Regression Model (CLRM): Specification and Assumptions. 1. Introduction ECONOMICS 5* -- NOTE (Summary) ECON 5* -- NOTE The Multple Classcal Lnear Regresson Model (CLRM): Specfcaton and Assumptons. Introducton CLRM stands for the Classcal Lnear Regresson Model. The CLRM s also

More information

SIMPLE LINEAR REGRESSION

SIMPLE LINEAR REGRESSION Smple Lnear Regresson and Correlaton Introducton Prevousl, our attenton has been focused on one varable whch we desgnated b x. Frequentl, t s desrable to learn somethng about the relatonshp between two

More information

Yong Joon Ryang. 1. Introduction Consider the multicommodity transportation problem with convex quadratic cost function. 1 2 (x x0 ) T Q(x x 0 )

Yong Joon Ryang. 1. Introduction Consider the multicommodity transportation problem with convex quadratic cost function. 1 2 (x x0 ) T Q(x x 0 ) Kangweon-Kyungk Math. Jour. 4 1996), No. 1, pp. 7 16 AN ITERATIVE ROW-ACTION METHOD FOR MULTICOMMODITY TRANSPORTATION PROBLEMS Yong Joon Ryang Abstract. The optmzaton problems wth quadratc constrants often

More information

Week 5: Neural Networks

Week 5: Neural Networks Week 5: Neural Networks Instructor: Sergey Levne Neural Networks Summary In the prevous lecture, we saw how we can construct neural networks by extendng logstc regresson. Neural networks consst of multple

More information

Problem Set 9 Solutions

Problem Set 9 Solutions Desgn and Analyss of Algorthms May 4, 2015 Massachusetts Insttute of Technology 6.046J/18.410J Profs. Erk Demane, Srn Devadas, and Nancy Lynch Problem Set 9 Solutons Problem Set 9 Solutons Ths problem

More information

= = = (a) Use the MATLAB command rref to solve the system. (b) Let A be the coefficient matrix and B be the right-hand side of the system.

= = = (a) Use the MATLAB command rref to solve the system. (b) Let A be the coefficient matrix and B be the right-hand side of the system. Chapter Matlab Exercses Chapter Matlab Exercses. Consder the lnear system of Example n Secton.. x x x y z y y z (a) Use the MATLAB command rref to solve the system. (b) Let A be the coeffcent matrx and

More information

Solving Nonlinear Differential Equations by a Neural Network Method

Solving Nonlinear Differential Equations by a Neural Network Method Solvng Nonlnear Dfferental Equatons by a Neural Network Method Luce P. Aarts and Peter Van der Veer Delft Unversty of Technology, Faculty of Cvlengneerng and Geoscences, Secton of Cvlengneerng Informatcs,

More information

Implicit Integration Henyey Method

Implicit Integration Henyey Method Implct Integraton Henyey Method In realstc stellar evoluton codes nstead of a drect ntegraton usng for example the Runge-Kutta method one employs an teratve mplct technque. Ths s because the structure

More information

Numerical Solution of Ordinary Differential Equations

Numerical Solution of Ordinary Differential Equations College of Engneerng and Computer Scence Mecancal Engneerng Department otes on Engneerng Analss Larr Caretto ovember 9, 7 Goal of tese notes umercal Soluton of Ordnar Dfferental Equatons ese notes were

More information

From Biot-Savart Law to Divergence of B (1)

From Biot-Savart Law to Divergence of B (1) From Bot-Savart Law to Dvergence of B (1) Let s prove that Bot-Savart gves us B (r ) = 0 for an arbtrary current densty. Frst take the dvergence of both sdes of Bot-Savart. The dervatve s wth respect to

More information

n α j x j = 0 j=1 has a nontrivial solution. Here A is the n k matrix whose jth column is the vector for all t j=0

n α j x j = 0 j=1 has a nontrivial solution. Here A is the n k matrix whose jth column is the vector for all t j=0 MODULE 2 Topcs: Lnear ndependence, bass and dmenson We have seen that f n a set of vectors one vector s a lnear combnaton of the remanng vectors n the set then the span of the set s unchanged f that vector

More information

Systems of Equations (SUR, GMM, and 3SLS)

Systems of Equations (SUR, GMM, and 3SLS) Lecture otes on Advanced Econometrcs Takash Yamano Fall Semester 4 Lecture 4: Sstems of Equatons (SUR, MM, and 3SLS) Seemngl Unrelated Regresson (SUR) Model Consder a set of lnear equatons: $ + ɛ $ + ɛ

More information

Review of Taylor Series. Read Section 1.2

Review of Taylor Series. Read Section 1.2 Revew of Taylor Seres Read Secton 1.2 1 Power Seres A power seres about c s an nfnte seres of the form k = 0 k a ( x c) = a + a ( x c) + a ( x c) + a ( x c) k 2 3 0 1 2 3 + In many cases, c = 0, and the

More information

Lecture Note 3. Eshelby s Inclusion II

Lecture Note 3. Eshelby s Inclusion II ME340B Elastcty of Mcroscopc Structures Stanford Unversty Wnter 004 Lecture Note 3. Eshelby s Incluson II Chrs Wenberger and We Ca c All rghts reserved January 6, 004 Contents 1 Incluson energy n an nfnte

More information

Convexity preserving interpolation by splines of arbitrary degree

Convexity preserving interpolation by splines of arbitrary degree Computer Scence Journal of Moldova, vol.18, no.1(52), 2010 Convexty preservng nterpolaton by splnes of arbtrary degree Igor Verlan Abstract In the present paper an algorthm of C 2 nterpolaton of dscrete

More information

Some Comments on Accelerating Convergence of Iterative Sequences Using Direct Inversion of the Iterative Subspace (DIIS)

Some Comments on Accelerating Convergence of Iterative Sequences Using Direct Inversion of the Iterative Subspace (DIIS) Some Comments on Acceleratng Convergence of Iteratve Sequences Usng Drect Inverson of the Iteratve Subspace (DIIS) C. Davd Sherrll School of Chemstry and Bochemstry Georga Insttute of Technology May 1998

More information

CIS526: Machine Learning Lecture 3 (Sept 16, 2003) Linear Regression. Preparation help: Xiaoying Huang. x 1 θ 1 output... θ M x M

CIS526: Machine Learning Lecture 3 (Sept 16, 2003) Linear Regression. Preparation help: Xiaoying Huang. x 1 θ 1 output... θ M x M CIS56: achne Learnng Lecture 3 (Sept 6, 003) Preparaton help: Xaoyng Huang Lnear Regresson Lnear regresson can be represented by a functonal form: f(; θ) = θ 0 0 +θ + + θ = θ = 0 ote: 0 s a dummy attrbute

More information

U.C. Berkeley CS294: Beyond Worst-Case Analysis Luca Trevisan September 5, 2017

U.C. Berkeley CS294: Beyond Worst-Case Analysis Luca Trevisan September 5, 2017 U.C. Berkeley CS94: Beyond Worst-Case Analyss Handout 4s Luca Trevsan September 5, 07 Summary of Lecture 4 In whch we ntroduce semdefnte programmng and apply t to Max Cut. Semdefnte Programmng Recall that

More information

Workshop: Approximating energies and wave functions Quantum aspects of physical chemistry

Workshop: Approximating energies and wave functions Quantum aspects of physical chemistry Workshop: Approxmatng energes and wave functons Quantum aspects of physcal chemstry http://quantum.bu.edu/pltl/6/6.pdf Last updated Thursday, November 7, 25 7:9:5-5: Copyrght 25 Dan Dll (dan@bu.edu) Department

More information

Non-linear Canonical Correlation Analysis Using a RBF Network

Non-linear Canonical Correlation Analysis Using a RBF Network ESANN' proceedngs - European Smposum on Artfcal Neural Networks Bruges (Belgum), 4-6 Aprl, d-sde publ., ISBN -97--, pp. 57-5 Non-lnear Canoncal Correlaton Analss Usng a RBF Network Sukhbnder Kumar, Elane

More information

Structure and Drive Paul A. Jensen Copyright July 20, 2003

Structure and Drive Paul A. Jensen Copyright July 20, 2003 Structure and Drve Paul A. Jensen Copyrght July 20, 2003 A system s made up of several operatons wth flow passng between them. The structure of the system descrbes the flow paths from nputs to outputs.

More information

Exercises. 18 Algorithms

Exercises. 18 Algorithms 18 Algorthms Exercses 0.1. In each of the followng stuatons, ndcate whether f = O(g), or f = Ω(g), or both (n whch case f = Θ(g)). f(n) g(n) (a) n 100 n 200 (b) n 1/2 n 2/3 (c) 100n + log n n + (log n)

More information

9. Complex Numbers. 1. Numbers revisited. 2. Imaginary number i: General form of complex numbers. 3. Manipulation of complex numbers

9. Complex Numbers. 1. Numbers revisited. 2. Imaginary number i: General form of complex numbers. 3. Manipulation of complex numbers 9. Comple Numbers. Numbers revsted. Imagnar number : General form of comple numbers 3. Manpulaton of comple numbers 4. The Argand dagram 5. The polar form for comple numbers 9.. Numbers revsted We saw

More information

Formulas for the Determinant

Formulas for the Determinant page 224 224 CHAPTER 3 Determnants e t te t e 2t 38 A = e t 2te t e 2t e t te t 2e 2t 39 If 123 A = 345, 456 compute the matrx product A adj(a) What can you conclude about det(a)? For Problems 40 43, use

More information

= z 20 z n. (k 20) + 4 z k = 4

= z 20 z n. (k 20) + 4 z k = 4 Problem Set #7 solutons 7.2.. (a Fnd the coeffcent of z k n (z + z 5 + z 6 + z 7 + 5, k 20. We use the known seres expanson ( n+l ( z l l z n below: (z + z 5 + z 6 + z 7 + 5 (z 5 ( + z + z 2 + z + 5 5

More information

MEM 255 Introduction to Control Systems Review: Basics of Linear Algebra

MEM 255 Introduction to Control Systems Review: Basics of Linear Algebra MEM 255 Introducton to Control Systems Revew: Bascs of Lnear Algebra Harry G. Kwatny Department of Mechancal Engneerng & Mechancs Drexel Unversty Outlne Vectors Matrces MATLAB Advanced Topcs Vectors A

More information

Resource Allocation and Decision Analysis (ECON 8010) Spring 2014 Foundations of Regression Analysis

Resource Allocation and Decision Analysis (ECON 8010) Spring 2014 Foundations of Regression Analysis Resource Allocaton and Decson Analss (ECON 800) Sprng 04 Foundatons of Regresson Analss Readng: Regresson Analss (ECON 800 Coursepak, Page 3) Defntons and Concepts: Regresson Analss statstcal technques

More information

Temperature. Chapter Heat Engine

Temperature. Chapter Heat Engine Chapter 3 Temperature In prevous chapters of these notes we ntroduced the Prncple of Maxmum ntropy as a technque for estmatng probablty dstrbutons consstent wth constrants. In Chapter 9 we dscussed the

More information

MAE140 - Linear Circuits - Fall 10 Midterm, October 28

MAE140 - Linear Circuits - Fall 10 Midterm, October 28 M140 - Lnear rcuts - Fall 10 Mdterm, October 28 nstructons () Ths exam s open book. You may use whatever wrtten materals you choose, ncludng your class notes and textbook. You may use a hand calculator

More information