Leaving Certificate Applied Mathematics8.8 Comparing a discrete and a continuous model

All books

8.8 Comparing a discrete and a continuous model — Practise with help

Warm-up: remember

  1. Work out 0.9520.95^2.
  2. Work out 1.0521.05^2.
  3. Given e0.05≈1.05127e^{0.05} \approx 1.05127, is 1.051.05 larger or smaller than e0.05e^{0.05}?
Answers and feedback
  1. 0.952=0.90250.95^2 = 0.9025. A repeated percentage change multiplies by the same factor each step.
  2. 1.052=1.10251.05^2 = 1.1025.
  3. 1.051.05 is smaller, because 1.05127>1.051.05127 > 1.05. The gap is small for one step and grows over many steps.

Practise with help

1. A continuous model gives P=200e0.03tP = 200e^{0.03t}, and a discrete model gives un+1=1.03unu_{n+1} = 1.03u_n with u0=200u_0 = 200. Find each value at t=n=10t = n = 10.

Hint

Substitute t=10t = 10 in the continuous model, and apply the multiplier ten times in the discrete model.

Next step

Continuous: 200e0.3200e^{0.3}. Discrete: 200(1.03)10200(1.03)^{10}.

Full working

Continuous: 200e0.3≈200×1.3499≈270.0200e^{0.3} \approx 200 \times 1.3499 \approx 270.0.

Discrete: 200(1.03)10≈200×1.3439≈268.8200(1.03)^{10} \approx 200 \times 1.3439 \approx 268.8.

The continuous value is slightly larger, because continuous growth at 3%3\% per year adds a little more than 3%3\% once a year.

2. Use Euler's method with step h=1h = 1 on dydx=0.2y\dfrac{dy}{dx} = 0.2y, with y=50y = 50 when x=0x = 0. Find the estimate after one step.

Hint

The rate at the start is 0.2×50=100.2 \times 50 = 10.

Next step

y1=50+1(10)y_1 = 50 + 1(10).

Full working y1=50+1(0.2×50)=50+10=60.y_1 = 50 + 1(0.2 \times 50) = 50 + 10 = 60.

The exact value at x=1x = 1 is 50e0.2≈61.0750e^{0.2} \approx 61.07, so the one-step estimate is a little low.

3. Continue the Euler method from y1=60y_1 = 60, still with h=1h = 1 and dydx=0.2y\dfrac{dy}{dx} = 0.2y. Find the estimate after the second step.

Hint

The new rate is 0.2×60=120.2 \times 60 = 12.

Next step

y2=60+1(12)y_2 = 60 + 1(12).

Full working y2=60+1(0.2×60)=60+12=72.y_2 = 60 + 1(0.2 \times 60) = 60 + 12 = 72.

The exact value at x=2x = 2 is 50e0.4≈74.5950e^{0.4} \approx 74.59, so the estimate is still below the true value.

4. Repeat the first two steps with the smaller step h=0.5h = 0.5 on dydx=0.2y\dfrac{dy}{dx} = 0.2y, with y=50y = 50 when x=0x = 0. Find the estimate at x=1x = 1.

Hint

The first half-step rate is 0.2×50=100.2 \times 50 = 10. Then recalculate the rate.

Next step

y1=50+0.5(10)=55y_1 = 50 + 0.5(10) = 55. The next rate is 0.2×55=110.2 \times 55 = 11.

Full working y1=50+0.5(10)=55y_1 = 50 + 0.5(10) = 55 y2=55+0.5(11)=55+5.5=60.5.y_2 = 55 + 0.5(11) = 55 + 5.5 = 60.5.

The exact value is 50e0.2≈61.0750e^{0.2} \approx 61.07. The estimate 60.560.5 is closer than the 6060 from the single large step.

5. For dydx=0.2y\dfrac{dy}{dx} = 0.2y with y=50y = 50 when x=0x = 0, the exact solution is y=50e0.2xy = 50e^{0.2x}. Find the exact value at x=1x = 1.

Hint

Substitute x=1x = 1.

Next step

y=50e0.2y = 50e^{0.2}.

Full working y=50e0.2≈50×1.2214≈61.07.y = 50e^{0.2} \approx 50 \times 1.2214 \approx 61.07.

All the Euler estimates in questions 2 to 4 fall below this value, because the method uses the rate at the start of each step and the rate is rising.

6. A continuous model has rate k=0.1k = 0.1. Find the exact discrete multiplier 1+r1 + r that matches it.

Hint

Use 1+r=ek1 + r = e^k.

Next step

1+r=e0.11 + r = e^{0.1}.

Full working 1+r=e0.1≈1.10517,r≈0.10517.1 + r = e^{0.1} \approx 1.10517, \qquad r \approx 0.10517.

A continuous rate of 10%10\% per year matches a discrete multiplier of about 1.105171.10517, which is a rate of about 10.517%10.517\% per year. The two numbers differ because interest paid continuously starts earning before the year ends.

7. Explain why halving the step in Euler's method usually improves the estimate.

Hint

How often is the rate recalculated?

Next step

A smaller step recalculates the rate more often, so the estimate follows the curve more closely.

Full working

Euler's method uses one rate for the whole of each step. With a large step the rate may be badly out of date by the end of the interval. With a small step the rate is recalculated often, so the estimate tracks the true curve more closely. Halving the step does not remove the error, but it reduces it, and the estimate approaches the exact solution as the step tends to zero.

A question from Section 8.5

8. The lake pollutant follows dPdt=−0.05P\dfrac{dP}{dt} = -0.05P with P0=400P_0 = 400 kg. Compare the exact value after one day with one Euler step of size h=1h = 1.

Hint

The exact value is 400e−0.05400e^{-0.05}. One Euler step uses the rate −0.05×400=−20-0.05 \times 400 = -20.

Next step

Euler: P1=400+1(−20)=380P_1 = 400 + 1(-20) = 380.

Full working

Exact: 400e−0.05≈400×0.95123≈380.49400e^{-0.05} \approx 400 \times 0.95123 \approx 380.49 kg.

Euler with h=1h = 1: P1=400−20=380P_1 = 400 - 20 = 380 kg.

The Euler estimate is a little low, by about 0.50.5 kg. The daily recurrence un+1=0.95unu_{n+1} = 0.95u_n gives 380380 kg exactly, so the daily model and the one-step Euler estimate agree. The continuous model gives 380.49380.49 kg.

Settings

Colour scheme

Light or dark pages. Your colour and layout stay the same.

Colour

The paper, ink and lettering. Your layout stays the same.

Quiet colours
Bold colours
Layout

How pages are arranged. Your colours stay the same.

Reading offline

Keep this book on this device and read it offline.