- •Preface
- •Contents
- •1 Introduction
- •1.1 Physics
- •1.2 Mechanics
- •1.3 Integrating Numerical Methods
- •1.4 Problems and Exercises
- •1.5 How to Learn Physics
- •1.5.1 Advice for How to Succeed
- •1.6 How to Use This Book
- •2 Getting Started with Programming
- •2.1 A Python Calculator
- •2.2 Scripts and Functions
- •2.3 Plotting Data-Sets
- •2.4 Plotting a Function
- •2.5 Random Numbers
- •2.6 Conditions
- •2.7 Reading Real Data
- •2.7.1 Example: Plot of Function and Derivative
- •3 Units and Measurement
- •3.1 Standardized Units
- •3.2 Changing Units
- •3.4 Numerical Representation
- •4 Motion in One Dimension
- •4.1 Description of Motion
- •4.1.1 Example: Motion of a Falling Tennis Ball
- •4.2 Calculation of Motion
- •4.2.1 Example: Modeling the Motion of a Falling Tennis Ball
- •5 Forces in One Dimension
- •5.1 What Is a Force?
- •5.2 Identifying Forces
- •5.3.1 Example: Acceleration and Forces on a Lunar Lander
- •5.4 Force Models
- •5.5 Force Model: Gravitational Force
- •5.6 Force Model: Viscous Force
- •5.6.1 Example: Falling Raindrops
- •5.7 Force Model: Spring Force
- •5.7.1 Example: Motion of a Hanging Block
- •5.9.1 Example: Weight in an Elevator
- •6 Motion in Two and Three Dimensions
- •6.1 Vectors
- •6.2 Description of Motion
- •6.2.1 Example: Mars Express
- •6.3 Calculation of Motion
- •6.3.1 Example: Feather in the Wind
- •6.4 Frames of Reference
- •6.4.1 Example: Motion of a Boat on a Flowing River
- •7 Forces in Two and Three Dimensions
- •7.1 Identifying Forces
- •7.3.1 Example: Motion of a Ball with Gravity
- •7.4.1 Example: Path Through a Tornado
- •7.5.1 Example: Motion of a Bouncing Ball with Air Resistance
- •7.6.1 Example: Comet Trajectory
- •8 Constrained Motion
- •8.1 Linear Motion
- •8.2 Curved Motion
- •8.2.1 Example: Acceleration of a Matchbox Car
- •8.2.2 Example: Acceleration of a Rotating Rod
- •8.2.3 Example: Normal Acceleration in Circular Motion
- •9 Forces and Constrained Motion
- •9.1 Linear Constraints
- •9.1.1 Example: A Bead in the Wind
- •9.2.1 Example: Static Friction Forces
- •9.2.2 Example: Dynamic Friction of a Block Sliding up a Hill
- •9.2.3 Example: Oscillations During an Earthquake
- •9.3 Circular Motion
- •9.3.1 Example: A Car Driving Through a Curve
- •9.3.2 Example: Pendulum with Air Resistance
- •10 Work
- •10.1 Integration Methods
- •10.2 Work-Energy Theorem
- •10.3 Work Done by One-Dimensional Force Models
- •10.3.1 Example: Jumping from the Roof
- •10.3.2 Example: Stopping in a Cushion
- •10.4.1 Example: Work of Gravity
- •10.4.2 Example: Roller-Coaster Motion
- •10.4.3 Example: Work on a Block Sliding Down a Plane
- •10.5 Power
- •10.5.1 Example: Power Exerted When Climbing the Stairs
- •10.5.2 Example: Power of Small Bacterium
- •11 Energy
- •11.1 Motivating Examples
- •11.2 Potential Energy in One Dimension
- •11.2.1 Example: Falling Faster
- •11.2.2 Example: Roller-Coaster Motion
- •11.2.3 Example: Pendulum
- •11.2.4 Example: Spring Cannon
- •11.3 Energy Diagrams
- •11.3.1 Example: Energy Diagram for the Vertical Bow-Shot
- •11.3.2 Example: Atomic Motion Along a Surface
- •11.4 The Energy Principle
- •11.4.1 Example: Lift and Release
- •11.4.2 Example: Sliding Block
- •11.5 Potential Energy in Three Dimensions
- •11.5.1 Example: Constant Gravity in Three Dimensions
- •11.5.2 Example: Gravity in Three Dimensions
- •11.5.3 Example: Non-conservative Force Field
- •11.6 Energy Conservation as a Test of Numerical Solutions
- •12 Momentum, Impulse, and Collisions
- •12.2 Translational Momentum
- •12.3 Impulse and Change in Momentum
- •12.3.1 Example: Ball Colliding with Wall
- •12.3.2 Example: Hitting a Tennis Ball
- •12.4 Isolated Systems and Conservation of Momentum
- •12.5 Collisions
- •12.5.1 Example: Ballistic Pendulum
- •12.5.2 Example: Super-Ball
- •12.6 Modeling and Visualization of Collisions
- •12.7 Rocket Equation
- •12.7.1 Example: Adding Mass to a Railway Car
- •12.7.2 Example: Rocket with Diminishing Mass
- •13 Multiparticle Systems
- •13.1 Motion of a Multiparticle System
- •13.2 The Center of Mass
- •13.2.1 Example: Points on a Line
- •13.2.2 Example: Center of Mass of Object with Hole
- •13.2.3 Example: Center of Mass by Integration
- •13.2.4 Example: Center of Mass from Image Analysis
- •13.3.1 Example: Ballistic Motion with an Explosion
- •13.4 Motion in the Center of Mass System
- •13.5 Energy Partitioning
- •13.5.1 Example: Bouncing Dumbbell
- •13.6 Energy Principle for Multi-particle Systems
- •14 Rotational Motion
- •14.2 Angular Velocity
- •14.3 Angular Acceleration
- •14.3.1 Example: Oscillating Antenna
- •14.4 Comparing Linear and Rotational Motion
- •14.5 Solving for the Rotational Motion
- •14.5.1 Example: Revolutions of an Accelerating Disc
- •14.5.2 Example: Angular Velocities of Two Objects in Contact
- •14.6 Rotational Motion in Three Dimensions
- •14.6.1 Example: Velocity and Acceleration of a Conical Pendulum
- •15 Rotation of Rigid Bodies
- •15.1 Rigid Bodies
- •15.2 Kinetic Energy of a Rotating Rigid Body
- •15.3 Calculating the Moment of Inertia
- •15.3.1 Example: Moment of Inertia of Two-Particle System
- •15.3.2 Example: Moment of Inertia of a Plate
- •15.4 Conservation of Energy for Rigid Bodies
- •15.4.1 Example: Rotating Rod
- •15.5 Relating Rotational and Translational Motion
- •15.5.1 Example: Weight and Spinning Wheel
- •15.5.2 Example: Rolling Down a Hill
- •16 Dynamics of Rigid Bodies
- •16.2.1 Example: Torque and Vector Decomposition
- •16.2.2 Example: Pulling at a Wheel
- •16.2.3 Example: Blowing at a Pendulum
- •16.3 Rotational Motion Around a Moving Center of Mass
- •16.3.1 Example: Kicking a Ball
- •16.3.2 Example: Rolling down an Inclined Plane
- •16.3.3 Example: Bouncing Rod
- •16.4 Collisions and Conservation Laws
- •16.4.1 Example: Block on a Frictionless Table
- •16.4.2 Example: Changing Your Angular Velocity
- •16.4.3 Example: Conservation of Rotational Momentum
- •16.4.4 Example: Ballistic Pendulum
- •16.4.5 Example: Rotating Rod
- •16.5 General Rotational Motion
- •Index
10.2 Work-Energy Theorem |
275 |
body may still move somewhat while the box is kept approximately at a constant height.
However, a mechanical analysis of the work done when you move your body is useful, and does result in real effects that you can feel. It is, for example, possible to design a backpack that requires less effort to carry long distances based on our understanding of work (and energy conservation).
Most importantly, it is important to try to separate the very precise definition of mechanical work from the looser concept from everyday speech.
10.3 Work Done by One-Dimensional Force Models
We apply the work-energy theorem to various force models, such as a constant force, a spring force, and a given position-dependent force—all in one dimension.
Work of a Constant Force
The work done by a constant force, F = F0, as a car accelerates/decelerates from x0 to x1 is
W = |
t0 |
1 |
F0 v dt = |
x0 |
1 |
F0 d x = F0 (x1 − x0) = Fx x . |
(10.23) |
|
t |
|
|
x |
|
|
|
If the force F0 is the only force (or the net force) on the car, the work W corresponds to the change in kinetic energy.
• Notice that if the force and the displacement, x , are in the same direction, the work is positive. If this is the net force, it means that the kinetic energy increases, and that the speed increases.
•If the force and the displacement are in opposite direction, for example if the car is moving in the positive x -direction while it is breaking with a constant force in the negative x -direction, the work is negative. If this is the net force on the car, the kinetic energy decreases and the speed decreases.
Work of a Spring Force
One of the most commonly used models for a contact force is the spring model. What is the work done by a spring force? Figure 10.2 illustrates the motion of a block on a frictionless horizontal surface. The block is attached to a spring with spring constant k. The other end of the spring is attached at the origin, x = 0, and the equilibrium length of the spring is L0. The force, Fx , from the spring on the block is then:
276
Fig. 10.2 A block attached to a spring on a frictionless surface. a, b The friction force F is illustrated at two different positions x0 and x1 of the block. c The origin is moved to the equilibrium position for the spring
|
|
10 Work |
(A) |
y |
|
|
|
|
|
|
F(x) |
0 |
L0 |
x |
x0 |
||
(b) |
y |
|
|
|
|
|
|
F(x) |
0 |
L0 |
x |
x1 |
||
(c) |
y |
|
|
|
|
|
|
F(x) |
|
0 |
x |
|
x1 |
|
Fx |
= −k (x − L0) . |
(10.24) |
The position, x , where the spring force is zero is called the equilibrium position. Here, the equilibrium position is x = L0.
The work done by the spring force on the block as the block moves from x (t0) = x0
to x (t1) = x1 is: |
|
|
x0 |
|
|
x0 |
|
|
||
W0,1 |
= |
t0 |
1 |
Fx vx dt = |
1 |
F (x )d x = |
1 |
−k (x − L0) d x = . (10.25) |
||
|
|
t |
|
|
x |
|
|
x |
|
|
We change integration variable to u = x − L0, du = d x , getting:
W = |
x0−L0 |
−ku du = |
2 k(x0 − L0)2 − |
2 k(x1 − L0)2 . |
(10.26) |
||
|
x1−L0 |
|
1 |
|
1 |
|
|
This result becomes simpler if we move the origin to the equilibrium position of the spring, as shown in Fig. 10.2c, so that F (x ) = −k x . The work from x0 to x1 is then
W = |
|
1 |
k x 2 |
− |
|
1 |
k x 2 . |
(10.27) |
|
|
|
||||||
|
2 |
1 |
|
2 |
0 |
|
||
|
|
|
|
|
10.3 Work Done by One-Dimensional Force Models |
277 |
Work of a Position-Dependent Force
The work of a position-dependent force F (x ) is found through the integral
x |
|
W = F (x ) d x . |
(10.28) |
x0 |
|
This force F (x ) may be a simple function, such as F (x ) = −k x or F (x ) = F0 sin 2π x /b. In that case you can simply solve the integral analytically. But what if you cannot solve the integral analytically or the function F (x ) is not know exactly, but instead is measured in a discrete number of points, xi . How can you then find the work?
Symbolic Integration of a Function F (x )
Even if you cannot (or you are too lazy to) solve the integral analytically, you can always check if Python can the indefinite integral symbolically. We demonstrate this for a force F (x ) = 1/(a + x 2) for x > 0. We integrate this function using the symbolic package in Python as follows:
>>from sympy import *
>>a = Symbol(’a’, real=True, positive=True)
>>x = Symbol(’x’)
>>integrate(1/(a+x**2),x)
atan(x/sqrt(a))/sqrt(a)
Numerical Integration of a Function F (x )
However, if we cannot find an analytical solution to the integral of F (x ), we can always calculate the definite integral numerically. The integral from x0 to x1 of F (x ) in Fig. 10.3 corresponds to the area under the curve from x0 to x1. We can calculate the area by first dividing the interval into smaller pieces, finding an approximate value for the area of each such piece, and summing the areas to find total area corresponding to the integral.
We divide the interval from x0 to x1 into n intervals of length x = (x1 − x0)/n so that interval i spans from xi to xi +1 = xi + . (See Fig. 10.3). The area under the curve F (x ) over the interval from xi to xi +1 is the integral:
xi +1
Wi,i +1 = F (x ) d x . (10.29)
xi
When x is small, the area under the curve is approximately equal to the area of a rectangle of width x and a height given by the value of F (x ) at xi , as illustrated in Fig. 10.3b. The area of this rectangle is Wi,i +1 = Ai x F (xi ), and the total area is the sum of all the areas Ai , i = 1, . . . , n as illustrated in Fig. 10.3b:
n |
n |
W0,1 = Wi,i +1 = |
x F (xi ) . |
(10.30) |
i =1 |
i =1 |
|
278
(A)
FX [N]
|
|
|
|
|
|
|
|
10 |
Work |
2 |
|
|
|
|
(b) |
2 |
|
|
|
1.5 |
|
|
|
|
|
1.5 |
|
|
|
|
|
|
|
|
[N] |
|
|
FX ( XI ) |
|
1 |
|
|
|
|
1 |
|
|
|
|
|
|
|
|
X |
|
|
|
||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
F |
|
|
|
|
0.5 |
|
|
|
|
|
0.5 |
|
|
|
0 |
|
|
|
|
|
0 |
|
|
|
0 X0 |
2 |
4 |
X1 |
6 |
|
0 |
2 |
XI XI + 1 4 |
6 |
|
|
X [ M] |
|
|
|
|
|
X [ M] |
|
(c)
FX [N]
2 |
|
|
(D) |
2 |
|
|
|
1.5 |
|
|
|
1.5 |
|
|
|
1 |
|
|
[N] |
1 |
|
|
|
|
|
X |
|
|
|
||
|
|
|
|
|
|
|
|
|
|
|
F |
|
|
|
|
0.5 |
|
|
|
0.5 |
|
|
|
0 |
|
|
|
0 |
|
|
|
0 |
2 |
4 |
6 |
0 |
2 |
4 |
6 |
|
|
X [ M] |
|
|
|
X [ M] |
|
Fig. 10.3 Plot of the net force Fx (x ) on an object moving from x0 to x1. a Plot of Fx (x ). b Illustration of the numerical integral of Fx (x ) found as a sum of small rectangles of size x . c The numerical integral with half the box width, x /2. d The numerical integral as a sum of trapezoids
This approach is identical to Euler’s method from Chap. 4. As we increase the number of intervals n, the numerical approximation becomes better and better. Figure 10.3c shows how the area of the rectangles becomes a better approximation to the area under the curve when n is doubled. We expect that our approximation approaches the exact value for the integral as n increases.1 While Euler’s method is simple to explain, we can obtain a better approximation by using trapeziods with corners F (xi ) and F (xi +1). The area of one such trapezoid is the baseline x multiplied by the average height hi :
Wi,i +1 = Ai x hi = |
x |
1 |
F (xi ) + F (xi +1) |
, |
(10.31) |
2 |
as illustrated by the green trapezoid in Fig. 10.3d. The total integral is then:
n |
1 |
|
|
|
|
|
|
|
|
||
W0,1 = |
x |
|
|
Fx (xi ) + Fx (xi +1) . |
(10.32) |
|
|
||||
i =1 |
2 |
|
|
|
|
|
|
|
|
|
1In the limit when n becomes infinitely large, this is indeed the definition of the integral.
10.3 Work Done by One-Dimensional Force Models |
279 |
This method is called the trapezoidal rule for numerical integration. The numerical implementation of this method is just as simple as Euler’s method.
The trapezoidal rule is a standard numerical integration method that is built into Python through the function trapz. For example, we can integrate the work done by the function F (x ) shown in Fig. 10.3a:
Fx (x ) = 3x e−0.7 x , |
(10.33) |
from x0 = 0.5 m to x1 = 5 m in n = 1000 steps by: first generating a set of n xi values; then generating the corresponding set of F (xi ) values; and finally calculating the integral using trapz:
xval = linspace(0.5,5.0,1000) y = 3.0*xval*exp(-0.7*xval) W = trapz(y,x=xval)
(Notice that the integral of this particular function F (x ) is analytically solvable. We have used it here to illustrate the principle of how to solve an integral numerically).
Numerical Integration of a Measured F (xi )
In some case, the force F (x ) may be the result of a more complicated calculation or it may be an experimentally measured value. For example, you may calculate the net force on a basketball bouncing on the floor using an advanced model for the deformation of the surface of the ball; you may calculate the forces between two atoms as a function of their position based on an underlying microscopic picture such as quantum mechanics; or you may measure the force as a function of position as you pull on the string of your bow. In all these cases you know the force F (xi ) for some values xi , but you do not know the general function F (x ).
How can we estimate the work integral based on a few points? One approach would be to try to find a smooth function F (x ) that goes through all the points, and then use this function to calculate the work numerically. This is a powerful method, but beyond the scope of this text. Another method is to apply the trapezoidal rule on the discrete data as an approximation to the integral, as illustrated in Fig. 10.4. Fortunately, the trapezoidal rule is so robust that we may apply it also in cases when
the data is not uniformly spaced—that is, when the intervals |
xi = xi +1 − xi vary. |
||||
In this case, we approximate the integral from x0 to x1 by the sum: |
|
||||
W0,1 = x0 |
n |
xi 2 |
F (xi ) + F (xi +1) . |
(10.34) |
|
F (x ) d x i =1 |
|||||
x1 |
|
1 |
|
|
|
This method works for both calculated and measured values of F (xi ), and has exactly the same implementation as above. For example, given a file forcedata.d2 consisting of lines with values of xi and F (xi ), we can read the data and calculate the work integral by:
2http://folk.uio.no/malthe/mechbook/forcedata.d.