. Hello, everyone
I have some trouble with the calculus in the derivation of the Euler-Lagrange equation for the principle of least action. Specifically:
$\newcommand{\lagr}{\mathcal{L}}$
$\delta S = \delta \int_{t_1}^{t_2}\lagr(q,\dot{q},t)dt=0 $
$\delta S = \int_{t_1}^{t_2} (\frac{\partial{\lagr}}{\partial{q}}\delta q + \frac{\partial{\lagr}}{\partial{\dot{q}}} \delta \dot{q})dt=0$ (Eq. 2)
$\delta \dot{q}= \frac{d}{dt} \delta q $
Integrating the second term by parts we get
$ I_2 = \int_{t_1}^{t_2} (\frac{\partial{\lagr}}{\partial{\dot{q}}} \cdot \frac{d}{dt} \delta q) dt = [\frac {\partial{\lagr}} {\partial{\dot{q}}} \delta q]_{t_1}^{t_2} - \int_{t_1}^{t_2} \delta q \cdot \frac{d}{dt}(\frac{\partial{\lagr}}{\partial{\dot{q}}})dt $
Substituting this into eq. 2
$\delta S = [\frac{\partial{\lagr}}{\partial{\dot{q}}}\delta q]_{t_1}^{t_2} + \int_{t_1}^{t_2} (\frac{\partial{\lagr}}{\partial{q}} - \frac{d}{dt} \frac{\partial{\lagr}}{\partial{\dot{q}}}) \delta q dt=0$
The parts I am having trouble with are:
During the integration by parts (at $I_2$) why can't we just take the $\frac{d}{dt}$ term outside the integral and end up with $ \frac{\partial{\lagr}}{\partial{\dot{q}}}\delta q $ for the whole integral ? Is it because d/dt only applies to delta q?
If the boundary conditions dictate $\delta q$ must be equal to zero for $t_1$ and $t_2$, why do we say $\delta q$ can take on any value, and therefore the integrand $(\frac{\partial{\lagr}}{\partial{q}} - \frac{d}{dt} \frac{\partial{\lagr}}{\partial{\dot{q}}})$ must equal to zero to satisfy the equation?
What does $\delta $ actually describe? Is it kind of a total derivative?
Thank you for your help