Professional Documents
Culture Documents
Appm 212 Assignment 2
Appm 212 Assignment 2
Appm 212 Assignment 2
OR MAJOLA 38260433
SA MALULEKE 35680768
J MAHLAHLANE 34582495
MODULE: APPM212
LECTURER: DR L PHALI
Methodology
The procedure begins by defining an initial value for the ODE's solution, such as y(0)
= y0. The approach then uses the following formula to approximation the value of the
answer at each time step, let's say y(t+Δt):
According to the Euler's method formula, the value of the solution at the subsequent
time step is equal to the value of the solution at the previous time step plus the
product of the previous time step's (Δt) value and the current time step's (t)
derivative's (f(t, y(t)) value. This approximation makes the assumption that the
solution's rate of change will remain constant over the time span Δt.
We can roughly determine the solution of the ODE over a period of time by
periodically applying this formula at each time step Δt. The size of the time step t
affects the method's accuracy. While requiring more computing work, smaller time
increments typically produce estimates that are more accurate.
EXAMPLE OF EULER
y(t+Δt) = y(t) + Δt * f(t, y(t)) ≈ yn = yn-1+h.f(xn-1,yn-1)
Use euler’s method with step size h=0.1 to estimate y(0.3) where y(x) is the solution
of the initial value problem
Y’ = y + xy y(0) = 0
Solution
Conclusion