Euler's Method for Coupled Systems and Second-Order Equations | Applications and Interpretation IB Maths notes

Free preview: Euler's Method for Coupled Systems and Second-Order Equations

Euler's Method for Coupled Systems

Applications and interpretation: HL only (AHL 5.16 and AHL 5.18)

Let's start with a recap. For one equation dydx=f(x,y), Euler's method (previous note) steps forward along the tangent:

yn+1=yn+hf(xn,yn),xn+1=xn+h

Two quantities that affect each other

  • Often two quantities change together, and the rate of each depends on both. Rabbits and foxes are the classic example: more rabbits feed more foxes, more foxes eat more rabbits.
  • This gives a coupled system of differential equations: dxdt=f(x,y,t) and dydt=g(x,y,t).
  • Most coupled systems cannot be solved exactly, so we step forward numerically.

Euler's method for a coupled system

Step both quantities forward at the same time, each with its own gradient:

xn+1=xn+hf(xn,yn,tn),yn+1=yn+hg(xn,yn,tn),tn+1=tn+h

๐Ÿ’ก In plain words

  • New value = old value + step ร— rate, for each quantity.
  • Both rates are worked out from the old values. Never use the new x to find the new y.

๐Ÿ‘€ Watch me do it: rabbits and foxes. x hundred rabbits and y hundred foxes, t in years: dxdt=0.4x−0.2xy, dydt=−0.3y+0.1xy, with x = 4, y = 1 at t = 0. Use h = 0.5 to estimate x and y at t = 1.5

What I writeWhy I do it
f(4,1)=1.6−0.8=0.8, g(4,1)=−0.3+0.4=0.1Step 1: both rates from the old values (4, 1).
x1=4+0.5(0.8)=4.4, y1=1+0.5(0.1)=1.05New value = old value + h ร— rate, for each quantity.
f(4.4,1.05)=1.76−0.924=0.836, g(4.4,1.05)=−0.315+0.462=0.147Step 2: the old values are now (4.4, 1.05).
x2=4.4+0.418=4.818, y2=1.05+0.0735=1.1235Keep full values; round only at the end.
x3=5.240, y3=1.226 (t = 1.5)Step 3, the same way.
After 1.5 years: about 524 rabbits and 123 foxes.Back to the context: x and y are in hundreds.
ntxy
0041
10.54.41.05
214.8181.1235
31.55.2401.226

๐Ÿ“ Here's the trap

  • Right: work out both rates from the old values, then update both.
  • Wrong: finding x1 first and then using it inside g to find y1. That is a different (and wrong) method.

โœ๏ธ YOUR TURN 1

Try this first:

Use Euler's method with h = 0.2 to estimate x and y at t = 0.4 for dxdt=2x−y, dydt=x+y, with x = 1, y = 2 at t = 0.

Answer:

  • Step 1: f(1,2)=0, g(1,2)=3, so x1=1, y1=2+0.2(3)=2.6.
  • Step 2: f(1,2.6)=−0.6, g(1,2.6)=3.6, so x2=1−0.12=0.88, y2=2.6+0.72=3.32.
  • At t = 0.4: x โ‰ˆ 0.88, y โ‰ˆ 3.32.

โœ๏ธ YOUR TURN 2

Try this first:

In the rabbits and foxes example, a student finds x1=4.4 and then works out y1 using g(4.4,1). What value do they get, and what is wrong?

Answer:

  • They get y1=1+0.5(−0.3+0.44)=1.07.
  • Wrong: both rates must use the old values (4, 1), giving y1=1.05.

Using a Spreadsheet or Your GDC

  • By hand, two or three steps are fine. For more, let technology repeat the step for you.
  • Exam questions often say "use Euler's method with a step length of 0.1" and expect you to use technology and write down the final values.

On a spreadsheet

Put t, x and y in columns A, B and C. Row 2 holds the start values 0, 4, 1. Then in row 3:

CellFormulaMeaning
A3=A2+0.5tn+1=tn+h
B3=B2+0.5*(0.4*B2-0.2*B2*C2)xn+1=xn+hf(xn,yn)
C3=C2+0.5*(-0.3*C2+0.1*B2*C2)yn+1=yn+hg(xn,yn)

Unlock the full note: start 7 days free.

Log in or subscribe to read the rest of this note. Members also get the AI tutor, practice quizzes, mock exams and flashcards for this topic.

Log in ยท Subscribe ยท Start free trial

All notes in HL: Differential equations (AHL 5.14โ€“5.18)

  1. Solving Separable Differential Equations
  2. Forming Differential Equations from Rates of Change
  3. Differential Equations as Models: Interpreting Solutions in Context
  4. Euler's Method for Coupled Systems and Second-Order Equations
  5. Euler's Step-by-Step Method and Slope Fields
  6. Coupled Linear Differential Equations Solved with Eigenvectors
  7. Phase Portraits and Equilibrium Points

What's inside for this topic

7 teacher notes, 62 practice questions, 40 flashcards, 2 quizzes.

Get the full notes, every practice question, flashcards, quizzes and mock papers.

Start your free 7-day trial

Questions? Chat with us on WhatsApp ยท Try one live lesson

Previous note: Differential Equations as Models: Interpreting Solutions in Context Next note: Euler's Step-by-Step Method and Slope Fields

All Applications and Interpretation IB Maths topics ยท IB Maths