,\dots,\frac{\partial S}{\partial q_{N}}\right) + \frac{\partial S}{\partial t}=0.