Calculating the second derivative of BO.pdf