APS Excellence in Physics Education Award
November 2019

Education Prize Logo
Science SPORE Prize
November 2011

NSF Logo
The Open Source Physics Project is supported by NSF DUE-0442581.

Computer Program Detail Page

Item Picture
Least Action (Gravity/Free)
written by Todd Timberlake
The EJS Least Action (Gravity/Free) model illustrates the principle of least action for the one dimensional motion of a free particle or a particle subject to a constant gravitational force. The simulation displays height versus time, with the path broken into equally spaced time intervals. The user can set the initial and final heights, as well as the number of time intervals to be used. The user can then adjust the intermediate heights in order to minimize the action along the path, or else allow the computer to implement an algorithm for finding the path of least action. Both the action of the current path and the least action so far observed with the current parameters are displayed.

The simulation can also display average values for velocity, change in velocity, acceleration, kinetic energy, potential energy, the Lagrangian function, and total mechanical energy for each segment of the path. This helps to illustrate that the path of least action is also a path of constant acceleration (zero if there is no gravity) and constant total energy.

The algorithm minimizes the action by examining three consecutive points on the path. The outer two points are held fixed and basic calculus can be used to determine the value for the middle height that minimizes the action for this segment of the path. This procedure is repeated for each segment of three points on the path, moving left to right. If this entire process is repeated over and over the path will gradually approach the path of global least action. This approach, and the entire EJS Least Action (Gravity/Free) model, was inspired by the Principle of Least Action Interactive page by Edwin Taylor and Slavomir Tuleja.

Please note that this resource requires at least version 1.5 of Java (JRE).
1 supplemental document is available
1 source code document is available
Subjects Levels Resource Types
Classical Mechanics
- General
- Gravity
- Motion in One Dimension
= Gravitational Acceleration
- Work and Energy
= Conservation of Energy
- Upper Undergraduate
- Lower Undergraduate
- Instructional Material
= Interactive Simulation
Intended Users Formats Ratings
- Learners
- Educators
- General Publics
- application/java
  • Currently 0.0/5

Want to rate this material?
Login here!

Access Rights:
Free access
This material is released under a GNU General Public License Version 3 license.
Rights Holder:
Todd Timberlake
EJS, Easy Java Simulations, Lagrangian, OSP, Open Source Physics, free particle, gravity, least action, least action
Record Cloner:
Metadata instance created September 3, 2012 by Todd Timberlake
Record Updated:
June 10, 2014 by Andreu Glasmann
Last Update
when Cataloged:
September 3, 2012
ComPADRE is beta testing Citation Styles!

Record Link
AIP Format
T. Timberlake, Computer Program LEAST ACTION (GRAVITY/FREE), Version 1.0 (2012), WWW Document, (https://www.compadre.org/Repository/document/ServeFile.cfm?ID=12400&DocID=3102).
T. Timberlake, Computer Program LEAST ACTION (GRAVITY/FREE), Version 1.0 (2012), <https://www.compadre.org/Repository/document/ServeFile.cfm?ID=12400&DocID=3102>.
APA Format
Timberlake, T. (2012). Least Action (Gravity/Free) (Version 1.0) [Computer software]. Retrieved February 27, 2024, from https://www.compadre.org/Repository/document/ServeFile.cfm?ID=12400&DocID=3102
Chicago Format
Timberlake, Todd. "Least Action (Gravity/Free)." Version 1.0. https://www.compadre.org/Repository/document/ServeFile.cfm?ID=12400&DocID=3102 (accessed 27 February 2024).
MLA Format
Timberlake, Todd. Least Action (Gravity/Free). Vers. 1.0. Computer software. 2012. Java (JRE) 1.5. 27 Feb. 2024 <https://www.compadre.org/Repository/document/ServeFile.cfm?ID=12400&DocID=3102>.
BibTeX Export Format
@misc{ Author = "Todd Timberlake", Title = {Least Action (Gravity/Free)}, Month = {September}, Year = {2012} }
Refer Export Format

%A Todd Timberlake %T Least Action (Gravity/Free) %D September 3, 2012 %U https://www.compadre.org/Repository/document/ServeFile.cfm?ID=12400&DocID=3102 %O 1.0 %O application/java

EndNote Export Format

%0 Computer Program %A Timberlake, Todd %D September 3, 2012 %T Least Action (Gravity/Free) %7 1.0 %8 September 3, 2012 %U https://www.compadre.org/Repository/document/ServeFile.cfm?ID=12400&DocID=3102

Disclaimer: ComPADRE offers citation styles as a guide only. We cannot offer interpretations about citations as this is an automated procedure. Please refer to the style manuals in the Citation Source Information area for clarifications.

Citation Source Information

The AIP Style presented is based on information from the AIP Style Manual.

The APA Style presented is based on information from APA Style.org: Electronic References.

The Chicago Style presented is based on information from Examples of Chicago-Style Documentation.

The MLA Style presented is based on information from the MLA FAQ.

This resource is stored in a shared folder.

You must login to access shared folders.

Least Action (Gravity/Free):

Is Based On Easy Java Simulations Modeling and Authoring Tool

The Easy Java Simulations Modeling and Authoring Tool is needed to explore the computational model used in the Least Action (Gravity/Free).

relation by Wolfgang Christian

Know of another related resource? Login to relate this resource to it.
Save to my folders



Related Materials

Similar Materials

OSP Projects:
Open Source Physics - EJS Modeling
Physlet Physics
Physlet Quantum Physics
STP Book