spring-mass systems

spring-mass systems

Every state space model is, in the end, built up from only two types of subsystems. The overall system can always be rewritten as a sum of these subsystems. Each subsystem is completely independent of the others : they don't "see" each other, though this is not always directly apparent from a first look at the full model.

  In mechanical terms, each of these subsystems is either a first order "damper-mass" system, or a second order "spring-mass" system. The first order "dampers"were discussed here. This section will discuss the "spring-mass" sub­systems, which may also have their own damping.

an undamped spring

We will begin with an undamped spring-mass system ( or a pendulum ). The mechanical spring wants to return the mass to a reference position. For a zero reference, the spring force is :

F   =   − k  .  x (1)

Here x is the mass position's deviation from the reference. It is also the elongation of the spring. The pro­port­ion­ality constant k is called the stiffness of the spring. We apply this force to Newton's law for a floating mass :

F   =   m  .  a (2)

Here a is the acceleration, the change of the velocity with time. The acceleration is the derivative with time of the velocity, and the velocity is the derivative with time of the position. This makes the acceleration equal to the second derivative of the position. In Newton's dot notation for change with time, the second derivative becomes a double dot. Subsituting (1) into (2) we have :

x ••   =   − k m  .  x (3)

In the mass- damper we needed a function which was its own derivative ( give or take a constant factor ). This time we are looking for a function which is its own second derivative, give or take a factor ( or a minus sign ).

  Such a function is the cosine, or alternatively the sine. From trigonometry, we know that d/dt ( cos t ) = − sin t, and d/dt ( sin t ) = cos t. Together this makes :

d2 ( cos  t ) / d t 2   =   −  cos  t (4)

Like in the case of the first order exponential, any constant factor on the argument t will appear in the derivative, but this time it will appear twice. It is customary to apply the following definition :

ω2   ≡   km (5)

We can then make (4) fit (3) by replacing the argument by ω t :

d2 ( cos  ω   t )  /  d t 2   =   −  ω 2   cos  ω   t (6)

The constant ω is the frequency of oscillation, measured in radians per second. Note that ωit is the square root of the stiffness over the mass. Starting from an initial position xo, the solution becomes :

x   =   xo .  cos   ω . t (7)

The minus sign in (3) has been absorbed in (4).

  The solution with the cosine is very direct, but it feels a bit heuristic. If we approach the problem in the spirit of state space analysis, then we should replace the derivative by the so-called Laplace operator s. Equation (3) then becomes :

s 2  .  x + k m  .  x   =   0 (8)

Eliminating x, we find :

s 2  =  − k m (9)

This is almost identical to (5), and therefore s is also called the "complex frequency". The fact that it is complex, or in this case even completely imaginary, follows from the fact that it is the square root of a negative number. If we borrow the notation ω for the square root of k / m from (5) then the roots of this equation are :

s1,2   =   ±  i  ω (10)

But it is not so obvious why s should be a frequency, and how it would relate to the cosine solution. This goes back to a set of famous formulas about complex numbers by Euler, which relate complex exponentials to trigo­nometry. The basic equation, written here directly with the argument ω t is :

e  i  ω   t = cos ω   t + i . sin ω t (11)

Writing the same formula with ( − ω t ) as the argument and adding the two equations, we have :

2 cos ω t   =   e  i  ω t + e  − i  ω t (12)

Or in other words :

cos ω t   =   ½  e  i  ω t + ½  e  − i  ω t (13)

To understand this, we need to know a few things about complex numbers. A complex number like i can be drawn in the so-called "complex plane" as a 2D point. the real part is on the horizontal axis, and the imaginary part is on the vertical axis. Multiplying by a real number works as expected : the 2D vector gets longer. Multiplying by a complex number has a completely different effect : the 2D vector does not change length, but instead it rotates about the origin.

state space

To see this, we rewrite (7) into the matrix state space form of (1). That form does not have a second derivative, so we first write (7) as a system of two first order equations in two state variables :

x •  =  v
v •  =  − k m  .  x (14)

Writing this in the matrix form of (1), we have :

[ x v ] • =   [   0 1 −K/m 0   ] . [ x v ] (15)

Now, the generic solution of the matrix equation (1) is a matrix exponential of the same form as our scalar first order example in (4) and (5).

Figure 1 :   The cosine as the sum of two "imaginary" numbers.

< click figure and hold to pause >

complex eigenvalues

TBW.

Derivatives not 90° out of phase.

the damping ratio

TBW.

Derivatives not 90° out of phase.

critical damping

TBW. Refer to near-critcal damping ??

both real and complex eigenvalues

TBW.

the system diagonal contains all the damping

TBW.