maths upper and lower bounds