We have found that incorporating computer programming into introductory physics requires problems suited for numerical treatment while still maintaining ties with the analytical themes in a typical introductory-level university physics course. In this paper, we discuss a numerical adaptation of a system commonly encountered in the introductory physics curriculum: the dynamics of an object constrained to move along a curved path. A numerical analysis of this problem that includes a computer animation can provide many insights and pedagogical avenues not possible with the usual analytical treatment. We present two approaches for computing the instantaneous kinematic variables of an object constrained to move along a path described by a mathematical function. The first is a pedagogical approach, appropriate for introductory students in the calculus-based sequence. The second is a more generalized approach, suitable for simulations of more complex scenarios.

1.
N.
Chonacky
and
D.
Winch
, “
Integrating computation into the undergraduate curriculum: A vision and guidelines for future developments
,”
Am. J. Phys.
76
,
327
333
(
2008
).
2.
R. W.
Chabay
and
B. A.
Sherwood
, “
Modern mechanics
,”
Am. J. Phys.
72
,
439
445
(
2004
).
3.
R. W.
Chabay
and
B. A.
Sherwood
,
Matter and Interactions I: Modern Mechanics
(
J. Wiley & Sons
,
New Jersey
,
2007
).
4.
R. W.
Chabay
and
B. A.
Sherwood
, “
Computational physics in the introductory calculus-based course
,”
Am. J. Phys.
76
,
307
313
(
2008
).
5.
D.
Scherer
,
P.
Dubois
, and
B.
Sherwood
, “
VPython: 3D interactive scientific graphics for students
,”
Comput. Sci. Eng.
2
,
56
62
(
2000
).
6.
T. J.
Bensky
, “
Illustrating physics with ray-traced computer graphics
,”
Phys. Teach.
44
,
369
373
(
2006
).
7.
R. D.
Knight
,
Physics for Scientists and Engineers
, 2nd ed. (
Pearson
,
San Francisco
,
2004
).
8.
We emphasize our pedagogical needs are for introducing computer animation and programming into a introductory-level physics course. Other difficulties include objects that experience abrupt changes in net force (e.g., an object sliding off of a table or encountering friction), drag forces dependent on velocity, collision detection and scattering between two objects, modeling of ropes and pulleys, demonstrating convincing energy conservation with a simple Euler algorithm, illustrating rotational kinematics, and limits of motion.
9.
John
Taylor
,
Classical Mechanics
(
University Basic Books
,
Sausalito, CA
,
2000
).
10.
D. A.
Wells
,
Lagrangian Dynamics
(
McGraw-Hill
,
New York
,
1967
), p.
44
.
11.

The Lagrangian approach is as follows. We start with kinetic and potential energies of T=m(ẋ2+ẏ2)/2 and V = mgy, where y is the object's height. Applying the Euler-Lagrange equation to the Lagrangian L=TV, we obtain x¨(1+y2)+ẋ2yy+gy=0, where y=f(x) is the functional form of the wire curve. Here, primes (dots) indicate derivatives with respect to x (time). This result is essentially our central result given by Eq. (6), but this approach is not appropriate for introductory physics.

12.
See http://dx.doi.org/10.1119/1.4773561 for some videos, an Easy Java Simulation, and our curricular materials.
13.
A second-order Runge-Kutta algorithm results in an essentially constant energy, to within the precision of the line thickness on the graph.
14.
Wolfgang
Christian
and
Jan
Tobochnik
, “
Augmenting AJP articles with computer simulations
,”
Am. J. Phys.
78
,
885
(
2010
).
15.
Wolfgang
Christian
and
Francisco
Esquembre
, “
Modeling Physics with Easy Java Simulations
,”
Phys. Teach.
45
,
475
480
(
2007
). Our EJS version is available as supplementary material (see Ref. 12) or by email request to T. Bensky.
16.

As an example, imagine an object at the top of a hemisphere as in Problem #16 (p. 301) of Ref. 7. The question asks at what position the object will leave the hemisphere as it slides down. This is an excellent problem to test the correspondence between the analytical and numerical solutions to the problem. The numerical solution is particularly insightful, forcing the student to consider how to examine the normal force, with the need to watch for it to become “zero” (i.e., sufficiently small).

17.
Efforts to integrate computers into introductory physics are worthwhile but difficult. We found almost no lesson-by-lesson guidance for doing so at this level. Decades of introductory physics-textbook authorship continues to be inconsistent with computational work, despite the dominance of computers in science. Our curricular materials, which covers introductory mechanics, including approximately 75 computational-based physics problems, are available as supplementary material (see Ref. 12).
18.
J. D.
Lawrence
,
A Catalog of Special Plane Curves
(
Dover
,
San Francisco
,
1972
).
19.

For example, see Ref. 7, p. 273.

20.
A greatly embellished video version of a particle on a parabolic track can be viewed online or downloaded as supplementary material (see Ref. 12).

Supplementary Material

AAPT members receive access to the American Journal of Physics and The Physics Teacher as a member benefit. To learn more about this member benefit and becoming an AAPT member, visit the Joining AAPT page.