Mathematics and mechanics