Problem 1.13
Check your results in Problem 1.11(b) with the following “numerical experiment.” The position of the oscillator at time t is
You might as well take (that sets the scale for time) and
(that sets the scale for length). Make a plot of
at 10,000 random times, and compare it with
Hint: In Mathematica, first define
x[t_] := Cos[t]
then construct a table of positions:
snapshots = Table[x[RandomReal[j]], {j, 10000}]
and finally, make a histogram of the data:
Histogram[snapshots, 100, “PDF”, PlotRange -> {0,2}]
Meanwhile, make a plot of the density function, and, using Show, superimpose the two.
Solution:


Problem 1.13 Solution (Download)
Find more Griffith’s solutions here.
Do you prefer video lectures over reading a webpage? Follow us on YouTube to stay updated with the latest video content!
Have something to add? Leave a comment!