Trapezoidal rule that Monte-Carlo integration is most likely a better choice, but for 2 and 3 dimensions, equispaced sampling is efficient. This is exploited in computational solid state physics where equispaced sampling over primitive cells in the reciprocal lattice is known as "Monkhorst-Pack integration". For various classes of functions that are not twice-differentiable, the trapezoidal rule has sharper bounds than Simpson's rule. The trapezoidal rule is one of a family of formulas for numerical integration called Newton–Cotes formulas, of which the midpoint rule is similar to the trapezoid rule. Simpson's rule is another member of the same family, and in general has
Chain rule for short, The derivative function is therefore: Another way of computing this derivative is to view the composite function as the composite of and "h". Applying the chain rule to this situation gives: This is the same as what was computed above. This should be expected because . Sometimes it is necessary to differentiate an arbitrarily long composition of the form formula_23. In this case, define where formula_25 and formula_26 when formula_27. Then the chain rule takes the form or, in the Lagrange notation, The chain rule can be used to derive some well-known differentiation rules. For example, the quotient