The maths behind the muscle