Lesson

Solving what cannot be solved exactly

What this course is about: when exactness is out of reach, you still get as close to the answer as you can, and you learn to say how far off you might be. A journey of nine challenges.

Last updated:


Some problems we cannot solve exactly in any practical way. Not only because they are hard, but because our tools are limited:
a computer does not store every number exactly, our time and computing power are limited, and sometimes we cannot see the whole road to the solution.

In this course we learn not to give up in front of these limits.
We learn to think outside the box, look for another route, and move step by step toward the best answer we can reach.
And we do not stop at an answer that merely looks good: we learn to say by how much, at most, it may be wrong.

One distinction runs through the whole course: sometimes the solution exists, but it has no explicit form, that is, no formula gives it.
These are the problems numerical analysis sets out to solve.

Skills you will build

Across the whole course:

  • Reformulate a problem, and state it precisely: change the representation, the variable or the goal so that it becomes easier, and write exactly what is given and what is asked.
  • Find more than one way to reach the goal before settling on the first idea.
  • Choose between methods under limits and constraints of accuracy, time, memory and the cost of an evaluation, and explain the trade.
  • Repair or invent a method when one fails, and say what the repair costs.
  • Make sure a result is right, not only that the code ran: check the residual and the error, try edge cases, and look for an example that refutes it.
  • Recognise the same problem in different fields: a root of an equation appears in the yield of a bond, in the volatility of an option and in an abstract calculation, and the method is the same method.

How each unit works

  1. A challenge. A concrete problem, before anyone hands you a method.
  2. Your own ideas. A short time to think alone, then to compare with a partner. Ideas that fail are welcome.
  3. Testing the limits. Where does each idea stop working, and why?
  4. The formal methods. Now the methods get their names, their conditions and their error bounds.
  5. A new problem. You choose, adapt or improve a method for a situation you have not seen.

The aim is to teach problem solving through numerical thinking, not only numerical methods through exercises.
Derivations, hand calculation and programming remain essential; the challenges complement them.

Before you begin

  • The course conventions fix what ε and δ mean and when an iteration stops.
  • The glossary is a navigation aid for terms; it is not a unit of its own.