unit28.mws

ORDINARY DIFFERENTIAL EQUATIONS POWERTOOL

Unit 28 -- Application: Unforced Harmonic Motion

Prof. Douglas B. Meade

Industrial Mathematics Institute

Department of Mathematics

University of South Carolina

Columbia, SC 29208

URL: http://www.math.sc.edu/~meade/

E-mail: meade@math.sc.edu

Copyright © 2001 by Douglas B. Meade

All rights reserved

-------------------------------------------------------------------

>

Outline of Unit 28

>

Initialization

> restart;

> with( DEtools ):

> with( plots ):

> with( linalg ):

Warning, the name changecoords has been redefined

Warning, the name adjoint has been redefined

Warning, the protected names norm and trace have been redefined and unprotected

>

28.A Unforced Harmonic Motion

The general form of the ODE for unforced, or free, harmonic motion is

> ode1 := a * diff( x(t), t$2 ) + b * diff( x(t), t ) + c * x(t) = 0;

ode1 := a*diff(x(t),`$`(t,2))+b*diff(x(t),t)+c*x(t)...

>

For a spring-mass system, x(t) represents the displacement, Diff(x,t) is the velocity, a is the mass, b is the damping constant, and c is the spring constant (assuming a linear spring that obeys Hooke's Law). The same model arises for an RLC electrical circuit (see Unit 21). In this case x(t) represents the charge, Diff(x,t) is the current, a is the inductance, b is the resistance, and 1/c is the capacitance ( c is the elastance). Note that in either case, the constant a is positive and b and c are non-negative.

The purpose of this worksheet is to present a thorough analysis of the homogeneous problem. The methods introduced in Unit 19; can be applied to obtain the solution to corresponding nonhomogeneous problems; the discussion in Unit 35 focuses on periodic forcing functions and resonance.

The solution procedure for a second-order linear ODE with constant coefficients calls for a search for exponential solutions

> q1 := factor( eval( ode1, x(t)=exp(lambda*t) ) );

q1 := exp(lambda*t)*(a*lambda^2+b*lambda+c) = 0

>

The characteristic equation is

> chareqn := q1 / exp( lambda*t );

chareqn := a*lambda^2+b*lambda+c = 0

>

and the corresponding characteristic values are

> charvals := solve( chareqn, {lambda} );

charvals := {lambda = 1/2*(-b+sqrt(b^2-4*a*c))/a}, ...

>

28.A-1 Case 1: Underdamped Motion ( b^2-4*a*c < 0 )

When b^2-4*a*c < 0, the characteristic values are complex conjugates that can be written as

> lambda[1] := alpha + beta*I;

lambda[1] := alpha+I*beta

> lambda[2] := alpha - beta*I;

lambda[2] := alpha-I*beta

>

where alpha = b/2 and beta = sqrt(4*a*c-b^2) .

>

The general solution is a linear combination of exponentially damped trigonometric functions

> X[1] := exp( -alpha * t ) * cos( beta * t );

> X[2] := exp( -alpha * t ) * sin( beta * t );

X[1] := exp(-alpha*t)*cos(beta*t)

X[2] := exp(-alpha*t)*sin(beta*t)

>

> X[h] := c[1] * X[1] + c[2] * X[2];

X[h] := c[1]*exp(-alpha*t)*cos(beta*t)+c[2]*exp(-al...

>

or, equivalently,

> X[h2] := A * exp( -alpha*t ) * sin( beta*t + phi );

X[h2] := A*exp(-alpha*t)*sin(beta*t+phi)

>

where A = sqrt(c[1]^2+c[2]^2) , sin(phi) = c[1]/A , and cos(phi) = c[2]/A . In this form, A*exp(-alpha*t) is the damped amplitude, beta/2/Pi is the quasi-frequency, 2*Pi/beta is the quasi-period, and phi is the phase angle.

The decaying exponential term forces all solutions to decay to the zero function as t increases.

>

28.A-2 Case 2: Critically Damped Motion ( b^2-4*a*c = 0 )

When b^2-4*a*c = 0 there is a double root to the characteristic equation:

> lambda[1] := -b / 2;

> lambda[2] := -b / 2;

lambda[1] := -1/2*b

lambda[2] := -1/2*b

>

Two linearly independent solutions to the ODE in this case are

> X[1] := exp( lambda[1]*t );

X[1] := exp(-1/2*b*t)

> X[2] := t * X[1];

X[2] := t*exp(-1/2*b*t)

>

and the general solution is

> X[h] := c[1]*X[1] + c[2]*X[2];

X[h] := c[1]*exp(-1/2*b*t)+c[2]*t*exp(-1/2*b*t)

>

Subcase 1: b > 0

So long as b > 0 the common exponential factor overwhelms the linear growth and forces all solutions to zero. The decay to zero is not necessarily monotonic. The general solution to the critically damped equation has a critical point at

> dX[h] := factor( diff( X[h], t ) );

dX[h] := -1/2*exp(-1/2*b*t)*(c[1]*b-2*c[2]+c[2]*t*b...

> t_crit := solve( dX[h]=0, t );

t_crit := -(c[1]*b-2*c[2])/(c[2]*b)

>

which is positive if and only if c[2] <> 0 and c[1]/c[2] < 2/b .

>

Subcase 2: b = 0

Note that if b = 0, then 4*a*c = 0 and a > 0 imply that c = 0 . In this case the ODE simplifies to

> eval( ode1, [a=1,b=0,c=0] );

diff(x(t),`$`(t,2)) = 0

a fundamental set of solutions is

> eval( X[1], b=0 );

> eval( X[2], b=0 );

1

t

>

and the general solution is a linear function. Hence, solutions do not tend to zero as t increases. In fact, except in special cases where the solution is a constant function, the solutions become unbounded as t increases.

>

28.A-3 Case 3: Overdamped Motion ( b^2-4*a*c > 0 )

The third case is the most straightforward. If b^2-4*a*c > 0, then there are two distinct real characteristic values.

> lambda[1] := eval( lambda, charvals[1] );

> lambda[2] := eval( lambda, charvals[2] );

lambda[1] := 1/2*(-b+sqrt(b^2-4*a*c))/a

lambda[2] := 1/2*(-b-sqrt(b^2-4*a*c))/a

>

that produce a fundamental set of solutions

> X[1] := exp( lambda[1]*t );

> X[2] := exp( lambda[2]*t );

X[1] := exp(1/2*(-b+sqrt(b^2-4*a*c))*t/a)

X[2] := exp(1/2*(-b-sqrt(b^2-4*a*c))*t/a)

>

and general solutions

> X[h] := c[1]*X[1] + c[2]*X[2];

X[h] := c[1]*exp(1/2*(-b+sqrt(b^2-4*a*c))*t/a)+c[2]...

Observe that, because 0 < b^2-4*a*c <= b^2 , both characteristic values are negative. In fact, lambda[2] < lambda[1] < 0. All solutions to an overdamped equation ultimately decay to zero as t increases. But, just as with the critically damped case, the solution can have one critical point:

> dX[h] := diff( X[h], t ):

> tcrit := solve( dX[h] = 0, t );

tcrit := -ln(-c[1]*(b-sqrt(b^2-4*a*c))/(c[2]*(b+sqr...

>

To determine when the critical point occurs with t > 0, observe that the location of the critical point can be expressed as t[crit] = - a/sqrt(b^2-4*a*c) ln( c[1]/c[2] lambda[1]/lambda[2] ). This time is positive precisely when 0 < c[1]/c[2] lambda[1]/lambda[2] < 1.

>

To conclude, note that except for the trivial case with b = c = 0, all solutions to the ODE for simple harmonic motion are transient solutions. This means that the steady-state behavior of a solution for a forced harmonic motion problem depends on the forcing function, i.e. , on a particular solution to the nonhomogeneous problem.

>

[Back to ODE Powertool Table of Contents]

>