Skip to content

Notes and course material for MATH50003 Numerical Analysis (2023–24)

Notifications You must be signed in to change notification settings

WHY-Op109/MATH50003NumericalAnalysis

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MATH50003NumericalAnalysis

Notes and course material for MATH50003 Numerical Analysis (2023–24)

Lecturer: Dr Sheehan Olver

Office hour: Mondays 11am, Huxley 6M40

Weekly Material

  1. I.1 Rectangular Rule and I.2 Divided Differences
  2. I.3 Dual Numbers and I.4 Newton's method
  3. II.1 Integers and II.2 Reals
  4. II.3 Floating Point Arithmetic and II.4 Interval Arithmetic
  5. III.1 Structured Matrices and III.2 Differential Equations via Finite Differences
  6. III.3 Cholesky Factorisations and III.4 Polynomial Regression
  7. III.5 Orthogonal and Unitary Matrices and III.6 QR Factorisation
  8. IV.1 Fourier Expansions and IV.2 Discrete Fourier Transform
  9. IV.3 Orthogonal Polynomials and IV.4 Classical Orthogonal Polynomials
  10. IV.5 Gaussian Quadrature

Assessment

  1. Mock computer-based exam (Solutions)
  2. Computer-based exam (Solutions)
  3. Mock final exam (2(c/d) are not relevant.) (Solutions)
  4. Final exam (pen-and-paper, 80% of term mark): 7 May 2024, 10:00–13:00

Reading List

  1. MATH50003 Introduction to Julia
  2. The Julia Documentation
  3. Ben Lauwens, Think Julia
  4. The Julia–Matlab–Python Cheatsheet
  5. Tobin A. Driscoll & Richard J. Braun, Fundamentals of Numerical Computation, Julia Edition, Chapters 1–3, 7
  6. Nicholas J. Higham, Accuracy and Stability of Numerical Algorithms, Chapters 1–3
  7. Michael L. Overton, Numerical Computing with IEEE Floating Point Arithmetic, Chapters 2–6
  8. Lloyd N. Trefethen & David Bau III, Numerical Linear Algebra, Chapters 1–4
  9. Lloyd N. Trefethen, Approximation Theory and Approximation Practice, Chapters 1–4, 17–19
  10. David A. Ham, Just enough Git to get by

What is numerical analysis?

Broadly speaking, numerical analysis is the study of approximating solutions to continuous problems in mathematics, for example, integration, differentiation, and solving differential equations. There are three key topics in numerical analysis:

  1. Design of algorithms: discuss the construction of algorithms and their implmentation in software.
  2. Convergence of algorithms: proving under which conditions algorithms converge to the true solution, and the rate of convergence.
  3. Stability of algorithms: the study of robustness of algorithms to small perturbations in data, for example, those that arise from measurement error, errors if data are themselves computed using algorithms, or simply errors arising from the way computers represent real numbers.

The modern world is built on numerical algorithms:

  1. Fast Fourier Transform (FFT): Gives a highly efficient way of computing Fourier coefficients from function samples, and is used in many places, e.g., the mp3 format for compressing audio and JPEG image format. (Though, in a bizarre twist, GIF, a completely uncompressed format, has made a remarkable comeback.)
  2. Singular Value Decomposition (SVD): Allows for approximating matrices by those with low rank. This is related to the PageRank algorithm underlying Google.
  3. Stochastic Gradient Descent (SGD): Minima of high-dimensional functions can be effectively computed using gradients in a randomised algorithm. This is used in the training of machine learning algorithms.
  4. Finite element method (FEM): used to solve many partial differential equations including in aerodynamics and weather prediction. Firedrake is a major project based at Imperial that utilises finite element method.

This is not to say that numerical analysis is only important in applied mathematics. It is playing an increasing important role in pure mathematics with important proofs based on numerical computations:

  1. The Kepler conjecture. This 400 year conjecture on optimal sphere packing was finally proved in 2005 by Thomas Hales using numerical linear programming.
  2. Numerical verification of the Riemann Hypothesis. It has been proved that there are no zeros of the Riemann zeta function off the critical line provided the imaginary part is less than 30,610,046,000.
  3. Steve Smale's 14th problem on the stability of the Lorenz system was solved using interval arithmetic.

Note these proofs are rigorous: as we shall see it is possible to obtain precise error bounds in numerical calculations, and the computations themselves can be computer-verified (a la The Lean Theorem Prover). As computer-verified proofs become increasingly important, the role of numerical analysis in pure mathematics will also increase, as it provides the theory for rigorously controlling errors in computations. Note that there are many computer-assisted proofs that do not fall under numerical analysis because they do not involve errors in computations or approximation or involve discrete problems, for example, the proof the Four Colour Theorem.

The Julia Programming Language

In this course we will use the programming language Julia. This is a modern, compiled, high-level, open-source language developed at MIT. It is becoming increasingly important in high-performance computing and AI, including by Astrazeneca, Moderna and Pfizer in drug development and clinical trial accelleration, IBM for medical diagnosis, MIT for robot locomotion, and elsewhere.

It is ideal for a course on numerical analysis because it both allows fast implementation of algorithms but also has support for fast automatic-differentiation, a feature that is of increasing importance in machine learning. It also is low level enough that we can really understand what the computer is doing. As a bonus, it is easy-to-read and fun to write.

To run Julia in a Jupyter notebook on your own machine:

  1. Download Julia v1.10
  2. Open the Julia app which will launch a new window
  3. Install the needed packages by typing (] will change the prompt to a package manager):
] add IJulia Plots ColorBitstring SetRounding
  1. Build Jupyter via
] build IJulia
  1. Launch Jupyter by typing
using IJulia
notebook()
  1. Download the labs to the same folder as the Jupyter notebook is running.

Past exams

  1. 2021–22 Computer-based exam (Solutions)
  2. 2022–23 Computer-based exam (Solutions)

Past Course Websites

  1. 2021-22
  2. 2022-23

About

Notes and course material for MATH50003 Numerical Analysis (2023–24)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Jupyter Notebook 88.5%
  • TeX 7.2%
  • Julia 4.3%