Docsity
Docsity

Prepare for your exams
Prepare for your exams

Study with the several resources on Docsity


Earn points to download
Earn points to download

Earn points by helping other students or get them with a premium plan


Guidelines and tips
Guidelines and tips

Lab Session 8: Understanding Vibration in Applied Differential Equations I - Prof. John E., Lab Reports of Differential Equations

Instructions for a lab session on applied differential equations i, focusing on the role of damping in free vibration problems and the phenomenon of beats and resonance in forced vibration problems. It also covers using the 'dsolve' maple tool to find the general solution of odes and applying initial conditions. Examples of solving ivps with varying damping coefficients and plotting the results.

Typology: Lab Reports

Pre 2010

Uploaded on 08/19/2009

koofers-user-i2m
koofers-user-i2m 🇺🇸

4

(1)

10 documents

1 / 4

Toggle sidebar

This page cannot be seen from the preview

Don't miss anything!

bg1
Math 2310 - Applied Differential Equations I
Lab Session 8
Goals:
(1) A better understanding of Mechanical Vibration (Spring-Mass) problems specifically focusing on:
(a) The role of damping in Free Vibration problems.
(b) A mathematical understanding of the phenomenon of Beats and Resonance in Forced Vibration
problems.
(2) Competence using the "dsolve" Maple tool to aid in goal (1).
Invoke the following Maple command to use Maple to find the general solution of the ODE
= +
2
t t ( )y t2
t( )y t( )y t0
> dsolve(diff(y(t),t$2)-2*diff(y(t),t)+y(t) = 0, y(t));
=( )y t+_C1 et_C2 ett
Solutions to IVPs are no more difficult. To obtain the solution to
= +
2
t t ( )y t2
t( )y t( )y t0
=( )y 0 2
=( )( )D y0 1
only the initial conditions need to be included in the "dsolve" call. Note the notation used to describe the ICs
and the enclosure of the ODE and ICs within {}’s.
> dsolve({diff(y(t),t$2)-2*diff(y(t),t)+y(t) = 0, y(0)=2,
D(y)(0)=1}, y(t));
=( )y t2etett
This result indicates that application of the specified ICs leads to the values of _C1=2 and _C2=-1. Using
these in the previously determined general solution selects the unique function satisfying not only the ODE,
but the ICs as well.
Finally, to plot the solution to the above IVP, use the following sequence of commands. Maple’s return at
each step is shown.
> soln_y:=dsolve({diff(y(t),t$2)-2*diff(y(t),t)+y(t) = 0,
y(0)=2, D(y)(0)=1}, y(t));
:= soln_y =( )y t2etett
pf3
pf4

Partial preview of the text

Download Lab Session 8: Understanding Vibration in Applied Differential Equations I - Prof. John E. and more Lab Reports Differential Equations in PDF only on Docsity!

Math 2310 - Applied Differential Equations I Lab Session 8

Goals: (1) A better understanding of Mechanical Vibration (Spring-Mass) problems specifically focusing on: (a) The role of damping in Free Vibration problems. (b) A mathematical understanding of the phenomenon of Beats and Resonance in Forced Vibration problems. (2) Competence using the "dsolve" Maple tool to aid in goal (1).

Invoke the following Maple command to use Maple to find the general solution of the ODE

∂^2

t t

y( ) t 2

t

y( ) t y( ) t 0

> dsolve(diff(y(t),t$2)-2*diff(y(t),t)+y(t) = 0, y(t));

y( ) t = _C1 e t^ + _C2 e t^ t

Solutions to IVPs are no more difficult. To obtain the solution to

∂^2

t t

y( ) t 2

t

y( ) t y( ) t 0

y 0( ) = 2 D( y )( 0 ) = 1

only the initial conditions need to be included in the "dsolve" call. Note the notation used to describe the ICs and the enclosure of the ODE and ICs within {}’s.

> dsolve({diff(y(t),t$2)-2*diff(y(t),t)+y(t) = 0, y(0)=2,

D(y)(0)=1}, y(t));

y( ) t = 2 e t^ − e t^ t

This result indicates that application of the specified ICs leads to the values of _C1=2 and _C2=-1. Using these in the previously determined general solution selects the unique function satisfying not only the ODE, but the ICs as well.

Finally, to plot the solution to the above IVP, use the following sequence of commands. Maple’s return at each step is shown.

> soln_y:=dsolve({diff(y(t),t$2)-2*diff(y(t),t)+y(t) = 0,

y(0)=2, D(y)(0)=1}, y(t));

soln_y :=y( ) t = 2 e t^ − e t^ t

The following "assign" call in Maple converts the Maple expression named soln_y to a Maple function named y( ) t which will allow you to plot the solution Maple determined using "dsolve".

> assign(soln_y);

> plot(y(t), t=0..2);

t

0.2 0.4 0.6 0.8 1 1.2 1.4 1.6 1.8 2

2

1

0

The last step of the process is to clear Maple’s memory of the current expression for y(t) with the "unassign" command. If this is not done, subsequent expressions involving y(t) will lead to error warnings.

> unassign(y);

Here is an example of how Maple can be used to study the effect of varying the damping coefficient for the spring-mass system modeled by

m + + =

∂^2

t t

u( ) t d

t

u( ) t k u( ) t 0

u 0( ) = u D( u )( 0 ) = du

To begin, assign specific values for the mass ( m ) and spring constant ( k ) which will remain constant in our study.

> m:=2;

m := 2

> k:=32;

k := 32

Input the desired initial conditions as well. Here the mass is assumed 2 units below the equilibrium position and released with no initial velocity at t =0.

> u0:=2;

u0 := 2

And finally create a plot showing all 4 of the resulting motions on the same graph (Make sure you know which is which?).

> plot([u1(t), u2(t), u3(t), u4(t)], t=0..4,

color=[red,blue,green,magenta]);

t

1 2 3 4

2

1

0 -0. -0. -0. -0.

If you would like to study the behavior of a spring-mass system involving different values of m,d,k,u0 & du0, you need to clear the Maple memory of the assigned functions u1 - u4 using the 4 commands below, input the new desired values of m,d,k,u0 & du0 in the above assignment statements, and "return" your way through the sequence of commands which followed (ie, you don’t have to retype everything!).

> unassign(u1,u2,u3,u4);