Chapter 9

Numerical methods

A numerical answer is meaningful only with its step size, iteration convention and error measure. Distinguish a method's local truncation error from its accumulated global error.

9.1 Errors and conditioningCE

Let xx be the exact value and x~\tilde x its approximation. Absolute error is ∣x~−x∣|\tilde x-x|, relative error is ∣x~−x∣/∣x∣|\tilde x-x|/|x| for x≠0x\ne0, and percentage error is 100 times the relative error.

9.2 Root-finding methodsAECEME

Past papers · AE 2020–2026 (7 papers): 1 question, 2 marks · CE 2020–2026 (14 papers): 3 questions, 4 marks · ME 2020–2026 (10 papers): 2 questions, 3 marks

A bracketing method retains opposite endpoint signs for a continuous function. An open iteration can converge quickly but can also diverge, cycle or encounter a zero denominator.

9.3 Iterative linear systemsCEME

Direct elimination is in Chapter 1. In an iteration, identify which values are old and which have just been updated. Reordering equations may improve convergence but does not guarantee it.

9.4 InterpolationAECE

Past papers · CE 2020–2026 (14 papers): 3 questions, 4 marks

Interpolation passes through specified data. Least-squares fitting generally does not; use the regression topic for that task. Distinct nodes are required for unique polynomial interpolation.

9.5 Numerical differentiationAECE

Past papers · CE 2020–2026 (14 papers): 3 questions, 4 marks

Small step sizes reduce truncation error but eventually amplify roundoff and measurement noise. For a derivative stencil f(m)(x)≈h−m∑jwjf(x+jh)f^{(m)}(x)\approx h^{-m}\sum_jw_jf(x+jh), match Taylor coefficients: ∑jwjjk=0\sum_jw_jj^k=0 for k≠mk\ne m through the retained degree, and ∑jwjjm=m!\sum_jw_jj^m=m!. The error statements below assume the required smooth derivatives remain bounded.

9.6 Numerical quadratureAECEME

Past papers · AE 2020–2026 (7 papers): 3 questions, 5 marks · CE 2020–2026 (14 papers): 5 questions, 9 marks · ME 2020–2026 (10 papers): 6 questions, 8 marks

Use equal subintervals unless a different rule is explicitly given. In the following formulas xi=a+ihx_i=a+ih, h=(b−a)/n>0h=(b-a)/n>0, yi=f(xi)y_i=f(x_i) and I=∫abf(x)dxI=\int_a^bf(x)dx.

9.7 Time stepping for ODEsCEME

Past papers · CE 2020–2026 (14 papers): 3 questions, 6 marks · ME 2020–2026 (10 papers): 3 questions, 4 marks

For y′=f(x,y)y'=f(x,y), let xn+1=xn+hx_{n+1}=x_n+h and fn=f(xn,yn)f_n=f(x_n,y_n). A single-step method needs the present point; a multistep method also needs previous values, normally obtained by a starting method.

Last-minute recall

  • Root residual and root error are different quantities.
  • Count bisections consistently before quoting an error bound.
  • Newton's quadratic convergence is local and assumes a simple root.
  • Jacobi uses old values; Gauss–Seidel uses new ones immediately.
  • Lagrange accepts unequal nodes; finite-difference Newton forms use equal spacing.
  • Central differences are generally more accurate at the same step size.
  • Simpson 1/31/3 needs an even number of subintervals.
  • RK4 stages here include the step size.
  • Accuracy order does not guarantee stability at a chosen step size.

Revise offline: the whole Engineering Mathematics handbook as one PDF

75 pages · 3.2 MBFree to read online. Sign in to download the PDF.We save the handbook, version and request time in My downloads. Privacy policy

All chapters · Corrections