# First-Order Differential Equations and Euler’s Method (HL) | Maths with Lemon Source: https://mathswithlemon.io/aa-hl-first-order-differential-equations-eulers-method.html ### First-Order Differential Equations & Euler’s Method IB Mathematics: Analysis and Approaches Higher Level · AHL 5.18 · Lesson 10.2. Understand differential equations, translate real situations into rate models, and estimate solutions using Euler’s method and slope fields. Lesson 10.2 worksheet (PDF) Previous lesson: Related Rates Calculus overview #### 1. What Is a Differential Equation? ##### What you need to know - A differential equation relates a function to one or more of its derivatives. - The order is the highest derivative appearing. - A general solution contains an arbitrary constant; a particular solution satisfies an initial or boundary condition. - A first-order equation may be linear or nonlinear. ##### Key ideas For \(\frac{dy}{dx}=e^{2x}\), integrate: Using \(y(0)=3\), we obtain \(C=\frac52\). #### 2. Writing Differential Equations from Words ##### Modelling language - “Rate of change” becomes a derivative with respect to time. - “Proportional to” means multiply by a constant \(k\). - Use a negative sign for a decreasing quantity when \(k>0\). - State variables and units before writing the equation. ##### Worked examples The outflow rate is proportional to the square root of the volume remaining. The minus sign indicates that the volume is decreasing. The growth rate is proportional to the number of bacteria \(B\). If \(I\) people are infected in a population of size \(N\), and the rate is proportional to both infected and uninfected populations, then #### 3. Euler’s Method: The Essential Formula ##### Four steps - Start with \((x_0,y_0)\) and a fixed step size \(h\). - Calculate the slope \(f(x_n,y_n)\) at the current point. - Move \(h\) units horizontally and \(h\times\text{slope}\) vertically. - Repeat until the requested \(x\)-value is reached. ##### Euler iteration Use \(\frac{dy}{dx}=x+2y\), \(y(0)=2\), and \(h=0.2\). Continue for five steps to estimate \(y(1)\). #### 4. Interactive Euler Explorer ##### Experiment with the step size - Select one of the differential equations from the worksheet. - Adjust the initial value and step size. - Compare the Euler polygon with the slope field. - Follow every calculation in the generated iteration table. ##### Slope field and numerical approximation ━━ Euler approximation — local slope segments n xₙ yₙ f(xₙ,yₙ) #### 5. Euler’s Method in Tables and Applications ##### Worksheet · Pages 3–4 - Organise calculations in a table before rounding. - Use the same step size throughout. - For velocity data, approximate displacement by adding rectangular areas. - Distinguish left-endpoint estimates from trapezoidal estimates. ##### Worked example: distance from a speed table Speed is recorded every 3 seconds at times \(0,3,6,9,12,15\), with values \(0,6,12,19,24,27\) m/s. Using the speed at the start of each 3-second interval: #### 6. Understanding and Recognising Slope Fields ##### What to look for - For \(\frac{dy}{dx}=f(x)\), slopes are constant along vertical lines. - For \(\frac{dy}{dx}=f(y)\), slopes are constant along horizontal lines. - Zero slopes indicate horizontal tangent segments. - Solution curves follow the direction of nearby segments. ##### Examples from the worksheet Horizontal segments along \(y=0\); positive slopes above the x-axis and negative slopes below it. Horizontal segments along both axes. The sign of the slope changes between quadrants. Use the interactive explorer above to inspect other fields, including \(\frac{dy}{dx}=x+y\) and \(\frac{dy}{dx}=x-y\). #### 7. IB AA HL Revision Checklist ##### Before your assessment - Identify first-order differential equations. - Write equations from proportionality statements. - Distinguish general and particular solutions. - Apply Euler’s method accurately over several steps. - Interpret and sketch slope fields. ##### Common mistakes Evaluate \(f(x_n,y_n)\) at the current point, not at the next point. Keep full precision in intermediate steps and round the final approximation as requested. Open the full Lesson 10.2 worksheet ### IB Past Paper Problems Select a topic and unit, then click the button below to get a new problem. Press the button to start! How was this problem?