Olympiad · Practice · public practice problem
Research Engineer division (School Level 5)
Computational Engineering
Two steps of RK4
Difficulty 4 of 512 points in 4 partsSuggested time ~30 min (never timed here)
The problem
Solve y′ = −2y with y(0) = 1 up to t = 0.5 using step h = 0.25 (two steps), first with explicit Euler and then with classical fourth-order Runge–Kutta (RK4):
k1 = f(y)
k2 = f(y + h*k1/2)
k3 = f(y + h*k2/2)
k4 = f(y + h*k3)
y = y + h*(k1 + 2*k2 + 2*k3 + k4)/6Time is dimensionless here.
Part (a) · 2 points
Euler estimate of y(0.5)?
(pure number)Tolerance: ±0.0005Part (b) · 4 points
RK4 estimate of y(0.5), to 4 decimal places?
(pure number)Tolerance: ±0.00005Part (c) · 2 points
What is the largest step h for which explicit Euler on this equation does not grow without bound?
(pure number)Tolerance: ±0.001Part (d) · 4 points · rubric with 2 criteria
The exact answer is e⁻¹. Compare the two errors and explain, using the order of each method, how each error would change if h were halved.
Written parts stay in your browser. Reveal the worked solution to mark yourself against the rubric.
Checked so far: 0 of 8 automatically marked points, plus 4 for written parts you mark yourself against the rubric. Nothing is saved.
Stuck? Hints, then the worked solution
Written with AI assistance. Review status: technically-checked (answers recomputed independently with units verified by automated tests); not yet reviewed by an educator or judge.