Midpoint Method Equation