Browse papers
A

Section A: Long Answer Questions

Attempt all questions.

5 questions
1long8 marks

A circular water-tank discharge problem reduces to finding the positive root of

f(x)=x32x5=0f(x) = x^3 - 2x - 5 = 0

(a) Using the Newton-Raphson method with an initial guess x0=2x_0 = 2, perform iterations until the absolute relative error is below 0.01%0.01\%. Show all working in a table. (b) State the formula for the order of convergence of the Newton-Raphson method and explain one practical situation in which the method may fail.

(a) Newton-Raphson iteration

The iteration formula is

xn+1=xnf(xn)f(xn),f(x)=x32x5,f(x)=3x22.x_{n+1} = x_n - \frac{f(x_n)}{f'(x_n)}, \qquad f(x)=x^3-2x-5,\quad f'(x)=3x^2-2.

Iteration 1 (x0=2x_0=2): f(2)=845=1f(2)=8-4-5=-1,   f(2)=122=10\;f'(2)=12-2=10.

x1=2110=2.1.x_1 = 2 - \frac{-1}{10} = 2.1.

Iteration 2 (x1=2.1x_1=2.1): f(2.1)=9.2614.25=0.061f(2.1)=9.261-4.2-5=0.061,   f(2.1)=3(4.41)2=11.23\;f'(2.1)=3(4.41)-2=11.23.

x2=2.10.06111.23=2.10.005432=2.094568.x_2 = 2.1 - \frac{0.061}{11.23} = 2.1 - 0.005432 = 2.094568.

Iteration 3 (x2=2.094568x_2=2.094568): x23=9.188566x_2^3 = 9.188566, so f=9.1885664.1891365=0.000430f=9.188566-4.189136-5=0.000430. f(2.094568)=3(4.387215)2=11.161645f'(2.094568)=3(4.387215)-2=11.161645.

x3=2.0945680.00043011.161645=2.0945680.0000385=2.0945295.x_3 = 2.094568 - \frac{0.000430}{11.161645}=2.094568-0.0000385=2.0945295.
nxnx_nf(xn)f(x_n)rel. error %
02.000000-1.000000-
12.1000000.0610004.762
22.0945680.0004300.2593
32.0945300\approx00.00184

At iteration 3 the relative error (x3x2)/x3×100=0.00184%<0.01%|(x_3-x_2)/x_3|\times100 = 0.00184\% < 0.01\%, so we stop.

Root x2.0945\boldsymbol{x \approx 2.0945} (to 4 decimal places).

(b) Order of convergence and failure

Newton-Raphson has quadratic convergence (order p=2p=2) near a simple root: the error satisfies

en+1f(ξ)2f(ξ)en2.|e_{n+1}| \approx \left|\frac{f''(\xi)}{2f'(\xi)}\right|\,|e_n|^2 .

The method fails or diverges when f(xn)=0f'(x_n)=0 (or is very small) at an iterate — for example near a turning point or an inflection — because the tangent is nearly horizontal and the next iterate is thrown far away. It can also oscillate if the initial guess is poor.

roots-of-equationsnewton-raphsonconvergence
2long8 marks

The settlement SS (mm) of a footing measured at different applied loads PP (kN) is tabulated below.

P (kN)50100150200
S (mm)491627

(a) Construct the Newton's divided-difference table and obtain the interpolating polynomial. (b) Estimate the settlement at P=125P = 125 kN.

(a) Divided-difference table

Let x=Px=P, y=Sy=S.

First divided differences:

f[50,100]=9410050=550=0.10,f[50,100]=\frac{9-4}{100-50}=\frac{5}{50}=0.10, f[100,150]=169150100=750=0.14,f[100,150]=\frac{16-9}{150-100}=\frac{7}{50}=0.14, f[150,200]=2716200150=1150=0.22.f[150,200]=\frac{27-16}{200-150}=\frac{11}{50}=0.22.

Second divided differences:

f[50,100,150]=0.140.1015050=0.04100=0.0004,f[50,100,150]=\frac{0.14-0.10}{150-50}=\frac{0.04}{100}=0.0004, f[100,150,200]=0.220.14200100=0.08100=0.0008.f[100,150,200]=\frac{0.22-0.14}{200-100}=\frac{0.08}{100}=0.0008.

Third divided difference:

f[50,100,150,200]=0.00080.000420050=0.0004150=2.6667×106.f[50,100,150,200]=\frac{0.0008-0.0004}{200-50}=\frac{0.0004}{150}=2.6667\times10^{-6}.
xy1st DD2nd DD3rd DD
5040.100.00042.6667e-6
10090.140.0008
150160.22
20027

Newton forward divided-difference polynomial:

S(P)=4+0.10(P50)+0.0004(P50)(P100)+2.6667×106(P50)(P100)(P150).S(P) = 4 + 0.10(P-50) + 0.0004(P-50)(P-100) + 2.6667\times10^{-6}(P-50)(P-100)(P-150).

(b) Estimate at P=125P=125 kN

(P50)=75,  (P100)=25,  (P150)=25.(P-50)=75,\;(P-100)=25,\;(P-150)=-25.

  • Term 1: 44
  • Term 2: 0.10×75=7.50.10\times75 = 7.5
  • Term 3: 0.0004×75×25=0.0004×1875=0.750.0004\times75\times25 = 0.0004\times1875 = 0.75
  • Term 4: 2.6667×106×75×25×(25)=2.6667×106×(46875)=0.1252.6667\times10^{-6}\times75\times25\times(-25) = 2.6667\times10^{-6}\times(-46875) = -0.125
S(125)=4+7.5+0.750.125=12.125 mm.S(125) = 4 + 7.5 + 0.75 - 0.125 = 12.125\ \text{mm}.

Estimated settlement at 125 kN 12.125\boldsymbol{\approx 12.125} mm.

interpolationnewton-divided-differencecivil-application
3long8 marks

Solve the following system using the Gauss-Seidel iterative method, starting from (x0,y0,z0)=(0,0,0)(x_0,y_0,z_0)=(0,0,0). Perform iterations until each variable changes by less than 0.0010.001 between successive iterations.

10x+2y+z=92x+20y2z=442x+3y+10z=22\begin{aligned} 10x + 2y + z &= 9 \\ 2x + 20y - 2z &= -44 \\ -2x + 3y + 10z &= 22 \end{aligned}

First verify that the system is diagonally dominant.

Diagonal dominance check

  • Row 1: 102+1=3|10| \ge |2|+|1| = 3
  • Row 2: 202+2=4|20| \ge |2|+|-2| = 4
  • Row 3: 102+3=5|10| \ge |-2|+|3| = 5

The matrix is strictly diagonally dominant, so Gauss-Seidel converges.

Rearranged update equations:

x=92yz10,y=442x+2z20,z=22+2x3y10.x = \frac{9 - 2y - z}{10},\quad y = \frac{-44 - 2x + 2z}{20},\quad z = \frac{22 + 2x - 3y}{10}.

Iteration 1 (start x=y=z=0x=y=z=0):

  • x=(900)/10=0.9x = (9-0-0)/10 = 0.9
  • y=(442(0.9)+0)/20=(441.8)/20=2.29y = (-44 - 2(0.9) + 0)/20 = (-44-1.8)/20 = -2.29
  • z=(22+2(0.9)3(2.29))/10=(22+1.8+6.87)/10=3.067z = (22 + 2(0.9) - 3(-2.29))/10 = (22+1.8+6.87)/10 = 3.067

Iteration 2:

  • x=(92(2.29)3.067)/10=(9+4.583.067)/10=1.0513x = (9 - 2(-2.29) - 3.067)/10 = (9+4.58-3.067)/10 = 1.0513
  • y=(442(1.0513)+2(3.067))/20=(442.1026+6.134)/20=1.998430y = (-44 - 2(1.0513) + 2(3.067))/20 = (-44-2.1026+6.134)/20 = -1.998430
  • z=(22+2(1.0513)3(1.998430))/10=(22+2.1026+5.99529)/10=3.009789z = (22 + 2(1.0513) - 3(-1.998430))/10 = (22+2.1026+5.99529)/10 = 3.009789

Iteration 3:

  • x=(92(1.998430)3.009789)/10=(9+3.996863.009789)/10=0.998707x = (9 - 2(-1.998430) - 3.009789)/10 = (9+3.99686-3.009789)/10 = 0.998707
  • y=(442(0.998707)+2(3.009789))/20=(441.997414+6.019578)/20=1.998892y = (-44 - 2(0.998707) + 2(3.009789))/20 = (-44-1.997414+6.019578)/20 = -1.998892
  • z=(22+2(0.998707)3(1.998892))/10=(22+1.997414+5.996676)/10=2.999409z = (22 + 2(0.998707) - 3(-1.998892))/10 = (22+1.997414+5.996676)/10 = 2.999409

Iteration 4:

  • x=(92(1.998892)2.999409)/10=(9+3.9977842.999409)/10=0.999838x = (9 - 2(-1.998892) - 2.999409)/10 = (9+3.997784-2.999409)/10 = 0.999838
  • y=(442(0.999838)+2(2.999409))/20=(441.999676+5.998818)/20=2.000043y = (-44 - 2(0.999838) + 2(2.999409))/20 = (-44-1.999676+5.998818)/20 = -2.000043
  • z=(22+2(0.999838)3(2.000043))/10=(22+1.999676+6.000129)/10=2.999981z = (22 + 2(0.999838) - 3(-2.000043))/10 = (22+1.999676+6.000129)/10 = 2.999981
Iterxyz
10.900000-2.2900003.067000
21.051300-1.9984303.009789
30.998707-1.9988922.999409
40.999838-2.0000432.999981

Changes at iteration 4 are all <0.001<0.001 except xx (0.00113\approx0.00113); one more pass gives x1.00000x\to1.00000. The solution converges to

x1.000,y2.000,z3.000.\boxed{x \approx 1.000,\quad y \approx -2.000,\quad z \approx 3.000.}
linear-systemsgauss-seideliterative-methods
4long8 marks

The rate of cooling of a freshly cast concrete sample obeys

dTdt=0.5(T25),T(0)=100 C,\frac{dT}{dt} = -0.5\,(T - 25), \qquad T(0) = 100\ ^\circ\text{C},

where TT is temperature in ^\circC and tt is time in hours. Using the fourth-order Runge-Kutta (RK4) method with step size h=0.5h = 0.5 h, compute TT at t=1.0t = 1.0 h (two steps). Compare with the exact solution.

RK4 formulae for dTdt=f(t,T)=0.5(T25)\dfrac{dT}{dt}=f(t,T)=-0.5(T-25):

k1=hf(tn,Tn),  k2=hf ⁣(tn+h2,Tn+k12),  k3=hf ⁣(tn+h2,Tn+k22),  k4=hf(tn+h,Tn+k3),k_1=hf(t_n,T_n),\;k_2=hf\!\left(t_n+\tfrac h2,T_n+\tfrac{k_1}{2}\right),\;k_3=hf\!\left(t_n+\tfrac h2,T_n+\tfrac{k_2}{2}\right),\;k_4=hf(t_n+h,T_n+k_3), Tn+1=Tn+16(k1+2k2+2k3+k4).T_{n+1}=T_n+\tfrac16(k_1+2k_2+2k_3+k_4).

Here h=0.5h=0.5, and ff does not depend on tt explicitly.

Step 1: t0=0, T0=100t_0=0,\ T_0=100.

  • k1=0.5×[0.5(10025)]=0.5×(37.5)=18.75k_1 = 0.5\times[-0.5(100-25)] = 0.5\times(-37.5) = -18.75
  • T0+k1/2=1009.375=90.625T_0+k_1/2 = 100-9.375 = 90.625;   k2=0.5×[0.5(90.62525)]=0.5×(32.8125)=16.40625\;k_2 = 0.5\times[-0.5(90.625-25)] = 0.5\times(-32.8125) = -16.40625
  • T0+k2/2=1008.203125=91.796875T_0+k_2/2 = 100-8.203125 = 91.796875;   k3=0.5×[0.5(91.79687525)]=0.5×(33.3984375)=16.69921875\;k_3 = 0.5\times[-0.5(91.796875-25)] = 0.5\times(-33.3984375) = -16.69921875
  • T0+k3=10016.69921875=83.30078125T_0+k_3 = 100-16.69921875 = 83.30078125;   k4=0.5×[0.5(83.3007812525)]=0.5×(29.150390625)=14.5751953125\;k_4 = 0.5\times[-0.5(83.30078125-25)] = 0.5\times(-29.150390625) = -14.5751953125
T1=100+16(18.75+2(16.40625)+2(16.69921875)14.5751953125).T_1 = 100 + \tfrac16\big(-18.75 + 2(-16.40625) + 2(-16.69921875) - 14.5751953125\big).

Sum inside: 18.7532.812533.398437514.5751953125=99.5361328125-18.75 -32.8125 -33.3984375 -14.5751953125 = -99.5361328125.

T1=10016.5893554688=83.4106445 C.T_1 = 100 - 16.5893554688 = 83.4106445\ ^\circ\text{C}.

Step 2: t1=0.5, T1=83.4106445t_1=0.5,\ T_1=83.4106445.

  • k1=0.5×[0.5(83.410644525)]=0.5×(29.20532225)=14.602661125k_1 = 0.5\times[-0.5(83.4106445-25)] = 0.5\times(-29.20532225) = -14.602661125
  • T1+k1/2=83.41064457.301330563=76.10931394T_1+k_1/2 = 83.4106445-7.301330563 = 76.10931394;   k2=0.5×[0.5(51.10931394)]=12.77732849\;k_2 = 0.5\times[-0.5(51.10931394)] = -12.77732849
  • T1+k2/2=83.41064456.388664243=77.02198026T_1+k_2/2 = 83.4106445-6.388664243 = 77.02198026;   k3=0.5×[0.5(52.02198026)]=13.00549506\;k_3 = 0.5\times[-0.5(52.02198026)] = -13.00549506
  • T1+k3=83.410644513.00549506=70.40514944T_1+k_3 = 83.4106445-13.00549506 = 70.40514944;   k4=0.5×[0.5(45.40514944)]=11.35128736\;k_4 = 0.5\times[-0.5(45.40514944)] = -11.35128736
T2=83.4106445+16(14.602661125+2(12.77732849)+2(13.00549506)11.35128736).T_2 = 83.4106445 + \tfrac16\big(-14.602661125 + 2(-12.77732849) + 2(-13.00549506) - 11.35128736\big).

Sum: 14.60266112525.5546569826.0109901211.35128736=77.51959559-14.602661125 -25.55465698 -26.01099012 -11.35128736 = -77.51959559.

T2=83.410644512.91993260=70.4907119 C.T_2 = 83.4106445 - 12.91993260 = 70.4907119\ ^\circ\text{C}.

Exact solution: T(t)=25+75e0.5tT(t) = 25 + 75e^{-0.5t}.

T(1.0)=25+75e0.5=25+75(0.6065307)=25+45.4898=70.4898 C.T(1.0) = 25 + 75e^{-0.5} = 25 + 75(0.6065307) = 25 + 45.4898 = 70.4898\ ^\circ\text{C}.

Comparison: RK4 gives T(1.0)70.491 \boldsymbol{T(1.0)\approx 70.491\ ^\circ}C versus exact 70.490 70.490\ ^\circC — error 0.001 \approx 0.001\ ^\circC, demonstrating RK4's high accuracy.

ordinary-differential-equationsrunge-kuttainitial-value-problem
5long8 marks

A square plate occupies 0x30 \le x \le 3, 0y30 \le y \le 3 (units in metres) and its steady-state temperature satisfies Laplace's equation 2u=0\nabla^2 u = 0. The boundary temperatures are: top edge =100= 100, and the left, right and bottom edges =0= 0. Using a uniform grid with h=1h = 1 m there are four interior nodes. Set up the finite-difference equations and solve for the four interior temperatures (use symmetry and the Gauss-Seidel / Liebmann method, 3 iterations).

Grid layout (h=1h=1). Interior nodes at (1,1),(2,1),(1,2),(2,2)(1,1),(2,1),(1,2),(2,2). Label:

  y=3:  100   100   100   100
  y=2:   0    u3    u4    0
  y=1:   0    u1    u2    0
  y=0:   0     0     0    0

where u1=u(1,1),u2=u(2,1),u3=u(1,2),u4=u(2,2)u_1=u(1,1),\,u_2=u(2,1),\,u_3=u(1,2),\,u_4=u(2,2).

Five-point Laplace formula: ui,j=14(ui+1,j+ui1,j+ui,j+1+ui,j1)u_{i,j}=\tfrac14(u_{i+1,j}+u_{i-1,j}+u_{i,j+1}+u_{i,j-1}).

Equations (using boundary values):

u1=14(u2+0+u3+0),u_1 = \tfrac14(u_2 + 0 + u_3 + 0), u2=14(0+u1+u4+0),u_2 = \tfrac14(0 + u_1 + u_4 + 0), u3=14(u4+0+100+u1),u_3 = \tfrac14(u_4 + 0 + 100 + u_1), u4=14(0+u3+100+u2).u_4 = \tfrac14(0 + u_3 + 100 + u_2).

Symmetry about the vertical centre line gives u1=u2u_1=u_2 and u3=u4u_3=u_4, but we solve the general iteration to demonstrate.

Liebmann (Gauss-Seidel) iterations, start all =0=0:

Iteration 1:

  • u1=14(0+0+0+0)=0u_1=\tfrac14(0+0+0+0)=0
  • u2=14(0+0+0+0)=0u_2=\tfrac14(0+0+0+0)=0
  • u3=14(0+0+100+0)=25u_3=\tfrac14(0+0+100+0)=25
  • u4=14(0+25+100+0)=31.25u_4=\tfrac14(0+25+100+0)=31.25

Iteration 2:

  • u1=14(u2+u3)=14(0+25)=6.25u_1=\tfrac14(u_2+u_3)=\tfrac14(0+25)=6.25
  • u2=14(u1+u4)=14(6.25+31.25)=9.375u_2=\tfrac14(u_1+u_4)=\tfrac14(6.25+31.25)=9.375
  • u3=14(u4+100+u1)=14(31.25+100+6.25)=34.375u_3=\tfrac14(u_4+100+u_1)=\tfrac14(31.25+100+6.25)=34.375
  • u4=14(u3+100+u2)=14(34.375+100+9.375)=35.9375u_4=\tfrac14(u_3+100+u_2)=\tfrac14(34.375+100+9.375)=35.9375

Iteration 3:

  • u1=14(u2+u3)=14(9.375+34.375)=10.9375u_1=\tfrac14(u_2+u_3)=\tfrac14(9.375+34.375)=10.9375
  • u2=14(u1+u4)=14(10.9375+35.9375)=11.71875u_2=\tfrac14(u_1+u_4)=\tfrac14(10.9375+35.9375)=11.71875
  • u3=14(u4+100+u1)=14(35.9375+100+10.9375)=36.71875u_3=\tfrac14(u_4+100+u_1)=\tfrac14(35.9375+100+10.9375)=36.71875
  • u4=14(u3+100+u2)=14(36.71875+100+11.71875)=37.109375u_4=\tfrac14(u_3+100+u_2)=\tfrac14(36.71875+100+11.71875)=37.109375
Iteru1u_1u2u_2u3u_3u4u_4
10.0000.00025.00031.250
26.2509.37534.37535.938
310.93811.71936.71937.109

Continued iteration converges to the exact values u1=u2=12.5u_1=u_2=12.5 and u3=u4=37.5u_3=u_4=37.5.

After 3 iterations: u110.94, u211.72, u336.72, u437.11\boldsymbol{u_1\approx10.94,\ u_2\approx11.72,\ u_3\approx36.72,\ u_4\approx37.11}, trending toward the symmetric solution (12.5,12.5,37.5,37.5)(12.5,12.5,37.5,37.5).

partial-differential-equationslaplace-equationfinite-difference
B

Section B: Short Answer Questions

Attempt all questions.

6 questions
6short6 marks

Find a real root of f(x)=x2cosx1=0f(x) = x^2 - \cos x - 1 = 0 (with xx in radians) in the interval [1,2][1, 2] using the bisection method. Perform four iterations and state the bound on the absolute error.

Bisection method. f(x)=x2cosx1f(x)=x^2-\cos x-1.

Check the bracket: f(1)=1cos11=10.5403021=0.540302<0f(1)=1-\cos 1-1 = 1-0.540302-1 = -0.540302<0. f(2)=4cos21=4(0.416147)1=3.416147>0f(2)=4-\cos 2-1 = 4-(-0.416147)-1 = 3.416147>0. Root lies in [1,2][1,2].

Iteration 1: c1=1.5c_1=1.5. f(1.5)=2.25cos1.51=2.250.0707371=1.179263>0f(1.5)=2.25-\cos1.5-1=2.25-0.070737-1=1.179263>0. Root in [1,1.5][1,1.5].

Iteration 2: c2=1.25c_2=1.25. f(1.25)=1.5625cos1.251=1.56250.3153221=0.247178>0f(1.25)=1.5625-\cos1.25-1=1.5625-0.315322-1=0.247178>0. Root in [1,1.25][1,1.25].

Iteration 3: c3=1.125c_3=1.125. f(1.125)=1.265625cos1.1251=1.2656250.4289131=0.163288<0f(1.125)=1.265625-\cos1.125-1=1.265625-0.428913-1=-0.163288<0. Root in [1.125,1.25][1.125,1.25].

Iteration 4: c4=1.1875c_4=1.1875. f(1.1875)=1.410156cos1.18751=1.4101560.3731231=0.037033>0f(1.1875)=1.410156-\cos1.1875-1=1.410156-0.373123-1=0.037033>0. Root in [1.125,1.1875][1.125,1.1875].

Iterabcf(c)f(c) sign
11.00002.00001.5000+
21.00001.50001.2500+
31.00001.25001.1250-
41.12501.25001.1875+

Estimated root 1.125+1.18752=1.15625\approx \dfrac{1.125+1.1875}{2}=1.15625.

Error bound: after nn iterations the error is at most ba2n=2124=116=0.0625\dfrac{b-a}{2^n}=\dfrac{2-1}{2^4}=\dfrac{1}{16}=\boldsymbol{0.0625}.

roots-of-equationsbisection-methoderror-analysis
7short6 marks

The cross-section of an irrigation channel is surveyed by measuring the depth dd (m) at points spaced 22 m apart across the 1212 m width:

x (m)024681012
d (m)01.52.42.82.51.60

Use Simpson's 1/3 rule to estimate the cross-sectional area of flow.

Simpson's 1/3 rule. With n=6n=6 intervals (even) and h=2h=2 m:

A=h3[(y0+y6)+4(y1+y3+y5)+2(y2+y4)].A = \frac{h}{3}\Big[(y_0+y_6) + 4(y_1+y_3+y_5) + 2(y_2+y_4)\Big].

Values:

  • End ordinates: y0+y6=0+0=0y_0+y_6 = 0 + 0 = 0.
  • Odd ordinates: y1+y3+y5=1.5+2.8+1.6=5.9y_1+y_3+y_5 = 1.5+2.8+1.6 = 5.9, so 4×5.9=23.64\times5.9 = 23.6.
  • Even (interior) ordinates: y2+y4=2.4+2.5=4.9y_2+y_4 = 2.4+2.5 = 4.9, so 2×4.9=9.82\times4.9 = 9.8.

Sum =0+23.6+9.8=33.4= 0 + 23.6 + 9.8 = 33.4.

A=23×33.4=66.83=22.26 m2.A = \frac{2}{3}\times 33.4 = \frac{66.8}{3} = 22.2\overline{6}\ \text{m}^2.

Cross-sectional area of flow 22.27 m2\boldsymbol{\approx 22.27\ \text{m}^2}.

numerical-integrationsimpsons-rulecivil-application
8short6 marks

Using Lagrange's interpolation formula, find the value of yy at x=3x = 3 from the data

x124
y1864

Lagrange interpolation for three points (1,1),(2,8),(4,64)(1,1),(2,8),(4,64):

y(x)=y0L0+y1L1+y2L2,y(x)=y_0 L_0 + y_1 L_1 + y_2 L_2,

where

L0=(x2)(x4)(12)(14),L1=(x1)(x4)(21)(24),L2=(x1)(x2)(41)(42).L_0=\frac{(x-2)(x-4)}{(1-2)(1-4)},\quad L_1=\frac{(x-1)(x-4)}{(2-1)(2-4)},\quad L_2=\frac{(x-1)(x-2)}{(4-1)(4-2)}.

At x=3x=3:

  • L0=(32)(34)(1)(3)=(1)(1)3=13L_0=\dfrac{(3-2)(3-4)}{(-1)(-3)}=\dfrac{(1)(-1)}{3}=-\dfrac13
  • L1=(31)(34)(1)(2)=(2)(1)2=1L_1=\dfrac{(3-1)(3-4)}{(1)(-2)}=\dfrac{(2)(-1)}{-2}=1
  • L2=(31)(32)(3)(2)=(2)(1)6=13L_2=\dfrac{(3-1)(3-2)}{(3)(2)}=\dfrac{(2)(1)}{6}=\dfrac13
y(3)=1(13)+8(1)+64(13)=13+8+643=8+633=8+21=29.y(3)=1\left(-\tfrac13\right) + 8(1) + 64\left(\tfrac13\right) = -\tfrac13 + 8 + \tfrac{64}{3} = 8 + \tfrac{63}{3} = 8 + 21 = 29.

y(3)=29\boldsymbol{y(3) = 29}. (Note: the underlying data fit y=x3y=x^3 would give 2727; the quadratic Lagrange fit through these three points yields 2929.)

interpolationlagrange-methodpolynomial
9short6 marks

The horizontal displacement yy (mm) of the top of a column at times tt (s) during a vibration test is:

t (s)0.00.10.20.30.4
y (mm)00.91.62.12.4

Estimate the velocity (dy/dtdy/dt) at t=0.2t = 0.2 s and the acceleration (d2y/dt2d^2y/dt^2) at t=0.2t = 0.2 s using central-difference formulae.

Central-difference formulae with h=0.1h=0.1 s, centred at t=0.2t=0.2 s (yi1=0.9, yi=1.6, yi+1=2.1y_{i-1}=0.9,\ y_i=1.6,\ y_{i+1}=2.1):

Velocity (first derivative):

dydt0.2=yi+1yi12h=2.10.92(0.1)=1.20.2=6.0 mm/s.\left.\frac{dy}{dt}\right|_{0.2} = \frac{y_{i+1}-y_{i-1}}{2h} = \frac{2.1 - 0.9}{2(0.1)} = \frac{1.2}{0.2} = 6.0\ \text{mm/s}.

Acceleration (second derivative):

d2ydt20.2=yi+12yi+yi1h2=2.12(1.6)+0.9(0.1)2=2.13.2+0.90.01=0.20.01=20 mm/s2.\left.\frac{d^2y}{dt^2}\right|_{0.2} = \frac{y_{i+1}-2y_i+y_{i-1}}{h^2} = \frac{2.1 - 2(1.6) + 0.9}{(0.1)^2} = \frac{2.1 - 3.2 + 0.9}{0.01} = \frac{-0.2}{0.01} = -20\ \text{mm/s}^2.

Results: velocity =6.0 mm/s\boldsymbol{= 6.0\ \text{mm/s}}, acceleration =20 mm/s2\boldsymbol{= -20\ \text{mm/s}^2} (the negative sign indicates the motion is decelerating at t=0.2t=0.2 s).

numerical-differentiationfinite-differencecivil-application
10short6 marks

Solve the initial value problem

dydx=x+y,y(0)=1\frac{dy}{dx} = x + y, \qquad y(0) = 1

using the modified Euler (Heun's) method with step size h=0.1h = 0.1 to find y(0.2)y(0.2) (two steps). Show the predictor and corrector at each step.

Modified Euler (Heun's) method: predictor then corrector

yn+1p=yn+hf(xn,yn),yn+1=yn+h2[f(xn,yn)+f(xn+1,yn+1p)],y^{p}_{n+1}=y_n+h\,f(x_n,y_n),\qquad y_{n+1}=y_n+\frac h2\big[f(x_n,y_n)+f(x_{n+1},y^{p}_{n+1})\big],

with f(x,y)=x+yf(x,y)=x+y, h=0.1h=0.1.

Step 1: x0=0, y0=1x_0=0,\ y_0=1.

  • f(x0,y0)=0+1=1f(x_0,y_0)=0+1=1.
  • Predictor: y1p=1+0.1(1)=1.1y^p_1 = 1 + 0.1(1) = 1.1.
  • f(x1,y1p)=0.1+1.1=1.2f(x_1,y^p_1)=0.1+1.1=1.2.
  • Corrector: y1=1+0.12(1+1.2)=1+0.05(2.2)=1+0.11=1.11y_1 = 1 + \dfrac{0.1}{2}(1 + 1.2) = 1 + 0.05(2.2) = 1 + 0.11 = 1.11.

Step 2: x1=0.1, y1=1.11x_1=0.1,\ y_1=1.11.

  • f(x1,y1)=0.1+1.11=1.21f(x_1,y_1)=0.1+1.11=1.21.
  • Predictor: y2p=1.11+0.1(1.21)=1.11+0.121=1.231y^p_2 = 1.11 + 0.1(1.21) = 1.11 + 0.121 = 1.231.
  • f(x2,y2p)=0.2+1.231=1.431f(x_2,y^p_2)=0.2+1.231=1.431.
  • Corrector: y2=1.11+0.12(1.21+1.431)=1.11+0.05(2.641)=1.11+0.13205=1.24205y_2 = 1.11 + \dfrac{0.1}{2}(1.21 + 1.431) = 1.11 + 0.05(2.641) = 1.11 + 0.13205 = 1.24205.
Stepxxpredictorcorrector
10.11.10001.1100
20.21.23101.2421

y(0.2)1.2421\boldsymbol{y(0.2) \approx 1.2421}. (Exact y=2exx1y=2e^x-x-1 gives y(0.2)=2e0.21.2=2.442811.2=1.24281y(0.2)=2e^{0.2}-1.2=2.44281-1.2=1.24281; close agreement.)

ordinary-differential-equationseuler-methodinitial-value-problem
11short4 marks

Fit a straight line y=a+bxy = a + bx to the following data using the method of least squares:

x12345
y34679

Least-squares normal equations:

y=na+bx,xy=ax+bx2.\sum y = na + b\sum x,\qquad \sum xy = a\sum x + b\sum x^2.

Compute the sums (n=5n=5):

xyx2x^2xyxy
1313
2448
36918
471628
592545
\sum=152955102

So x=15, y=29, x2=55, xy=102\sum x=15,\ \sum y=29,\ \sum x^2=55,\ \sum xy=102.

Normal equations:

29=5a+15b,102=15a+55b.29 = 5a + 15b,\qquad 102 = 15a + 55b.

From the first: a=2915b5a = \dfrac{29-15b}{5}. Substitute into the second:

102=152915b5+55b=3(2915b)+55b=8745b+55b=87+10b.102 = 15\cdot\frac{29-15b}{5} + 55b = 3(29-15b) + 55b = 87 - 45b + 55b = 87 + 10b. 10b=15b=1.5.10b = 15 \Rightarrow b = 1.5. a=2915(1.5)5=2922.55=6.55=1.3.a = \frac{29 - 15(1.5)}{5} = \frac{29 - 22.5}{5} = \frac{6.5}{5} = 1.3.

Best-fit line: y=1.3+1.5x\boldsymbol{y = 1.3 + 1.5\,x}.

curve-fittingleast-squaresregression

Frequently asked questions

Where can I find the BE Civil Engineering (IOE, TU) Numerical Methods (IOE, SH 553) question paper 2080?
The full BE Civil Engineering (IOE, TU) Numerical Methods (IOE, SH 553) 2080 (regular) question paper is available free on Kekkei. You can read every question online and attempt the paper under timed exam conditions.
Does the Numerical Methods (IOE, SH 553) 2080 paper come with solutions?
Yes. Every question on this Numerical Methods (IOE, SH 553) past paper includes a step-by-step solution, plus instant AI feedback when you attempt it on Kekkei.
How many marks is the BE Civil Engineering (IOE, TU) Numerical Methods (IOE, SH 553) 2080 paper?
The BE Civil Engineering (IOE, TU) Numerical Methods (IOE, SH 553) 2080 paper carries 80 full marks and is meant to be completed in 180 minutes, across 11 questions.
Is practising this Numerical Methods (IOE, SH 553) past paper free?
Yes — reading and attempting this Numerical Methods (IOE, SH 553) past paper on Kekkei is completely free.