Mathematics: Applications and Interpretation · Topic 5: Calculus
AHL5.16 — Euler's method and coupled systems
Mathematics: Applications and Interpretation · SL / HL · syllabus-mapped notes
AIAHL5.16.1
Euler's method for first order equations
Stepping along tangents to approximate $\tfrac{dy}{dx}=f(x,y)$.
Full note — freeEuler's method gives an approximate numerical solution to $\dfrac{dy}{dx}=f(x,y)$ by stepping forward along the tangent line (from the formula booklet ): $$y_{n+1}=y_n+h\,f(x_n,y_n),\qquad x_{n+1}=x_n+h$$ $h$ is a fixed step length and $(x_0,y_0)$ is the initial condition. A spreadsheet (or GDC) generates the values; in exams technology produces them. Worked example. $\dfrac{dy}{dx}=x+y$, $y(0)=1$, $h=0.1$. Estimate $y(0.2)$. $y_1=1+0.1(0+1)=1.1$ at $x=0.1$. $y_2=1.1+0.1(0.1+1.1)=1.22$ at $x=0.2$. Euler's method is only approximate. A smaller $h$ is more accurate but needs more steps; the error usually accumulates in one direction.
AIAHL5.16.2
Numerical solution of coupled systems
Two linked rates $\tfrac{dx}{dt}$ and $\tfrac{dy}{dt}$, e.g. predator-prey.
A coupled system has two quantities whose rates depend on each other: $$\frac{dx}{dt}=f_1(x,y,t),\qquad \frac{dy}{dt}=f_2(x,y,t)$$ Apply Euler's method to both equations at each step, using the current $x_n,y_n$: $$x_{n+1}=x_n+h\,f_1,\qquad y_{n+1}=y_n+h\,f_2$$ Contexts include predator-prey models (and the SIR model for infection), where $x$ and $y$ are two …
