Physics 3

Numerical Methods: Aims and Objectives


Numerical Methods 310

Aims:

Course outline:

The course consists of 15 lectures, supplemented by 5 practical sessions using computers.

The numerical algorithms will be taught in a way that is as language independent as possible but a small amount of programming will be involved in order to give experience of the use of numerical methods, including the limitations and pitfalls. Since it is not intended to teach programming as part of the course, students will be provided with pre-written examples that they can use as templates and adapt to investigate the numerical methods involved; as a side effect these will illustrate good programming techniques. Some students will have encountered C programming in the Physics 2T class and all will have been given a course in Maple and should be able to use it as a programming language (which it is). Students will, therefore, normally choose to work within one of these languages. The use of Excel as a tool for numerical calculations will also be emphasised.

Inversion and the solution of linear simultaneous equations. Eigenvalues and eigenvectors. Reduction of a linear Physics calculation to one involving matrices. Application to normal mode problems from dynamics and quantum mechanics.

Polynomial interpolation. Splines. Smoothing data.

Simple methods for equally spaced nodes; e.g. Simpson's rule and the effect of step size. Gaussian quadrature. Examples from Physics of integrals that cannot be done analytically.

Generation of random numbers with normal, Poisson and other distributions. Simulation of data with a random error. Monte-Carlo methods for integration and simulations.

Bracketing and bisection methods. Secant method etc. Solution of non-linear systems of equations. Examples from Physics of equations without an algebraic solution; e.g. from quantum mechanics, solving the bound states of one, two and three dimensional square wells and, from waves, the solution of the normal modes of strings with awkward boundary conditions.

Brief description of common techniques used for the minimising of a function with more than one parameter. Fitting data by minimising chi-squared. The special case of linear parametrisations. Error matrix and the calculation of the errors for the fitted parameters.

The FFT. FFT of real functions, sine and cosine transforms. Data sampling, aliasing etc. The FFT in signal processing. Using Excel and Maple to apply the FFT to data.

Simple methods - e.g. Euler. Step size errors. Runge-Kutta methods. Using Runge-Kutta in Excel. Adaptive step size. Stiff equations. Using Maple for differential equations. Boundary value problems including two point boundary values. Examples of the numerical solution of differential equations from Physics and elsewhere; e.g. from dynamics, the solution of the motion of a spinning top and of a freely rotating body in three dimensions; from waves, the normal modes of a hanging rope with and without a mass at the end.

Types of PDEs; elliptic, parabolic and hyperbolic with examples from Physics. Finite difference methods. Relaxation methods for boundary value problems.

Objectives:

After completion of the course the student should be able to: