We provide an elementary proof that the action for the physical trajectory of the one-dimensional harmonic oscillator is guaranteed to be a minimum if and only if $\tau <\pi /\omega $, where *τ* is the elapsed time and *ω* is the oscillator's natural frequency.

## I. INTRODUCTION

Hamilton's principle^{1} establishes that the equations of motion for a mechanical system can be obtained as a necessary condition for the action to be locally stationary; that is, if the action is given by

where *L* is the Lagrangian of the system (*q* representing the generalized coordinates), and the condition $\delta S=0$ implies the equations of motion. We are assuming that the system is holonomic and that the constraints have been incorporated through a suitable choice of generalized coordinates.

The path that extremizes the action is often assumed to be the one that minimizes it, but this is not guaranteed by the first-order variation. To determine whether the action is a maximum or a minimum, one must analyze the second-order variation, similarly to what is done when studying critical points of real functions of one variable. In fact, it can be quite tricky to establish the minimality of the action for a given configuration. One of the cases where this analysis can be performed rigorously is for the one-dimensional harmonic oscillator (1D HO). A thorough analysis of this problem is provided by Gray and Taylor.^{2}

In order to understand the problem at hand, an analogy with a geometrical problem is very useful. Consider the paths joining two points, *P* and *Q*, on the surface of a sphere of radius *R*. Without loss of generality, let us take the point *P* to be on the north pole. If *Q* is close to *P*, we know that the shortest path, as measured using the metric of the surface of the sphere, is given by the arc of the great circle joining these two points, and that this path is unique. As we move the point *Q* farther away from *P* this arc will keep growing, until *Q* is on the antipode to *P*, the south pole. Once *Q* is on the south pole, there is a surprising phenomenon—now there are an infinite number of arcs joining *P* and *Q* with minimal length. For very good reasons, therefore, the point *Q* is called the *kinetic focus*. We should note that the kinetic focus is more commonly known in the literature as the *conjugate point*, and we refer the reader to the book by Gelfand and Fomin^{3} for a readable treatment of this problem.

We see from this example that, given a point *P* on the sphere, there exists a point *Q*, its kinetic focus, such that the geodesics that are shorter than the ones joining *P* and *Q* will minimize the path length. (The term *geodesic* here refers to curves that satisfy the geodesic equation, and are not necessarily those with the shortest path length.) For geodesics that are longer than those for the kinetic focus, it is no longer guaranteed that they will minimize the path length. As a matter of fact, we know that an arc of a great circle with length greater than *πR* is not the shortest path, even though it satisfies the geodesic equation.

In the action principle, we are looking for paths that extremize the action, and we can ask a similar question: given a solution of the equations of motion—the true physical motion of a mechanical system—what are the conditions that will guarantee that this solution minimizes the action? Notice that the kind of boundary conditions that will be imposed here are crucial. We will study the case where the space-time coordinates of the initial and final points are given, which is necessary in writing the action principle.

This question was first analyzed by Legendre,^{4} who thought he had solved it by looking at the second variation of the action $\delta 2S$. We know that in order to guarantee that we have a minimum for the action, we must have $\delta 2S>0$. Legendre's conclusion for one-dimensional systems was that, for a Lagrangian of the form $L(q,q\u0307,t)$, a necessary condition for the second variation of the action to be non-negative should be $\u22022L/\u2202q\u03072\u22650$.

Legendre's condition is certainly necessary, for, intuitively, we can imagine varying the solution of the equations of motion by adding a small perturbation that changes the potential energy by a very small amount while changing the kinetic energy by a large amount. If $\u22022L/\u2202q\u03072$ can be negative, this perturbation allows us to reduce the value of the action. Only later, with the work of Jacobi,^{4} it was understood that one needed to be careful about the existence of the kinetic focus.

For the harmonic oscillator, there's a similar phenomenon to the problem of geodesics on a sphere. If we take the starting point to be $q0=0$, corresponding to the potential energy minimum, at $t0=0$, and the end point to be *q*_{1}, arbitrary, which is reached at time $\tau <\pi /\omega $, then there is only one solution for the equations of motion. On the other hand, if we choose $\tau =\pi /\omega $, which corresponds to half of the period of oscillation, we see that there is an infinite number of solutions connecting $q0=0$ at $t0=0$ and $q1=0$ at $t1=\pi /\omega $, namely, $q(t)=A\u2009sin(\omega t)$ for any *A*. As shown by Gray and Taylor,^{2} it is also possible to consider varying the path in such a way that the second variation of the action vanishes, or in the more general case where the starting and end points are not at the minimum of the potential energy.

We will show now that the solutions of the equation of motion of the 1D HO connecting space-time points separated by a time interval less than $\pi /\omega $ provides, in fact, a true minimum of the action. The Lagrangian for the 1D HO is given by

Suppose we are given conditions $q(ti)$, *i* = 1, 2, and that we find a unique solution for the equations of motion compatible with them, which we call $q\u22c6(t)$. We should note that for such boundary conditions it is not always the case that the solution is unique, as discussed in Ref. 5. Without loss of generality, we take $t1=0$ and $t2=\tau $. The question is, does this solution minimize the action for the 1D HO?

Normally, one approaches this question by writing an arbitrary function *q*(*t*) as $q(t)=q\u22c6(t)+\eta (t)$, where $\eta (ti)=0$, *i* = 1, 2, and then computing $S[q(t)]$ as

where we have performed an integration by parts (the total derivative term going to zero) and made use of the equation of motion. In order to show that $S[q\u22c6(t)]$ is indeed the minimum action we must show that $S[\eta ]\u22650$ for non-zero $\eta (t)$, and equal to zero if and only if $\eta (t)=0$. The traditional way to show this^{2} is to expand $\eta (t)$ in a Fourier series and then require $\delta 2S>0$. Due to the fact that $\eta (t1)=\eta (t2)=0$, we can expand $\eta (t)$ in terms of $sin(n\pi t/\tau )$. The condition one obtains at the end is that $S[\eta (t)]\u22650$ for any $\eta (t)$, if and only if

where $\omega 2=k/m$ is the oscillator's natural frequency.

This approach offers a very powerful method, but it requires the use of heavy mathematical machinery in order to establish the simple, but fairly important, condition for *τ*. Gray and Taylor^{2} present a derivation for the 1D and 2D HOs using the Fourier series method and a derivation using the general theory of the kinetic focus. In this note we establish Eq. (4) using only elementary calculus.

Following a beautiful trick by Lax in a related variational problem,^{6} let us write $\eta (t)=u(t)\u2009sin(\pi t/\tau )$, with *u*(*t*) arbitrary; the sine function guarantees that $\eta (t)$ vanishes for *t* = 0 and $t=\tau $. Using this function for $\eta (t)$ and defining $\varphi =\pi t/\tau $, we find

We can then write

allowing us to integrate by parts, so that the action becomes

where we have discarded the total derivative term, since it vanishes at *t* = 0 and $t=\tau $.

The expression for the action given in Eq. (7) allows us to find the necessary and sufficient conditions to guarantee that $S[\eta ]$ is positive for all non-zero *η*. If we choose *u*(*t*) to be the constant *κ*, we obtain

In order for this quantity to be positive, we must have

establishing the fact that Eq. (4) is a necessary condition. To establish its sufficiency, we note that if Eq. (4) is satisfied, then the integrand in Eq. (7) is positive definite. Since the action is the sum of positive definite terms, its minimum value is obtained when each term is 0; that is, for *u*(*t*) = 0 and $S[q(t)]=S[q\u22c6(t)]$. The final result is that the action is a minimum for time intervals less than half of the harmonic oscillator period; for greater time intervals the action integral is a saddle point, as defined by Gray and Taylor.^{2}

## ACKNOWLEDGMENTS

The author would like to thank the anonymous referees, whose comments helped improve this paper considerably, and to Nivaldo Lemos, for a critical reading.