Browse papers
A

Section A: Long Answer Questions

Attempt all questions.

5 questions
1long12 marks

A reinforced-concrete design check reduces to locating the real root of

f(x)=x3x2=0.f(x) = x^3 - x - 2 = 0.

(a) Show that a root lies in the interval [1,2][1, 2] and perform six iterations of the Bisection method, tabulating aa, bb, the midpoint cc and f(c)f(c) at each step. State the approximate root and an error bound.

(b) Starting from x0=2x_0 = 2, perform three iterations of the Newton-Raphson method on f(x)f(x) and comment on the convergence rate compared with bisection.

Definition. A root of f(x)=0f(x)=0 is a value x=ξx=\xi for which f(ξ)=0f(\xi)=0. Bracketing methods rely on the Intermediate Value Theorem: if ff is continuous and f(a)f(b)<0f(a)\,f(b)<0, a root lies in (a,b)(a,b).

(a) Bisection method

Check the bracket:

f(1)=112=2<0,f(2)=822=4>0.f(1)=1-1-2=-2<0,\qquad f(2)=8-2-2=4>0.

Since f(1)f(2)<0f(1)\,f(2)<0, a root lies in [1,2][1,2].

Iteration rule: c=(a+b)/2c=(a+b)/2; if f(a)f(c)<0f(a)f(c)<0 keep [a,c][a,c], else keep [c,b][c,b].

Iteraabbccf(c)f(c)New interval
11.000002.000001.500000.12500-0.12500[1.5,2][1.5,\,2]
21.500002.000001.75000+1.60938+1.60938[1.5,1.75][1.5,\,1.75]
31.500001.750001.62500+0.66602+0.66602[1.5,1.625][1.5,\,1.625]
41.500001.625001.56250+0.25220+0.25220[1.5,1.5625][1.5,\,1.5625]
51.500001.562501.53125+0.05911+0.05911[1.5,1.53125][1.5,\,1.53125]
61.500001.531251.515620.03405-0.03405[1.51562,1.53125][1.51562,\,1.53125]

Approximate root after 6 iterations: c(1.51562+1.53125)/2=1.52344c \approx (1.51562+1.53125)/2 = \mathbf{1.52344}.

Error bound: ξcba2n=2126=1640.0156.|\xi - c| \le \dfrac{b-a}{2^{n}} = \dfrac{2-1}{2^{6}} = \dfrac{1}{64} \approx \mathbf{0.0156}.

(b) Newton-Raphson method

f(x)=3x21f'(x)=3x^2-1. Iteration: xn+1=xnf(xn)f(xn)=xnxn3xn23xn21.x_{n+1}=x_n-\dfrac{f(x_n)}{f'(x_n)} = x_n - \dfrac{x_n^3-x_n-2}{3x_n^2-1}.

  • x0=2x_0=2: f=4, f=11x1=24/11=1.636364f=4,\ f'=11 \Rightarrow x_1 = 2 - 4/11 = \mathbf{1.636364}
  • x1=1.636364x_1=1.636364: f=(4.38082)1.6363642=0.744452, f=3(2.677686)1=7.033058x2=1.6363640.105849=1.530515f=(4.38082)-1.636364-2=0.744452,\ f'=3(2.677686)-1=7.033058 \Rightarrow x_2 = 1.636364-0.105849 = \mathbf{1.530515}
  • x2=1.530515x_2=1.530515: f=(3.585158)1.5305152=0.054643, f=3(2.342476)1=6.027428x3=1.5305150.009066=1.521449f=(3.585158)-1.530515-2=0.054643,\ f'=3(2.342476)-1=6.027428 \Rightarrow x_3 = 1.530515-0.009066 = \mathbf{1.521449}

Converged root 1.52138\approx \mathbf{1.52138}.

Comment. Newton-Raphson reaches ~5 significant figures in 3 steps (quadratic convergence: the number of correct digits roughly doubles each step), whereas bisection (linear convergence, error halved per step) needs many more iterations for the same accuracy. The trade-off is that Newton-Raphson requires f(x)f'(x) and may diverge for a poor initial guess, while bisection always converges once a sign change is bracketed.

roots-of-equationsbisection-methodnewton-raphson
2long12 marks

(a) A survey gives the following reduced levels (RL, in m) of bench marks at distances xx (in m):

xx (m)56911
RL (m)12131416

Using Lagrange's interpolation polynomial, estimate the RL at x=10x = 10 m.

(b) The settlement yy (mm) of a footing measured at equal time intervals xx (months) is:

xx0123
yy12928

Construct the forward difference table and use Newton's forward-difference interpolation to estimate the settlement at x=0.5x = 0.5 month.

(a) Lagrange interpolation

For nodes x0=5,x1=6,x2=9,x3=11x_0=5, x_1=6, x_2=9, x_3=11 with values 12,13,14,1612,13,14,16, the polynomial is

P(x)=i=03yiLi(x),Li(x)=jixxjxixj.P(x)=\sum_{i=0}^{3} y_i \, L_i(x),\quad L_i(x)=\prod_{j\ne i}\frac{x-x_j}{x_i-x_j}.

At x=10x=10:

  • L0=(106)(109)(1011)(56)(59)(511)=(4)(1)(1)(1)(4)(6)=424=0.166667L_0=\dfrac{(10-6)(10-9)(10-11)}{(5-6)(5-9)(5-11)}=\dfrac{(4)(1)(-1)}{(-1)(-4)(-6)}=\dfrac{-4}{-24}=0.166667
  • L1=(105)(109)(1011)(65)(69)(611)=(5)(1)(1)(1)(3)(5)=515=0.333333L_1=\dfrac{(10-5)(10-9)(10-11)}{(6-5)(6-9)(6-11)}=\dfrac{(5)(1)(-1)}{(1)(-3)(-5)}=\dfrac{-5}{15}=-0.333333
  • L2=(105)(106)(1011)(95)(96)(911)=(5)(4)(1)(4)(3)(2)=2024=0.833333L_2=\dfrac{(10-5)(10-6)(10-11)}{(9-5)(9-6)(9-11)}=\dfrac{(5)(4)(-1)}{(4)(3)(-2)}=\dfrac{-20}{-24}=0.833333
  • L3=(105)(106)(109)(115)(116)(119)=(5)(4)(1)(6)(5)(2)=2060=0.333333L_3=\dfrac{(10-5)(10-6)(10-9)}{(11-5)(11-6)(11-9)}=\dfrac{(5)(4)(1)}{(6)(5)(2)}=\dfrac{20}{60}=0.333333
P(10)=12(0.166667)+13(0.333333)+14(0.833333)+16(0.333333)P(10)=12(0.166667)+13(-0.333333)+14(0.833333)+16(0.333333) =2.04.333333+11.666667+5.333333=14.6667 m.=2.0-4.333333+11.666667+5.333333=\mathbf{14.6667\ m}.

(b) Newton's forward-difference interpolation

Forward difference table (h=1h=1):

xxyyΔy\Delta yΔ2y\Delta^2 yΔ3y\Delta^3 y
01166
12712
2919
328

With x0=0x_0=0, p=xx0h=0.501=0.5p=\dfrac{x-x_0}{h}=\dfrac{0.5-0}{1}=0.5,

y(x)=y0+pΔy0+p(p1)2!Δ2y0+p(p1)(p2)3!Δ3y0.y(x)=y_0+p\,\Delta y_0+\frac{p(p-1)}{2!}\Delta^2 y_0+\frac{p(p-1)(p-2)}{3!}\Delta^3 y_0. y(0.5)=1+0.5(1)+(0.5)(0.5)2(6)+(0.5)(0.5)(1.5)6(6)y(0.5)=1+0.5(1)+\frac{(0.5)(-0.5)}{2}(6)+\frac{(0.5)(-0.5)(-1.5)}{6}(6) =1+0.5+(0.125)(6)+(0.0625)(6)=1+0.50.75+0.375=1.125 mm.=1+0.5+(-0.125)(6)+(0.0625)(6)=1+0.5-0.75+0.375=\mathbf{1.125\ mm}.
interpolationlagrangenewton-forward-difference
3long12 marks

(a) Evaluate 01exdx\displaystyle\int_0^1 e^{x}\,dx taking n=4n = 4 sub-intervals using (i) the Trapezoidal rule and (ii) Simpson's 1/3 rule. Compare both with the exact value and compute the percentage error of each.

(b) In an earthwork computation the cross-sectional areas (m2^2) of a road cutting at chainages 20 m apart are:

Chainage (m)020406080
Area (m2^2)1218222520

Estimate the volume of earthwork between chainage 0 and 80 m using Simpson's 1/3 rule.

(a) Numerical integration of 01exdx\int_0^1 e^x\,dx

Step size h=(10)/4=0.25h=(1-0)/4=0.25. Nodes and values:

iixix_iyi=exiy_i=e^{x_i}
00.001.000000
10.251.284025
20.501.648721
30.752.117000
41.002.718282

(i) Trapezoidal rule

IT=h2[y0+y4+2(y1+y2+y3)]I_T=\frac{h}{2}\Big[y_0+y_4+2(y_1+y_2+y_3)\Big] =0.252[1.000000+2.718282+2(1.284025+1.648721+2.117000)]=\frac{0.25}{2}\big[1.000000+2.718282+2(1.284025+1.648721+2.117000)\big] =0.125[3.718282+2(5.049746)]=0.125(13.817774)=1.727222.=0.125\big[3.718282+2(5.049746)\big]=0.125(13.817774)=\mathbf{1.727222}.

(ii) Simpson's 1/3 rule

IS=h3[y0+y4+4(y1+y3)+2y2]I_S=\frac{h}{3}\Big[y_0+y_4+4(y_1+y_3)+2y_2\Big] =0.253[1.000000+2.718282+4(1.284025+2.117000)+2(1.648721)]=\frac{0.25}{3}\big[1.000000+2.718282+4(1.284025+2.117000)+2(1.648721)\big] =0.083333[3.718282+4(3.401025)+3.297442]=0.083333(20.619824)=1.718319.=0.083333\big[3.718282+4(3.401025)+3.297442\big]=0.083333(20.619824)=\mathbf{1.718319}.

Exact value: 01exdx=e1=1.718282\int_0^1 e^x\,dx = e-1 = 1.718282.

Percentage errors:

  • Trapezoidal: 1.7272221.7182821.718282×100=0.520%\dfrac{|1.727222-1.718282|}{1.718282}\times100 = \mathbf{0.520\%}.
  • Simpson 1/3: 1.7183191.7182821.718282×100=0.0022%\dfrac{|1.718319-1.718282|}{1.718282}\times100 = \mathbf{0.0022\%}.

Simpson's rule is far more accurate (error h4\propto h^4 versus h2h^2 for trapezoidal).

(b) Volume of earthwork (Simpson's 1/3 rule)

With h=20h=20 m and 5 ordinates (even number of intervals = 4, so the rule applies directly):

V=h3[A0+A4+4(A1+A3)+2A2]V=\frac{h}{3}\Big[A_0+A_4+4(A_1+A_3)+2A_2\Big] =203[12+20+4(18+25)+2(22)]=203[32+172+44]=203(248)=\frac{20}{3}\big[12+20+4(18+25)+2(22)\big]=\frac{20}{3}\big[32+172+44\big]=\frac{20}{3}(248) =1653.33 m3.=\mathbf{1653.33\ m^3}.
numerical-integrationtrapezoidal-rulesimpsons-rule
4long12 marks

(a) Solve the following system arising from a truss-equilibrium analysis using Gauss elimination with partial pivoting:

2x1+x2x3=83x1x2+2x3=112x1+x2+2x3=3\begin{aligned} 2x_1 + x_2 - x_3 &= 8 \\ -3x_1 - x_2 + 2x_3 &= -11 \\ -2x_1 + x_2 + 2x_3 &= -3 \end{aligned}

(b) Solve the following diagonally-dominant system using the Gauss-Seidel iterative method. Start with (x,y,z)=(0,0,0)(x,y,z)=(0,0,0) and perform three iterations:

4xy+z=74x8y+z=212x+y+5z=15\begin{aligned} 4x - y + z &= 7 \\ 4x - 8y + z &= -21 \\ -2x + y + 5z &= 15 \end{aligned}

(a) Gauss elimination with partial pivoting

Augmented matrix:

[2118312112123]\left[\begin{array}{ccc|c} 2 & 1 & -1 & 8 \\ -3 & -1 & 2 & -11 \\ -2 & 1 & 2 & -3 \end{array}\right]

Partial pivoting (column 1): largest magnitude in column 1 is 3=3|-3|=3 (row 2). Swap R1 and R2:

[3121121182123]\left[\begin{array}{ccc|c} -3 & -1 & 2 & -11 \\ 2 & 1 & -1 & 8 \\ -2 & 1 & 2 & -3 \end{array}\right]

Eliminate column 1: R2R2+23R1R2 \leftarrow R2+\tfrac{2}{3}R1, R3R323R1R3 \leftarrow R3-\tfrac{2}{3}R1:

  • R2:(0, 123=0.33333, 1+43=0.33333  8223=0.66667)R2: (0,\ 1-\tfrac{2}{3}=0.33333,\ -1+\tfrac{4}{3}=0.33333\ |\ 8-\tfrac{22}{3}=0.66667)
  • R3:(0, 1+23=1.66667, 243=0.66667  3+223=4.33333)R3: (0,\ 1+\tfrac{2}{3}=1.66667,\ 2-\tfrac{4}{3}=0.66667\ |\ -3+\tfrac{22}{3}=4.33333)
[3121100.333330.333330.6666701.666670.666674.33333]\left[\begin{array}{ccc|c} -3 & -1 & 2 & -11 \\ 0 & 0.33333 & 0.33333 & 0.66667 \\ 0 & 1.66667 & 0.66667 & 4.33333 \end{array}\right]

Partial pivoting (column 2): 1.66667>0.33333|1.66667|>|0.33333|, swap R2 and R3:

[3121101.666670.666674.3333300.333330.333330.66667]\left[\begin{array}{ccc|c} -3 & -1 & 2 & -11 \\ 0 & 1.66667 & 0.66667 & 4.33333 \\ 0 & 0.33333 & 0.33333 & 0.66667 \end{array}\right]

Eliminate column 2: R3R30.333331.66667R2=R30.2R2R3 \leftarrow R3 - \tfrac{0.33333}{1.66667}R2 = R3 - 0.2\,R2:

  • R3:(0, 0, 0.333330.2(0.66667)=0.2  0.666670.2(4.33333)=0.2)R3: (0,\ 0,\ 0.33333-0.2(0.66667)=0.2\ |\ 0.66667-0.2(4.33333)=-0.2)

Upper-triangular system:

3x1x2+2x3=11,1.66667x2+0.66667x3=4.33333,0.2x3=0.2.-3x_1 - x_2 + 2x_3 = -11,\quad 1.66667x_2 + 0.66667x_3 = 4.33333,\quad 0.2x_3 = -0.2.

Back-substitution:

  • x3=0.2/0.2=1x_3 = -0.2/0.2 = \mathbf{-1}
  • x2=(4.333330.66667(1))/1.66667=5.0/1.66667=3x_2 = (4.33333 - 0.66667(-1))/1.66667 = 5.0/1.66667 = \mathbf{3}
  • x1=(11+x22x3)/(3)=(11+3+2)/(3)=6/3=2x_1 = (-11 + x_2 - 2x_3)/(-3) = (-11+3+2)/(-3) = -6/-3 = \mathbf{2}

Solution: x1=2, x2=3, x3=1x_1=2,\ x_2=3,\ x_3=-1.

(b) Gauss-Seidel iteration

Rearranged for the dominant diagonal:

x=7+yz4,y=21+4x+z8,z=15+2xy5.x=\frac{7+y-z}{4},\quad y=\frac{21+4x+z}{8},\quad z=\frac{15+2x-y}{5}.

Start (0,0,0)(0,0,0), using latest available values:

Iterxxyyzz
17+004=1.75000\frac{7+0-0}{4}=1.7500021+7+08=3.50000\frac{21+7+0}{8}=3.5000015+3.53.55=3.00000\frac{15+3.5-3.5}{5}=3.00000
27+3.53.04=1.87500\frac{7+3.5-3.0}{4}=1.8750021+7.5+3.08=3.93750\frac{21+7.5+3.0}{8}=3.9375015+3.753.93755=2.96250\frac{15+3.75-3.9375}{5}=2.96250
37+3.93752.96254=1.99375\frac{7+3.9375-2.9625}{4}=1.9937521+7.975+2.96258=3.99219\frac{21+7.975+2.9625}{8}=3.9921915+3.98753.992195=2.99906\frac{15+3.9875-3.99219}{5}=2.99906

After 3 iterations: x1.99375, y3.99219, z2.99906\mathbf{x \approx 1.99375,\ y \approx 3.99219,\ z \approx 2.99906}, converging to the exact solution (2,4,3)(2,4,3).

linear-systemsgauss-eliminationgauss-seidel
5long12 marks

The deflection model of a structural element gives the initial-value problem

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

(a) Use Euler's method with step size h=0.1h = 0.1 to estimate y(0.4)y(0.4) (show all four steps in a table).

(b) Use the fourth-order Runge-Kutta (RK4) method with step size h=0.2h = 0.2 to estimate y(0.4)y(0.4) (show both steps and all kk values).

(c) The exact solution is y=2exx1y = 2e^{x} - x - 1. Compute y(0.4)y(0.4) exactly and tabulate the absolute error of each method.

Here f(x,y)=x+yf(x,y)=x+y.

(a) Euler's method (h=0.1h=0.1): yn+1=yn+hf(xn,yn)y_{n+1}=y_n+h\,f(x_n,y_n).

Stepxnx_nyny_nf(xn,yn)=xn+ynf(x_n,y_n)=x_n+y_nyn+1=yn+0.1fy_{n+1}=y_n+0.1f
10.01.0000001.0000001.100000
20.11.1000001.2000001.220000
30.21.2200001.4200001.362000
40.31.3620001.6620001.528200

Euler estimate: y(0.4)1.528200y(0.4) \approx 1.528200.

(b) RK4 method (h=0.2h=0.2). Per step:

k1=f(x,y), k2=f(x+h2,y+h2k1), k3=f(x+h2,y+h2k2), k4=f(x+h,y+hk3),k_1=f(x,y),\ k_2=f(x+\tfrac{h}{2},y+\tfrac{h}{2}k_1),\ k_3=f(x+\tfrac{h}{2},y+\tfrac{h}{2}k_2),\ k_4=f(x+h,y+hk_3), yn+1=yn+h6(k1+2k2+2k3+k4).y_{n+1}=y_n+\frac{h}{6}(k_1+2k_2+2k_3+k_4).

Step 1 (x0=0, y0=1x_0=0,\ y_0=1, h/2=0.1h/2=0.1):

  • k1=0+1=1.000000k_1=0+1=1.000000
  • k2=(0.1)+(1+0.11)=0.1+1.1=1.200000k_2=(0.1)+(1+0.1\cdot1)=0.1+1.1=1.200000
  • k3=(0.1)+(1+0.11.2)=0.1+1.12=1.220000k_3=(0.1)+(1+0.1\cdot1.2)=0.1+1.12=1.220000
  • k4=(0.2)+(1+0.21.22)=0.2+1.244=1.444000k_4=(0.2)+(1+0.2\cdot1.22)=0.2+1.244=1.444000
  • y1=1+0.26(1+2(1.2)+2(1.22)+1.444)=1+0.033333(7.284)=1.242800y_1=1+\frac{0.2}{6}(1+2(1.2)+2(1.22)+1.444)=1+0.033333(7.284)=\mathbf{1.242800} at x=0.2x=0.2.

Step 2 (x1=0.2, y1=1.242800x_1=0.2,\ y_1=1.242800):

  • k1=0.2+1.2428=1.442800k_1=0.2+1.2428=1.442800
  • k2=0.3+(1.2428+0.11.4428)=0.3+1.387080=1.687080k_2=0.3+(1.2428+0.1\cdot1.4428)=0.3+1.387080=1.687080
  • k3=0.3+(1.2428+0.11.687080)=0.3+1.411508=1.711508k_3=0.3+(1.2428+0.1\cdot1.687080)=0.3+1.411508=1.711508
  • k4=0.4+(1.2428+0.21.711508)=0.4+1.585102=1.985102k_4=0.4+(1.2428+0.2\cdot1.711508)=0.4+1.585102=1.985102
  • y2=1.2428+0.26(1.442800+2(1.687080)+2(1.711508)+1.985102)y_2=1.2428+\frac{0.2}{6}\big(1.442800+2(1.687080)+2(1.711508)+1.985102\big)
  • =1.2428+0.033333(10.225078)=1.2428+0.340836=1.583636=1.2428+0.033333(10.225078)=1.2428+0.340836=\mathbf{1.583636} at x=0.4x=0.4.

RK4 estimate: y(0.4)1.583636y(0.4) \approx 1.583636.

(c) Exact and error comparison

y(0.4)=2e0.40.41=2(1.491825)1.4=2.9836491.4=1.583649y(0.4)=2e^{0.4}-0.4-1 = 2(1.491825)-1.4 = 2.983649-1.4 = \mathbf{1.583649}.

Methody(0.4)y(0.4)Absolute error
Euler (h=0.1h=0.1)1.5282000.0554490.055449
RK4 (h=0.2h=0.2)1.5836360.0000130.000013
Exact1.583649

Conclusion. RK4 is dramatically more accurate (local error O(h5)O(h^5), global O(h4)O(h^4)) than Euler (global error O(h)O(h)), even using a larger step size.

ordinary-differential-equationseuler-methodrunge-kutta
B

Section B: Short Answer Questions

Attempt all questions.

6 questions
6short4 marks

Using the Secant method, perform three iterations to find a root of f(x)=x25=0f(x) = x^2 - 5 = 0, taking initial guesses x0=2x_0 = 2 and x1=3x_1 = 3. State the approximate root.

Secant iteration: xn+1=xnf(xn)xnxn1f(xn)f(xn1)x_{n+1}=x_n-f(x_n)\dfrac{x_n-x_{n-1}}{f(x_n)-f(x_{n-1})}, with f(x)=x25f(x)=x^2-5.

Initial: f(x0)=f(2)=45=1f(x_0)=f(2)=4-5=-1, f(x1)=f(3)=95=4f(x_1)=f(3)=9-5=4.

Iteration 1 (x0=2,x1=3x_0=2, x_1=3):

x2=34324(1)=3415=30.8=2.200000x_2=3-4\cdot\frac{3-2}{4-(-1)}=3-4\cdot\frac{1}{5}=3-0.8=\mathbf{2.200000}

f(x2)=2.225=4.845=0.16f(x_2)=2.2^2-5=4.84-5=-0.16.

Iteration 2 (x1=3,x2=2.2x_1=3, x_2=2.2):

x3=2.2(0.16)2.230.164=2.2(0.16)0.84.16=2.2(0.16)(0.192308)x_3=2.2-(-0.16)\cdot\frac{2.2-3}{-0.16-4}=2.2-(-0.16)\cdot\frac{-0.8}{-4.16}=2.2-(-0.16)(0.192308) =2.2+0.030769=2.230769=2.2+0.030769=\mathbf{2.230769}

f(x3)=2.23076925=4.9763315=0.023669f(x_3)=2.230769^2-5=4.976331-5=-0.023669.

Iteration 3 (x2=2.2,x3=2.230769x_2=2.2, x_3=2.230769):

x4=2.230769(0.023669)2.2307692.20.023669(0.16)=2.230769(0.023669)0.0307690.136331x_4=2.230769-(-0.023669)\cdot\frac{2.230769-2.2}{-0.023669-(-0.16)}=2.230769-(-0.023669)\cdot\frac{0.030769}{0.136331} =2.230769+0.005343=2.236112=2.230769+0.005343=\mathbf{2.236112}

Approximate root 2.23611\approx 2.23611 (true value 5=2.23607\sqrt5 = 2.23607).

roots-of-equationssecant-method
7short3 marks

Fit a straight line y=a+bxy = a + bx by the method of least squares to the following load-test data and estimate yy at x=6x = 6:

xx12345
yy2.22.83.64.55.1

Normal equations for y=a+bxy=a+bx (n=5n=5):

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

Sums:

xxyyxyxyx2x^2
12.22.21
22.85.64
33.610.89
44.518.016
55.125.525
1518.262.155
b=nxyxynx2(x)2=5(62.1)15(18.2)5(55)152=310.5273275225=37.550=0.75.b=\frac{n\sum xy-\sum x\sum y}{n\sum x^2-(\sum x)^2}=\frac{5(62.1)-15(18.2)}{5(55)-15^2}=\frac{310.5-273}{275-225}=\frac{37.5}{50}=\mathbf{0.75}. a=ybxn=18.20.75(15)5=18.211.255=6.955=1.39.a=\frac{\sum y-b\sum x}{n}=\frac{18.2-0.75(15)}{5}=\frac{18.2-11.25}{5}=\frac{6.95}{5}=\mathbf{1.39}.

Fitted line: y=1.39+0.75xy = 1.39 + 0.75x.

At x=6x=6: y=1.39+0.75(6)=1.39+4.50=5.89.y = 1.39 + 0.75(6) = 1.39 + 4.50 = \mathbf{5.89}.

curve-fittingleast-squaresregression
8short4 marks

Classify the second-order PDE

Auxx+Buxy+Cuyy+=0A u_{xx} + B u_{xy} + C u_{yy} + \dots = 0

using the discriminant criterion. Then write the five-point finite-difference (standard) formula for the Laplace equation uxx+uyy=0u_{xx}+u_{yy}=0 on a square mesh of spacing hh, and use it to estimate the interior temperature uPu_P of a plate where the four neighbouring nodal values are 100C100\,^{\circ}\mathrm{C}, 60C60\,^{\circ}\mathrm{C}, 40C40\,^{\circ}\mathrm{C} and 80C80\,^{\circ}\mathrm{C}.

Classification. For Auxx+Buxy+Cuyy+=0A u_{xx}+B u_{xy}+C u_{yy}+\dots=0, the discriminant is D=B24ACD=B^2-4AC:

  • D<0D<0 : elliptic (e.g. Laplace/Poisson, steady-state problems);
  • D=0D=0 : parabolic (e.g. heat/diffusion equation);
  • D>0D>0 : hyperbolic (e.g. wave equation).

For Laplace's equation uxx+uyy=0u_{xx}+u_{yy}=0: A=1, B=0, C=1D=04(1)(1)=4<0A=1,\ B=0,\ C=1\Rightarrow D=0-4(1)(1)=-4<0, hence elliptic.

Five-point formula. Using central differences with mesh spacing hh,

uxx+uyyui+1,j+ui1,j+ui,j+1+ui,j14ui,jh2=0,u_{xx}+u_{yy}\approx\frac{u_{i+1,j}+u_{i-1,j}+u_{i,j+1}+u_{i,j-1}-4u_{i,j}}{h^2}=0,

so

ui,j=14(ui+1,j+ui1,j+ui,j+1+ui,j1)\boxed{\,u_{i,j}=\frac{1}{4}\big(u_{i+1,j}+u_{i-1,j}+u_{i,j+1}+u_{i,j-1}\big)\,}

i.e. each interior value is the average of its four neighbours.

        u_top = 100
          |
u_left -- P -- u_right
  80      |      60
        u_bot = 40

Estimate.

uP=14(100+60+40+80)=2804=70C.u_P=\frac{1}{4}(100+60+40+80)=\frac{280}{4}=\mathbf{70\,^{\circ}C}.
partial-differential-equationslaplace-equationfinite-difference
9short3 marks

Given the discharge QQ (m3^3/s) measured against gauge height hh (m):

hh (m)1.01.52.02.5
QQ2.04.58.012.5

Using Newton's forward-difference formula for derivatives, estimate dQdh\dfrac{dQ}{dh} at h=1.0h = 1.0 m.

Spacing hstep=0.5h_{\text{step}}=0.5. Forward difference table:

hhQQΔQ\Delta QΔ2Q\Delta^2 QΔ3Q\Delta^3 Q
1.02.02.51.00.0
1.54.53.51.0
2.08.04.5
2.512.5

At the leading node (p=0p=0), the derivative formula is

dQdhh0=1hstep[ΔQ012Δ2Q0+13Δ3Q0].\left.\frac{dQ}{dh}\right|_{h_0}=\frac{1}{h_{\text{step}}}\Big[\Delta Q_0-\frac{1}{2}\Delta^2 Q_0+\frac{1}{3}\Delta^3 Q_0-\dots\Big].

Substituting ΔQ0=2.5, Δ2Q0=1.0, Δ3Q0=0.0\Delta Q_0=2.5,\ \Delta^2 Q_0=1.0,\ \Delta^3 Q_0=0.0:

dQdhh=1.0=10.5[2.512(1.0)+13(0)]=10.5(2.0)=4.0 m3/s per m.\left.\frac{dQ}{dh}\right|_{h=1.0}=\frac{1}{0.5}\Big[2.5-\frac{1}{2}(1.0)+\frac{1}{3}(0)\Big]=\frac{1}{0.5}(2.0)=\mathbf{4.0\ m^3/s\ per\ m}.
numerical-differentiationfinite-differenceinterpolation
10short3 marks

Define absolute, relative and percentage error. The true value of a quantity is π=3.14159265\pi = 3.14159265. If a hand-calculation uses the approximation 22/722/7, compute the absolute, relative and percentage errors of this approximation.

Definitions. If xtx_t is the true value and xax_a the approximation:

  • Absolute error: Ea=xtxaE_a=|x_t-x_a|.
  • Relative error: Er=xtxaxtE_r=\dfrac{|x_t-x_a|}{|x_t|}.
  • Percentage error: Ep=Er×100%E_p=E_r\times100\%.

Computation. xt=π=3.14159265x_t=\pi=3.14159265, xa=227=3.14285714x_a=\dfrac{22}{7}=3.14285714.

  • Absolute error: Ea=3.141592653.14285714=0.00126449E_a=|3.14159265-3.14285714|=\mathbf{0.00126449}.
  • Relative error: Er=0.001264493.14159265=0.00040250E_r=\dfrac{0.00126449}{3.14159265}=\mathbf{0.00040250}.
  • Percentage error: Ep=0.00040250×100=0.0402%E_p=0.00040250\times100=\mathbf{0.0402\%}.

Thus 22/722/7 overestimates π\pi by about 0.04%0.04\%, accurate to roughly three significant figures.

error-analysisapproximationsignificant-figures
11short3 marks

A river cross-section is sounded at 5 m horizontal intervals, giving the following depths dd (m) below the water surface across the width:

Distance (m)05101520
Depth (m)02.54.03.00

Using the Trapezoidal rule, estimate the cross-sectional area of flow of the river.

The cross-sectional area is A=020d(x)dxA=\int_0^{20} d(x)\,dx, approximated by the Trapezoidal rule with h=5h=5 m.

A=h2[d0+dn+2(d1+d2+d3)]A=\frac{h}{2}\Big[d_0+d_n+2\big(d_1+d_2+d_3\big)\Big] =52[0+0+2(2.5+4.0+3.0)]=52[2(9.5)]=52(19.0)=47.5 m2.=\frac{5}{2}\Big[0+0+2(2.5+4.0+3.0)\Big]=\frac{5}{2}\big[2(9.5)\big]=\frac{5}{2}(19.0)=\mathbf{47.5\ m^2}.

Cross-sectional area of flow 47.5 m2\approx 47.5\ \mathrm{m}^2. (This area, multiplied by the mean velocity, gives the river discharge Q=AvˉQ=A\bar v.)

numerical-integrationtrapezoidal-rulecivil-application

Frequently asked questions

Where can I find the BE Civil Engineering (IOE, TU) Numerical Methods (IOE, SH 553) question paper 2078?
The full BE Civil Engineering (IOE, TU) Numerical Methods (IOE, SH 553) 2078 (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) 2078 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) 2078 paper?
The BE Civil Engineering (IOE, TU) Numerical Methods (IOE, SH 553) 2078 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.