math upper and lower bounds