The Action Principle and Partial Differential Equations