Unit summary

  • Numerical answers carry inherent, rounding and truncation errors, measured as absolute, relative and percentage error.
  • The bisection method halves an interval with a sign change, and always converges, but slowly.
  • The Newton-Raphson method follows tangents, x(n+1) = x(n) − f/f′, and converges quadratically.
  • Newton's forward and backward formulas interpolate equally spaced data near the start and end of a table.
  • Lagrange's formula interpolates unequally spaced data.
  • The trapezoidal rule and Simpson's 1/3 rule approximate definite integrals, Simpson's being more accurate.

Glossary

Term Meaning
Absolute error |true value − approximate value|.
Algebraic equation An equation in which f is a polynomial.
Backward difference ∇y(i) = y(i) − y(i−1).
Bisection method Halving an interval with a sign change.
Forward difference Δy(i) = y(i+1) − y(i).
Interpolation Estimating values between data points.
Lagrange's formula Interpolation for unequally spaced points.
Newton-Raphson method Root finding by tangents.
Quadratic convergence Correct digits roughly double each step.
Relative error Absolute error divided by the true value.
Root A value r with f(r) = 0.
Rounding error Error from keeping limited digits.
Simpson's 1/3 rule Integration by parabolic arcs, with n even.
Transcendental equation An equation with functions such as sin, log or exp.
Trapezoidal rule Integration by straight-line strips.
Truncation error Error from stopping an infinite process.

Question bank

Short Answer Questions (2 marks each)

  1. Define absolute and relative error.
  2. What is truncation error?
  3. Distinguish algebraic and transcendental equations.
  4. State the principle of the bisection method.
  5. Write the Newton-Raphson formula.
  6. Define the forward difference operator.
  7. When is Newton's backward formula used?
  8. Write Lagrange's formula for three points.
  9. State the trapezoidal rule.
  10. Why must n be even in Simpson's 1/3 rule?

Medium Answer Questions (5 marks each)

  1. Explain the sources and measures of error.
  2. Find a root of x³ − 2x − 5 = 0 by the bisection method, correct to two decimal places.
  3. Find √10 by the Newton-Raphson method.
  4. Using Newton's forward formula, find y(2.5) from a given table.
  5. Use Lagrange's formula to find f(3) from the points (1, 2), (2, 3), (4, 11).
  6. Evaluate ∫ from 0 to 6 of 1/(1 + x²) dx by Simpson's 1/3 rule with h = 1.

Long Answer Questions (15 marks each)

  1. Explain errors in numerical methods, with their types and measures.
  2. Explain the bisection and Newton-Raphson methods, and compare them with an example.
  3. Derive and apply Newton's forward and backward interpolation formulas.
  4. Explain Lagrange's formula, the trapezoidal rule and Simpson's 1/3 rule, with examples.

Sources

  • Official BCA syllabus Mathematics Foundations to Computer Science II, course code 25BCA402DS01, Unit III