Deriving the Common Form of the Lagrangian from D'Alembert's Principle.
D'Alembert's Principle may be take as the fundamental assumption of all of classical mechanics. Taking this as an axiom below, we derive the form of the Lagrangian.
This short and informal introduction gives a brief derivation of the form of the Lagrangian \(L=T-V\), building essentially from D'Alembert's principal to Hamilton's principle. It is intended to give a somewhat concise statement of the simplest form of these principles.
Here we only consider systems consisting of particles (as opposed to fields) and classical forces (as opposed to quantum or relativistic). Generally we will also assume the Lagrangian's dependence on time is only contributed through the path \(q(t)\) and it's velocity \(\dot{q}(t)\), and will denote this with the standard notation \(\frac{\partial L}{\partial t}=0\). We will further assume that the path taken, and it's first derivative with respect to time, are continuous.
Principle of Virtual Work
In a typical course covering static loads, many engineers are taught the principle of virtual work (a typical physicist may be less familiar with it). It will serve as our foundation for the discussion that follows.
The principle of virtual work states that in static equilibrium, all virtual displacements generating work according to the instantaneous configuration of forces sum to zero. That is, virtual work must be zero in configurations of static equilibrium.
Newtonian Relation
D'Alembert's principle also still requires the adoption of the Newtonian relation that forces correspond to a change in momentum , i.e. \(I=\frac{dp}{dt}\). And we will also assume applied forces to be the differential of some corresponding scalar function, \(F=-\frac{dV}{dr}\).
D'Alembert's Principle
The principle of virtual work for static equilibrium (\(\sum_i{F_i\cdot \delta \vec{\textbf{r}}_i}=0\)) can be adapted to dynamical systems by treating the reactions of massive bodies as 'inertial forces' exactly balancing imparted forces. This adapted principle can be described as below,
When considering D'Alembert's principle, it's important to understand the concept of a virtual displacement. A virtual displacement is a change in the system that happens independent of time (as opposed to displacements caused by motion). So, virtual displacements at some instant test the configuration of forces at that instant.
Hamilton's Principle
A logically equivalent principle to D'Alembert's principle, and one which is extensible to dynamical systems over a given time or path, is Hamilton's principle. It may be considered as the minimization of an integral over some virtual displacement in path \(\delta\vec{\textbf{r}}\), where the variation (and it's derivative) is continuous and vanishes at the points denoted by \(t_a\) and \(t_b\).
Further Resources
Jessica Coopersmith's lovely The Lazy Universe gives the most philosophically motivated (if not just lengthy) development of the principle of stationary action from the principle of virtual work (derives form of L). However, it lacks the more modern mathematical machinery of variational mechanics.
Cornelius Lanczos' The Variational Principles of Mechanics is a classic introduction and relatively in-depth development of variational mechanics from the principle of virtual work (derives form of L). Good for guided mathematical development aswell as concurrent and independent philosophical considerations.
Landau and Lifshitz' first volume of several hefty physics textbooks Course in Theoretical Physics takes the principle of stationary action as a given but develops the beginnings of variational mechanics from there.
David Cline's Variational Principles in Classical Mechanics gives good exposition on the topic.
Goldstein, Poole, and Safko's Analytical Mechanics gives a brief development of D'Alembert's Principle and then independently considers Hamilton's Principle and the basic tools of variational mechanics. However, some may not be able to bear looking at the book for too long.
Davidson Soper's Classical Field Theory gives a development of variational mechanics in field theory from the particle paradigm.