In physics, the "action" is the time-integral of the difference between the kinetic energy and the potential energy .
Suppose we have a particle traveling in the plane. Gravity is in the direction, and the quantity represents the gravitational potential energy (measured relative to ).
The particle's coordinates are given in the linked text file (pastebin). What is the action for this trajectory?
Details and Assumptions:
1)
Give your answer as a signed number in Joule-seconds
2)
Neglect whatever force / potential (other than gravity) is responsible for the particle's trajectory
This section requires Javascript.
You are seeing this because something didn't load right. We suggest you, (a) try
refreshing the page, (b) enabling javascript if it is disabled on your browser and,
finally, (c)
loading the
non-javascript version of this page
. We're sorry about the hassle.
Since we need to calculate a definite integral using a finite number of points, we should start by discretising: t 1 ∫ t 2 ( E − U ) d t ≈ i ∑ ( E i − U i ) Δ t = i ∑ E i Δ t − i ∑ U i Δ t
We can take Δ t = 0 . 0 0 1 s , since it was the time step used throughout the data file.
Now we need to calculate the kinetic energy, which is defined by E i = 2 1 m ∣ v ∣ 2 , where v is the velocity. Since we are dealing with a 2-dimensional problem, we can decompose this vector in its x - and y -components, so that: ∣ v ∣ 2 = v x 2 + v y 2 , where v x = d t d x and v y = d t d y
We can now approximate these derivatives using finite differences: d t d x ( t i ) ≈ Δ t x ( t i + Δ t ) − x ( t i )
Proceeding analogously for v y , the kinetic energy yields: E i ≈ 2 1 m [ ( Δ t x ( t i + Δ t ) − x ( t i ) ) 2 + ( Δ t y ( t i + Δ t ) − y ( t i ) ) 2 ]
And its time-integral is: i ∑ E i Δ t = i ∑ 2 1 m [ ( Δ t x ( t i + Δ t ) − x ( t i ) ) 2 + ( Δ t y ( t i + Δ t ) − y ( t i ) ) 2 ] Δ t = 2 Δ t m i ∑ [ ( x ( t i + Δ t ) − x ( t i ) ) 2 + ( y ( t i + Δ t ) − y ( t i ) ) 2 ]
The potential energy is simply: U i = m g y ( t i )
Hence, its time-integral is: i ∑ U i Δ t = m g Δ t i ∑ y ( t i )
We are now able to write and run a small Python script to perform the calculations for us:
So the answer to 3 significant figures is: S ≈ − 3 5 . 8 J s