
This article is based on one of Budd's Gresham College lectures. Watch the full lecture here, and see here to find out more about this free, public lecture series.
A universal constant amongst all animals is the need to eat. The food and drink industry is the largest in the world and in order to feed the growing population of the world we will have to grow more food in the next fifty years than we have in the last 10,000 years.
What does maths have to do with this? The simple answer is "a lot". In this article we'll look at some applications of maths to food, from its role in growing food to its role in transporting and storing food.
It all starts in a field
Most of our food production, whether it is crops or animals, involves a field on a farm. This may appear to be a low technology area, but a lot of science and mathematics is involved in making a field effective for food production. Indeed there are sophisticated computer packages which are used to simulate the behaviour of a field and to advise farmers on the best way to manage the fields on their farm. The basic questions that need to be addressed by a farmer growing crops are: what crops to grow and how much, how much to irrigate them, what pesticides to use, how to react to the weather and when to harvest.
The first of these questions involves the mathematics of optimisation. It is useful to give an idea of how this might work with a simple field (or maybe several fields) on a farm. Let's consider the example of a farm somewhere in the tropics in which we want to grow two crops, such as cocoa and pineapples. If
This problem is a special example of a constrained optimisation problem called a linear programming problem. The problem can be solved using a graph. We show an example in which the optimal combination of

The problem with a=e=g=h=1, b=f=2, and c=4. The optimal combination of x and y occurs at the corner point A of the shaded region.
Generally a farmer will have many more crops, or even animals, to consider, as well as many more constraints, such as labour costs, irrigation costs, and the resistance of each crop to disease and the impact of the weather. This leads to more complex problems similar in form to the one above, but involving many more variables and constraints. A key feature of our problem is that it is linear: we see
Feeding the world

How much food do we need to feed the world?
Mathematicians have also considered the growth of crops for the whole of the world. This is important if we are to grow enough to feed the whole of the world's population. The problem of how things grow was studied in a classic text by D'Arcy Thompson. If a relatively small amount c of a crop is planted and allowed to grow year on year (during which it will be pollinated), then the rate of growth of the crop is proportional to the amount of the crop. We can express this as a differential equation of the form
This equation works well if
An equation similar to the one above was originally devised by Thomas Robert Malthus to study population growth in human populations. Such is the power of applied mathematics that the logistic equation can be used in many other areas related to the supply of food. One of these is fishing, where now
This isn't all
Once food has been produced (or caught) it needs to be delivered to where it can be eaten. This often involves cooling or freezing the food. The equations of thermodynamics, which describe the behaviour of materials when they are being heated or cooled, are hugely important in this context. Using these equations we can potentially save huge amounts of food going to waste, and allow it to be stored and transported safely.
Transporting food to its intended destinations also introduces huge logistical challenges, made worse by the fact that different foods have different shapes, weights and times of delivery. These problems are very hard to solve. A classical example is the travelling salesman problem, which aims to find the optimal route for a salesman to deliver his goods. You can find out more about this problem, and the huge difficulties in solving it, in this Plus article.
Another example is the knapsack problem which tries to find the best way to fit a set of differently shaped objects into a knapsack, with direct application to the problem of fitting food into a freezer lorry or a transport plane (find out more in this Plus article). Only relatively recently have efficient (probabilistic based) algorithms been developed to provide an answer. These algorithms are now making a huge difference to the way that goods are transported all over the world.

Is it fresh?
But how do you know a food is fresh when you receive it in a shop? One of the more interesting problems that I have had to work on was finding out how fresh a fish is. We often think that we can test the freshness of a foodstuff by its smell, but often food only starts to smell when it is far from being fresh. So, with fish, a method for testing it had to be used which did not (only) rely on its smell. The method we came up with was to look at the elasticity of the skin, and the viscosity (stickiness) of the flesh beneath the skin. Both are closely related to the freshness: our own skin becomes less elastic as we grow older. In order to test this method we produced a mechanical probe to test the elasticity of the fish skin. This probe bounced a small needle off the skin, and then monitored its response. By formulating a mathematical equation for the expected motion of the skin, and comparing this with the measurements of the probe, it was possible to deduce both the elasticity and the viscosity of the flesh, and hence the freshness of the fish.
As we've seen, there's plenty of maths involved in delivering food to our plates. But what about the drink in our glasses? That's what we will look at in this article.
About this article
This article is adapted from one of Budd's Gresham College lectures. See here to find out more about this free, public lecture series.

Chris Budd.
Chris Budd OBE is Professor of Applied Mathematics at the University of Bath, Vice President of the Institute of Mathematics and its Applications, Chair of Mathematics for the Royal Institution and an honorary fellow of the British Science Association. He is particularly interested in applying mathematics to the real world and promoting the public understanding of mathematics.
He has co-written the popular mathematics book Mathematics Galore!, published by Oxford University Press, with C. Sangwin, and features in the book 50 Visions of Mathematics ed. Sam Parc.