Higher Order Methods:
The order of a method:
For numerical solutions of a preliminary value problem there are two ways to measure the error. The first is the error of every step. This is called a Local Truncation Error or LTE. The other is the entirety error for the whole interval [a, b]. We describe this Global Truncation Error or GTE.
For the Euler method the LTE is of order O(h2) that is the error is comparable to h2. We are able to show this directly using Taylor’s Theorem
y(t + h) = y(t) + hy? (t) + (h2/2)y¨ (c)
for a few c flanked by t and t + h. In this equation we are able to replace y? (t) by f(t, y(t)), which makes the first two terms of the right hand side be exactly the Euler method. The error is then (h2/2) y¨ (c) or O(h2). It would be somewhat more difficult to show that the LTE of the modified Euler method is O(h3), an enhancement of one power of h.
We are able to roughly get the GTE from the LTE by considering the number of steps times the LTE. For any method if [a, b] is the interval as well as h is the step size then n = (b−a)/h is the number of steps. Therefore for any method the GTE is one power lower in h than the LTE. Therefore the GTE for Euler is (h) and for modified Euler it is O(h2).
By the order of a method we signify the power of h in the GTE. Therefore the Euler method is a 1st order method and modified Euler is a 2nd order method.
Fourth Order Runge-Kutta:
The largely famous of all IVP methods is the classic Runge-Kutta method of order 4:
k1 = hf (ti, y)k2 = hf (ti+ h/2, yi+ k1/2)k3 = hf (ti+ h/2, yi+ k2/2)k4 = hf (ti+ h, yi+ k3)
yi+1 = yi +{1/6(k1 + 2k2 + 2k3 + k4)}
Notice that this method utilizes values of f (t, y) at 4 different points. Generally a method needs n values of f to achieve order n. The constants utilized in this method and other methods are obtained from Taylor’s Theorem. They are accurately the values needed to make all error terms cancel up to hn+1f (n+1)(c)/(n + 1)!.
Variable Step Size and RK45
If the order of a method is n, then the GTE is equal to hn, which signifies that it is approximately Chn where C is some constant. Nevertheless for different differential equations the values of C may be very different. Therefore it is not easy beforehand to tell how small h should be to get the error within a given tolerence. For illustration if the true solution oscillates very rapidly we will evidently need a smaller step size than for a solution that is nearly constant.
How can a program then choose h small sufficient to produce the required accuracy? We as well do not wish to make h much smaller than necessary since that would enlarge the number of steps. To finish this program tries an h and tests to see if that h is small enough. If not it tries once more with a smaller h. If it is too small it accepts that step however on the next step it tries a larger h. This procedure is called variable step size.
Deciding if a single step is precise enough could be accomplished in several ways however the most common are called embedded methods. The Runge-Kutta 45 method which is utilized in ode45 is an embedded method. In the RK45 the function f is estimate at 5 different points. These are utilized to make a 5th order estimate yi+1. At the same time 4 of the 5 values are utilized to also get a 4th order estimate. If the 4th order and 5th order estimations are close then we can conclude that they are accurate. If there is a large discrepancy then we can conclude that they are not accurate and a smaller h should be used.
To perceive variable step size in action we will define and solve two different ODEs as well as solve them on the same interval
> f1 = inline(’[-y(2);y(1)]’,’t’,’y’)> f2 = inline(’[-5*y(2);5*y(1)]’,’t’,’y’)> [T1 Y1] = ode45(f1,[0 20],[1;0]);> [T2 Y2] = ode45(f2,[0 20],[1;0]);> y1 = Y1(:,1);> y2 = Y2(:,1);>plot(T1,y1,’bx-’)> hold on>plot(T2,y2,’ro-’)>size(T1)>size(T2)
Why order matters:
Numerous people would conclude on first encounter that the advantage of a higher order method would be that you can get a more precise answer than for a lower order method. In reality this isn’t quite how things work. In engineering problems the accurateness needed is usually a given and it is typically not extremely high. Therefore getting more and more accurate solutions isn’t very useful. Therefore where is the advantage? Consider the following illustration.
Presume that you need to solve an IVP with an error of less than 10−4. If you utilize the Euler method which has GTE of order O(h) after that you would need h ≈ 10−4. Therefore you would need about n ≈ (b − a) × 104 steps to find the solution.
Presume you use the second order, modified Euler method. In that case the GTE is O(h2) therefore you would need to use h2 ≈ 10−4, or h ≈ 10−2. This would need about n ≈ (b − a) × 102 steps.
That is a hundred times lesser steps than you would need to get the same accuracy with the Euler method.
If you use the RK4 method after that h4 needs to be roughly 10−4 and so h ≈ 10−1. This means you require only about n ≈ (b −
a) × 10 steps to solve the problem that is a thousand times fewer steps than for the Euler method.
Therefore the real advantage of higher order methods is that they can run a lot faster at the same accuracy. This can be especially significant in applications where one is trying to make real-time adjustments based on the calculations. Such is habitually the case in robots and other applications with dynamic controls.
Latest technology based Matlab Programming Online Tutoring Assistance
Tutors, at the www.tutorsglobe.com, take pledge to provide full satisfaction and assurance in Matlab Programming help via online tutoring. Students are getting 100% satisfaction by online tutors across the globe. Here you can get homework help for Matlab Programming, project ideas and tutorials. We provide email based Matlab Programming help. You can join us to ask queries 24x7 with live, experienced and qualified online tutors specialized in Matlab Programming. Through Online Tutoring, you would be able to complete your homework or assignments at your home. Tutors at the TutorsGlobe are committed to provide the best quality online tutoring assistance for Matlab Programming Homework help and assignment help services. They use their experience, as they have solved thousands of the Matlab Programming assignments, which may help you to solve your complex issues of Matlab Programming. TutorsGlobe assure for the best quality compliance to your homework. Compromise with quality is not in our dictionary. If we feel that we are not able to provide the homework help as per the deadline or given instruction by the student, we refund the money of the student without any delay.
The Animal Cell tutorial all along with the key concepts of Endoplasmic Reticulum, Golgi Apparatus, Lysosomes, Microfilaments, Microtubules, Peroxisomes, Chromatin
tutorsglobe.com multiple shootlet production assignment help-homework help by online micropropagation tutors
tutorsglobe.com internal rate of return assignment help-homework help by online capital budgeting and project planning tutors
tutorsglobe.com contraception assignment help-homework help by online birth control tutors
History and Present Trends in Cell Biology tutorial all along with the key concepts of First Cells Seen in Cork, Formulation of the Cell Theory, Modern Cell Theory, Timeline of cell biology
a propeller blade fan comprising two or more blades is directly driven through an electric motor. it might be a bracket mounted wall kitchen fan, table fan, or a portable table fan.
tutorsglobe.com distinguishing features of gymnosperms assignment help-homework help by online salient features of gymnosperms tutors
www.tutorsglobe.com offers other functional group homework help, other functional group assignment help, online tutoring assistance, organic chemistry solutions by online qualified tutor's help.
tutorsglobe.com fluorochromes used in immunology assignment help-homework help by online antigen antibody reactions tutors
Stand out your grades with World Cinema Assignment Help service; hire qualified tutors with 24/7 support at feasible rates.
tutorsglobe.com database management system assignment help-homework help by online computer programming tutors
www.tutorsglobe.com offers Object Oriented Design Methods homework help, assignment help, case study, writing homework help, online tutoring assistance by computer science tutors.
Styrene Butadiene Rubber tutorial all along with the key concepts of Structural formula of Styrene Butadiene Rubber, Types of Styrene butadiene rubber, Solution SBR Polymerization process and Applications of Styrene Butadiene Rubber
tutorsglobe.com vb dot net assignment help-homework help by online computer programming tutors
tutorsglobe.com ricardian theory of rent assignment help-homework help by online rent tutors
1935399
Questions Asked
3689
Tutors
1465028
Questions Answered
Start Excelling in your courses, Ask an Expert and get answers for your homework and assignments!!