← 2013 Paper 2

UPSC 2013 Maths Optional Paper 2 Q7b — Step-by-Step Solution

15 marks · Section B

Euler's method (and modified Euler) · Numerical Analysis · asked 2× in 13 yrs · Read the full method →

Question

Use Euler’s method with step size h=0.15h=0.15 to compute the approximate value of y(0.6)y(0.6), correct up to five decimal places from the initial value problem

y=x(y+x)2,y(0)=2.y'=x(y+x)-2,\quad y(0)=2.

Technique

Standard forward Euler — explicit, first-order accurate.

Solution

Setup. f(x,y)=xy+x22f(x,y)=xy+x^{2}-2. Step size h=0.15h=0.15. Number of steps: (0.60)/0.15=4(0.6-0)/0.15=4.

Euler’s recurrence: yn+1=yn+hf(xn,yn)y_{n+1}=y_n+h\,f(x_n,y_n).

Iterations

Stepxnx_nyny_nf(xn,yn)f(x_n,y_n)hfh\,f
00.000.002.000002.0000002+02=2.000000\cdot 2+0-2=-2.000000.30000-0.30000
10.150.151.700001.700000.15(1.85)2=1.722500.15(1.85)-2=-1.722500.25838-0.25838
20.300.301.441631.441630.30(1.74163)2=1.477510.30(1.74163)-2=-1.477510.22163-0.22163
30.450.451.220001.220000.45(1.67000)2=1.248500.45(1.67000)-2=-1.248500.18728-0.18728
40.600.601.032721.03272

Sample computations

Step 1 → Step 2 (x1=0.15x_1=0.15, y1=1.70000y_1=1.70000):

Step 2 → Step 3 (x2=0.30x_2=0.30, y2=1.44163y_2=1.44163, using full precision 1.4416251.441625):

Step 3 → Step 4 (x3=0.45x_3=0.45, y3=1.219998y_3=1.219998):

Final answer

Answer

  y(0.6)1.03272.  \boxed{\;y(0.6)\approx 1.03272.\;}
We post more of this — worked solutions, CSAT trap breakdowns, guide chapters — a few times a week on Telegram. Free, no sign-in. Join

This solution is part of the Maths Coverage Map — 13 years, mapped. Get the take-away PDF free.