Maths of Chaos