x3 PDF
x3 PDF
The focus of this chapter is on setting up and solving equations of motion – we will not discuss in detail
the behavior of the various examples that are solved.
A `Particle’ is a point mass at some position in space. It can move about, but has no characteristic
orientation or rotational inertia. It is characterized by its mass.
Examples of applications where you might choose to idealize part of a system as a particle include:
1. Calculating the orbit of a satellite – for this application, you don’t need to know the orientation of
the satellite, and you know that the satellite is very small compared with the dimensions of its
orbit.
2. A molecular dynamic simulation, where you wish to calculate the motion of individual atoms in a
material. Most of the mass of an atom is usually concentrated in a very small region (the nucleus)
in comparison to inter-atomic spacing. It has negligible rotational inertia. This approach is also
sometimes used to model entire molecules, but rotational inertia can be important in this case.
Obviously, if you choose to idealize an object as a particle, you will only be able to calculate its position.
Its orientation or rotation cannot be computed.
Velocity vector: By definition, the velocity is the derivative of the position vector with respect to time
(following the usual machinery of calculus)
r (t t ) r(t )
v lim
t 0 t
Velocity is a vector, and can therefore be expressed in terms of its Cartesian components
v vx i v y j vz k
You can visualize a velocity vector as follows
The direction of the vector is parallel to the direction of motion
The magnitude of the vector v v vx2 v 2y vz2 is the speed of the particle (in meters/sec, for
example).
When both position and velocity vectors are expressed in terms Cartesian components, it is simple to
calculate the velocity from the position vector. For this case, the basis vectors i, j, k are constant
(independent of time) and so
d dx dy dz
vx i v y j v z k x(t )i y(t ) j z (t )k i j k
dt dt dt dt
This is really three equations – one for each velocity component, i.e.
dx dy dz
vx vy vz
dt dt dt
Acceleration vector: The acceleration is the derivative of the velocity vector with respect to time; or,
equivalently, the second derivative of the position vector with respect to time.
v(t t ) v(t )
a lim
t 0 t
The acceleration is a vector, with Cartesian representation a ax i a y j az k .
Like velocity, acceleration has magnitude and direction. Sometimes it may be possible to visualize an
acceleration vector – for example, if you know your particle is moving in a straight line, the acceleration
vector must be parallel to the direction of motion; or if the particle moves around a circle at constant
speed, its acceleration is towards the center of the circle. But sometimes you can’t trust your intuition
regarding the magnitude and direction of acceleration, and it can be best to simply work through the math.
The relations between Cartesian components of position, velocity and acceleration are
dvx d 2 x dv y d2y dvz d 2 z
ax ay az
dt dt 2 dt dt 2 dt dt 2
It is important for you to be comfortable with calculating velocity and acceleration from the position
vector of a particle. You will need to do this in nearly every problem we solve. In this section we
provide a few examples. Each example gives a set of formulas that will be useful in practical
applications.
Example 1: Constant acceleration along a straight line. There are many examples where an object
moves along a straight line, with constant acceleration. Examples include free fall near the surface of a
planet (without air resistance), the initial stages of the acceleration of a car, or and aircraft during takeoff
roll, or a spacecraft during blastoff.
Suppose that
The particle moves parallel to a unit vector i
The particle has constant acceleration, with magnitude a
At time t t0 the particle has speed v0
At time t t0 the particle has position vector r x0i
The position, velocity acceleration vectors are then
1
r x0 v0 (t t0 ) a(t t0 ) 2 i
2
v v0 at i
a ai
Verify for yourself that the position, velocity and acceleration (i) have the correct values at t=0 and (ii)
are related by the correct expressions (i.e. differentiate the position and show that you get the correct
expression for the velocity, and differentiate the velocity to show that you get the correct expression for
the acceleration).
HEALTH WARNING: These results can only be used if the acceleration is constant. In many
problems acceleration is a function of time, or position – in this case these formulas cannot be used.
People who have taken high school physics classes have used these formulas to solve so many problems
that they automatically apply them to everything – this works for high school problems but not always in
real life!
Note that:
The velocity and acceleration are also harmonic, and
have the same period and frequency as the
displacement.
If you know the frequency, and amplitude and of
either the displacement, velocity, or acceleration, you can immediately calculate the amplitudes
of the other two. For example, if X , V , A denote the amplitudes of the displacement,
velocity and acceleration, we have that
2
2 2 2
V X A X V
T T T
Angular acceleration
d d 2
Rcos
dt dt 2
d
Speed V R R
dt
dV d 2 d
Rate of change of speed R R R
dt 2 dt
dt
These are the famous circular motion formulas that you might have seen in physics class.
If you find that your calculus is a bit rusty you can use MAPLE to do the tedious work for you. You
already know how to differentiate and integrate in MAPLE – the only thing you may not know is how to
tell MAPLE that a variable is a function of time. Here’s how this works. To differentiate the vector
r x(t )i y(t ) j z(t )k
you would type
It is essential to type in the (t) after x,y,and z – if you don’t do this, Mupad assumes that these variables
are constants, and takes their derivative to be zero. You must enter (t) after _any_ variable that changes
with time.
Here’s how you would do the circular motion calculation if you only know that the angle is some
arbitrary function of time, but don’t know what the function is
As you’ve already seen in EN3, Matlab can make very long and complicated calculations fairly painless.
It is a godsend to engineers, who generally find that every real-world problem they need to solve is long
and complicated. But of course it’s important to know what the program is doing – so keep taking those
math classes…
In some cases it is helpful to use special basis vectors to write down velocity and acceleration vectors,
instead of a fixed {i,j,k} basis. If you see that this approach can be used to quickly solve a problem – go
ahead and use it. If not, just use Cartesian coordinates – this will always work, and with MAPLE is not
very hard. The only benefit of using the special coordinate systems is to save a couple of lines of rather
tedious trigonometric algebra – which can be extremely helpful when solving an exam question, but is
generally insignificant when solving a real problem.
In some problems, you might know the particle speed, and the x,y coordinates of the
path (a car traveling along a road is a good example). In this case it is often easiest to t
use normal-tangential coordinates to describe forces and motion. For this purpose we
Introduce two unit vectors n and t, with t pointing tangent to the path and n R
pointing normal to the path, towards the center of curvature
Introduce the radius of curvature of the path R. n
If you happen to know the parametric equation of the path (i.e. the x,y coordinates are
t
known in terms of some variable ), then
dx dy dy dx
i j i j
1 dr d d d d
r x ( )i y ( ) j t n
dr d 2 2 2 2
dx dy dx dy
d
d d d d
The sign of n should be selected so that
d2x d2 y
i j n 0
d2 d 2
The radius of curvature can be computed from
dx d 2 y dy d 2 x
1 d d2 d d2
R 2 3/2
dy
2
dx
d d
The radius of curvature is always positive.
The direction of the velocity vector of a particle is tangent to its path. The magnitude of the velocity
vector is equal to the speed.
Our goal, then, is to calculate a formula for the magnitude of the acceleration in terms of V, A and L. The
result can be used to deduce a formula for the speed limit.
Calcluation:
We can solve this problem quickly using normal-tangential coordinates. Since the speed is constant, the
acceleration vector is
V2
a n
R
The position vector is r xi A sin(2 x / L) j , so we can calculate the radius of curvature from the
formula
dx d 2 y dy d 2 x
1 d d2 d d2
R 2 3/2
dy
2
dx
d d
Note that x acts as the parameter for this problem, and y A sin(2 x / L) , so
d2 y
2
1 dx A(2 / L) 2 sin(2 x / L)
R 2 3/2 1 (2 A / L) cos(2 x / L)3/2
dy
1
dx
and the acceleration is
A(2 V / L)2 sin(2 x / L)
a n
1 (2 A / L) cos(2 x / L)
3/2
We see from this that the car has the biggest acceleration when x L / 2 . The maximum acceleration
follows as
amax A(2 V / L)2
The formula for the speed limit is therefore V ( L / 2 ) 0.2 g / A
Here are the details with Mupad taking care of the tedious algebra.
2
dL 2 dL dL 1
a L 2 er 2 e a L2 4 4 g 2 g 2 / 2 L2 2
dt dt dt 4
Other examples using polar coordinates can be found in sections below.
If you are designing a control system, you will need some way to detect the
motion of the system you are trying to control. A vast array of different
sensors is available for you to choose from: see for example the list at
http://www.sensorland.com/HowPage001.html . A very short list of
common sensors is given below
1. GPS – determines position on the earth’s surface by measuring the
time for electromagnetic waves to travel from satellites in known
positions in space to the sensor. Can be accurate down to cm
distances, but the sensor needs to be left in position for a long time for
this kind of accuracy. A few m is more common.
2. Optical or radio frequency position sensing – measure position by (a) monitoring deflection of laser
beams off a target; or measuring the time for signals to travel from a set
of radio emitters with known positions to the sensor. Precision can
vary from cm accuracy down to light wavelengths.
3. Capacitative displacement sensing – determine position by measuring
the capacitance between two parallel plates. The device needs to be
physically connected to the object you are tracking and a reference
point. Can only measure distances of mm or less, but precision can be
down to micron accuracy.
4. Electromagnetic displacement sensing – measures position by detecting
electromagnetic fields between conducting coils, or coil/magnet
combinations within the sensor. Needs to be physically connected to
the object you are tracking and a reference point. Measures displacements of order cm down to
microns.
5. Radar velocity sensing – measures velocity by detecting the change in frequency of electromagnetic
waves reflected off the traveling object.
6. Inertial accelerometers: measure accelerations by detecting the deflection of a spring acting on a
mass.
Accelerometers are also often used to construct an ‘inertial platform,’ which uses gyroscopes to maintain
a fixed orientation in space, and has three accelerometers that can detect motion in three mutually
perpendicular directions. These accelerations can then be integrated to determine the position. They are
used in aircraft, marine applications, and space vehicles where GPS cannot be used.
F ma
Occasionally, we use a particle idealization to model systems which, strictly speaking, are not particles.
These are:
1. A large mass, which moves without rotation (e.g. a car moving along a straight line)
2. A single particle which is attached to a rigid frame with negligible mass (e.g. a person on a
bicycle)
In these cases it may be necessary to consider the moments acting on the mass (or frame) in order to
calculate unknown reaction forces.
1. For a large mass which moves without rotation, the resultant moment of external forces about the
center of mass must vanish.
2. For a particle attached to a massless frame, the resultant moment of external forces acting on the
frame about the particle must vanish.
MC 0
It is very important to take moments about the correct point in dynamics problems! Forgetting this is
the most common reason to screw up a dynamics problem…
If you need to solve a problem where more than one particle is attached to a massless frame, you have to
draw a separate free body diagram for each particle, and for the frame. The particles must obey
Newton’s laws F ma . The forces acting on the frame must obey F 0 and MC 0 , (because the
frame has no mass).
Newton’s laws are very familiar, and it is easy to write them down without much thought. They do have
a flaw, however.
When we use Newton’s laws, we assume that we can identify a convenient origin somewhere that we
regard as `fixed’. In addition, to write down an acceleration vector, we need to be able to choose a set of
fixed directions in space.
For engineering calculations, this usually poses no difficulty. If we are solving problems involving
terrestrial motion over short distances compared with the earth’s radius, we simply take a point on the
earth’s surface as fixed, and take three directions relative to the earth’s surface to be fixed. If we are
solving problems involving motion in space near the earth, or modeling weather, we take the center of the
earth as a fixed point, (or for more complex calculations the center of the sun); and choose axes to have a
fixed direction relative to nearby stars.
But in reality, an unambiguous inertial frame does not exist. We can only describe the relative motion of
the mass in the universe, not its absolute motion. The general theory of relativity addresses this problem
– and in doing so explains many small but noticeable discrepancies between the predictions of Newton’s
laws and experiment.
It would be fun to cover the general theory of relativity in this course – but regrettably the mathematics
needed to solve any realistic problem is horrendous. As engineers, we always have to solve realistic
problems, and we usually can’t afford to spend a long time doing complicated calculations, so we use the
simplest theory that will allow us to make the correct design decisions. Newton’s laws are fine for us…
3.2 Calculating forces required to cause prescribed motion of a particle
Newton’s laws of motion can be used to calculate the forces required to make a particle move in a
particular way.
Data/ Assumptions:
1. The flight deck of a Nimitz class aircraft carrier is about 300m long (http://www.naval-
technology.com/projects/nimitz/) but only a fraction of this is used for takeoff (the angled runway
is used for landing). We will take the length of the runway to be d=200m
2. We will assume that the acceleration during takeoff roll is constant.
3. We will assume that the aircraft carrier is not moving (this is wrong – actually the aircraft carrier
always moves at high speed during takeoff. We neglect motion to make the calculation simpler)
4. The FA18 Super Hornet is a typical aircraft used on a carrier – it has max catapult weight of
m=15000kg http://www.boeing.com/defense-space/military/fa18ef/docs/EF_overview.pdf
5. The manufacturers are somewhat reticent about performance specifications for the Hornet but
vt 150 knots (77 m/s) is a reasonable guess for a minimum controllable airspeed for this
aircraft.
Calculations:
1. Idealization: We will idealize the aircraft as a particle. We can do this because the aircraft is not
rotating during takeoff.
2. FBD: The figure shows a free body diagram. FT represents the (unknown) force exerted on the
aircraft due to its engines.
3. Kinematics: We must calculate the acceleration required to reach takeoff speed. We are given (i)
the distance to takeoff d, (ii) the takeoff speed vt and (iii) the aircraft is at rest at the start of the
takeoff roll. We can therefore write down the position vector r and velocity v of the aircraft at
takeoff, and use the straight line motion formulas for r and v to calculate the time t to reach
takeoff speed and the acceleration a. Taking the origin at the initial position of the aircraft, we
have that, at the instant of takeoff
1
r di at 2i v vt i ati
2
This gives two scalar equations which can be solved for a and t
1 v2 2d
d at 2 vt at a t t
2 2d vt
5. Solution: The i component of the equation of motion gives an equation for the unknown force in
terms of known quantities
v2
FT m t
2d
Substituting numbers gives the magnitude of the force as
F=222 kN. This is very close, but slightly greater than, the
200kN (44000lb) thrust quoted on the spec sheet for the j FT
Hornet. Using a catapult to accelerate the aircraft, speeding up i
the aircraft carrier, and increasing thrust using an afterburner NA mg NB
buys a margin of safety.
We wish to determine conditions for the tablecloth to slip out from under the glass. We can do this by
calculating the reaction forces acting between the glass and the tablecloth, and see whether or not slip will
occur. It is best to calculate the forces required to make the glass move with the tablecloth (i.e. to
prevent slip), and see if these forces are big enough to cause slip.
1. Idealization: We will assume that the glass behaves like a particle (again, we can do this because
the glass does not rotate)
2. FBD. The figure shows a free body diagram for the glass. The forces
include (i) the weight; and (ii) the normal and tangential components
of reaction at the contact between the tablecloth and the glass. The j
normal and tangential forces must act somewhere inside the contact mg
area, but their position is unknown. For a more detailed discussion of i
contact forces see Sects 2.4 and 2.5. T
N
3. Kinematics We are assuming that the glass has the same acceleration
as the tablecloth. The table cloth is moving in the i direction, and has magnitude a. The
acceleration vector is therefore a ai .
4. EOM. Newton’s laws of motion yield
F ma Ti ( N mg ) j mai
5. Solution: The i and j components of the vector equation must each be satisfied (just as when you
solve a statics problem), so that
T ma N mg 0 N mg
Finally, we must use the friction law to decide whether or not the tablecloth will slip from under
the glass. Recall that, for no slip, the friction force must satisfy
T N
where is the friction coefficient. Substituting for T and N from (5) shows that for no slip
a g
To do the trick, therefore, the acceleration must exceed g . For a friction coefficient of order
0.1, this gives an acceleration of order 1m / s 2 . There is a special trick to pulling the tablecloth
with a large acceleration – but that’s a secret.
If the bike tips over, the rear wheel leaves the ground. If this happens,
the reaction force acting on the wheel must be zero – so we can detect
the point where the bike is just on the verge of tipping over by calculating the reaction forces, and finding
the conditions where the reaction force on the rear wheel is zero.
1. Idealization:
a. We will idealize the rider as a particle
(apologies to bike racers – but that’s how
we think of you…). The particle is located
j
at the center of mass of the rider. The h
i
figure shows the most important design
parameters- these are the height of the
A d B
L
rider’s COM, the wheelbase L and the distance of the COM from the rear wheel.
b. We assume that the bike is a massless frame. The wheels are also assumed to have no mass.
This means that the forces acting on the wheels must satisfy F 0 and M 0 - and can be
analyzed using methods of statics. If you’ve forgotten how to think about statics of wheels,
you should re-read the notes on this topic – in particular, make sure you understand the nature
of the forces acting on a freely rotating wheel (Section 2.4.6 of the reference notes).
c. We assume that the rider brakes so hard that the front wheel is prevented from rotating. It
must therefore skid over the ground. Friction will resist this sliding. We denote the friction
coefficient at the contact point B by .
d. The rear wheel is assumed to rotate freely.
e. We neglect air resistance.
3. Kinematics The bike is moving in the i direction. As a vector, its acceleration is therefore a ai ,
where a is unknown.
4. EOM: Because this problem includes a massless frame, we must use two equations of motion
( F ma and MC 0 ). It is essential to take moments about the particle (i.e. the rider’s COM).
It’s very simple to do the moment calculation by hand, but for those of you who find such
calculations unbearable here’s a Mupad script to do it. The script simply writes out the position
vectors of points A and B relative to the center of mass as 3D vectors, writes down the reactions at A
and B as 3D vectors, and calculates the resultant moment (we don’t bother including the weight,
because it acts at the origin and so exerts zero moment)
The two nonzero components of F ma and the one nonzero component of MC 0 give us three
scalar equations
TB ma
(N A NB W ) 0
N B ( L d ) N A d TB h 0
We have four unknowns – the reaction components N A , N B , TB and the acceleration a so we need
another equation. The missing equation is the friction law
TB N B
5. Solution: Here’s the solution with Mupad. It’s easy to get the same answer by hand as well.
We are interested in finding what makes the reaction force at A go to zero (that’s when the bike is about
to tip). So
h (L d )
NA W 0 (L d ) / h
h L
1. Idealization – The masses will be idealized as particles; the cable is inextensible and the mass of
the pulleys is neglected. This means the internal forces in the cable, and the forces acting
between cables/pulleys must satisfy F 0 and M 0 , and we can T
treat them as though they were in static equilibrium. T j
i
2. FBD – we have to draw a separate FBD for each particle. Since the
pulleys and cable are massless, the tension T in the cable is constant. mA mB
3. Kinematics We know that both masses must move in the j direction.
We also know that the masses always move at the same speed but in mAg mBg
opposite directions. Therefore, their accelerations must be equal and
opposite. We can express this mathematically as
a A j aB j
4. EOM: We must write down two equations of motion, as there are two masses
(T mA g ) j mAa A j
(T mB g ) j mB aB j
We now have three equations for three unknowns (the unknowns are a A , aB and T).
5. Solution: As paid up members of ALE (the Academy of Lazy Engineers) we use Mupad to solve
the equations
1. Idealization – We will idealize the block as a particle. This is dangerous, because the block is
clearly rotating. We hope that because it rotates at constant rate, the rotation will not have a
significant effect – but we can only check this once we know how to
deal with rotational motion.
2. FBD: The figure shows a free body diagram for the block. The block is j T
subjected to a vertical gravitational force, and reaction forces at the
i
contact with the bar. Since we have assumed that the contact is not N
slipping, we can choose the direction of the tangential component of the mg
reaction force arbitrarily. The resultant force on the block is
F T cos N sin i ( N cos T sin mg ) j
3. Kinematics We can use the circular motion formula to write down the acceleration of tbe block
(see section 3.1.3)
a r 2 (cos i sin j)
4. EOM: The equation of motion is
T cos N sin i ( N cos mg ) j mr 2 (cos i sin j)
5. Solution: The i and j components of the equation of motion can be solved for N and T – Mupad
makes this painless
To find the point where the block just starts to slip, we use the friction law. Recall that, at the
point of slip
T N
For the block to slip with 0
r 2 g
so the critical angular velocity is g / r . Since the tangential traction T is negative, and the
friction force must oppose sliding, the block must slide outwards, i.e. r is increasing during slip.
Alternative method of solution using normal-tangential
coordinates t
n
We will solve this problem again, but this time we’ll use r
the short-cuts described in Section 3.1.4 to write down the j
acceleration vector, and we’ll write down the vectors in
Newton’s laws of motion in terms of the unit vectors n and i
t normal and tangent to the object’s path.
(i) Acceleration vector If the block does not slip, it moves
with speed V r around a circular arc with radius r. Its acceleration vector has magnitude V 2 / r and
direction parallel to the unit vector n. t
(ii) The force vector can be resolved into components parallel to n and t. Simple T
trig on the free body diagram shows that N
n
F N mg cos t mg sin T n mg
(iii) Newton’s laws then give
F ma N mg cos t mg sin T n m 2rn
The components of this vector equation parallel to t and n yield two equations, with solution
N mg cos T mg sin m 2r
This is the same solution as before. The short-cut makes the calculation slightly more straightforward.
This is the main purpose of using normal-tangential components.
The figure shows the mechanism (which probably only costs a Stationary
few cents to manufacture) that achieves this remarkable feat of Hub
engineering. It’s called an `inertial latch’ – the same principle is Rotating
used in the inertia reels on the seatbelts in your car. Drum Window
shade
The picture shows an enlarged end view of the window shade.
The hub, shown in brown, is fixed to the bracket supporting the
shade and cannot rotate. The drum, shown in peach, rotates as
the shade is pulled up or down. The drum is attached to a
torsional spring, which tends to cause the drum to rotate
counterclockwise, so winding up the shade. The rotation is
prevented by the small dogs, shown in red, which engage with
the teeth on the hub. You can pull the shade downwards freely, Stationary
since the dogs allow the drum to rotate counterclockwise. Hub
To raise the shade, you need to give the end of the shade a jerk
downwards, and then release it. When the drum rotates
sufficiently quickly (we will calculate how quickly shortly) the
dogs open up, as shown on the right. They remain open until the drum slows down, at which point the
topmost dog drops and engages with the teeth on the hub, thereby locking up the shade once more.
We will estimate the critical rotation rate required to free the rotating drum.
2. FBD. The figure shows a free body diagram for the particle. The
particle is subjected to: (i) a reaction force N where it contacts the rim; N
(ii) a tension T in the link, and (iii) gravity. The resultant force is T
F T cos( ) N cos i ( N sin T sin( ) mg ) j
j
3. Kinematics We can use the circular motion formula to write down the mg
acceleration of the particle(see section 3.1.3)
a R 2 (cos i sin j) i
4. EOM: The equation of motion is
T cos( ) N cos i ( N sin T sin( ) mg ) j a R 2 (cos i sin j)
5. Solution: The i and j components of the equation of motion can be solved for N and T – Mupad
makes this painless
We’ll work through the same problem again, but this time handle the vectors using polar
coordinates.
e er
1. FBD. The figure shows a free body diagram for the particle.
The particle is subjected to: (i) a reaction force N where it N
contacts the rim; (ii) a tension T in the link, and (iii) gravity. T
The resultant force is
F ( N T cos mg sin )er (T sin mg cos )e
j
mg
2. Kinematics The acceleration vector is now
a R 2 er i
3. EOM: The equation of motion is
( N T cos mg sin )er (T sin mg cos )e R 2 er
4. Solution: The er , e components of the equation of motion can be solved for N and T – again, we
can use Mupad for this
In this problem we will calculate the radius of the turn R and the bank angle required, as well as the load
factor caused by the maneuver, as a function of the aircraft speed V.
Before starting the calculation, it is helpful to understand what makes an aircraft travel in a circular path.
Recall that
1. If an object travels at constant speed around a circle, its acceleration vector has constant
magnitude, and has direction towards the center of the circle
2. A force must act on the aircraft to produce this acceleration – i.e. the resultant force on the
aircraft must act towards the center of the circle. The necessary force comes from the horizontal
component of the lift force – the pilot banks the wings, so that the lift acts at an angle to the
vertical.
With this insight, we expect to be able to use the equations of motion to calculate the forces.
1. Idealization – The aircraft is idealized as a particle – it’s not obvious that this is accurate, because the
aircraft clearly rotates as it travels around the curve. However, the forces we wish to calculate turn
out to be fully determined by F=ma and are not influenced by the rotational motion.
2. FBD. The figure shows a free body diagram for the aircraft. It is subjected to (i) a gravitational force
(mg); (ii) a thrust from the engines FT , (iii) a drag force FD , acting perpendicular to the direction of
motion, and (iv) a lift force FL , acting perpendicular to the plane of the wings.
3. Kinematics
a. The aircraft moves at constant speed around a circle, so the angle t , where is the
(constant) angular speed of the line OP. Since the aircraft completes a turn in two minutes,
we know that 2 / (2 60) / 60 rad/sec
b. The position vector of the plane is
r R sin ti R cos tj
We can differentiate this expression with respect to time to find the velocity
v R(cos ti sin t ) j
c. The magnitude of the velocity is V R , so if the aircraft flies at speed V, the radius of the
turn must be R V /
d. Differentiating the velocity gives the acceleration
a R 2 (sin ti cos t ) j
5. Solution: The i j and k components of the equation of motion give three equations that can be solved
for FT , FL and . We assume that the drag force is known, since this is a function of the aircraft’s
speed.
This solution is correct, but you need a PhD to understand what it means (other symbolic manipulation
programs like Maple and Mathematica give a comprehensible solution). Fortunately, I happen to have a
PhD… The solution can be simplified to
tan 1(V / g ) FL mg 1 V 2 2 / g 2 FT FD
As we will see below, if you choose to solve this problem in normal-tangential coordinates, you don’t
need a PhD to
We can calculate values of , R V / and the load factor FL / mg for a few aircraft
a. Cessna 150 – V=70knots (36 m/s) : 110 R=690m, FL / mg 1.02
b. Boeing 747: V=200 knots (102 m/s) 280 R=1950m, FL / mg 1.14
c. F111 V=300 knots (154 m/s) 390 R=2950m, FL / mg 1.3
The n, t and k components of this equation give three equations that can be solved for FT , FL and .
This time it is easy to solve the equations by hand…
tan 1(V / g ) FL mg 1 V 2 2 / g 2 FT FD
This example again shows why normal-tangential coordinates are useful – describing forces, and solving
the resulting force-acceleration relations are much simpler than working with a fixed coordinate system.
3.3.1 General procedure for deriving and solving equations of motion for systems of particles
It is very straightforward to analyze the motion of systems of particles. You should always use the
following procedure
1. Introduce a set of variables that can describe the motion of the system. Don’t worry if this sounds
vague – it will be clear what this means when we solve specific examples.
2. Write down the position vector of each particle in the system in terms of these variables
3. Differentiate the position vector(s), to calculate the velocity and acceleration of each particle in
terms of your variables;
4. Draw a free body diagram showing the forces acting on each particle. You may need to introduce
variables to describe reaction forces. Write down the resultant force vector.
5. Write down Newton’s law F ma for each particle. This will generate up to 3 equations of
motion (one for each vector component) for each particle.
6. If you wish, you can eliminate any unknown reaction forces from Newton’s laws. If you are
trying to solve the equations by hand, you should always do this; of you are using MATLAB, it’s
not usually necessary – you can have MATLAB calculate the reactions for you. The result will be
a set of differential equations for the variables defined in step (1)
7. If you find you have fewer equations than unknown variables, you should look for any
constraints that restrict the motion of the particles. The constraints must be expressed in terms of
the unknown accelerations.
8. Identify the initial conditions for the variables defined in (1). These are usually the values of the
unknown variables, their time derivatives, at time t=0. If you happen to know the values of the
variables at some other instant in time, you can use that too. If you don’t know their values at
all, you should just introduce new (unknown) variables to denote the initial conditions.
9. Solve the differential equations, subject to the initial conditions.
Steps (3) (6) and (8) can usually be done on the computer, so you don’t actually have to do much calculus
or math.
Sometimes, you can avoid solving the equations of motion completely, by using conservation laws –
conservation of energy, or conservation of momentum – to calculate quantities of interest. These short-
cuts will be discussed in the next chapter.
The general process described in the preceding section can be illustrated using simple examples. In this
section, we derive equations of motion for a number of simple systems, and find their solutions.
The purpose of these examples is to illustrate the straightforward, step-by-step procedure for analyzing
motion in a system. Although we solve several problems of practical interest, we will simply set up and
solve the equations of motion with some arbitrary values for system parameter, and won’t attempt to
explore their behavior in detail. More detailed discussions of the behavior of dynamical systems will
follow in later chapters.
Example 1: Trajectory of a particle near the earth’s surface (no air resistance)
i
1. Introduce variables to describe the motion: We can
simply use the Cartesian coordinates of the particle ( x(t ), y(t ), z (t ))
2. Write down the position vector in terms of these variables: r x(t )i y(t ) j z(t )k
3. Differentiate the position vector with respect to time to find the acceleration. For this example, this is
trivial
dx dy dz d 2x d 2 y d 2z
v i j k a i j k
dt dt dt dt 2 dt 2 dt 2
4. Draw a free body diagram. The only force acting on the particle is gravity – the k
free body diagram is shown in the figure. The force vector follows as F mgk . j
mg
i
5. Write down Newton’s laws of motion. This is easy
d 2x d 2 y d 2z
F ma mgk m 2 i 2 j 2 k
dt dt dt
The vector equation actually represents three separate differential equations of motion
d 2x d2y d 2z
0 0 g
dt 2 dt 2 dt 2
7. Identify initial conditions. The initial conditions were given in this problem – we have that
dx dy dz
x X 0 Vx y Y0 Vy z Z 0 Vz
dt dt dt
8. Solve the equations of motion. In general we will use MAPLE or matlab to do the rather tedious
algebra necessary to solve the equations of motion. Here, however, we will integrate the equations by
hand, just to show that there is no magic in MAPLE.
dv 0dt
Vx
x
0
dv 0dt
Vy
x
0
dv gdt
Vz
z
0
vx Vx v y Vy vz Vz gt
Now we can re-write the velocity components in terms of (x,y,z) as
dx dy dz
Vx Vy Vz gt
dt dy dt
Again, we can separate variables and integrate
x t y t z t
X0
dx Vx dt
0
dy Vy dt
Y0 0
dz Vz gt dt
Z0 0
1
x X 0 Vxt y Y0 Vy t z Z 0 Vz t gt 2
2
so the position and velocity vectors are
1
r X Vxt i Y V y t j Z Vz t gt 2 k
2
v Vx i V y j Vz gt k
Estimate how far you could throw a stone from the top
of the Kremlin palace.
v0
Note that
1. The horizontal and vertical components of
velocity at time t=0 follow as
Vx v0 cos Vy 0 Vz v0 sin H
2. The components of the position of the particle
at time t=0 are X 0,Y 0, Z H k
3. The trajectory of the particle follows as
1
r v0 cos t i H v0 sin t gt 2 k i D
2
4. When the particle hits the ground, its position vector is r Di . This must be on the trajectory, so
For a rough estimate of the distance we can use the following numbers
1. Height of Kremlin palace – 71m
2. Throwing velocity – maybe 25mph? (pretty pathetic, I know - you can probably do better,
especially if you are on the baseball team).
3. Throwing angle – 45 degrees.
Substituting numbers gives 36m (118ft).
If you want to go wild, you can maximize D with respect to , but this won’t improve your estimate
much.
Silicon nanoparticles with radius 20nm are in thermal motion near a flat surface. At the surface,
they have an average velocity 2kT / m , where m is their mass, T is the
temperature and k=1.3806503 × 10-23 is the Boltzmann constant. Estimate the
maximum height above the surface that a typical particle can reach during its
thermal motion, assuming that the only force acting on the particles is gravity
5. This shows that the instant of max height occurs at time tmax 2kT / m / g
6. Substituting this time back into the position vector shows that the position vector at max height is
2kT 1 2kT kT
r k k
mg 2 mg mg
7. Si has a density of about 2330 kg/m^3. At room temperature (293K) we find that the distance is
surprisingly large: 10mm or so. Gravity is a very weak force at the nano-scale – surface forces
acting between the particles, and the particles and the surface, are much larger.
1. Introduce variables to describe the motion: The length of the spring x(t ) is a convenient way to
describe motion.
2. Write down the position vector in terms of these variables: We can take the origin at O as shown in
the figure. The position vector of the center of mass of the block is then
b
r x(t ) j
2
3. Differentiate the position vector with respect to time to find the acceleration. For this example, this is
trivial
dx d 2x
v j a j
dt dt 2
4. Draw a free body diagram. The free body diagram is shown in the figure: RAx mg
the mass is subjected to the following forces
j
Gravity, acting at the center of mass of the vehicle i
The force due to the spring RBx
Reaction forces at each of the rollers that force the vehicle to move Fs
vertically.
Recall the spring force law, which says that the forces exerted by a spring act parallel to its length, tend to
shorten the spring, and are proportional to the difference between the length of the spring and its un-
stretched length.
5. Write down Newton’s laws of motion. This is easy
d 2x
F ma ( RAx RBx )i mg k ( x L0 ) j m j
dt 2
The i and j components give two scalar equations of motion
( RAx RBx ) 0
d 2x
k
g ( x L0 )
dt 2 m
6. Eliminate reactions – this is not needed in this example.
7. Identify initial conditions. The initial conditions were given in this problem – at time t=0, we know
that x L and dx / dt 0
8. Solve the equations of motion. Again, we will first integrate the equations of motion by hand, and then
repeat the calculation with MAPLE. The equation of motion is
d 2x k
g ( x L0 )
dt 2 m
We can re-write this in terms of
dx
vx
dt
This gives
dvx dvx dx dv k
vx x g ( x L0 )
dt dx dt dx m
We can separate variables and integrate
vx x
k
vx dvx g m ( x L0 ) dx
0 L
1
vx2 g ( x L)
2
k
2m
k
x 2 L2 L0 ( x L)
m
k mg
2 2
mg
vx L L0 x L0
m k k
Don’t worry if the last line looks mysterious – writing the solution in this form just makes the algebra a
bit simpler. We can now integrate the velocity to find x
k mg
2 2
dx mg
vx L L0 x L0
dt m k k
x t
dx
dt
k
2 2
L mg mg 0
L L0 x L0
m k k
The integral on the left can be evaluated using the substitution
x L0 mg / k
cos
L L0 mg / k
so that
0
sin d
t
x L0 mg / k
dt 0 cos 1
0
k
1 cos 2 0
L L0 mg / k
m
k
0 t
m
x L0 mg / k k
cos t
L L0 mg / k m
k
x L L0 mg / k cos t L0 mg / k
m
Here’s the MAPLE solution
Note that it’s important to include the assume() statements, otherwise Mupad gives the solution in the
form of an exponential of a complex number. The solution in this other form is also correct, but is
difficult to visualize.
1. Introduce variables to describe the motion – the polar coordinates r , work for this problem
2. Write down the position vector and differentiate to find acceleration – we don’t need to do
this – we can just write down the standard result for polar coordinates
d 2r dr
a r 2 er 2 e
dt 2 dt
T
e
3. Draw a free body diagram – shown in the figure – note that it is N
important to draw the friction force in the correct direction. The block er
will slide radially outwards, and friction opposes the slip.
d r
2 dr
Ter Ne m r 2 er 2 e
2 dt
dt
5. Eliminate reactions
F=ma gives two equations for N and T. A third one comes from the friction law T N
7. Solve the equation: If you’ve taken AM33 you will know how to solve this equation… But if
not, or you are lazy, you can use MAPLE to solve it for you.
In this example, we will work through the basic problem of deriving and solving the equations of motion
for a pendulum, neglecting air resistance.
1. Introduce variables to describe motion: The angle (t ) shown in the figure is a convenient
variable.
2. Write down the position vector as a function of the variables We introduce a Cartesian coordinate
system with origin at O, as shown in the picture.
3. Differentiate the position vector to find the acceleration: The computer makes this painless.
4. The free body diagram is shown in the figure. The force exerted by the cable on
R
the particle is introduced as an unknown reaction force. The force vector is
F R sin i R cos mg j
j
5. Newton’s laws of motion can be expressed as i
mg
F ma
d
2
d 2 d
2
d 2
R sin i R cos mg j m l sin l cos 2 i m l cos l sin 2 j
dt dt dt dt
Equating the i and j components gives two equations for the two unknowns
d
2
d 2
R sin m l sin l cos
dt dt 2
d
2
d 2
R cos mg m l cos l sin
dt dt 2
6. Eliminate the reaction forces. – In this problem, it is helpful to eliminate the unknown reaction force
R. You can do this on the computer if you like, but in this case it is simpler to do this by hand. You can
simply multiply the first equation by cos and the second equation by sin and then add them. This
yields
mg sin m sin 2 cos 2
d 2
dt 2
d 2 g
sin 0
2 l
dt
7. Identify initial conditions. Some calculations are necessary to determine the initial conditions in this
problem. We are given that 0 at time t=0, and the horizontal velocity is V0 at time t=0, but to solve
the equation of motion, we need the value of d / dt 0 . We can find the relationship we need by
differentiating the position vector to find the velocity
d
v l cos i l sin j
dt
Setting v V0i and 0 at t=0 shows that
d
V0i li
dt
so d / dt V0 / l
8. Solve the equations of motion This equation of motion is too difficult for MAPLE but actually the
solution does exist and is very well known – this is a classic problem in mathematical physics. With
initial conditions 0, d / dt V0 / l t 0 the solution is
V g V0 V0
2sin 1 0 sn t , 1
gl
gl l gl
(t )
V0 gl V0
2am t , 1
l V0 gl
The first solution describes swinging motion of the pendulum, while the second solution describes the
motion that occurs if you push the pendulum so hard that it whirls around on the pivot. The equations
may look scary, but you can simply use MAPLE to calculate and plot them.
1. In the first equation, sn(x, k ) is a special function called the `sin amplitude.’ You can think of it
as a sort of trig function for adults – in fact for k=0, sn(x,0) sin( x) and we recover the PG
version. You can compute it in Mupad using jacobiSN(x,k)
2. Similarly, am(x, k ) is a function called the `Amplitude.’ You can calculate it in Mupad using
jacobiAM(x,k). In Mupad, the am function has range - <am(x, k ) , so the solution
predicts that as the pendulum whirls around the pivot, the angle increases from 0 to 2 , then
jumps to 2 , increases to 2 again, and so on.
You might have solved the pendulum problem already in an elementary physics course, and might
remember a different solution. This is because you probably only derived an approximate solution, by
assuming that the angle remains small. This occurs when the initial velocity satisfies V / gl 1 , in
which case the solution can be approximated by
V g
(t ) sin t
gl l
In the preceding section, we were able to solve all our equations of motion exactly, and hence to find
formulas that describe the motion of the system. This should give you a warm and fuzzy feeling – it
appears that with very little work, you can predict everything about the motion of the system. You may
even have visions of running a consulting business from your yacht in the Caribbean, with nothing more
than your chef, your masseur (or masseuse) and a laptop with a copy of MAPLE.
Unfortunately real life is not so simple. Equations of motion for most engineering systems cannot be
solved exactly. Even very simple problems, such as calculating the effects of air resistance on the
trajectory of a particle, cannot be solved exactly.
For nearly all practical problems, the equations of motion need to be solved numerically, by using a
computer to calculate values for the position, velocity and acceleration of the system as functions of time.
Vast numbers of computer programs have been written for this purpose – some focus on very specialized
applications, such as calculating orbits for spacecraft (STK); calculating motion of atoms in a material
(LAMMPS); solving fluid flow problems (e.g. fluent, CFDRC); or analyzing deformation in solids (e.g.
ABAQUS, ANSYS, NASTRAN, DYNA); others are more general purpose equation solving programs.
In this course we will use MATLAB, which is widely used in all engineering applications. You should
complete the MATLAB tutorial before proceeding any further.
In the remainder of this section, we provide a number of examples that illustrate how MATLAB can be
used to solve dynamics problems. Each example illustrates one or more important technique for setting
up or solving equations of motion.
Example 1: Trajectory of a particle near the earth’s surface (with air resistance)
2. Write down the position vector in terms of these variables: r x(t )i y(t ) j z(t )k
3. Differentiate the position vector with respect to time to find the acceleration. Simple calculus gives
dx dy dz d 2x d 2 y d 2z
v i j k a i j k
dt dt dt dt 2 dt 2 dt 2
4. Draw a free body diagram. The particle is now subjected to two forces, as shown in the picture.
Air resistance.
1
The magnitude of the air drag force is given by FD CD DV 2 , where
2
is the air density,
CD is the drag coefficient,
D is the projectile’s diameter, and
V is the magnitude of the projectile’s velocity relative to the air. Since we assumed the air is
stationary, V is simply the magnitude of the particle’s velocity, i.e.
2 2 2
dx dy dz
V
dt dt dt
The Direction of the air drag force is always opposite to the direction of motion of the projectile
through the air. In this case the air is stationary, so the drag force is simply opposite to the direction
of the particle’s velocity. Note that v / V is a unit vector parallel to the particle’s velocity. The drag
force vector is therefore
1 D2 2 v 1 D2 dx dy dz
FD CD V CD V i j k
2 4 V 2 4 dt dt dt
7. Identify initial conditions. The initial conditions were given in this problem - we have that
dx dy dz
x X 0 Vx y Y0 Vy z Z 0 Vz
dt dt dt
8. Solve the equations of motion. We can’t use the magic ‘dsolve’ command in MAPLE to solve this
equation – it has no known exact solution. So instead, we use MATLAB to generate a numerical
solution.
This takes two steps. First, we must turn the equations of motion into a form that MATLAB can use.
This means we must convert the equations into first-order vector valued differential equation of the
dy
general form f (t , y ) . Then, we must write a MATLAB script to integrate the equations of motion.
dt
Converting the equations of motion: We can’t solve directly for (x,y,z), because these variables get
differentiated more than once with respect to time. To fix this, we introduce the time derivatives of
(x,y,z) as new unknown variables. In other words, we will solve for ( x, y, z, vx , v y , vz ) , where
dx dx dx
vx vy vz
dt dt dt
These definitions are three new equations of motion relating our unknown variables. In addition, we can
re-write our original equations of motion as
dvx dv y dvz
cVvx cVv y g cVvz
dt dt dt
So, expressed as a vector valued differential equation, our equations of motion are
x vx
y vy
d z vz
dt vx cVvx
v y cVv
y
vz g cVvz
MATLAB script. The procedure for solving these equations is discussed in the MATLAB tutorial. A
basic MATLAB script is listed below.
function trajectory_3d
% Function to plot trajectory of a projectile
% launched from position X0 with velocity V0
% with specific air drag coefficient c
% stop_time specifies the end of the calculation
[times,sols] = ode45(@eom,[0,stop_time],initial_w);
end
This produces a plot that looks like this (the plot’s been edited to add the grid,etc)
3. Differentiate the position vector with respect to time to find the acceleration.
dx dy d 2x d 2 y
v i j a 2 i 2 j
dt dt dt dt
j
Fg
i
4. Draw a free body diagram. The satellite is subjected to a gravitational force.
GMm
The magnitude of the force is Fg , where
r2
G is the gravitational constant, and
r x 2 y 2 is the distance between the planet and the satellite
The direction of the force is always towards the origin: r / r is therefore a unit vector parallel to the
direction of the force. The total force acting on the satellite is therefore
GMm r GMm
F
2 r
xi yj
r r3
7. Identify initial conditions. The initial conditions were given in this problem - we have that
dx dy
x R 0 y 0 V
dt dt
8. Solve the equations of motion. We follow the usual procedure: (i) convert the equations into
MATLAB form; and (ii) code a MATLAB script to solve them.
Converting the equations of motion: We introduce the time derivatives of (x,y) as new unknown
variables. In other words, we will solve for ( x, y, vx , v y ) , where
dx dx
vx vy
dt dt
These definitions are new equations of motion relating our unknown variables. In addition, we can re-
write our original equations of motion as
dvx GM dv y GM
x y
3
dt r dt r3
So, expressed as a vector valued differential equation, our equations of motion are
x vx
y vy
d
dt vx GMx / r 3
v y GMy / r 3
GM=1;
R=1;
V=1;
Time=100;
w0 = [R,0,0,V]; % Initial conditions
[t_values,w_values] = ode45(@odefunc,[0,time],w0);
plot(w_values(:,1),w_values(:,2))
end
Running the script produces the result shown (the plot was annotated by
hand)
So how can we test our computation? There are two good tests:
1. Look for any features in the simulation that you can predict
without computation, and compare your predictions with those of the computer.
2. Try to find a special choice of system parameters for which you can derive an exact solution to
your problem, and compare your result with the computer
We can use both these checks here.
1. Conserved quantities For this particular problem, we know that (i) the total energy of the system
should be constant; and (ii) the angular momentum of the system about the planet should be constant
(these conservation laws will be discussed in the next chapter – for now, just take this as given). The total
energy of the system consists of the potential energy and kinetic energy of the satellite, and can be
calculated from the formula
E
GMm 1 2
r
mv
2
GMm 1
r 2
m vx2 v 2y
E
m
GM 1 2
r
vx v 2y
2
The total angular momentum of the satellite (about the origin) can be calculated from the formula
H r mv xi yj m(vx i v y j) m xv y yvx k
H
xv y yvx
m
(If you don’t know these formulas, don’t panic – we will discuss energy and angular momentum in the
next part of the course)
We can have MATLAB plot E/m and H / m , and see if these are really conserved. The energy and
momentum can be calculated by adding these lines to the MATLAB script
for i =1:length(t)
r = sqrt(w_values(i,1)^2 + w_values(i,2)^2)
vmag = sqrt(w_values(i,1)^2 + w_values(i,2)^2)
energy(i) = -GM/r + vmag^2/2;
angularm(i) = w_values(i,1)*w_values(i,4)-w_values(i,2)*w_values(i,3);
end
You can then plot the results (e.g. plot(t_values,energy)). The results are shown below.
These results look really bad – neither energy, nor angular momentum, are conserved in the simulation.
Something is clearly very badly wrong.
The figure on the right shows the orbit predicted with the better accuracy. You can see there is no longer
any problem – the orbit is perfectly circular. The figures below plot the energy and angular momentum
predicted by the computer.
There is a small change in energy and angular momentum but the rate of change has been reduced
dramatically. We can make the error smaller still by using improving the tolerances further, if this is
needed. But the changes in energy and angular momentum are only of order 0.01% over a large number
of orbits: this would be sufficiently accurate for most practical applications.
Most ODE solvers are purposely designed to lose a small amount of energy as the simulation proceeds,
because this helps to make them more stable. But in some applications this is unacceptable – for example
in a molecular dynamic simulation where we are trying to predict the entropic response of a polymer, or a
free vibration problem where we need to run the simulation for an extended period of time. There are
special ODE solvers that will conserve energy exactly.
1. Introduce variables to describe the motion: We will use the height of each floor ( y1 , y2 ) as the
variables.
2. Write down the position vector in terms of these variables: We now have to worry about two masses,
and must write down the position vector of both
r1 y1 j r2 y2 j
Note that we must measure the position of each mass from a fixed point.
3. Differentiate the position vector with respect to time to find the acceleration.
dy dy 2
v1 1 j a1 1 j
dt dt 2
dy dy
2
v 2 2 j a2 2 j
dt dt 2
4. Draw a free body diagram. We must draw a free body diagram for each
mass. The resultant force acting on the bottom and top masses, respectively, are mg
F1 mg 2FS1 2FS 2 j F2 mg FS 2 j
where FS1, FS 2 are the forces in the two springs (note that we assume that all FS2 FS2
the springs are in tension – this makes the calculation easier).
The spring forces are equal to the stiffness multiplied by the increase in length mg
of the springs
FS1 k (l1 L) FS 2 k (l2 L) FS1 FS1
We will have to find the spring lengths l1 , l2 in terms of our coordinates y1 , y2 to solve the problem.
Geometry shows that
l2 y2 y1 l1 y1 d0 sin t
So, finally
F1 mg 2k ( y1 d0 sin t L) 2k ( y2 y1 L) j
F2 mg 2k ( y2 y1 L) j
5. Write down Newton’s laws of motion. F=ma for each mass gives
d 2 y1
mg 2k (l1 L) 2k (l2 L) j m j
dt 2
d 2 y2
mg 2k (l2 L) j m j
dt 2
This is two equations of motion – we can substitute for l1 , l2 and rearrange them as
dy12 k k
g 2 ( y1 d0 sin t L) 2 ( y2 y1 L)
dt2 m m
dy22 k
g 2 ( y2 y1 L)
dt2 m
8. Solve the equations of motion. We need to (i) reduce the equations to the standard MATLAB form and
(ii) write a MATLAB script to solve them.
Converting the equations. We now need to do two things: (a) remove the second derivatives with respect
to time, by introducing new variables; and (b) rearrange the equations into the form dy / dt f (t , y) . We
dl dl
remove the derivatives by introducing v1 1 v2 2 as additional unknown variables, in the usual
dt dt
way. Our equations of motion can then be expressed as
dy1
v1
dt
dy2
v2
dt
dv1 k k
g 2 ( y1 d0 sin t L) 2 ( y2 y1 L)
2 m m
dt
dv2 k
g 2 ( y2 y1 L)
2 m
dt
We can now code MATLAB to solve these equations directly for dy/dt. A script (which plots the
position of each floor as a function of time) is shown below.
function building
%
k=100;
m=1;
omega=9;
d=0.1;
L=10;
time=20;
g = 9.81;
w0 = [L-m*g/k,2*L-3*m*g/(2*k),0,0];
[t_values,w_values] = ode45(@eom,[0,time],w0);
plot(t_values,w_values(:,1:2));
The figures below plot the height of each floor as a function of time, for various earthquake frequencies.
For special earthquake frequencies (near the two resonant frequencies of the structure) the building
vibrations are very severe. As long as the structure is designed so that its resonant frequencies are well
away from the frequency of a typical earthquake, it will be safe.
This problem illustrates a shortcoming of solving problems on the computer without thinking too much
about them. The way we set up the problem, it looks as though the solution depends on g, and the
unstretched spring length L, but in fact this is not the case. Not being aware of this makes the equations
of motion much more complicated than they really are, and makes it harder to interpret the results. Of
course we could learn by trial and error that the solution is independent of L and g, but a better approach
is to eliminate these variables from the equations of motion altogether.
There is a standard way to do this – instead of solving for the lengths of the springs y, we solve for the
deflection of the masses from their static equilibrium positions. We will discuss this in more general
terms when we discuss vibration problems later in the course. But we’ll work through the process here,
because it’s useful to use the same approach in the mass launcher design project.
The figure illustrates the idea. The figure
on the left shows the masses at their static m
equilibrium positions. Here the springs
have lengths z2
l1 L mg / k , l2 L mg / 2k . We are m
now going to describe the motion by the
y2
L-mg/2k k k m
displacement of each mass from its static
equilibrium position, z2 , z2 . We simply m z1
work through the derivations again with y1
these new variables. L-mg/k k k
d0sint
The accelerations of the masses don’t
depend on what we use for the origin
(provided the origin is fixed, of course), so
dz dz 2
v1 1 j a1 1 j
dt dt 2
dz dz
2
v 2 2 j a2 2 j
dt dt 2
The free body diagram doesn’t change either, and the forces in the springs are mg
still given by
FS1 k (l1 L) FS 2 k (l2 L)
FS2 FS2
But now we have to find the spring lengths l1 , l2 in terms of our coordinates
z1, z2 to solve the problem. Geometry shows that
mg
l1 L mg / k z1 d0 sin t
l2 L mg / 2k z2 z1
FS1 FS1
Newton’s laws of motion now become
d 2 z1
mg 2k (l1 L) 2k (l2 L) j m j
dt 2
d 2 z2
mg 2k (l2 L) j m j
dt 2
Finally substituting for l1, l2 and simplifying we find that lots of terms magically cancel, and
d 2 z1 2k
(d0 sin t z1 )
2 m
dt
d 2 z2 2k
( z1 z2 )
2 m
dt
These equations don’t involve L or g. Furthermore the initial conditions are simply
dz dz
z1 z2 0; 1 2 0
dt dt
so the solution for z1, z2 must be independent of L and g.
Example 4: The dreaded pendulum revisited (apologies…)
You may have lost interest in pendulum problems by now. Bear with us, however- it i
is a convenient example that illustrates how to solve problems with constraints.
l
So we re-visit the problem shown in the figure. This time, we will describe the
system using (x,y) coordinates of the mass instead of the inclination of the
j
cable.
1. Introduce variables to describe the motion: We will use the position of the mouse relative to point O
( x, y) as the variables.
3. Differentiate the position vector with respect to time to find the acceleration.
dx dy d 2x d2y
v i j a i j
dt dt dt 2 dt 2
4. Draw a free body diagram. We can use the FBD we drew earlier. The force must R
now be expressed in terms of x and y instead of , however. Simple trig shows that
y x
cos sin
x2 y 2 x2 y 2
The resultant force is therefore j i
mg
x y
F R sin i R cos j mgj R iR j mgj
x2 y 2 x2 y 2
6. Eliminate reactions –We could eliminate R if we wanted – but this time we won’t bother. Instead, we
will carry R along as an additional unknown, and use MATLAB to calculate it.
7. If there are more unknown variables than equations of motion, look for constraint equations. We
now have three unknowns (x,y,R) but only two equations of motion (eliminating R in step 6 won’t help –
in this case we will have two unknowns but only one equation of motion). So we need to look for an
additional equation somewhere.
The reason we’re missing an equation is that we took x,y to be arbitrary – but of course the mouse has to
remain attached to the cable at all times. This means that his distance from O is fixed –i.e.
x2 y 2 l
This is the missing equation.
We could, if we wanted, use this equation to eliminate one of our unknown variables (doing the algebra
by hand). Instead, however, we will use MATLAB to do this for us. For this purpose, we need to turn
the equation into a constraint on the accelerations, instead of the position of the particle. To get such an
equation, we can differentiate both sides of the constraint with respect to time
d d x dx y dy
x2 y 2 l 0
dt dt x 2 y 2 dt x 2 y 2 dt
dx dy
x y 0
dt dt
This is now a constraint on the velocity. Differentiating again gives
2 2
dx d 2 x dy d2y
x y 0
dt dt 2 dt dt 2
2 2
d 2x d2y dx dy
x y
dt 2
dt 2 dt dt
Again – if you have trouble doing the derivatives, just use MAPLE (don’t forget to specify that x, y are
functions of time, i.e. enter them as x(t), y(t) when typing the constraint formula into MAPLE).
[Aside – when I first coded this problem I tried to constrain the velocity of the particle, instead of the
acceleration. This doesn’t work (as I should have known), and produces some rather interesting
MATLAB errors – if you are curious, try it and see what happens. If you are even more curious, you
might like to think about why you need to constrain accelerations and not velocities.]
8. Solve the equations of motion. We need to (i) reduce the equations to the standard MATLAB form and
(ii) write a MATLAB script to solve them.
g = 9.81;
l=1;
V0=0.1;
time=20;
w0 = [0,l,V0,0]; % Initial conditions
[t_values,w_values] = ode45(@eom,[0,time],w0);
plot(t_values,w_values(:,1:2));
Final remarks: In general, it is best to avoid using constraint equations – it makes the problem harder to
set up, and harder for MATLAB to solve. Sometimes they are unavoidable, however – in some cases
you might not see how to identify a suitable set of independent coordinates; and there are some systems (a
rolling wheel is the most common example) for which a set of independent coordinates do not exist.
These are given the fancy name `non-holonomic systems’ – mentioning that you happen to be an expert
on non-holonomic systems during a romantic candle-light dinner is sure to impress your dates.
As a representative application of the methods outlined in the preceding section, we will set up and solve
the equations of motion for a very simple idealization of a vehicle. This happens to be an example of a
non-holonomic system (sorry we aren’t at a romantic dinner). Don’t worry if the model looks rather scary
– this calculation is more advanced than anything you would be expected to do at this stage of your
career… Our goal is to illustrate how the method we’ve developed in this section can be applied to a real
engineering system of interest. You should be able to follow and understand the procedure.
The figure shows how the vehicle is idealized. Here are a few L/2
remarks: L/2
1. We consider only 2D planar motion of the vehicle
2. For simplicity we assume the vehicle has only two y
wheels, one at the front and one at the rear. (It’s not
a motorcycle, however, because we won’t account x Motion
for the vehicle leaning around corners) Steering
3. The car is idealized as a particle with mass m angle
supported on a massless chassis with wheelbase L.
4. Aerodynamic drag forces are assumed to act directly
on the particle.
5. The most complicated and important part of a vehicle dynamics model is the description of how
the wheels interact with the road. Here, we will just assume that
a. The front and rear of the vehicle have to move in a direction perpendicular to each
wheel’s axle. Reaction forces must act on each wheel parallel to the axle in order to
enforce this constraint (see the FBD).
b. In addition, we assume that the vehicle has rear-wheel drive. This is modeled as a
prescribed force P(t ) exerted by the ground on the rear wheel, acting parallel to the
rolling direction of the wheel (see the FBD).
c. The front wheel is assumed to roll freely and have negligible mass – this means that the
contact force acting on the wheel must be perpendicular to its rolling direction (see the
FBD). The vehicle is steered by rotating the front wheel through an angle (t ) with
respect to the chassis.
This is a vastly over-simplified model of wheel/road interaction – for example, it predicts that the
car can never skid. If you are interested in extending this calculation to a more realistic model,
ask us… We’d be happy to give you better equations!
1. Introduce variables to describe the motion: We will use the (x,y) coordinates of car and its orientation
as the variables.
3. Differentiate the position vector with respect to time to find the acceleration.
dx dy d 2x d 2 y
v i j a i 2 j
dt dt dt 2 dt
We need to re-write these equations as constraints on the acceleration of the vehicle. To do this, we
differentiate both constraints with respect to time, to see that
d dx dy L d
sin cos 0
dt dt dt 2 dt
dx d d 2x dy d d 2 y L d 2
cos sin sin cos 0
dt dt dt 2 dt dt dt 2 2 dt 2
d dx dy L d
sin( ) cos( ) cos 0
dt dt dt 2 dt
dx d d d 2x dy d d d2y
cos( ) sin( ) 2 sin( ) cos( ) 2
dt dt dt dt dt dt dt dt
L d d L d 2
sin cos 0
2 dt dt 2 dt 2
7. Identify initial conditions: We will assume that the vehicle starts at rest, with
dx dy d
x y 0
dt dt dt
7. Solve the equations of motion. We need to write the equations of motion in a suitable matrix form for
MATLAB. We need to eliminate all the second derivatives with respect to time from the equations of
motion, by introducing new variables. To do this, we define
dx dy d
vx vy
dt dt dt
as new variables, and then solve for [ x, y, , vx , v y , ] . We also need to eliminate the unknown reactions.
It is not hard to show that the equations of motion, in matrix form, are
1 0 0 0 0 0 0 0 dx / dt
0 1 0
0 0 0 0 0 dy / dt
0 0 1 0 0 0 0 0 d / dt
0 0 0 m 0 0 sin( ) sin dvx / dt
f
0 0 0 0 m 0 cos( ) cos dv y / dt
0 0 0 0 0 0 cos 1 d / dt
0 0 0 sin cos L/2 0 0 RF
0 0 0 sin( ) cos ( L / 2)cos 0 0 RR
where
vx
v
y
P(t ) cos cvvx
f P (t )sin cvv
y
0
cos vx sin v y
cos( )v d sin( )v d sin L d
x y
dt dt 2 dt
Finally, we can type these into MATLAB – here’s a simple script that solves the equations of motion and
plots the (x,y) coordinates of the car to show its path, and also plots the speed of the car as a function of
time. The example simulates a drunk-driver, who steers with steering angle 0.1 0.2sin(t ) , and
drives with his or her foot to the floor with P=constant.
function drivemycar
L=1;
m=1;
c=0.1;
time=120;
y0 = [0,0,0,0,0,0];
options = odeset('RelTol',0.00001);
[t_vals,w_vals] = ode45(@eom,[0,time],y0,options);
plot(w_vals(:,1),w_vals(:,2));
function [alpha,dadt,P]=driver(t)
% This function behaves like the driver of the car -
% at time t it returns the steering angle alpha
% dalpha/dt and the driving force P
alpha = 0.1+0.2*sin(t);
dadt = 0.2*cos(t);
P = 0.2;
end
function dwdt = eom(t,w)
% Equations of motion for the vehicle
%
Here are the skills that you should develop based on the material in this chapter:
Be able to idealize an engineering design as a set of particles, and know when this idealization
will give accurate results
Choose an appropriate set of geometric variables to describe the motion of a system of particles
(eg components in a fixed coordinate system; components in a polar coordinate system, etc)
Be able to differentiate position vectors (with proper use of the chain rule!) to determine velocity
and acceleration; and be able to integrate acceleration or velocity to determine position vector.
Be familiar with simple harmonic motion and definitions of amplitude, frequency and period
Be able to describe motion in normal-tangential and polar coordinates (eg be able to write down
vector components of velocity and acceleration in terms of speed, radius of curvature of path, or
coordinates in the cylindrical-polar system).
Be able to convert between Cartesian to normal-tangential or polar coordinate descriptions of
motion
Be able to draw a correct free body diagram showing forces acting on system idealized as
particles
Understand and be able to describe mathematically the forces exerted by springs and dampers,
and draw forces exerted by springs/dampers on a free body diagram.
Be able to write down Newton’s laws of motion in rectangular, normal-tangential, and polar
coordinate systems
Be able to obtain an additional moment balance equation for a rigid body moving without rotation
or rotating about a fixed axis at constant rate.
Be able to use Newton’s laws of motion to solve for unknown accelerations or forces in a system
of particles
Use Newton’s laws of motion to derive differential equations governing the motion of a system of
particles
Solve the differential equations of motion analytically using Mupad, for cases where analytical
solutions are available
Be able to re-write second order differential equations as a pair of first-order differential
equations in a form that MATLAB can solve
Write a MATLAB script to solve differential equations governing the motion of a system
Of course, these are all just tricks of the trade. They are supposed to help you design a system that does
something useful; or to understand (and ultimately to predict) the behavior of some physical or biological
system.
1
r X 0 V0t at 2 i v V0 at i a ai
2
Here, a is the (constant) acceleration; X 0 ,V0 are the position and speed at time t=0.
t t
Acceleration given as a function of time: r X 0 v(t )dt i v V0 a(t )dt i
0 0
v (t ) x (t )
Acceleration given as a function of position vdv a( x)dx
V0 0
r X 0 X sin(2 t / T ) i
v V cos(2 t / T )i
a A sin(2 t / T )i
2X 2 V 4 2 X
V A
T T T2
sin
Circular Motion at Constant Speed t cos
R
r R cos i sin j j n
v R sin i cos j Vt
t Rsin
i
V2
a R(cos i sin j) Rn
2 2
n Rcos
R
d / dt d / dt d 2 / dt 2
sin
s R V ds / dt R t cos
R
r R cos i sin j j n
v R sin i cos j Vt t Rsin
i
a R ( sin i cos j) R 2 (cos i sin j)
Rcos
dV V2
Rt Rn
2
t n
dt R
Note that the straight-line motion relations can be used to relate , , , by exchanging
x , v , a
v Vt
t
dV V2
a t n
dt R R
r x2 y 2 tan 1 y / x r
j
r rer i
dr d
v er r e
dt dt
d 2r d
2 d 2 dr d
a r e
r r 2 e
dt 2 dt dt
2 dt dt
Newton’s laws
For a particle F ma
NA TB NB
W
Drawing free body diagrams:
1. Decide which part of a system you will idealize as a particle (you may need more than one
particle)
2. Draw the part of the system you have idealized as a particle by itself (very important!). It is
important to make sure that your particle is isolated – it can’t be touching something else.
You may need more than one drawing if you have more than one particle in your system.
3. Draw on any of the following external forces that apply. Make sure you draw them acting in
the correct direction, acting on the correct part of the body:
a. gravity (at the COM);
b. air resistance or lift forces (and sometimes moments) – various conventions are used
to locate these forces but in this course we usually put them at the COM and neglect
moments;
c. Buoyancy forces (act at the COM of the displaced fluid)
d. Electrostatic or electromagnetic forces
4. Draw the forces exerted by springs attached to the particle. It is best to assume that springs
always pull on the point they are connected to, and that the magnitude of the force in the
spring is Fs k (l l0 ) , where l is the length of the spring, and l0 is its unstretched length.
5. Draw the forces exerted by dashpots or dampers (like springs, assume they pull on the object
they are connected to, and exert a force magnitude Fd dl / dt where l is the length of the
dashpot.
6. Draw forces exerted by cables. Cables always pull, and exert a force parallel to the direction
of the cable. The magnitude of the force has to be left as an unknown.
7. Draw any unknown reaction forces, with the following rules:
a. Reaction forces must act at any point on any point of the body that is touching
something outside the particle (i.e. a part of your system that you did not include in
your drawing in step 2).
b. If the connection between the two touching objects prevents them from rotating with
respect to one another (or, like a motor, makes them rotate with some controllable
angular speed), you will need to draw both reaction forces and moments. (Reaction
moments do sometimes come up in dynamics problems, but they are not very
common, so think carefully before including them).
c. If friction acts at the contact point, and you don’t know whether the two objects slide
at the contact (or you know they do not slide), draw both a normal and a tangential
force with unknown magnitudes N,T (or some suitable variable). The direction of the
friction force is not important. DO NOT assume T N .
d. If friction acts at the contact point, and you know the contact slips, draw both a
tangential and a normal force. You must draw the tangential force so that it opposes
the direction of sliding (ask a faculty member or TA if you don’t understand this). If
slip occurs you can assume T N .
e. If the contact point is frictionless, draw only a normal force.
f. If your particle is being touched by a two-force member (no, this is not a gender and
sexuality class… a two force member is a massless rod, connected through freely
rotating hinges at both ends. A massless freely rotating wheel can also be idealized
as a two-force member) you can assume the reaction force acts parallel to the two-
force member.
g. If you have more than one particle in your system, make sure that any forces exerted
by one particle on the other have equal and opposite reactions.
1. Introduce a set of variables that can describe the motion of the system. Don’t worry if this sounds
vague – it will be clear what this means when we solve specific examples.
2. Write down the position vector of each particle in the system in terms of these variables
3. Differentiate the position vector(s), to calculate the velocity and acceleration of each particle in
terms of your variables;
4. Draw a free body diagram showing the forces acting on each particle. You may need to introduce
variables to describe reaction forces. Write down the resultant force vector.
5. Write down Newton’s law F ma for each particle. This will generate up to 3 equations of
motion (one for each vector component) for each particle.
6. If you wish, you can eliminate any unknown reaction forces from Newton’s laws. If you are
trying to solve the equations by hand, you should always do this; of you are using MATLAB, it’s
not usually necessary – you can have MATLAB calculate the reactions for you. The result will be
a set of differential equations for the variables defined in step (1)
7. If you find you have fewer equations than unknown variables, you should look for any
constraints that restrict the motion of the particles. The constraints must be expressed in terms of
the unknown accelerations.
8. Identify the initial conditions for the variables defined in (1). These are usually the values of the
unknown variables, their time derivatives, at time t=0. If you happen to know the values of the
variables at some other instant in time, you can use that too. If you don’t know their values at
all, you should just introduce new (unknown) variables to denote the initial conditions.
9. Solve the differential equations, subject to the initial conditions.
V0
r X 0i Y0 j Z 0k k
dr t 0 X0
Vx0i V y 0 j Vz 0k j
dt
i
1
r X 0 Vx0t i Y0 V y 0t j Z 0 Vz 0t gt 2 k
2
v Vx 0 i V y 0 j Vz 0 gt k
a gk
Solving differential equations with Mupad:
Example: to solve
d2y dy
2n n2 y 0
dt 2 dt
dy
with initial conditions y y0 v0 at time t=0
dt
Example: to solve
d2y dy
2n n2 y 0
2 dt
dt
we introduce v dy / dt as an additional variable. This new equation, together with the original
ODE can then be written in the following form
d y v
dt v 2n v n2 y
This is now in the form
dw y
f (t , w ) w
dt v
as required.