Maple - Intro Solving Dynamics Problems
Maple - Intro Solving Dynamics Problems
in Maple
Brian D. Harper
Mechanical Engineering
The Ohio State University
A supplement to accompany
Engineering Mechanics: Dynamics, 6th Edition
by J.L. Meriam and L.G. Kraige
CONTENTS
Introduction
Chapter 1
5
An Introduction to Maple
7
9
11
13
20
Solving Equations
22
Chapter 2
29
Kinematics of Particles
30
34
39
41
45
48
Chapter 3
53
Kinetics of Particles
50
54
57
59
61
63
66
Chapter 4
69
70
73
75
4 CONTENTS
Chapter 5
Chapter 6
Chapter 7
Introduction to Three-Dimensional
Dynamics of Rigid Bodies
79
80
85
88
91
94
96
101
102
107
109
111
113
119
123
124
126
Chapter 8
131
132
134
137
INTRODUCTION
6 INTRODUCTION
As you will see, it is not uncommon to find Mechanics problems that yield
equations that cannot be solved exactly. These problems require a numerical
approach that is greatly simplified by computational software such as Maple.
Although numerical solutions are extremely easy to obtain in Maple this is still
the method of last resort. Chapter 1 will illustrate several methods for obtaining
symbolic (exact) solutions to problems. These methods should always be tried
first. Only when these fail should you generate a numerical approximation.
Many students encounter some difficulties the first time they try to use a
computer as an aid to solving a problem. In many cases they are expecting that
they have to do something fundamentally different. It is very important to
understand that there is no fundamental difference in the way that you would
formulate computer problems as opposed to a regular homework problem. Each
problem in this booklet has a problem formulation section prior to the solution.
As you work through the problems be sure to note that there is nothing peculiar
about the way the problems are formulated. You will see free-body and mass
acceleration diagrams, kinematic equations etc. just like you would normally
write. The main difference is that most of the problems will be parametric studies
as discussed above. In a parametric study you will have at least one and possibly
more parameters or variables that are left undefined during the formulation. For
example, you might have a general angle as opposed to a specific angle of 20.
If it helps, you can pretend that the variable is some specific number while you
are formulating a problem.
This supplement has eight chapters. The first chapter contains a brief introduction
to Maple. If you already have some familiarity with Maple you can skip this
chapter. Although the first chapter is relatively brief it does introduce all the
methods that will be used later in the book and assumes no prior knowledge of
Maple. Chapters 2 through 8 contain computer problems taken from chapters 2
through 8 of your textbook. Thus, if you would like to see some computer
problems involving the kinetics of particles you can look at the problems in
chapter 3 of this supplement. Each chapter will have a short introduction that
summarizes the types of problems and computational methods used. This would
be the ideal place to look if you are interested in finding examples of how to use
specific functions, operations etc.
This supplement uses Maple 10. Maple is a product Waterloo Maple, Inc., 450
Phillips Street, Waterloo, Ontario, Canada.
AN INTRODUCTION
TO MAPLE
48
> 8^2;
64
> 3/10+12/4;
33
10
> sqrt(2);
Note in the last two examples that Maple will not show a decimal representation
of a number unless asked to do so. Converting a number to a decimal
approximation is accomplished with the evalf function.
> evalf(sqrt(2));
1.414213562
By default, the number of significant digits is 10. You can specify the number of
significant digits in the evalf command as follows.
> evalf(sqrt(2),5);
1.4142
You can also change the default with the Digits variable.
> Digits:=20:
> evalf(sqrt(2));
1.4142135623730950488
Later we will find that the evalf function can be used as an easy way to perform
numerical integration.
In the previous examples we have been using Maple as if it were an expensive
calculator. Maple is, however, much more than a calculator. It can, for example,
perform algebraic manipulations upon variables as well as numbers. Such
manipulations are generally referred to as symbolic calculations or computer
algebra. Following are several simple examples of symbolic calculations.
> (a*x+b*x^2)/x^3;
a x + b x2
x3
> %*x^2;
INTRODUCTION TO MAPLE 9
a x + b x2
x
Note that % is a shortcut for referring to the last expression evaluated by Maple.
Similarly, %% would refer to the next to last expression and %%% to the one
before that. Be sure you understand the following calculation.
> %*%%;
( a x + b x2 )
x4
Sometimes Maple does not produce the simplest form of a symbolic operation. If
you suspect this might be the case, try simplifying with the simplify command.
> simplify(%);
( a + b x )2
x2
x2 + x4
x3
> simplify((x^2+x^4)/(x^3));
1 + x2
x
x := 3
> We := Love +Dynamics;
We := Love + Dynamics
In the first example, the number 3 is assigned to the variable x. In the second, the
sum of two variables is assigned to a third variable We. Note that Maple is case
sensitive. We, we, wE and WE are all different variables. An assigned variable is
sometimes referred to as a name or an alias. Whenever Maple encounters We it
will automatically substitute Love + Dynamics. Thus, it is also useful to think of
assignments (names, aliases) as abbreviations. "We" is an abbreviation for "Love
( Love + Dynamics )2
> 10^We;
( Love + Dynamics )
10
> We/We;
1
> Love:=9: Dynamics:= 16:
> sqrt(We);
eqn := 9 + y 2 = z 2
Here we have assigned an equality to the variable eqn. You may recall that x has
been previously assigned the value 3. Maple remembers this and automatically
substitutes 3 for x. The unassign command removes a previous assignment.
> x;
3
> unassign('x'); # note that the variable must be placed in quotations.
> x;
Listing x before and after the unassign command just reinforces the change in
assignment and is not necessary. It is important to understand at this point that
the assignment for eqn has not changed even though the variable x is no longer
assigned. To see this let's list the variable eqn.
> eqn;
9 + y2 = z 2
The reason for this is that the variable eqn was assigned when x was equal to 3.
Thus, unassigning x has no effect on that previous assignment. If you want the
name eqn to contain the variable x then x should be unassigned before eqn is
assigned. This point is illustrated by the following.
INTRODUCTION TO MAPLE 11
eqn := x2 + y 2 = z 2
> x:=3:
> eqn;
9 + y2 = z 2
> unassign('x');
> eqn;
x2 + y 2 = z 2
1.3 Functions
Maple has many basic mathematical functions built in. The following table
provides a summary of those most useful in Dynamics.
When using trig functions, be sure to remember that Maple uses radians by
default. Also, the number is represented in Maple by Pi while pi is just the
greek letter . As the following lines show, it is not always easy to tell one from
the other in Maple output.
> restart;
> Pi; pi;
1
1
sin
2
All the greek letters (with the exception of the protected names Pi and gamma)
can be used by spelling out their names. Type ?greek at a command prompt for a
review of the greek letters and their spelling. Here are a few examples.
> cos(theta)+sin(Theta); tan(omega)-cot(Omega);
cos( ) + sin( )
tan( ) cot( )
It turns out that the greek letter gamma ( ) is commonly used in Dynamics
problems to denote an angle. If you do not need the gamma function (and you
probably won't), feel free to unprotect it and then use it in your problems.
> gamma:=Pi/4;
Error, attempting to assign to `gamma` which is protected
> unprotect('gamma');
> gamma:=Pi/4;
1
:=
4
Maple also allows the user to define functions. Here are two examples.
> f:= x ->x^3;
f := x x3
g := ( x, y ) x2 + y2
The syntax for defining a function starts with the usual assignment operator ":="
followed by a list of variables and then what looks like an arrow but is really two
key strokes, a minus sign "-" and a greater than symbol ">". Note that more than
one variable requires the use of parentheses. User defined functions operate
exactly like built in functions. Their arguments may be numbers, variables or
expressions.
> f(3);
27
> f(2)+g(1,2)/g(3,1);
17
2
INTRODUCTION TO MAPLE 13
> f(g(2,4));
8000
> g(duck,goose);
duck2 + goose2
> f(g(r^2,sqrt(r)));
( r4 + r )
18
> g(m,q);
m2 + q 2
1.4 Graphics
One of the most useful things about a computational software package such as
Maple is the ability to easily create graphs of functions. As we will see, these
graphs allow one to gain a lot of insight into a problem by observing how a
solution changes as some parameter (the magnitude of a load, an angle, a
dimension etc.) is varied. This is so important that practically every problem in
this supplement will contain at least one plot. By the time you have finished
reading this supplement you should be very proficient at plotting in Maple. This
section will introduce you to the basics of plotting in Maple.
Simple Plots of One or More Expressions
Simple plots are easily obtained with the plot command. The simplest plot call
requires only the expression to be plotted and the range over which it is to be
plotted. There are many advanced features of the plot command allowing graphs
to be formatted in various ways. We will show the main options primarily by
way of example. For more details, type ?plot, ?plot[structure], or ?plot[options]
at any Maple command prompt ([>).
> restart; # always start with restart
> plot(5*x^2-0.5*x^3, x=0..10, color=black);
> f:=x^2*sin(x);
f := x2 sin( x )
INTRODUCTION TO MAPLE 15
> g:=sqrt(x)*exp(-x); h:=x^2*10^(-x/2);
g := x e
( x )
( 1/2 x )
h := x 2 10
In an actual Maple session the two curves above would be plotted in different
colors. If you want to distinguish results by color, its a good idea to use the color
option. For example, the plot command plot([g,h],x=0..5, color=[red,blue])
would yield a graph where g is plotted red and h blue.
It is also possible, though somewhat tedious, to label individual curves in a plot.
This requires the display and textplot procedures which must be loaded from the
plots package with the command with(plots).
> with(plots):
> p1:=plot([g,h],x=0..5, color=black):
> t1:=textplot([1,0.41,"g"],color=black,font=[TIMES,ROMAN,16]):
> t2:=textplot([2.3,0.41,"h"],color=black,font=[TIMES,ROMAN,16]):
The parameters for textplot are the text and the coordinates at which it is to be
plotted. Note that the individual plot and textplot structures are assigned names.
These names are then input to the display procedure.
> display(p1,t1,t2);
f := 5 + x 5 x2 + a x3
INTRODUCTION TO MAPLE 17
What we would like to do is gain some understanding of how f varies with both x
and a. It might be tempting to make a three dimensional plot in a case like this.
Such a plot can, in some cases, be very useful. Usually, however, it is too
difficult to interpret. This is illustrated by the following three dimensional plot of
f versus x and a.
> plot3d(f,x=-10..10,a=-3..3,color=grey);
The plot above certainly is interesting but, as mentioned above, not very easy to
interpret. In most cases it is much better to plot the function several times (with
different values of the parameter of interest) on a single two dimensional graph.
We will illustrate this by plotting f as a function of x for four values of the
parameter a. There are a number of ways this can be done. Below are two
methods: (a) re-assignment and (b) substitution.
> a:=-2: f1:=f: a:=-1: f2:=f: a:=1: f3:=f: a:=2: f4:=f: # method (a)
> plot([f1,f2,f3,f4],x=-10..10,color=black);
f := 10 t ( 2 t )
g := sin( 5 t )
To plot f versus g:
> plot([g, f, t=0..2],color=black,labels=['g','f']);
INTRODUCTION TO MAPLE 19
To plot several parametric plots on the same graph one should use the display
procedure. Recall that this procedure must be loaded by typing with(plots): As an
example, consider the following expressions for x and y in terms of a common
parameter t:
> with(plots):
> y:=a*t-b*t^2;x:=c*sin(beta*t);
y := a t b t 2
x := c sin( t )
Now suppose we want to specify that a=1, b=0.5, c=2 and then plot y versus x for
three values of (0.1, 0.25, 0.5). This is accomplished as follows.
> a:=1: b:=0.5: c:=2:
> beta:=0.1:p1:=plot([x, y, t=0..2],0..2,0..0.6,color=black):
> beta:=0.25:p2:=plot([x, y, t=0..2],0..2,0..0.6,color=black):
> beta:=0.5:p3:=plot([x, y, t=0..2],0..2,0..0.6,color=black):
> display([p1,p2,p3]);
tan( x3 ) + 3 x3 ( 1 + tan( x 3 ) )
> f:=a*sec(b*t);
f := a sec( b t )
> diff(f,t);
a sec( b t ) tan( b t ) b
g := a ln( b x2 )
INTRODUCTION TO MAPLE 21
a
x3
a
x3
s := 10 t 20 t 2 + 2 t 3
v := 10 40 t + 6 t 2
a := 40 + 12 t
Symbolic integration will be performed with the int command. The general
format of this command is int(f, x = a..b) where f is the integrand (a Maple
expression), x is the integration variable and a and b are the limits of integration.
If the integration limits are omitted, the indefinite integral will be evaluated. Here
are several examples of definite and indefinite integrals.
> restart;
> int(sin(b*x),x);
cos ( b x )
b
cos( b 2 ) + cos( b a )
b
> g:=b*log(x);
g := b ln( x )
> int(g,x);
b x ln( x ) b x
b d ln( d ) b d b c ln( c ) + b c
261
4
> int(log(x), x = 2..5); # don't forget that log is the natural logarithm
3 + 5 ln( 5 ) 2 ln( 2 )
Note that Maple will always try to return an exact answer. This usually results in
answers containing fractions or functions as in the above examples. This is very
useful in some situations; however, one often wants to know the numerical
answer without having to evaluate a result such as the above with a calculator. To
obtain numerical answers use Maple's evalf function as in the following
examples.
> evalf(int(x+3*x^3, x = 0..3));
65.25000000
> evalf(int(log(x), x = 2..5));
3.660895199
b b2 4 a c
b + b2 4 a c
,
2a
2a
v := 3 6 t + 2 t 2
INTRODUCTION TO MAPLE 23
3 1
3 1
+
7,
7
2 2
2 2
If we don't want to get our calculators out to evaluate the above expressions for t,
we should use the following:
> evalf(solve(v=2,t));
2.822875656, .177124344
We can also use the solve command to get a general expression for t given any
specified v = v0.
> solve(v=v0,t);
3 1
3 1
+
3 + 2 v0 ,
3 + 2 v0
2 2
2 2
v := 4 sin( 2 ) 2 cos( 2 )
> solve(v=v0,theta);
v0
1
arctan
+
2
5
v0 2 + 20
v0
+
,
10
10
v0
1
arctan
2
5
2
v0 + 20
5
v0 2 + 20
5
v0 2 + 20
v0
,
10
10
Occasionally when solving equations in Maple you may encounter the following.
> restart;
> f:=10*sin(x)=2*x^2+1;
f := 10 sin( x ) = 2 x2 + 1
> solve(f,x);
It is beyond the scope of this chapter to get into exactly what the RootOf result
means in Maple. Suffice it to say that Maple was not able to find an exact
(symbolic) solution of the equation. There are two general approaches to
obtaining an approximate solution that you might consider in a case like this;
graphical and numerical.
With a graphical approach you could consider making a plot of the expressions
on either side of the equals sign and then finding where the two curves intersect.
> plot([10*sin(x), 2*x^2+1], x=0...3);
From the plot above we see that there are two solutions at x equals about 0.1 and
2.0. Of course, you might have to experiment around with the plot limits to make
sure that you have identified all the solutions. To obtain a more accurate answer
you should print the graph and then draw vertical lines at the intersections of the
two curves. The intersections of these lines with the x-axis will give the two
solutions. Another approach, which avoids having to draw vertical lines, is to
rewrite the equation so that you have zero on the right hand side.
> g:=10*sin(x)-2*x^2-1;
g := 10 sin( x ) 2 x2 1
Observe that the values of x for which g = 0 will be solutions to our original
equation. Now plot g versus x and find where the curve intersects the x axis.
> plot(g, x=0..2.5);
INTRODUCTION TO MAPLE 25
.1022700143
This was certainly quick, but note also a danger of missing multiple solutions.
Thus it is generally a good idea to make a plot even when you are going to use
fsolve. From the plot we can pick up the second solution by using fsolve and
specifying a range.
> fsolve(f,x,x=1..3);
2.007613807
v := b + c t d t 3
> tm:=solve(diff(v,t)=0,t);
tm :=
3 dc
3 dc
,
3d
3d
vm := b +
c 3 dc
3 (d c)
3d
9 d2
( 3/2 )
Note that t = tm[1] substitutes the first of the two results for tm. The second root
is negative and thus not physically significant. Whether the result vm
corresponds to a minimum or a maximum depends on the values of b, c and d.
Let's look at a specific case:
> b:=1: c:=2: d:=1:
> tm[1];vm;
1
3 2
3
1+
4
3 2
9
4 6
9 = 2.0887 is a maximum. It
never hurts to check, though. An easy way to do this is to substitute neighboring
values of t:
> evalf(subs(t=tm[1]-0.01,v));evalf(subs(t=tm[1]+0.01,v));
2.088418159
2.088416159
Both values are somewhat less than 2.0887, verifying that we have found a
maximum. Probably the safest way to verify a maximum, though, is to plot the
results.
> plot(v,t=0..1.8, labels=[`time`,`velocity`]);
INTRODUCTION TO MAPLE 27
A simpler way to find maxima and minima is to use the exrema function.
> extrema(v,{},t);
{1
4
4
6, 1 +
6}
9
9
Note that Maple has found both a maximum and a minimum. Further
investigation would show that the minimum occurs at the negative time root
found above. The brackets {} in the extrema function allow the input of
constraints. The problems that we will consider will not have constraints, thus the
brackets will be left empty.
Systems of Equations
> restart;
> eqn1:=-P*sin(beta)+Bx-Ax=0;
eqn2:=Ay+P*cos(beta)-w*a=0;
eqn3:=P*a*cos(beta)-P*b*sin(beta)+Bx*c-1/2*w*a^2=0;
eqn1 := P sin( ) + Bx Ax = 0
eqn2 := Ay + P cos( ) w a = 0
1
eqn3 := P a cos( ) P b sin( ) + Bx c w a 2 = 0
2
Above we have three equations that we are going to solve for three variables
using Maple's solve command. Since we have more unknowns than we have
equations, Maple will solve the equations symbolically in terms of the unknown
parameters. We can ask Maple to solve for any three of the unknowns we wish.
Here we will ask Maple to solve for Ax, Ay, and Bx and will obtain three
expressions in terms of the remaining parameters P, w, a, b, c and .
> soln:=solve({eqn1,eqn2,eqn3},{Ax,Ay,Bx});
soln := { Ay = P cos( ) + w a, Bx =
Ax =
1 2 P a cos( ) + 2 P b sin( ) + w a 2
,
c
2
Ax
The following statements are unnecessary, merely showing explicitly that the
assignments have been made.
> Ax; Ay; Bx;
P cos( ) + w a
1 2 P a cos( ) + 2 P b sin( ) + w a 2
c
2
KINEMATICS OF
PARTICLES
Kinematics involves the study of the motion of bodies irrespective of the forces
that may produce that motion. Maple can be very useful in solving particle
kinematics problems. Problem 2.1 is a rectilinear motion problem illustrating
integration with the int command. The formulation of this problem results in an
equation that cannot be solved exactly except with some rather sophisticated
mathematics. When this occurs it is generally easiest to obtain either a graphical
or numerical solution. This problem illustrates both approaches. Problem 2.2 is a
rectangular coordinates problem that illustrates diff and solve. Problem 2.3 is a
relatively straightforward problem where Maple is used to generate a plot that
might be useful in a parametric study. The path of a particle is depicted using a
parametric plot and a polar plot in problem 2.4. In problem 2.5, the r-
components of the velocity are determined using symbolic differentiation (diff).
The problem also illustrates how computer algebra can simplify what might
normally be a rather tedious algebra problem. The diff command is further
illustrated in problems 2.6 and 2.7. Problem 2.7 is particularly interesting in that
it requires differentiation with respect to time of a function whose explicit time
dependence is unknown. This happens rather frequently in Dynamics so it is
useful to know how to accomplish this with Maple.
vdv = ads = kv ds
2
v0
v
ks = ln 0
v
dv
= k ds
v
0
3. 9
k = 0.718 mi-1
(b) Here we follow the general approach in the sample problem. Integrating a =
dv/dt yields
v
dv
kt =
= k dt
v0
v v0
vv0
v=
v0
1 + ktv 0
ds = s = vdt =
0
v0
1 + ktv
0
dt
0
s=
1
ln(1 + ktv 0 )
k
KINEMATICS OF PARTICLES 31
This equation turns out to be very difficult to solve for k. A good mathematician
or someone familiar with symbolic algebra software might be able to find the
general solution for k in terms of the so-called LambertW function (LambertW(x)
is the solution of the equation yey = x). Even if this solution were found it would
be of little use in most practical situations. For example, you would have to spend
some time familiarizing yourself with the function. Once this is done you would
still have to use a program like Maple or a mathematical handbook to evaluate
the function.
For these reasons it is probably easiest to find k either graphically or numerically.
Obtaining a numerical solution with Maple is so easy that there is little reason not
to use this approach. It is generally advisable though to use a graphical approach
even when a numerical solution is being obtained. This is the best way to identify
whether there are multiple solutions to the problem and also serves as a useful
check on the numerical results. Thus, both approaches are illustrated in the
worksheet below.
The usual way to generate a graphical solution is to rearrange the equation so as
to give a function that is zero at points that are solutions to the original equation.
Rearranging the equation above in this manner yields,
f = ks ln(1 + ktv0 ) = 0
Given values of s, t, and v0, f can be plotted versus k. The value of k at which f =
0 provides the solution to the original equation.
Maple Worksheet
> restart;
Although the integrations are simple in this problem, we'll go ahead and evaluate
them symbolically for purposes of illustration.
> s_a:=-1/k*int(1/x,x=v0..v);
Warning, unable to determine if 0 is between v0 and v; try
to use assumptions or set _EnvAllSolutions to true
1
s_a :=
k
dx
v0
Note that Maple did not evaluate the integral symbolically. In some cases Maple
gets a little irritating in that it cannot actually "understand" things about the
problem that are to us trivially obvious. In the present case (read the warning
s_a :=
> s_b:=v0*int(1/(1+k*v0*x),x=0..t);
s_b :=
ln( 1 + t~ k~ v0~ )
k~
The tilde (~) follows any variable for which something has been assumed.
It should also be pointed out that this problem only occurs in later editions of
Maple. For example, Maple 6 evaluates the two integrals without needing any
assume statements. Now we move on to illustrate a graphical and numerical
solution to our problem.
To illustrate the graphical solution, take v0 = 8 knots and assume that the boat is
found to move 1.1 nautical miles after 10 minutes.
>
> v0:=8: s:=1.1: t:=10/60:
> f:=k*s-log(1+k*v0*t);
4 k~
f := 1.1 k~ ln 1 +
3
> plot(f,k=0..0.5,color=black);
KINEMATICS OF PARTICLES 33
> plot(f, k = 0..0.5);
The above graph shows that k is about 0.34 mi-1. Now let's try a numerical
solution with fsolve.
> fsolve(f = 0,k);
0.
Here we have found the solution k=0 which is not physically significant. Let's try
again specifying a range.
> fsolve(f = 0, k, 0.3..0.4);
.3392305334
This illustrates the importance of the graphical approach. If we had not first
plotted f versus k we would have a hard time specifying a range for Maple to
search for a root. Now let's see what we get using the symbolic solve command.
> solve(f=0,k);
0., .3392305334
Since Maple was unable to find an exact (symbolic) solution to the equation it
automatically reverted to a numerical approach and actually found both solutions.
We showed both approaches (solve and fsolve) in this problem since it doesn't
always turn out this nicely.
Place a coordinate system at A with x positive to the right and y positive up. The
initial components of the velocity are,
(v x )0 = u cos
(v y )0 = u sin
y = usin t -1/2gt2
Plotting y in terms of x for different times t will yield the trajectory of the
projectile. This type of plot is called a parametric plot since the items plotted (x
and y) are each known in terms of another parameter (t).
Anytime you have a projectile motion problem and you know the coordinates of
a point on the trajectory (our point B) you should solve for x and y (as we have
done above) and then obtain two equations by substituting the coordinates of the
points. These two equations can then be solved for two unknowns. Note that in
most cases one of the two unknowns will be the time of flight.
Part (a) Substituting x = 5,000 m, y = 1,500 m and u = 400 m/s gives
5000 = 400cos t
KINEMATICS OF PARTICLES 35
We will let Maple solve these two equations simultaneously. Maple actually
finds four solutions, however two of the four can be discarded since they involve
negative times. The other two solutions correspond to the two solutions shown in
the illustration accompanying the problem statement. The results are,
however there are now three unknowns (u, , t). Suppose for the moment that the
launch angle were given and we were asked to calculate the required initial
speed u so that the projectile strikes B. In this case we would have two equations
and two unknowns. From this observation we see that u is a function of from
which we get our general solution strategy:
(a)
(b)
5000
t cos
1 2
gt . This equation is
2
now solved for t = 2(5000 tan 1500 ) / g which can be substituted back into
u to give
u=
5000
We will let Maple differentiate this equation and solve for the minimum speed
and the associated launch angle. The result is
umin = 256.8 m/s at = 53.3
Maple Worksheet
x := u cos( ) t
> y:=u*sin(theta)*t-1/2*g*t^2;
y := u sin( ) t
g t2
2
Note that Maple has found four solutions but that two can be excluded because
they have time being negative. The two angles are substituted back into x and y to
get the two trajectories.
> x1:=subs(theta=0.455695,x);y1:=subs(theta=0.455695,y);
x1 := 400 cos( 0.455695 ) t
> x2:=subs(theta=1.4066,x);y2:=subs(theta=1.4066,y);
x2 := 400 cos( 1.4066 ) t
KINEMATICS OF PARTICLES 37
> display(p1,p2);
part (b)
> unassign('u');
> t[B]:=sqrt(2*(5000*tan(theta)-1500)/g);
> u:=5000/cos(theta)/t[B];
u :=
5000
cos( ) 1019.367992 tan( ) 305.8103976
> du:=diff(u,theta);
du :=
5000 sin( )
cos( )2 1019.367992 tan( ) 305.8103976
( 3/2 )
> solve(du=0,theta);
0.9311265606, -0.6396697662, -2.210466093, 2.501922887
> x3:=subs(theta=.9311265606,x):y3:=subs(theta=.9311265606,y):
> p3:=plot([x3/1000,y3/1000,t=0..32.62],0..6,0..8,color=black):
> display(p1,p2,p3);
KINEMATICS OF PARTICLES 39
v 02
v 02
g cos
At the apex
At the apex, vy = 0 and v = vx = v0cos. Since v is horizontal, the
normal direction is vertically downward so that an = g.
an = g =
(v0 cos )2
(v0 cos )2
g
Maple Worksheet
> restart; with(plots):
> rho[i]:=v0^2/g/cos(theta);
i :=
v0 2
g cos( )
> vx:=v0*cos(theta0);
vx := v0 cos( 0 )
> rho[a]:=(v0*cos(theta))^2/g;
a :=
v0 2 cos( )2
g
Note that as approaches 90 (/2), the initial goes to infinity while at the
apex approaches zero. When = 90, the ball travels along a straight (vertical)
path. As you recall, straight paths have a radius of curvature of infinity. At the
apex, the velocity will be zero giving a radius of curvature of zero.
KINEMATICS OF PARTICLES 41
The first part of this problem solution will be identical to that in the Sample
Problem in your text except that everything will be left in terms of t. To
summarize,
r = 0.2 + 0.04t 2
r& = 0.08t
&r& = 0.08
= 0.2t + 0.02t 3
&& = 0.12t
Now all we have to do is substitute these expressions into the definitions for the
velocity and acceleration. As usual, there is no need to make an explicit
substitution when using the computer.
v r = r& = 0.08t
v = r&
v = v r2 + v2
a r = &r& r& 2
a = r&& + 2r&&
a = a r2 + a2
The plot for part (c) can be found in two ways. The first is to use the suggestion in your book and
write
x = r cos
y = r sin
Now we have the x and y coordinates of the slider in terms of a common parameter t. This
suggests that we can use a parametric plot. Also, the fact that we are using polar coordinates
would indicate that we might use Maples polarplot. This provides us with the second plotting
method.
Maple Worksheet
> restart; with(plots):
> r:=0.2+0.04*t^2;
r := 0.2 + 0.04 t 2
> rd:=diff(r,t);
rd := 0.08 t
> rdd:=diff(rd,t);
rdd := 0.08
> theta:=0.2*t+0.02*t^3;
:= 0.2 t + 0.02 t 3
> thetad:=diff(theta,t);
> thetadd:=diff(thetad,t);
thetadd := 0.12 t
> vr:=rd; vtheta:=r*thetad;
vr := 0.08 t
vtheta := ( 0.2 + 0.04 t 2 ) ( 0.2 + 0.06 t 2 )
> v:=sqrt(vr^2+vtheta^2);
v :=
> ar:=rdd-r*thetad^2;
> atheta:=r*thetadd+2*rd*thetad;
Part (a)
> p1:=plot([v,vr,vtheta],t=0..5,color=black,labels=["time (s)",""],title="part (a) velocity (m/s)"):
> t1:=textplot([3.35,.75,'v']): t2:=textplot([4.1,.75,'vtheta']):
> t3:=textplot([4.1,.4,'vr']):
> display(p1,t1,t2,t3);
KINEMATICS OF PARTICLES 43
Part (b)
> p2:=plot([a,ar,atheta],t=0..5,color=black,labels=["time (s)",""],title="part (b) acceleration
(m/s^2)"):
> t4:=textplot([4,2,'a']): t5:=textplot([4.5,-1.4,'ar']):
> t6:=textplot([4.5,1.2,'atheta']):
> display(p2,t4,t5,t6);
KINEMATICS OF PARTICLES 45
Place a Cartesian coordinate system at the radar with x positive to the right
and y positive up. Since the rocket is coasting in unpowered flight we can
use the equations for projectile motion
x = x 0 + v 0 cos( )t
y = y 0 + v 0 sin ( )t
1 2
gt
2
r = x2 + y2
= tan 1 ( x / y )
v r = r&
v = r&
Substitution of x and y into the above equations and carrying out the derivatives
with respect to time gives vr and v as functions of time. The results are very
x := x0 + v0 cos( ) t
> y:=y0+v0*sin(beta)*t-1/2*g*t^2;
1
y := y0 + v0 sin( ) t g t 2
2
> r:=sqrt(x^2+y^2);
r :=
1
( x0 + v0 cos( ) t )2 + y0 + v0 sin( ) t g t 2
2
> theta:=arctan(x/y);
x0 + v0 cos( ) t
:= arctan
1 2
y0 + v0 sin( ) t 2 g t
> vr:=diff(r,t);
1
vr :=
2
1
2 ( x0 + v0 cos( ) t ) v0 cos( ) + 2 y0 + v0 sin( ) t g t 2 ( v0 sin( ) g t )
2
1
( x0 + v0 cos( ) t )2 + y0 + v0 sin( ) t g t 2
2
> vtheta:=r*diff(theta,t);
vtheta :=
1
( x0 + v0 cos( ) t )2 + y0 + v0 sin( ) t g t 2
2
v0 cos( )
( x0 + v0 cos( ) t ) ( v0 sin( ) g t )
1 2
1 2
y0
+
v0
sin
(
)
t
g
t
y0 + v0 sin( ) t g t
2
2
( x0 + v0 cos( ) t )2
1+
2
y0 + v0 sin( ) t 1 g t 2
2
> v0:=5310: beta:=18.89*Pi/180: x0:=125000: y0:=216506: g:=31.4:
> p1:=plot([vr,vtheta],t=0..150, labels=[`t (sec)`,`v (ft/s)`],
labeldirections=[HORIZONTAL,VERTICAL]):
> t1:=textplot([30,4350,`v`],font=[TIMES,ITALIC,13]):
> t2:=textplot([33,4300,'r'],font=[TIMES,ITALIC,13]):
> t3:=textplot([30,3000,`v`],font=[TIMES,ITALIC,13]):
KINEMATICS OF PARTICLES 47
> t4:=textplot([33,2930,`q`],font=[SYMBOL,11]):
>
> display(p1,t1,t2,t3,t4);
( )
a =
cos d 2 &
R 2 R&& sin
R dt
a =
1 d 2&
R + R& 2 sin cos
R dt
( )
R = R0 + t , = t and = t
Differentiation and substitution will be performed in Maple. The results are,
a R = (R0 + t ) 2 2 cos 2 (t )
KINEMATICS OF PARTICLES 49
Maple Worksheet
> restart;with(plots):
> unprotect('Psi');theta:=Omega*t;phi:=Psi*t;R:=R0+Lambda*t;
:= t
:= t
R := R0 + t
Even though there are some obvious simplifications in this case, we still write the
most general expressions for the spherical components of the acceleration. In this
way we can consider other types of time dependence without modifying the
worksheet.
> a[_R]:=diff(R,t,t)-R*diff(phi,t)^2-R*diff(theta,t)^2*cos(phi)^2;
a[_theta]:=cos(phi)/R*diff(R^2*diff(theta,t),t)-2*R*diff(theta,t)*diff(phi,t)*sin(phi);
a[_phi]:=1/R*diff(R^2*diff(phi,t),t)+R*diff(theta,t)^2*sin(phi)*cos(phi);
a_R := ( R0 + t ) 2 ( R0 + t ) 2 cos( t )2
a_ := 2 cos( t ) 2 ( R0 + t ) sin( t )
a_ := 2 + ( R0 + t ) 2 sin( t ) cos( t )
> Lambda:=0.5:Omega:=10*Pi/180:Psi:=7*Pi/180:R0:=9:
> tf:=Pi/2/Psi; # time at which =
tf :=
2 .
90
7
title="acceleration (m/s^2)"):
> t1:=textplot([11,-.5,'q'],font=[SYMBOL,13]):
t2:=textplot([11,.29,'f'],font=[SYMBOL,13]):
t3:=textplot([11,-.19,'R'],font=[TIMES,ROMAN,13]):
> display(p1,t1,t2,t3);
Now, L& = 0 will be used to obtain a relation between vA (= x& ) and vB (= y& ).
L& = 0 = 2 y& +
xx&
h2 + x2
vB =
1
2
xv A
h2 + x2
KINEMATICS OF PARTICLES 51
2 1+ 2
L := 2 h 2 y( t ) + h 2 + x( t )2
Note that we need to differentiate L with respect to time. Both x and y depend on
time, however, exactly how they depend on time is not known. It turns out that
this is not a problem. All we need to do is let Maple know x and y depend on
time by writing x(t) and y(t).
> eqn:=diff(L,t);
d
x( t ) x( t )
d
t
2
h + x( t ) 2
d
eqn := 2 y( t ) +
d
t
1
vB :=
2
d
x( t ) x( t )
d
t
2
h + x( t ) 2
vB :=
1 h vA
2 h2 + h2 2
:=
1
2
1 + 2
KINETICS OF
PARTICLES
(1)
[F
= ma y = 0
[Fx = ma x ]
N 400 cos(30) = 0
k N 2T + 400 sin(30) =
400
aC
32.2
Substituting N yields,
400 k cos(30) 2T + 400 sin(30) =
400
aC
32.2
(2)
[ F = ma ]
250 T =
250
aA
32.2
(3)
Maple will be used to solve the three equations above for aA, aC and T in terms of
k. Since the accelerations are constant, v A2 = 2a A d where d is the vertical
distance through which block A has fallen. Thus, the velocity of A when it strikes
the ground (d = 20 ft) is
KINETICS OF PARTICLES 55
v Af = 40 a A
Note that results are not plotted beyond the limiting value for k (0.866) that
was determined above. From a numerical point of view this occurs because
Maple will not plot imaginary answers. Whenever imaginary or complex values
result there is usually some physical explanation. In this problem, the physical
explanation is that the log will not slide up the incline if the coefficient of friction
is too large.
KINETICS OF PARTICLES 57
Fr = 0 = ma r = m &r& r& 2
&r& = r& 2 = r 02
v = r& = r0 0 cosh( 0 t )
The absolute path of the particle will be graphed using polar plotting. For this we
need r as a function of . Since = 0t we have,
r = r0 cosh( )
We want to plot this function only up to the point where the particle leaves the
tube. Substituting r = 1 we have 1 = 0.1cosh(), or = cosh-1(10) = 2.993 rads.
Thus, the particle leaves the tube when = 2.993 rads (171.5).
As you will see in the worksheet below, Maple can also be used to solve the
second order differential equation with initial conditions, greatly simplifying this
problem.
Maple Worksheet
> restart; with(plots):
> eqn:=diff(r(t),t,t)=omega[0]^2*r(t);
eqn :=
2
2
r( t ) = 0 r( t )
2
t
The following uses dsolve to solve the differential equation eqn. Note how the
initial conditions are specified. D is a differential operator so that D(r)(0) = 0 is
the initial condition r& = 0 at t =0.
> dsolve( {eqn, r(0)=r[0], D(r)(0)=0}, r(t));
( t)
( t )
1
1
0
0
r( t ) = r0 e
+ r0 e
2
2
r := r0 cosh ( )
> r0:=0.1;
r0 := .1
> polarplot(r,theta=0..2.993, scaling=CONSTRAINED);
KINETICS OF PARTICLES 59
1
1
2
k x22 x12 = k (1.2 + ) 2
2
2
The other results in the sample problem (see your text) are unchanged,
U 1 2 = 250(0.6) = 150 J
T =
1
1
m v 2 v 02 = (10)v 2
2
2
1
(10 )v 2 + 58.9 + 1 (60 ) (1.2 + )2 2
2
2
This equation can be solved for v either by hand or by using Maple. The result is
v=
1
958 1440
10
Maple Worksheet
> restart; with(plots):
> U:=150=1/2*10*v^2+58.9+1/2*60*((1.2+delta)^2-delta^2);
> solve(U,v);
1
1
958 1440 ,
958 1440
10
10
> v:=%[1];
v :=
1
958 1440
10
> evalf(solve(v=0,delta));
.6652777778
KINETICS OF PARTICLES 61
Note that no results are plotted beyond 0.65 m. Why? One reason is to
observe from the above equation that v becomes imaginary when > 958/1440 =
0.665 m. No results are plotted because Maple does not plot imaginary numbers.
But this is a numerical reason instead of a physical explanation. Usually,
imaginary answers signify a situation that is physically impossible for some
reason. One way of understanding this is as follows. If the spring is initially
compressed it will, at least for some part of the motion, be pushing up and thus
be aiding the 250 N force in overcoming the weight of the slider. If the spring is
initially stretched, it will always be pulling back on the slider. Thus the 250 N
force will have to overcome not only the weight but also the spring force. It
stands to reason then that there will be some value for the initial spring stretch
beyond which the 250 N force will not be able to pull the slider all the way to C.
This value is found from the limiting case where v = 0. Thus, the block never
reaches C if > 0.665 m.
(1) Impulse/Momentum
During impact, G = 0 and G1 = G 2
2 / 16 50
2 / 16 + 50
v +
( 0) =
v b
32.2 32.2
32.2
v = 401v b
where v is the velocity of the projectile while vb is the velocity of the box of sand
immediately after impact.
(2) Work/Energy
Now we use the work/energy equation with our initial
position being the position where the pendulum is still
vertical ( = 0) and the final position is that where the
pendulum has rotated through the maximum angle .
U 1 2 = 0 = T + V g =
1
m 0 2 v b2 + mgh
2
Maple Worksheet
> restart;
> vb:=sqrt(2*32.2*6*(1-cos(theta)));
# work/energy
> eqn:=2/16*v=(2/16+50)*vb;
# impulse/momentum
1
401
eqn := v =
386.4 386.4 cos( )
8
8
> v:=solve(eqn,v);
vd := 160.4000000
1
2415. 2415. cos
x
180
>
> plot(vd,x=0..90,labels=["theta (deg)",""],title="velocity of bullet (ft/s)");
KINETICS OF PARTICLES 63
where
2mr02 0 = 2 mr 2
and
r02
r2
0
r = 0.1 + 0.6 cos( / 2)
Maple Worksheet
> restart;
> r0:=0.1+0.6*cos(Pi/4);
r0 := .1 + .3000000000 2
> r:=0.1+0.6*cos(theta/2);
1
r := .1 + .6 cos
2
> omega:=r0^2/r^2*omega0;
:=
( .1 + .3000000000 2 ) 0
.1 + .6 cos 1
> omega:=subs(theta=x*Pi/180,omega);
:=
( .1 + .3000000000 2 ) 0
.1 + .6 cos 1 x
360
4
0 :=
3
KINETICS OF PARTICLES 65
[Fn = man ]
N mg cos = mr 2
[Ft = mat ]
F mg sin = 0
s =
g sin
g cos + r
sin
1.8925 + cos
The last two questions can be answered only after plotting s as a function of .
Maple Worksheet
> restart;
> eqn1:=N-m*g*cos(theta)=m*r*Omega^2;
eqn1 := N m g cos( ) = m r 2
> eqn2:=mu[s]*N-m*g*sin(theta)=0;
eqn2 := s N m g sin( ) = 0
> soln:=solve({eqn1,eqn2},{mu[s],N});
KINETICS OF PARTICLES 67
soln := { N = m g cos( ) + m r 2, s =
g sin( )
}
g cos( ) + r 2
> assign(soln):
> Omega:=7.5: g:=32.2: r:=13/12:
> plot(mu[s],theta=0..Pi,color=black,labels=["theta (rads)",""],title="coefficient of static
friction");
If the block is not to slip at any angle , the coefficient of friction must be greater
than or equal to any value shown on the plot above. Thus, the minimum required
coefficient value min that would allow the block to remain fixed relative to the
drum throughout a full revolution is equal to the maximum value in the plot
above. The location where this maximum occurs can be found by solving the
equation d s / d = 0 for . This can then be substituted into s to yield the
required value for min. Heres how we do this with Maple.
> dmu:=diff(mu[s],theta);
dmu := 32.2
cos( )
1036.84 sin( )2
+
32.2 cos( ) + 60.93750000 ( 32.2 cos( ) + 60.93750000)2
> solve(dmu=0,theta);
-2.127523285, 2.127523285
.6223992940
From the above we see that min = 0.622. If s is slightly less than this value, the
block will slip when = 2.128 rads (121.9).
KINETICS OF SYSTEMS
OF PARTICLES
This chapter concerns the extension of principles covered in chapters two and
three to the study of the motion of general systems of particles. The chapter first
considers the three approaches introduced in chapter 3 (direct application of
Newtons second law, work/energy, and impulse/momentum) and then moves to
other applications such as steady mass flow and variable mass. Problem 4.1
considers an application of the conservation of momentum to a system comprised
of a small car and an attached rotating sphere. Maple is used to plot the velocity
of the car as a function of the angular position of the sphere. The absolute
position of the sphere is also plotted. Problem 4.2 uses the concept of steady
mass flow to study the effects of geometry upon the design of a sprinkler system.
One of the main purposes of this problem is to illustrate how a problem can be
greatly simplified using non-dimensional analysis. In particular, an equation
containing seven parameters is reduced to a non-dimensional equation with only
three parameters. Problem 4.3 is a variable mass problem in which Maple is used
to integrate the kinematic equation vdv = adx .
(G x ) =0 = 20(0.6) + 5(0.6) = 15
(G x )
Ns
Now let time t = 0 be the time when = 0 and place an x-y coordinate system at
the center of the car as shown in the diagram so that x(t) is the position of the
center of the car. Since v = dx/dt and = 4t we have,
t
x = vdt =
0
v := .6 + .32 sin( )
> theta:=4*t;
:= 4 t
> x:=int(subs(t=q,v),q=0..t);
> xs:=x+0.4*cos(theta);
> ys:=0.4*sin(theta);
ys := .4 sin( 4 t )
> tf:=solve(theta=4*Pi,t);
M 0 = M = Q r 2 + b 2 ur 0
M = Q ur r 2 + b 2
))
M =1 1+ 2
1
1+ 2
Maple Worksheet
> restart; with(plots):
> Mp:=1-Omega*(1+beta^2);
Mp := 1 ( 1 + 2 )
"non-dimensional torque"):
> t1:=textplot([0.72,0.4,"W = 0.5"],font=[SYMBOL,12]):
> t2:=textplot([0.7,-0.3,"W = 1"],font=[SYMBOL,12]):
> t3:=textplot([0.7,-1.7,"W = 2"],font=[SYMBOL,12]):
> display(p1,t1,t2,t3);
> Omega[0]:=1/(1+beta^2);
0 :=
1
1 + 2
> plot(Omega[0],beta=0..1,labels=["b","W0"],labelfont=[SYMBOL,14]);
[Fx = ma x ]
For the vertical section,
T = (L h x )&x&
F y = ma y
gh T = h&x&
Substituting T from the first equation into the second and simplifying gives,
&x& =
gh
Lx
v1
vdv =
gh
dx
Lx
L h
v12 = 2
gh
L
dx = 2 gh ln
Lx
h
v1 = 2 gh ln (L / h )
After end A has passed the corner it will be in free-fall until it hits the platform.
With y positive down we have vdv = gdy yielding,
1 2
v 2 v12 = gh
2
Maple Worksheet
> restart; with(plots):
> v1:=sqrt(2*g*h*log(L/h));
v1 := 2
L
g h ln
h
> v2:=sqrt(2*g*h*(1+log(L/h)));
v2 := 2
L
g h 1 + ln
h
> L:=5:g:=9.81:
> p:=plot([v1,v2],h=0..L, labels=["h (m)",""],title="velocity (m/s)"):
> t1:=textplot([2,6.5,"v1"]): t2:=textplot([2,9.2,"v2"]):
> display(p,t1,t2);
PLANE KINEMATICS OF
RIGID BODIES
= dt
= dt = 12 3u 2 du = 12t t 3
N=
1
1
12t t 3
dt = 12 3t 2 dt =
2 0
2
N=
1 2
1 t
1 2
2
dt
dt
12
3
t
dt
12 3t 2 dt
2 0
2 2
2 0
2
N=
1
32 12t + t 3
2
In summary,
= 12t t 3
(
(
all t
1
3
2 12t t
N =
1
32 12t + t 3
2
t < 2 sec
t > 2 sec
Although the expression for N is rather simple, plotting the result can be a little
tricky due to the change in the expression at time t = 2 sec. How do we tell Maple
to stop plotting one expression and start plotting the other?
Here we will use two approaches to handle this difficulty. The first is to use
Maples piecewise function. This function can be used whenever a function has
different expressions depending upon the value of the independent variable. The
format is illustrated below for our function N.
> N:=1/2/Pi*piecewise(t<2,12*t-t^3,t>2,32-12*t+t^3);
3
12 t t
3
1 32 12 t + t
N :=
2
t<2
2< t
Note that we simply write the constraint followed by the expression. Any number
of constraints can be listed.
The second approach allows to do almost all of the work within Maple. This is accomplished first
by observing that we can obtain the magnitude of the area beneath the curve by integrating the
absolute value of .
N=
1
2
dt
for all t
As we shall see below, Maple automatically turns this integral into a piecewise function.
Maple Worksheet
> restart;
> omega:=12-3*u^2;
:= 12 3 u 2
> theta:=int(omega,u=0..t);
:= 12 t t 3
Here we use the second approach mentioned in the problem formulation above.
Remember that this approach does not require dividing the domain into two
integrals for t > 2.
> N:=1/2/Pi*int(abs(omega),u=0..t);
12 t + t 3
32 + 12 t t 3 + 32
3
1
12 t + t + 64
N :=
2
t -2
t 2
2 < t
Note that Maple has constructed a piecewise function with an extra region, t < -2
sec. This corresponds to the second root of the equation = 12 3t2 = 0. We
neglected this solution in the problem formulation section since it is not
physically meaningful.
> plot(theta,t=0..4,labels=["time (sec)",""],title="angular position theta (degrees)");
12 t t
3
1 32 12 t + t
N :=
2
t<2
2< t
& =
Substituting,
v=
2bss&
2s& L2 + b 2 2 Lb cos
cos =
Lb sin
L tan
2 1 + (b / L ) 2(b / L ) cos
2
v / s& =
where = b/L.
tan
2 1 + 2 2 cos
tan
Maple Worksheet
The algebra in this problem is relatively simple and hardly requires Maple's
symbolic abilities. We will go ahead and solve the problem symbolically anyway
for purposes of illustration.
> restart; with(plots):
> eqn1:=y(t)=2*b*sin(theta(t));
eqn1 := y( t ) = 2 b sin( ( t ) )
> eqn2:=s(t)^2=L^2+b^2-2*L*b*cos(theta(t));
eqn2 := s( t )2 = L2 + b2 2 L b cos( ( t ) )
Since we will differentiate with respect to t we need to tell Maple which variables
depend on t. Thus, we write (t), y(t), and s(t) in the equations above.
d
d
y( t ) = 2 b cos( ( t ) ) ( t )
dt
d
d
d
eqn2 := 2 s( t ) s( t ) = 2 L b sin( ( t ) ) ( t )
d
t
d
For convenience we will now make a few substitutions in order to remove the
explicit dependence upon t.
> eqn1:=subs(diff(y(t),t)=v,diff(theta(t),t)=omega, theta(t)=theta,eqn1);
eqn1 := v = 2 b cos( )
> s:=sqrt(L^2+b^2-2*L*b*cos(theta));
s := L2 + b2 2 L b cos( )
> solve({eqn1,eqn2},{v,omega});
{ =
L 2 + b2 2 L b cos( ) sdot
cos( ) L 2 + b2 2 L b cos( ) sdot
,v=2
}
L b sin( )
L sin( )
v_nd := 2
1 + 2 2 cos( )
tan( )
title="non-dimensional velocity"):
> t1:=textplot([0.8,3.4,"b=2"],font=[SYMBOL,10]):
> t2:=textplot([0.3,2.2,"b=1"],font=[SYMBOL,10]):
> t3:=textplot([0.62,3,"0.1"],font=[SYMBOL,10]):
> t4:=textplot([0.48,2.65,"0.5"],font=[SYMBOL,10]):
>
> display(p,t1,t2,t3,t4);
Let l be the length of connecting rod AB and start with the relative velocity
equation,
vB = vA + vB/A
r2
r
sin Also, cos = 1 sin 2 = 1 2 sin 2
l
l
cos
r
cos
r cos
v A = r (sin + cos tan ) = r sin 1 +
r2
2
l 1 2 sin
l
Note that vA has been expressed explicitly in terms of by substituting for cos
and tan. This has been done only for sake of clarity. When working with a
computer such substitutions will be automatic once has been defined in terms
of ( = sin 1 (r sin / l ) ).
(b) The angle at which the maximum value of vA occurs is found by solving the
equation dvA/d = 0 for . Evaluating this derivative and solving the resulting
equation for would be difficult without the help of a computer. It turns out that
there are many solutions to this equation, most of which are complex. In the
results that follow we find that the maximum occurs at = 1.261 radians (72.3).
Substitution of this result into the expression for vA yields the maximum speed of
the piston A, vA = 69.6 ft/sec.
Maple Worksheet
> vBA:=cos(theta)/cos(beta)*r*omega;
cos( ) r
vBA :=
r 2 sin( )2
1
L2
> vA:=vB*sin(theta)+vBA*sin(beta);
cos( ) r 2 sin( )
vA := r sin( ) +
r 2 sin( )2
1
L
L2
> L:=14/12: r:=5/12: omega:=1500*2*Pi/60:
>plot(vA,theta=0..2*Pi,labels=[`theta(radians)`,
[HORIZONTAL,VERTICAL]);
vA(ft/sec)`],
labeldirections=
Part (b)
> dvAdtheta:=diff(vA,theta);
dvAdtheta :=
125
625
cos( )
6
84
15625
cos( )2 sin( )2
16464
sin( )2
+
+
( 3/2 )
25
2
25
1
sin( )
sin( )
1
196
196
625
cos( )2
84
25
1
sin( )2
196
should repeat fsolve specifying a range. For example, suppose you wanted the
angle at which the speed is a minimum. From the plot we see that this occurs at
about 5 radians.
> fsolve(dvAdtheta = 0, theta,theta=4..6);
5.021981518
Now we can find the maximum velocity by substitution.
> evalf(subs(theta=1.2612,vA));
69.55144676
Thus, the maximum speed of the piston is vA = 69.6 ft/sec at = 1.261 rad (72.3).
Problem Formulation
The instantaneous center of zero velocity for the link is shown (point C1) in the diagram
to the right. From right triangle COC1 we can find the length CC1 as
CC1 =
(6 sin )2 + (3 cos )2
v B = 3 sin
vB
v
=
3 sin 3 sin
v A = 3 cos = 3 cos
v
3 sin
vA =
v
tan
CC1
v
3 sin
We will let the computer substitute for CC1 as usual. Also note that v must be in
in./sec.
Maple Worksheet
> restart; with(plots):
> v:=3*12;
v := 36
> CC1:=sqrt((6*sin(theta))^2+(3*cos(theta))^2);
CC1 := 3
4 sin ( ) 2 + cos ( ) 2
> vA:=v/tan(theta);
vA :=
36
tan( )
> vC:=CC1/3/sin(theta)*v;
36 4 sin ( ) 2 + cos ( ) 2
vC :=
sin ( )
> p1:=plot([vA/12,vC/12], theta=20*Pi/180..70*Pi/180, color=black, labels=["theta (rads)",""],
title="velocity (ft/sec)"):
> t1:=textplot([.8,3.3,"vA"]):
> t2:=textplot([.8,7,"vC"]):
> display(p1,t1,t2);
r
r
r
r
a A = aO + (a A / O )n + (a A / O )t
The acceleration of O is to the right while the normal
relative acceleration must point from A towards O. Since
is constant, the tangential relative acceleration will be
zero. These considerations lead to the vector diagram
shown to the right. Using the law of cosines,
( )
a A = aO2 + r 2
( )
2aO r 2 cos
Maple Worksheet
> restart; with(plots):
> an:=r*omega^2;
an := r 2
> aA:=sqrt(a0^2+an^2-2*a0*an*cos(theta));
aA :=
> r:=.8; a0:=3;
a0 2 + r 2 4 2 a0 r 2 cos ( )
r := 0.8
a0 := 3
> omega:=2: aA1:=aA:
> omega:=4: aA2:=aA:
> omega:=6: aA3:=aA:
> p1:=plot([aA1,aA2,aA3], theta=0..2*Pi, color=black, labels=["theta (rads)",""],
title="acceleration of A (m/s^2)"):
> t1:=textplot([3,30,"6 rad/s"]):
> t2:=textplot([3,17,"4 rad/s"]):
> t3:=textplot([3,7.5,"2 rad/s"]):
> display(p1,t1,t2,t3);
This problem appears in sample problems 5/9 and 5/15 in your text. Sample
problem 5/9 considers a relative velocity analysis while sample problem 5/15
uses a relative acceleration analysis. Generally speaking, the easiest approach to
use with a computer is an absolute motion analysis, provided you have software
capable of doing symbolic algebra and calculus such as Maple. We will use the
present problem to illustrate this approach.
We start by using the law of sines (sin()/r = sin()/l) to express as a function
of
r
l
= sin 1 sin
where l is the length of connecting rod AB and is the angle between AB and the
horizontal. Now place an x-y coordinate system at O with x positive to the right
and y positive up and write expressions for the coordinates of A and G in terms of
and
x A = r cos l cos
x G = r cos r cos
y G = (l r ) sin
where r is the distance from B to G (4 in. in the figure). All that is needed to find
the velocities vA, vGx, and vGy is to differentiate these expressions with respect to
time. The magnitude of the velocity of G is then found from
2
v G = v Gx + vGy
The accelerations aA, aGx, and aGy are then found by differentiating vA, vGx, and
vGy with the magnitude of the acceleration of G being obtained from,
2
a G = a Gx + a Gy
Since we will be differentiating with respect to time, the first thing we will do in
the computer program is to define as a function of time. Then, when we write
the above expressions for , xA, xG, and yG, the computer will automatically
substitute for rendering each of these as functions of time. Assuming that is
initially zero,
(t ) = t =
1500 (2 )
t = 157 .1t
60
The problem statement asks us to plot versus time for two revolutions ( = 4
radians) of the crank. The time required for two revolutions is 4/157.1 = 0.08
sec.
Maple Worksheet
> restart; with(plots):
> theta:=omega*t;
:= t
> beta:=arcsin(r/L*sin(theta));
r sin( t )
:= arcsin
> xA:=-r*cos(theta)-L*cos(beta);
xA := r cos( t ) L
r 2 sin( t )2
L2
> xG:=-r*cos(theta)-rb*cos(beta);
xG := r cos( t ) rb
r 2 sin( t )2
L2
> yG:=(L-rb)*sin(beta);
( L rb ) r sin( t )
yG :=
L
> vA:=diff(xA,t);
vA := r sin( t ) +
r 2 sin( t ) cos( t )
L
r 2 sin( t )2
L2
vG :=
rb r 2 sin( t ) cos( t )
( L rb )2 r 2 cos( t )2 2
+
r sin( t ) +
2
2
L2
r sin( t ) 2
1
L
L2
> aA:=diff(vA,t);
aA := r cos( t ) 2 +
r 4 sin( t )2 cos( t )2 2
r 2 sin( t )2
L3 1
L2
( 3/2 )
r 2 cos( t )2 2
r 2 sin( t )2
L2
r 2 sin( t )2 2
> aGx:=diff(vGx,t):
> aGy:=diff(vGy,t):
> aG:=sqrt(aGx^2+aGy^2);
aG := sqrt r cos( t ) 2 +
rb r 4 sin( t )2 cos( t )2 2
r 2 sin( t )2
1
L2
( 3/2 )
L4
rb r 2 cos( t )2 2
1
r 2 sin( t )2 2
L
L2
( L rb )2 r 2 sin( t )2 4
+
L2
r 2 sin( t )2 2
1
L
rb r 2 sin( t )2 2
>
> r:=5/12: L:=14/12: omega:=157.1: rb:=4/12:
> p1:=plot([vA,vG],t=0..0.08,labels=[`t (sec)`,` `], title="velocity (ft/s)"):
> t1:=textplot([.02,55,"vG"]): t2:=textplot([.02,20,"vA"]):
> display(p1, t1, t2);
r 2 sin( t )2
L2
Suppose you wanted to solve this problem for the case where crank OB has a
constant angular acceleration = 60 rad/s2. It turns out that you can solve this
problem using exactly the same approach as above, changing only one line
defining the dependence of upon time. Assuming that the system starts from
rest at = 0, the appropriate expression for is (t) = t2 = 30t2. The
accelerations for this case are shown below in case you want to give it a try.
PLANE KINETICS OF
RIGID BODIES
This chapter concerns the motion (translation and rotation) of rigid bodies that
results from the action of unbalanced external forces and moments. In problem
6.1, five equations are solved for five unknowns. The problem illustrates an
alternative to the blunt (but straightforward) simultaneous solution of multiple
equations. Instead, the equations are solved in such a way that there is never
more than one unknown. In this way, the results are immediately obtained via
automatic substitution in Maple, thus avoiding some tedious algebra. The force at
the hinge of a pendulum is plotted versus the angular position of the pendulum in
problem 6.2. The algebra is rather simple in this case and Maple is used primarily
for purposes of plotting. Problems 6.3 and 6.4 consider rigid bodies in general
plane motion. solve is used in problem 6.3 to solve two equations simultaneously
for two unknowns. The maximum acceleration of a point on the rigid body is
then obtained by using diff and solve. In this problem Maple is unable to find a
symbolic result and automatically switches to a numerical approach finding five
solutions to the equation. This problem is also interesting since a very natural
guess of the value for the maximum acceleration turns out to be incorrect.
Problem 6.4 is an example of a kinetics problem that also requires some
kinematics. The angular acceleration of a bar is determined by summing
moments. The kinematic equation d = d is then integrated to obtain the
angular velocity. Problem 6.5 is an interesting work and energy problem that is
complicated considerably by the fact that a spring is engaged for only part of the
motion of a rotating bar. Symbolic algebra simplifies this problem considerably,
though it is still rather tedious. It is common in Dynamics to find problems that
require a combination of methods for their solution. Problem 6.6 is a good
example involving both conservation of momentum and work/energy.
[M C
= 0]
M r At = 0
(1)
As pointed out in the sample problem, the force and moment equations are
identical to the equilibrium equations whenever the mass is negligible.
From the free-body diagram of the vertical bar,
[M A = ma d ]
[Ft
= mat ]
[Fn = ma n ]
(2)
At mg cos = mr
(3)
B An + mg sin = mr 2
(4)
d = d
(5)
At this point we have a total of 5 equations and 6 unknowns (M, , , At, An, and
B). In part (a), M is specified while in part (b) is given. In both cases we will
have 5 equations and 5 unknowns; however, it will be necessary to solve no more
than one equation at a time provided they are done in the right order. This is what
yields a different procedure for parts (a) and (b).
Part (a)
With M known we can find At from Equation (1) and then substitute the result
into Equation (3) to get as a function of .
At =
M
r
At g
cos
mr r
1 2
g
A
= t cos d
2
mr r
g
At
sin
r
mr
2 = 2
Finally, we can substitute into Equations (2) and (4) to find B and then An.
B=
mr rAG
2 cos + sin
rAB cos
An = B + mg sin mr 2
A=
An2 + At2
Part (b)
2 = 2 d = 2 d = 2
At = mg cos + mr
Now we can substitute into Equations (1), (2) and (4) to find M, B and then An.
M = r At
B=
mr rAG
2 cos + sin
rAB cos
An = B + mg sin mr 2
A=
An2 + At2
Maple Worksheet
> restart;
part (a)
> A:=sqrt(An^2+At^2);
A := An2 + At2
> An:=B+m*g*sin(theta)-m*r*omegasq;
An := B + m g sin( ) m r omegasq
> B:=m*r*AG/AB/cos(theta)*(omegasq*cos(theta)+alpha*sin(theta));
m r AG ( omegasq cos( ) + sin( ) )
B :=
AB cos( )
> alpha:=At/m/r-g/r*cos(theta);
At
g cos( )
:=
mr
r
> omegasq:=2*(At*theta/m/r-g/r*sin(theta));
2 At 2 g sin( )
omegasq :=
mr
r
> At:=M/AC;
At :=
M
AC
[M O = I O ]
mgr cos = mk 02
[d = d ]
d =
2 =
[F
= mr 2
[Ft = mr ]
2 gr
k 02
gr
k 02
gr
k 02
gr
2
0
cos d = k
cos
sin
sin
O n mg sin = mr 2
Ot + mg cos = mr
r2
O n = mg 1 + 2 2
k0
sin
(On ) 2 + (Ot )2
r2
O t = mg 1 2
k
0
cos
vB := r
> On:=m*g*(1+2*rb^2/k0^2)*sin(theta);
2 rb2
sin( )
On := m g 1 +
k0 2
> Ot:=m*g*(1-rb^2/k0^2)*cos(theta);
rb2
Ot := m g 1 2 cos( )
k0
O :=
2 rb2
rb2
sin( )2 + m 2 g 2 1 2 cos( )2
m2 g 2 1 +
2
k0
k0
where (aG/A)n =
[M
l 2
l
=0, (aG/A)t = .
2
2
= I + ma d
[Fx = ma x ]
0=
l l
l
1
ml 2 + m ma A cos
12
2 2
2
mg sin = m a A cos
2
6( g / l ) sin cos
4 3 cos
2
aA =
4 g sin
4 3 cos 2
At first, the answer to part (b) seems obvious. Intuitively, we would like to say
that the maximum acceleration is aA = g and occurs at = 90. But this intuition
neglects the effects of the bars rotation upon the acceleration. As we will see
below, the maximum acceleration is somewhat larger than g.
The maximum acceleration is obtained in the usual manner. The orientation
where the maximum occurs is first found by solving the equation da A / d = 0
> soln:=solve({eqn1,eqn2},{aA,alpha});
soln := { aA =
4 g sin( )
6 g sin( ) cos( )
,=
}
4 + 3 cos( )2
L ( 4 + 3 cos( ) 2 )
> assign(soln);
> g:=9.81:
> plot([theta*180/Pi,aA,theta=0..Pi/2],labels=["theta (degrees)","aA (m/s^2)"],
labeldirections=[HORIZONTAL,VERTICAL]);
Part (b)
> daA:=diff(aA,theta);
daA := 39.24
cos( )
235.44 sin( )2 cos( )
2
2
4 + 3 cos( )
( 4 + 3 cos( )2 )
> solve(daA=0,theta);
1.570796327 , 2.526112945 , 0.6154797087
Maple has found three solutions, only two of which are in the range from 0 to
90. These two solutions are /2 (90) and 0.6155 rad (35.3). Referring to the
figure above we see that the second solution corresponds to a maximum.
> evalf(subs(theta=.6154797087,aA));
11.32761228
[M
= I + ma d
mg
L
L L
L
1
sin = mL2 + m ma cos
2
12
2 2
2
3
(g sin + a cos )
2L
3
(g (1 cos ) + a sin )
L
Maple Worksheet
> restart;
> eqn:=m*g*L/2*sin(theta)=1/12*m*L^2*alpha+m*(L/2)^2*alpha-m*a*L/2*cos(theta);
1
1
1
eqn := m g L sin( ) = m L2 m a L cos ( )
2
3
2
> alpha:=solve(eqn,alpha);
3 g sin( ) + a cos( )
:=
2
L
> I1:=int(subs(theta=x,alpha),x=0..theta);
3 g cos( ) a sin( ) g
I1 :=
2
L
> omega:=sqrt(2*I1);
:=
3 g cos( ) 3 a sin( ) 3 g
L
(rad/s)"],labeldirections=[HORIZONTAL,VERTICAL]);
v B = CB = 2 sin
Now we need to divide the range for into two distinct intervals depending upon
whether or not the spring has been engaged. Since the velocities for A and B are
known in terms of and , we need to find only the angular velocity in these two
intervals. From the diagram we see that A will first contact the spring at an angle
= sin 1 (18 / 24) = 0.8481 rads (48.6).
(a) Before the spring is engaged ( 48.6).
[T =
1
1
mv 2 + I 2 ]
2
2
T =
1 40
(2 cos )2 + 1 1 40 4 2 2
2 32.2
2 12 32.2
T = 0.8282 4 3 cos 2 2
[ V g = Wh]
= 9.829
1 cos
4 3 cos 2
(b) After the spring is engaged (48.6 90). The kinetic and potential
energies are the same as in part (a). At any angle , point A has moved 2sin feet
to the left. Thus, the spring is compressed by 2sin 18/12 feet.
[V e =
1 2
kx ]
2
Ve =
1 lb in
18
30 12 2 sin 0
2 in ft
12
Ve = 180 2 sin
2
= 2.457
Maple Worksheet
> U12[a]:=0=DT+DVg;
U12a := 0 = .8282 ( 4 3 cos( )2 ) 2 + 80 cos( ) 80
> U12[b]:=DT+DVg+DVe;
3
U12b := .8282 ( 4 3 cos( )2 ) 2 + 80 cos( ) 80 + 180 2 sin( )
2
> solve(U12[a],omega);
9.828276825
( 4. + 3. cos( ) 2 ) ( 1. + cos( ) )
,
4. + 3. cos( ) 2
9.828276825
( 4. + 3. cos( ) 2 ) ( 1. + cos( ) )
4. + 3. cos( )2
It shouldnt be surprising that Maple has found two solutions to the equation. As
you can see, they have the same magnitude with one being positive and the other
negative. The solution of interest is the positive one which turns out to be the
second solution.
> omega[a]:=%[2]; # assigns the second solution to a
> solve(U12[b],omega);
Note that no output followed this statement which means that Maple was unable
to find the solution to this equation for some reason. This is somewhat odd in that
some earlier versions of Maple are able to solve the equation with no difficulty.
Another oddity is that the equation would be rather easy to solve by hand. Rather
than resort to solving by hand let's try a little trick and have Maple solve for
omega squared.
> solve(U12[b],omega^2);
Warning, solving for expressions other than names or functions is not
recommended.
We were successful in this case but you might want to notice the warning.
> omega[b]:=sqrt(%);
b :=
We need to be careful to plot the two results only over the range for which they
are valid. (a) for between 0 and 0 (48.6) and (b) for greater than 0 . Also
note that we use a parametric plot in order to plot versus in degrees instead of
radians.
> pw1:=plot([theta*180/Pi,omega[a],theta=0..theta0], labels=["theta
(deg)","angular velocity (rad/s)"],labeldirections=
[HORIZONTAL,VERTICAL]):
> pw2:=plot([theta*180/Pi,omega[b],theta=theta0..Pi/2]):
> display(pw1,pw2);
Now we find the velocities. Remember that capital A and B refer to points A and
B while lower case a and b refer to cases (a) and (b).
> vA[a]:=2*omega[a]*cos(theta):
> vA[b]:=2*omega[b]*cos(theta):
> vB[a]:=2*omega[a]*sin(theta):
> vB[b]:=2*omega[b]*sin(theta):
Note that for stiff springs, the angular velocity goes to zero before reaching =
90. The physical explanation for this is that, for a stiff spring, the bar will
rebound before it reaches the horizontal position.
v
+ mv (r h )
r
We will use primes to denote the state immediately after impact. Since the wheel
now rotates about A we can use the simpler formula H A = I A . Note that, by the
H A = I A = k 2 + r 2
r
v = v 1 2
2
k +r
1
I A 0 2 2 + mgh
2
1
v
m k 2 + r 2 = mgh
2
r
Substituting the result for v into the above equation followed by simplification
yields,
v=
r 2 gh k 2 + r 2
2
k + r rh
Maple Worksheet
> restart; with(plots):
> Ib:=m*k^2; IA:=m*(k^2+r^2);
Ib := m k2
IA := m ( k2 + r 2 )
> HA:=Ib*v/r+m*v*(r-h);
m k2 v
HA :=
+ m v (r h )
r
> HAp:=IA*vp/r;
HAp :=
m ( k 2 + r 2 ) vp
r
1 m v2 ( k2 + r 2 r h )
eqn :=
=mgh
2
( k 2 + r2 ) r2
> solve(eqn,v);
2 g h r2 + 2 g h k 2 r
,
k 2 + r2 r h
2 g h r2 + 2 g h k2 r
k 2 + r2 r h
Note that it is possible to copy Maple output and then paste it into an input line.
This feature can save a lot of time typing. Here we copy the first solution above
and then copy it into the following expression defining the velocity.
> v:=sqrt(2*g*h*r^2+2*g*h*k^2)*r/(k^2+r^2-r*h);
2 g h r 2 + 2 g h k2 r
v :=
k2 + r 2 r h
> t3:=textplot([.87,4.4,"k=1"]):
> display(p,t1,t2,t3);
Our analysis will follow closely that in the sample problem in your text.
vA = vB + nrA/B
where vA = 502j
vB = 6di
ny nz
100
Expanding the determinant and equating the i, j, and k components yields the
following three equations
d 6 + ny 100 nz = 0
50( 2 nz ) + d nx = 0
2 nx ny = 0
At this point we have three equations with four unknowns. As explained in the
sample problem in your text, the fourth equation comes by requiring n to be
normal to vA/B
n rA/B = 50nx + 100ny + dnz = 0
These four equations will be solved simultaneously for 2, nx, ny, and nz.
Once this is done,
2
2
n = nx2 + ny
+ nz
Maple Worksheet
> restart; with(plots):
> eqn1:=d*(6+omega[ny])-100*omega[nz]=0;
eqn1 := d ( 6 + ny ) 100 nz = 0
> eqn2:=50*(omega[2]-omega[nz])+d*omega[nx]=0;
eqn2 := 50 2 50 nz + d nx = 0
> eqn3:=2*omega[nx]-omega[ny]=0;
eqn3 := 2 nx ny = 0
> eqn4:=50*omega[nx]+100*omega[ny]+d*omega[nz]=0;
eqn4 := 50 nx + 100 ny + d nz = 0
> soln:=solve({eqn1,eqn2,eqn3,eqn4},{omega[2],omega[nx],omega[ny],omega[nz]});
3
d2
d
d2
soln := { 2 = d, nx = 3 2
, nz = 750 2
, ny = 6 2
}
50
d + 12500
d + 12500
d + 12500
> assign(soln);
> omega[n]:=simplify(sqrt(omega[nx]^2+omega[ny]^2+omega[nz]^2));
d2
n := 3 5
2
d + 12500
> p:=plot([omega[2],omega[n]],d=0..200,labels=["d (mm)",""],title="angular
velocity (rad/s)"):
> t1:=textplot([160,11,"omega_2"]):
> t2:=textplot([160,6.1,"omega_n"]):
> display(p,t1,t2);
T=
1
I zz 2
2
The moments and products of inertia for part A remain unchanged. For part B, mB
= 70ab where a and b are in meters. The moments and products of inertia for part
B are
I zz = I zz + md 2 =
mB 2
a
2
a + m B (.125) +
12
2
a b
I xz = I xz + md x d z = 0 + m B
2 2
b
I yz = I yz + md y d z = 0 + m B (0.125)
2
The total moment and products of inertia are found by adding the above to those
found for part A (see the sample problem in your text). After substituting for mB
and simplifying we have,
I zz = 0.00456 + 1.094ab + 23.33a 3b
I xz = 17.5a 2 b 2
I yz = 0.00273 + 4.375ab 2
T = 15 =
Solving for b,
0.17035
a 3 + 64a 2
(for T = 30 J)
Plotting these two functions defines the acceptable regions for a and b.
Part (b)
This is similar to (a) except that we solve two equations (T = 40 and H0 = 5)
simultaneously for two unknowns, a and b. The result is a = 0.1211 m and b =
0.4852 m.
Maple Worksheet
> restart; with(plots):
> Izz:=m[B]/12*a^2+m[B]*(0.125^2+(a/2)^2)+0.00456;
1
1
Izz := mB a 2 + mB .015625 + a 2 + .00456
12
4
> Ixz:=m[B]*a/2*b/2;
1
Ixz := mB a b
4
> Iyz:=m[B]*0.125*b/2+0.00273;
Iyz := .06250000000mB b + .00273
> H0:=omega*sqrt(Ixz^2+Iyz^2+Izz^2): # output has been suppressed
> T:=1/2*Izz*omega^2:
Part (a)
> omega:=30: m[B]:=70*a*b:
> b15:=solve(T=15, b);
b15 := .07892114286
> b30:=solve(T=30, b);
b30 := .1703497143
1
a ( 64. a 2 + 3. )
1
a ( 64. a 2 + 3. )
The two curves above represent the values of a and b for which T is exactly 15 or
30 J. Thus, the acceptable values of a and b satisfying the condition 15 T 30
J are all those combinations lying on or between the two curves.
Part (b)
> solve({H0=5,T=40},{a,b});
{ b = -.4995916826, a = -.1186729553},
{ b = .2865196782+ .2810897606I , a = -.09249618254 .2040591236I },
{ a = -.09249618254+ .2040591236I , b = .2865196782 .2810897606I },
{ b = .06437577589 .7784870381I , a = -.002575144973 .2549173146I },
{ a = -.002575144973+ .2549173146I , b = .06437577589+ .7784870381I },
{ b = -.05367082782 .5793986603I , a = .003496405433 .2650400901I },
{ a = .003496405433+ .2650400901I , b = -.05367082782+ .5793986603I },
{ a = .09037983691 .2043122065I , b = -.2981058787+ .2845590159I },
{ a = .09037983691+ .2043122065I , b = -.2981058787 .2845590159I },
{ b = .4851675635, a = .1210631257}
We see from the above that Maple has found ten solutions to our equations. Of
these only the first and last are real. The first solution has negative values for a
and b and thus can be excluded. This leaves only the last solution,
a = 0.1211 m; b = 0.4852 m
From the initial conditions x 0 = 0.2 and x& 0 = 0 we find C = 0.207 m and =
1.318 rad.
(b) = 1. For = 1, the system is critically damped. The displacement and
velocity are
x = ( A1 + A2 t )e n t = ( A1 + A2 t )e 2t
x& = A2 e 2t 2( A1 + A2 t )e 2t
From the initial conditions x 0 = 0.2 and x& 0 = 0 we find A1 = 0.2 m and A2 = 0.4
m/s.
(c) = 1.75. Since > 1, the system is overdamped. The displacement and
velocity are
+ 2 1 t
n
x = B1 e
2 1 t
n
+ B2 e
= B1 e 0.628t + B 2 e 6.372 t
From the initial conditions x 0 = 0.2 and x& 0 = 0 we find B1 = 0.222 m and B2 =
0.0219 m/s.
Maple Worksheet
> restart; with(plots):
> x[a]:=C*exp(-t/2)*sin(1.937*t+psi);
xa := C e
( 1/2 t )
sin( 1.937 t + )
C := .207
:= 1.318
> x[b]:=(A1+A2*t)*exp(-2*t);
xb := ( A1 + A2 t ) e
( 2 t )
A1 := .2
A2 := .4
> x[c]:=B1*exp(-0.628*t)+B2*exp(-6.372*t);
xc := B1 e
( .628 t )
+ B2 e
( 6.372 t )
B1 := .222
B2 := -.0219
> p:=plot([x[a],x[b],x[c]],t=0..5,color=black,labels=["time (sec)","x (m)"]):
> ta:=textplot([2.2,-0.08,"c = 8"]):
> tb:=textplot([1.6,0.06,"c = 32"]):
> tc:=textplot([1.6,.11,"c = 56"]):
> display(p,ta,tb,tc);
Start with the equation for the critically damped case on page 606 of your text.
x = ( A1 + A2 t )e nt
First we have to evaluate the constants in terms of x0 using the initial conditions.
This will require the derivative of x.
x& = A2 e nt ( A1 + A2 t ) n e nt
Now, substituting the initial conditions,
x(t = 0 ) = x0 = A1
x& (t = 0) = 0 = A2 A1 n
These two equations give
A1 = x 0 and A2 = x0 n
x = ( x0 + x 0 n t )e nt
or
= (1 + n t )e nt
0.1 = (1 + 4t )e 4t
For part (b) we will simply plot for three different natural frequencies n .
Maple Worksheet
> restart; with(plots):
> eta:=(1+omega[n]*t)*exp(-omega[n]*t);
:= ( 1 + n t ) e
( t )
n
> solve(eta=1/10,t);
1 ( -1 )
1 ( -1 )
LambertW e + 1
LambertW -1, e + 1
10
10
,
n
n
Part (a)
> omega[n]:=4;
n := 4
> solve(eta=.1,t);
-0.2404446896, 0.9724300425
Thus, the time t required for the mass to reach the position x = 0.1x0 when
displacement"):
> t1:=textplot([.58,.8,"2 rad/s"]):
> t2:=textplot([.67,.4,"4 rad/s"]):
> t3:=textplot([.58,.15,"8 rad/s"]):
> display(p1,t1,t2,t3);
The particular (steady state) solution was found in the sample problem in your
text,
x p = X sin (t )
where X = 0.01938 m, = 1.724 rad and = 30 rad/sec. Also from the sample
problem, n = k / m = 27.8 rad/sec and = c/2mn = 0.492.
The complete solution is found by adding the complementary (transient) and
particular solutions. Since the system is underdamped ( < 1), the complementary
solution is,
x c = Ce n t sin( d t + )
where d = n 1
x = x c + x p = Ce n t sin( d t + ) + X sin (t )
x = Ce 13.68t sin( 24.2t + ) + 0.01938 sin( 30t 1.724 )
1.675
x& 0 + 1.035
= tan 1
C=
0.0692
sin
:= arctan 1.675
xd0
+
1.035
> C:=.0692/sin(psi);
1+
2.805625
( xd0 + 1.035)2
[HORIZONTAL,VERTICAL]):
> t1:=textplot([.082,.13,"5 ft/s"]):
> t2:=textplot([.04,.05,"0 ft/s"]):
> t3:=textplot([.095,-.07,"- 5 ft/s"]):
>
> display(p1,t1,t2,t3);
Notice how quickly the three cases converge to the steady state solution.