Mathematics, form and function