0% found this document useful (0 votes)
6 views4 pages

2. Improved EulerMethod 110425

The Improved Euler's Method is a more accurate numerical technique for solving ordinary differential equations compared to the standard Euler's method, as it reduces errors. The document provides a formula for the method and an example demonstrating its application to approximate the value of y(1.5) for a given initial value problem. Additionally, it includes practice questions for further application of the method.

Uploaded by

martinkumwenda73
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
6 views4 pages

2. Improved EulerMethod 110425

The Improved Euler's Method is a more accurate numerical technique for solving ordinary differential equations compared to the standard Euler's method, as it reduces errors. The document provides a formula for the method and an example demonstrating its application to approximate the value of y(1.5) for a given initial value problem. Additionally, it includes practice questions for further application of the method.

Uploaded by

martinkumwenda73
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 4

2) IMPROVED EULER’S METHOD

1 This method is more efficient than the Euler’s method because it


gives less errors
2 It is defined by the formula

f (xn , yn ) + f (x(n+1) , y(n+1) )
y(n+1) = yn + h (1)
2
where

y(n+1) = yn + hf (xn , yn ) (2)

October 11, 2022 1/4


EXAMPLE
Use the improved Euler’s method to obtain the approximate value of
y(1.5) with step size h=0.1 for the solution of the initial value problem
dy
= 2xy , y (1) = 1
dx
The question wants you to find the approximate value of y when x=1.5.
Solution

x0 = 1, y0 = 1, f (xn , yn ) = 2xn yn , n=0

We first compute equation (2) to get the value of y1∗ and we substitute
the value of y1∗ in equation (1) to find the value of y1 .
y1∗ = y0 + hf (2x0 , y0 ) = 1 + (0.1)(2)(1)(1) = 1.2
Therefore x1 = x0 + h∗ = 1 + 0.1 = 1.1
2x y +2x y
y1 = y0 + h 0 0 2 1 1 = 1 + (0.1) 2(1)(1)+2(1.1)(1.2)
2 = 1.232
October 11, 2022 2/4
solution continued

Solution

2x1 y1 + 2x2 y2∗


x2 = x1 + h = 1.2, y2∗ = y1 + hf (2x1 , y1 ), y2 = y1 + h = 1.5479
2
∗ 2x2 y2 + 2x3 y3∗
x3 = x2 + h = 1.3, y3 = y2 + hf (2x2 , y2 ), y3 = y2 + h = 1.9832
2
2x3 y3 + 2x4 y4∗
x4 = x3 + h = 1.4, y4∗ = y3 + hf (2x3 , y3 ), y4 = y3 + h = 2.5908
2
∗ 2x4 y4 + 2x5 y5∗
x5 = x4 + h = 1.5, y5 = y4 + hf (2x4 , y4 ), y5 = y4 + h = 3.4509
2

Therefore y (1.5) ≈ 3.4509

October 11, 2022 3/4


Practice questions

1. Use the improved Euler’s method to obtain a four decimal


approximation of y 0 = 2x − 3y + 1, y (1) = 5 to find y(1.5) with h=0.1
2. Use the improved Euler’s method to obtain a four decimal
approximation of y 0 = 2x − 3y + 1, y (1) = 5 to find y(1.3) with h=0.05
3. Use the improved Euler’s method to obtain a four decimal
approximation of dy
dx = 2x, y (1) = 1 to find y(1.5) with step size h=0.1

October 11, 2022 4/4

You might also like