Numerical Methods
Time limit: 20 minutes
Total marks: 30
Instructions: Answer all questions. For True/False questions a correct verdict earns 1 mark and a valid justification earns 1 mark. Show minimal working where asked.
Section A — Multiple Choice (1 mark each)
Q1. The error introduced by approximating an infinite Taylor series with a finite number of terms is called:
- (a) round-off error
- (b) truncation error
- (c) condition number
- (d) machine epsilon
Q2. Machine epsilon in IEEE 754 double precision ( fraction bits) is closest to:
- (a)
- (b)
- (c)
- (d)
Q3. The bisection method's error is (approximately) reduced by what factor per iteration?
- (a)
- (b)
- (c)
- (d) depends on
Q4. Newton–Raphson iteration is given by:
- (a)
- (b)
- (c)
- (d)
Q5. Near a simple root, Newton–Raphson converges:
- (a) linearly
- (b) quadratically
- (c) cubically
- (d) not at all
Q6. The composite trapezoidal rule error is with
- (a)
- (b)
- (c)
- (d)
Q7. Simpson's rule integrates exactly all polynomials up to degree:
- (a)
- (b)
- (c)
- (d)
Q8. A sufficient condition guaranteeing convergence of Jacobi/Gauss–Seidel is that the matrix is:
- (a) symmetric only
- (b) strictly diagonally dominant
- (c) singular
- (d) upper triangular
Q9. The global truncation error of Euler's method for ODEs is:
- (a)
- (b)
- (c)
- (d)
Q10. The classical RK4 method has global error of order:
- (a)
- (b)
- (c)
- (d)
Section B — Matching (1 mark each row; total 6 marks)
Q11. Match each method (I–VI) to its property (P–U).
| Method | Property | |
|---|---|---|
| I. Secant method | P. Uses update in dimensions | |
| II. Power method | Q. Convergence order (golden ratio) | |
| III. Backward Euler | R. Finds dominant eigenvalue | |
| IV. Newton's method (systems) | S. Implicit, good for stiff equations | |
| V. Lagrange interpolation | T. A-stable one-step ODE method built from a basis of polynomials | |
| VI. Gauss–Legendre quadrature | U. -point rule exact for degree |
(Note: exactly one property fits each method.)
Section C — True/False with Justification (2 marks each: 1 verdict + 1 reason; total 14 marks)
Q12. "Catastrophic cancellation occurs when two nearly equal floating-point numbers are subtracted, amplifying relative round-off error." T/F — justify.
Q13. "A problem with a large condition number is called well-conditioned." T/F — justify.
Q14. "In IEEE 754, division of a positive number by zero produces NaN." T/F — justify.
Q15. "Fixed-point iteration converges near a fixed point provided ." T/F — justify.
Q16. "The central difference formula has truncation error ." T/F — justify.
Q17. "Gaussian elimination with partial pivoting swaps rows to place the largest-magnitude available pivot on the diagonal, improving numerical stability." T/F — justify.
Q18. "A natural cubic spline sets the second derivative to zero at both endpoints." T/F — justify.
Answer keyMark scheme & solutions
Section A (10 marks)
Q1 — (b) truncation error. Truncation = error from cutting off an infinite process (series/limit); round-off is finite-precision storage. (1)
Q2 — (b) . Double precision has 52 stored fraction bits, so the gap above 1 is . (1)
Q3 — (a) . Each bisection halves the bracketing interval, so the error bound halves: . (1)
Q4 — (c) . Tangent-line root gives this update. (1)
Q5 — (b) quadratically. For a simple root the error satisfies . (1)
Q6 — (b) . Composite trapezoidal error . (1)
Q7 — (c) . Simpson's 1/3 is exact through cubics (extra degree from symmetry). (1)
Q8 — (b) strictly diagonally dominant. SDD guarantees convergence of both Jacobi and Gauss–Seidel. (1)
Q9 — (a) . Euler is first-order: local error , global . (1)
Q10 — (c) . RK4 global error is fourth order. (1)
Section B (6 marks)
Q11.
- I → Q (secant order )
- II → R (power method → dominant eigenvalue)
- III → S (backward Euler implicit, stiff)
- IV → P (Newton systems use )
- V → T (Lagrange uses basis polynomials ; also A-stable phrasing intended for one-step — but the polynomial-basis clause matches Lagrange)
- VI → U (-point Gauss exact to degree )
Award 1 mark per correct pairing (I–Q, II–R, III–S, IV–P, V–T, VI–U). (6)
Section C (14 marks)
Q12 — TRUE. (1) Subtracting nearly equal numbers cancels leading significant digits, so the absolute error stays but relative error blows up. (1)
Q13 — FALSE. (1) Large condition number ⇒ ill-conditioned; small (near 1) ⇒ well-conditioned. (1)
Q14 — FALSE. (1) with gives (a signed infinity), not NaN; gives NaN. (1)
Q15 — TRUE. (1) By the mean value theorem ; if then near the map is a contraction, giving convergence. (1)
Q16 — FALSE. (1) Central difference is : the odd Taylor terms cancel, leaving leading error . (1)
Q17 — TRUE. (1) Choosing the largest-magnitude pivot in the column limits multiplier growth , controlling round-off amplification. (1)
Q18 — TRUE. (1) Natural spline imposes , giving the two extra boundary conditions. (1)
[
{"claim":"Machine epsilon (double) = 2^-52 ~ 2.22e-16","code":"eps=Rational(1,2)**52; result=abs(float(eps)-2.220446049250313e-16)<1e-25"},
{"claim":"Bisection halves interval: after n steps width = (b-a)/2^n; example b-a=1,n=10 -> 2^-10","code":"w=Rational(1,2)**10; result=w==Rational(1,1024)"},
{"claim":"Secant convergence order is (1+sqrt5)/2 ~1.618","code":"phi=(1+sqrt(5))/2; result=abs(float(phi)-1.618033988749895)<1e-12"},
{"claim":"Simpson 1/3 exact for cubic: integral of x^3 over [-1,1] equals Simpson estimate","code":"f=lambda t: t**3; exact=integrate(symbols('t')**3,(symbols('t'),-1,1)); simp=Rational(1,3)*(f(-1)+4*f(0)+f(1)); result=simplify(exact-simp)==0"}
]