In Goldstein, Wikipedia and other textbooks and sources, it is claimed that when solving the Hamilton-Jacobi (HJ) equation in (n+1) variables (q1, …, qn and t)
H(q, ∂S/∂q, t) + ∂S/∂t = 0
if it happens that H does not depend explicitly on time, then S(q, a, t) (where a is a list of n constants) can be written as
S(q, a, t) = W(q, a) - Et
with W called Hamilton’s characteristic function and E a constant that can then easily be shown to be the total energy.
Why is this true? The reverse implication is easy: if S can be decomposed in that way, then plugging it in HJ shows that ∂H/∂t = 0. But I can’t see why the other way is true: if we start from ∂H/∂t = 0, all I can say from HJ is that (∂/∂t)^2 S = 0. This implies that ∂S/∂t doesn’t depend on time, so ∂S/∂t = -E(q, a) for some function E, and this in turn implies that S(q, a) = W(q, a) - E(q, a)t for some function W.
This is markedly different than saying S(q, a) = W(q, a) - Et. The term linear in time here is a true constant, while in my derivation it’s a function of (q, a).
I’m able to get the standard result if I say that (∂/∂t)^2 S = 0 implies that ∂S/∂t doesn’t depend on time and then put it equal to a constant ∂S/∂t = -E, and then the rest follows, but this is just wrong: the fact that (∂/∂t)^2 S = 0 doesn’t allow me to say that ∂S/∂t is a constant ALSO in (q, a). It only allows me to say that ∂S/∂t doesn’t depend explicitly on time, so ∂S/∂t = -E(q, a).
What’s going on?