MAT 275 Laboratory 6 Forced Equations and Resonance

Similar documents
MAT 275 Laboratory 6 Forced Equations and Resonance

Laboratory 10 Forced Equations and Resonance

LABORATORY 10 Forced Equations and Resonance

MAT 275 Laboratory 4 MATLAB solvers for First-Order IVP

MAT 275 Laboratory 4 MATLAB solvers for First-Order IVP

MAT 275 Laboratory 4 MATLAB solvers for First-Order IVP

Notes on the Periodically Forced Harmonic Oscillator

Forced Mechanical Vibrations

Lesson 11: Mass-Spring, Resonance and ode45

1. (10 points) Find the general solution to the following second-order differential equation:

Second order linear equations

Solutions for homework 5

Pure and Practical Resonance in Forced Vibrations

MATH 23 Exam 2 Review Solutions

Math 215/255 Final Exam (Dec 2005)

Lecture Notes for Math 251: ODE and PDE. Lecture 16: 3.8 Forced Vibrations Without Damping

Math 216 Second Midterm 19 March, 2018

Solutions to the Homework Replaces Section 3.7, 3.8

1 Simple Harmonic Oscillator

The Harmonic Oscillator

Linear and Nonlinear Oscillators (Lecture 2)

Math Assignment 5

Linear Second Order ODEs

Work sheet / Things to know. Chapter 3

M A : Ordinary Differential Equations

Solutions to the Homework Replaces Section 3.7, 3.8

Section 3.7: Mechanical and Electrical Vibrations

Math 211. Substitute Lecture. November 20, 2000

Lab 11 - Free, Damped, and Forced Oscillations

Seminar 6: COUPLED HARMONIC OSCILLATORS

L = 1 2 a(q) q2 V (q).

1 Pushing your Friend on a Swing

LAB #6 The Swaying Building

MASSACHUSETTS INSTITUTE OF TECHNOLOGY Department of Physics 8.02 Spring 2003 Experiment 17: RLC Circuit (modified 4/15/2003) OBJECTIVES

2.3 Oscillation. The harmonic oscillator equation is the differential equation. d 2 y dt 2 r y (r > 0). Its solutions have the form

natural frequency of the spring/mass system is ω = k/m, and dividing the equation through by m gives

Chapter 1: Introduction

2 Solving Ordinary Differential Equations Using MATLAB

Keble College - Hilary 2014 CP3&4: Mathematical methods I&II Tutorial 5 - Waves and normal modes II

Differential Equations

Chapter 2: Complex numbers

Math 216 Second Midterm 16 November, 2017

2. Determine whether the following pair of functions are linearly dependent, or linearly independent:

Chapter 3: Second Order Equations

Periodicity. Discrete-Time Sinusoids. Continuous-time Sinusoids. Discrete-time Sinusoids

Chapter 4 The Fourier Series and Fourier Transform

PREMED COURSE, 14/08/2015 OSCILLATIONS

Numerical Methods for Initial Value Problems; Harmonic Oscillators

Physics 326 Lab 6 10/18/04 DAMPED SIMPLE HARMONIC MOTION

Numerical Methods for Initial Value Problems; Harmonic Oscillators

Lab 1: Damped, Driven Harmonic Oscillator

Physics 4 Spring 1989 Lab 5 - AC Circuits

Section 3.4. Second Order Nonhomogeneous. The corresponding homogeneous equation

Thursday, August 4, 2011

Computer lab for MAN460

Lab 1: damped, driven harmonic oscillator

Section 4.9; Section 5.6. June 30, Free Mechanical Vibrations/Couple Mass-Spring System

Physics with Matlab and Mathematica Exercise #1 28 Aug 2012

Vector Fields and Solutions to Ordinary Differential Equations using Octave

The Spring Pendulum. Nick Whitman. May 16, 2000

Springs: Part II (Forced Vibrations)

Introductory Physics. Week 2015/05/29

Matlab Sheet 3. Plotting in Matlab

Vibrations and waves: revision. Martin Dove Queen Mary University of London

APPLICATIONS OF SECOND-ORDER DIFFERENTIAL EQUATIONS

MATH 251 Week 6 Not collected, however you are encouraged to approach all problems to prepare for exam

4. Complex Oscillations

HOMEWORK 4: MATH 265: SOLUTIONS. y p = cos(ω 0t) 9 ω 2 0

A: Brief Review of Ordinary Differential Equations

L = 1 2 a(q) q2 V (q).

Homogeneous Equations with Constant Coefficients

Laboratory handouts, ME 340

Chapter 2: Linear Constant Coefficient Higher Order Equations

Selected Topics in Physics a lecture course for 1st year students by W.B. von Schlippe Spring Semester 2007

Modeling with Differential Equations

Damped Oscillation Solution

HB Coupled Pendulums Lab Coupled Pendulums

4.9 Free Mechanical Vibrations

Undamped Free Vibrations (Simple Harmonic Motion; SHM also called Simple Harmonic Oscillator)

Vibrational Motion. Chapter 5. P. J. Grandinetti. Sep. 13, Chem P. J. Grandinetti (Chem. 4300) Vibrational Motion Sep.

Introduction Course Goals Review Topics. MCE371: Vibrations. Prof. Richter. Department of Mechanical Engineering. Handout 1 Fall 2017

Laboratory handout 5 Mode shapes and resonance

Mixing Problems. Solution of concentration c 1 grams/liter flows in at a rate of r 1 liters/minute. Figure 1.7.1: A mixing problem.

Physics 8 Monday, December 4, 2017

Module 24: Outline. Expt. 8: Part 2:Undriven RLC Circuits

Forced Oscillations in a Linear System Problems

Date: 1 April (1) The only reference material you may use is one 8½x11 crib sheet and a calculator.

Experiment 3: Resonance in LRC Circuits Driven by Alternating Current

Date: 31 March (1) The only reference material you may use is one 8½x11 crib sheet and a calculator.

x = B sin ( t ) HARMONIC MOTIONS SINE WAVES AND SIMPLE HARMONIC MOTION Here s a nice simple fraction: y = sin (x) Differentiate = cos (x)

EM Oscillations. David J. Starling Penn State Hazleton PHYS 212

Faculty of Computers and Information. Basic Science Department

Coupled Electrical Oscillators Physics Advanced Physics Lab - Summer 2018 Don Heiman, Northeastern University, 5/24/2018

Manifesto on Numerical Integration of Equations of Motion Using Matlab

Applications of Second-Order Differential Equations

Undetermined Coefficents, Resonance, Applications

Lecture 6: Differential Equations Describing Vibrations

Computation Of Natural Frequencies Of Multi Degree Of Freedom System

PHYSICS. Chapter 15 Lecture FOR SCIENTISTS AND ENGINEERS A STRATEGIC APPROACH 4/E RANDALL D. KNIGHT Pearson Education, Inc.

Chapter 14 Oscillations

Transcription:

MATLAB sessions: Laboratory 6 MAT 275 Laboratory 6 Forced Equations and Resonance In this laboratory we take a deeper look at second-order nonhomogeneous equations. We will concentrate on equations with a periodic harmonic forcing term. This will lead to a study of the phenomenon known as resonance. The equation we consider has the form d 2 y dt 2 +cdy dt +ω2 y = cosωt. (L6.) This equation models the movement of a mass-spring system similar to the one described in Laboratory 5. The forcing term on the right-hand side of (L6.) models a vibration, with amplitude and frequency ω (in radians per second = 6 2π rotation per second = 2π rotations per minute, or RPM) of the plate holding the mass-spring system. All physical constants are assumed to be positive. When c 2 < ω the general solution of (L6.) is y(t) = e 2 ct (c cos(ω t)+c 2 sin(ω t))+ccos(ωt α) (L6.2) with C = (ω 2 ω2 ) 2 +c 2 ω 2, (L6.3) ( cω arctan α = ( π+arctan ω 2 ω2 ) ) cω ω 2 ω2 if ω > ω if ω < ω (L6.4) andc andc 2 determinedbythe initialconditions. The firsttermin (L6.2)representsthecomplementary solution, that is, the general solution to the homogeneous equation (independent of ω), while the second term represents a particular solution of the full ODE. Note that when c > the first term vanishes for large t due to the decreasing exponential factor. The solution then settles into a (forced) oscillation with amplitude C given by (L6.3). The objectives of this laboratory are then to understand. the effect of the forcing term on the behavior of the solution for different values of ω, in particular on the amplitude of the solution. 2. the phenomena of resonance and beats in the absence of friction. The Amplitude of Forced Oscillations We assume here that ω = 2 and c = are fixed. Initial conditions are set to. For each value of ω, the amplitude C can be obtained numerically by taking half the difference between the highs and the lows of the solution computed with a MATLAB ODE solver after a sufficiently large time, as follows: (note that in the M-file below we set ω =.4). function LAB6ex 2 omega = 2; c = ; omega =.4; 3 param = [omega,c,omega]; 4 t = ; y = ; v = ; Y = [y;v]; tf = 5; 5 options = odeset( AbsTol,e-, RelTol,e-); 6 [t,y] = ode45(@f,[t,tf],y,options,param); 7 y = Y(:,); v = Y(:,2); 8 figure()

2 MATLAB sessions: Laboratory 6 9 plot(t,y, b- ); ylabel( y ); grid on; t = 25; i = find(t>t); C = (max(y(i,))-min(y(i,)))/2; 2 disp([ computed amplitude of forced oscillation = num2str(a)]); 3 Ctheory = /sqrt((omega^2-omega^2)^2+(c*omega)^2); 4 disp([ theoretical amplitude = num2str(atheory)]); 5 %---------------------------------------------------------------- 6 function dydt = f(t,y,param) 7 y = Y(); v = Y(2); 8 omega = param(); c = param(2); omega = param(3); 9 dydt = [ v ; cos(omega*t)-omega^2*y-c*v ]; When executing this program we get computed amplitude of forced oscillation =.447 theoretical amplitude =.447 Lines -4 deserve some explanation. Line defines a time t after which we think the contribution of the first term in (L6.2) has become negligible compared to the second term. This depends of course on the parameter values, in particular c. With c = we obtain e 2 ct 3.7 6 for t = 25, so this is certainly small enough compared to the amplitude seen on Figure L6a. The index i of time values larger than t is then determined. The quantity Y(i,) refers to the values of y associated to times larger than t only. The computed amplitude is simply half the difference between the max and the min values. This value is compared to the theoretical value (L6.3)..5.4.3.2. y..2.3.4.5 2 3 4 5 Figure L6a: Forced oscillation.. (a) What is the period of the forced oscillation? What is the numerical value (modulo 2π) of the angle α defined by (L6.4)? (b) In this question you are asked to modify the file LAB6ex.m in order to plot the complementary solution of (L6.), that is, the first term in (L6.2). First define in the file the angle α

MATLAB sessions: Laboratory 6 3 (alpha) using (L6.4), then evaluate the complementary solution yc by subtracting the quantity Ccos(ωt α) from the numerical solution y. Plot the resulting quantity. Does it look like an exponentially decreasing oscillation? Why or why not? Include the modified M-file and the corresponding plot. 2. We now consider C as a function of ω. We use again ω = 2, c = and y() = y () =. The previous problem determined C for a specific value of ω. Here we consider a range of values for ω and determine numerically the corresponding amplitude C. We then plot the result as a function of ω, together with the theoretical amplitude from (L6.3). You may need the following MATLAB program. function LAB6ex2 omega = 2; c = ; OMEGA = :.2:3; C = zeros(size(omega)); t = ; y = ; v = ; Y = [y;v]; tf = 5; t = 25; for k = :length(omega) omega = OMEGA(k); param = [omega,c,omega]; [t,y] = ode45(@f,[t,tf],y,[],param); i = find(t>t); C(k) = (max(y(i,))-min(y(i,)))/2; Ctheory(k) =??; end figure() plot(??); grid on; % FILL-IN % FILL-IN xlabel( \omega ); ylabel( C ); %--------------------------------------------------------- function dydt = f(t,y,param) y = Y(); v = Y(2); omega = param(); c = param(2); omega = param(3); dydt = [ v ; cos(omega*t)-omega^2*y-c*v ];.55.5.45.4 C.35.3.25.2.5 2 2.5 3 ω Figure L6b: Amplitude as a function of ω

4 MATLAB sessions: Laboratory 6 (a) Fill in the missing parts in the M-file LAB6ex2.mand execute it. You should get a figure like Figure L6b. Include the modified M-file in your lab report. (b) Examine the graph obtained by running LAB6ex2.m and determine for what (approximate) value of ω the amplitude of the forced oscillation, C, is maximal. This value of ω is called the practical resonance frequency. Give the corresponding maximum value of C. (c) Determine analytically the value of ω for which the amplitude of the forced oscillation, C, is maximal by differentiating the expression for C in (L6.3) as a function of ω. Compare the value you find with the value obtained in part (b). (d) Run LAB6ex.m with the value of ω found in part (c) (include the graph). What is the amplitude of the forced oscillation? How does it compare with the amplitude of the forced oscillation in problem.? If you run LAB6ex.m with any other value of ω, how do you expect the amplitude of the solution to be? (e) Are the results affected by changes in the initial conditions? Answer this question both numerically (by modifying the initial conditions in LAB6ex2.m) and theoretically (by analyzing the expression for C in (L6.3)). Note that the initial conditions for the DE are y and v. Resonance We now investigate what happens to the solution (L6.2), and more specifically to the maximal amplitude C ofthe forced oscillation, when we let c. The value ofω correspondingto this maximal amplitude is called pure resonance frequency. When a mechanical system is stimulated by an external force operating at this frequency the system is said to be resonant. 3. Set c = in LAB6ex2.m. 4 2 computed numerically theoretical 8 C 6 4 2.5 2 2.5 3 ω Beats (a) Explain what happens. What is the maximal amplitude? What is the frequency ω yielding the maximal amplitude in the forced solution? How does this frequency compare to ω? (b) Run LAB6ex.m with c = and ω equal to the value found in part (a). Comment on the behavior of the solution. Include the graph. When c = and ω ω, the solution (L6.2) to (L6.) reduces to y(t) = c cos(ω t)+c 2 sin(ω t)+ccos(ωt α)

MATLAB sessions: Laboratory 6 5 with C =. If the initial conditions are set to zero, the solution reduces to ω 2 ω2 y(t) = C(cos(ωt) cos(ω t)) which can be rewritten as ( ) ( ) y(t) = 2Csin 2 (ω ω)t sin 2 (ω +ω)t. When ω is close to ω we have that ω + ω is large in comparison to ω ω. Then sin ( 2 (ω +ω)t ) is a very rapidly varying function, whereas sin ( 2 (ω ω)t ) is a slowly varying function. If we define A(t) = 2Csin ( 2 (ω ω)t ), then the solution can be written as ( ) y(t) = A(t)sin 2 (ω +ω)t and we may interpret it as a rapidly oscillating function with period T = 4π ω +ω, but with a slowlyvarying amplitude A(t). This is the phenomenon known as beats. Note that A(t) and A(t) are the so-called 4π envelope functions. The period of A(t) is ω, thus the period of the beats is 2π ω ω. ω 4. To see the beats phenomenon, set c = and ω =.8 in LAB6ex. Also extend the interval of simulation to. 3 2 y 2 3 2 4 6 8 (a) Define the envelope function A = 2Csin ( 2 (ω +ω)t ) in LAB6ex and then plot A in red and A in green, together with the solution. You should obtain a picture like the following. Include he modified M-file.

6 MATLAB sessions: Laboratory 6 3 2 y 2 3 2 4 6 8 (b) What is the period of the fast oscillation (that is, the period of sin ( 2 (ω +ω)t ) )? Confirm your answer by zooming in on the graph of the solution. Include a graph to support your answer. (c) What is the length of the beats? Determine this period analytically using the envelope functions, and numerically from the graph. (d) Change the value of ω in LAB6ex to.9 (a value closer to ω ) and then ω =.6 ( a value farther away from ω ). Include the two graphs. For each of these two values of ω find the period ofthe fast oscillationand the length ofthe beats. Howdo the periodschangecompared to parts (b) and (c)? (e) If you let ω =.5, is the beats phenomenon still present? Why or why not?