Homework Problem Set 5 Solutions ( )2
Homework Problem Set 5 Solutions ( )2
Homework Problem Set 5 Solutions ( )2
You also want an ePaper? Increase the reach of your titles
YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.
4 a.) continued<br />
11<br />
Averaging the second pair of velocities yields<br />
€<br />
( ) = 1 2 [ v x( t 3/ 2) + v x ( t 1/ 2 )]<br />
= 1 [ 8189 m/s + 8400 m/s ]<br />
2<br />
( ) = 8295m/s.<br />
v x t 1<br />
v x t 1<br />
Averaging the final pair of velocities yields<br />
€<br />
( ) = 1 2 [ v x( t 5/ 2) + v x ( t 3/ 2 )]<br />
= 1 [ 7773m/s + 8189 m/s ]<br />
2<br />
( ) = 7981m/s.<br />
v x t 2<br />
v x t 2<br />
These results are summarized in the table below.<br />
n<br />
t n<br />
(s)<br />
x( t n )<br />
(m)<br />
v x ( t n )<br />
(m/s)<br />
0 0 0 8400<br />
1 1×10 −15 8.40× 10 −12 8295<br />
2 2× 10 −15 1.66 ×10 −11 7981<br />
b.) Compare your results from part (a) to the exact solution obtained in problem 3.<br />
The equations for the exact analytic solutions for the position and velocity are given in problem 3. The<br />
position is<br />
€<br />
x( t) = ( 0.531 Å)sin( 1.58 ×10 14 s −1 t) ,<br />
with time in seconds and position in angstroms. The velocity is<br />
v( t) = ( 8400 m/s) cos( 1.58 ×10 14 s −1 t) ,<br />
€<br />
€<br />
with the velocity in m/s and time in seconds. The results for the analytic solution, using the same time<br />
points as in part (b), yields € the results presented in the table below.<br />
n<br />
t n<br />
(s)<br />
x( t n )<br />
(m)<br />
v x ( t n )<br />
(m/s)<br />
0 0 0 8400<br />
1 1×10 −15 8.363×10 −12 8295<br />
2 2× 10 −15 1.652 ×10 −11 7982<br />
We can see from these results that the leapfrog algorithm predicts the velocities with little error compared to<br />
the analytic solution. The percent errors for the n = 0, 1, and 2 time steps are 0%, 0%, and 0.01%,<br />
respectively. The leapfrog algorithm also does a reasonable job in predicting the position of the particle<br />
compared to the analytic solution. The errors are somewhat larger than those for the velocity, with errors of<br />
0%, 0.4%, and 0.6%, respectively.