Shows how certain well-known geometric facts concerning the gradient of a continuously differentiable function can be used, in conjunction with dynamic programming, to deduce transversality and corner conditions of the calculus of variations. The re...