GATE / CS ARCHIVE

GATE CSE 1993 / QUESTION 2.4

One second-order Runge–Kutta step

Engineering Mathematics & Other Topics · Numerical Methods · Full GATE CSE 1993 paper

GATE 1993, Q2.4 Other
Not in GATE 2027 syllabusReport issue

Numerical Methods

Question 2.4, GATE 1993: For y′=x−y,y(0)=0,h=0.1, compute y(0.1) to three decimal places using RK2.
Tap to enlarge
Answer & solution

Answer: 0.005 (no official key was published)

Using Heun’s RK2 form, k1=h f(0,0)=0. The endpoint predictor is y+k1=0 at x=0.1, so k2=0.1·(0.1−0)=0.01. The corrected value is y+(k1+k2)/2=0.005. The midpoint RK2 variant gives the same first step: its midpoint slope is 0.05 and h times that is 0.005. The exact value 0.1−1+e−0.1≈0.004837 also rounds to 0.005, providing a consistency check rather than replacing the requested numerical method.

Original paper, page 2