Suppose we want to use Euler's Method to numerically (discretely) compute the time-equation below through a sequence of iterative steps:
In the above equation, . denotes the present value of the function, denotes the previous value of the function, and denotes the previous value of the function's time-derivative. The parameter is an arbitrary positive constant.
Suppose and .
For
, the system undergoes monotonic decay toward zero.
For
, the system undergoes damped oscillation.
For
, the system undergoes divergent oscillation.
Determine . Assume no rounding or truncation errors (we have a perfect computer).
Note: This version of Euler's Method is more specifically known as the "forward" or "explicit" version.
This section requires Javascript.
You are seeing this because something didn't load right. We suggest you, (a) try
refreshing the page, (b) enabling javascript if it is disabled on your browser and,
finally, (c)
loading the
non-javascript version of this page
. We're sorry about the hassle.
Consider the time-function and its derivative.
y = e − A t y ′ = − A e − A t = − A y
It is apparent therefore that y 0 and y 0 ′ are associated with t = 0 . Plug these expressions into the Euler equation:
y k = y k − 1 + y k − 1 ′ Δ t y k = y k − 1 − A y k − 1 Δ t = y k − 1 ( 1 − A Δ t ) = y k − 1 ( 1 − 1 0 0 0 A )
So we see that there is a definite relationship between y k and y k − 1 . For 0 < A < 1 0 0 0 , y k is equal to y k − 1 multiplied by a positive constant with a magnitude less than one. This results in monotonic decay, as shown below for A = 3 0 0 . Therefore, A 1 = 1 0 0 0 .
For 1 0 0 0 < A < 2 0 0 0 , y k is equal to y k − 1 multiplied by a negative number with a magnitude less than one. This results in damped oscillation, as shown below for A = 1 8 0 0 . Therefore, A 2 = 2 0 0 0 .
For A > 2 0 0 0 , y k is equal to y k − 1 multiplied by a negative number with a magnitude greater than one. This results in divergent oscillation, as shown below for A = 2 2 0 0 . As a final result, A 1 + A 2 = 3 0 0 0 .