Professional Documents
Culture Documents
Here we use the value yn to estimate the value of yact. This can be
directly computed from the information given by the following
equation.
The insight that euler had was to see how this estimate could be
improved on. The strategy he used was to divide the interval
[x0,xact] (or [xact,x0] in the case xact<x0) into equal subintervals and
recompute the tangent line as you go. This would not allow the
tangent line to drift far from the function itself. This would
hopefully produce a more accurate estimate for yact at the end.
To apply eulers method
1. Divide the interval n equal subintervals. (In our example 4.)
2. Compute the width of each subinterval which is x=h=(xn-x0)/n.
3. Compute the sequence of points as follows:
EXAMPLE 1:
EXAMPLE 2: EULERS METHOD (1 OF
3)
FOR THE INITIAL VALUE PROBLEM
y 4 t 2 y , y ( 0) 1
WE CAN USE EULERS METHOD WITH H = 0.1
TO APPROXIMATE THE SOLUTION AT T = 1, 2, 3,
y1 4,
AND y0 AS h 1 4 0BELOW.
f 0 SHOWN (2)(1) (0.1) 1.6
y2 y1 f1 h 1.6 4 0.1 (2)(1.6) (0.1) 2.31
y3 y2 f 2 h 2.31 4 0.2 (2)(2.31) (0.1) 3.15
y4 y3 f 3 h 3.15 4 0.3 (2)(3.15) (0.1) 4.15
EXAMPLE 2: ERROR ANALYSIS (2 OF
3)
The first ten euler approxs are given in table below on left. A
table of approximations for t = 0, 1, 2, 3 is given on right. See
text for numerical results with h = 0.05, 0.025, 0.01.
The errors are small initially, but quickly reach an unacceptable
level. This suggests a nonlinear solution.
t Exact y Approx y Error % Rel Error t Exact y Approx y Error % Rel Error
0.00 1.00 1.00 0.00 0.00 0.00 1.00 1.00 0.00 0.00
0.10 1.66 1.60 0.06 3.55 1.00 19.07 15.78 3.29 17.27
0.20 2.45 2.31 0.14 5.81 2.00 149.39 104.68 44.72 29.93
0.30 3.41 3.15 0.26 7.59 3.00 1109.18 652.53 456.64 41.17
0.40 4.57 4.15 0.42 9.14 4.00 8197.88 4042.12 4155.76 50.69
0.50 5.98 5.34 0.63 10.58
0.60 7.68 6.76 0.92 11.96 Exact Solution :
0.70 9.75 8.45 1.30 13.31
0.80 12.27 10.47 1.80 14.64 7 1 11
0.90 15.34 12.89 2.45 15.96 y t e 2t
1.00 19.07 15.78 3.29 17.27 4 2 4
EXAMPLE 2: ERROR ANALYSIS & GRAPHS
Given below are graphs showing the exact solution (red) plotted
together with the euler approximation (blue).