samalkhaiat said:
Yes, it most certainly is. A total time derivative of a function that depends on velocities still satisfies the Euler-Lagrange equations, but it does not depend only on ##x## and ##\dot x##. It also depends on ##\ddot x##, which breaks your assumption that the function added to the Lagrangian can only depend on ##x## and ##\dot x##.
Sure, you can go ahead and have a discussion about including second derivatives in the Lagrangian, but mathematically it is absolutely clear that adding
any total time derivative does not affect the equations of motion (see below), because such a term satisfies the EL equations off shell by design.
samalkhaiat said:
These can be rewritten as
No they generally cannot, not if ##F## depends on ##\ddot x## (or any higher order derivatives), which it
will if the function you are taking the time derivative of depends on velocities. There is an additional term in the EL equations for integrands that depend on the second derivatives. In general in variational calculus where the integrand ##\mathcal L## depends on derivatives up to ##x^{(n)}##, you have
$$
\sum_{k = 0}^n (-1)^k \frac{d^k}{dt^k}\frac{\partial \mathcal L}{\partial x^{(k)}} = 0.
$$
(This does appear, e.g., (for the spatial derivatives) in deriving the equations of motion for a beam with some stiffness (where the potential energy per unit length is proportional to the curvature of the beam, which can be expressed using the second spatial derivatives).)
To see that a total derivative does not affect the action apart from a boundary term is trivial. Let ##\mathcal L_2 = \mathcal L_1 + dG/dt## with ##G## being an arbitrary function, containing as many time derivatives as you want of ##x##. You then have
$$
S_2 = \int_{t_1}^{t_2} \mathcal L_2 dt = \int_{t_1}^{t_2} (\mathcal L_1 + dG/dt) dt.
$$
The second term can be integrated directly to yield
$$
S_2 = S_1 + [G|_{t_2} - G|_{t_1}].
$$
Taking the variation of this will not introduce terms depending on anything other than ##t_1## and ##t_2## in the boundary terms so if you look at only internal variations, you immediately end up with the same Euler-Lagrange equations.
Note that, if you assume that ##G## is a function of ##x## and ##\dot x##, then ##dG/dt## will generally be a function of ##x##, ##\dot x##,
and ##\ddot x##. Then you can go on and argue about whether you should allow second derivatives in the Lagrangian, but the math is clear. You can add
any function on the form ##dG/dt## without affecting the Euler-Lagrange equations because
any function of the form ##dG/dt## satisfies the Euler-Lagrange equations off shell.
samalkhaiat said:
Thus, in order to satisfy E-L’s equation off shell, a function F(x , \dot{x} , t) must have the form F = \frac{\partial G}{\partial x_{c}} \dot{x}_{c} + \frac{\partial G}{\partial t} = \frac{d}{dt} G(x , t).
This is correct for a function ##F## that is only a function of ##x##, ##\dot x##, and ##t##. It is not true for an arbitrary function ##F##. For example, it certainly is not true if you allow ##F## to depend on ##\ddot x##, which it will if it is the total derivative of a function that depends on ##\dot x##. Generally, for a ##G## that depends on derivatives up to ##x^{(n-1)}##, you would have
$$
F = \frac{\partial G}{\partial t} + \sum_{k=0}^{n-1} \frac{\partial G}{\partial x^{(k)}} x^{(k+1)}
= \frac{dG}{dt}.
$$