We will start our exploration of state space analysis with a single mechanical damper. In a viscous damper, the damping force is proportional to the velocity :
| (1) |
We apply this to Newton's law for a floating mass :
| (2) |
Here a is the acceleration, the change of the velocity with time. With Newton's dot notation for change with time, the equation of motion for a damped mass is :
| (3) |
This is, of course simply a scalar equation. But in the state space framework of (1), we can also write it as a single degree of freedom matrix equation ( leaving off the inputs for the moment ) :
| (4) |
This equation says that v get smaller with
time, at a rate equi­valent
to its own size scaled by the factor
The slope of the graph of v against time is proportional to its own height, scaled by a constant factor. This is the graph of an exponential decay. Starting from an initial velocity vo, the solution is :
| (5) |
As a check, the derivative of an exponential is the exponential itself multiplied by the factor on the variable. In this case the variable is t and the factor is ( −c / m ), and this confirms that (5) implements the condition (3).
We now turn to the undamped mass-spring ( or a pendulum ). The spring wants to return the mass to a reference position. For a zero reference, the spring force is :
| (6) |
Here x is the mass position's deviation from the reference. It is also the elongation of the spring. With Newton's law of motion (2), we have :
| (7) |
Here x•• is the second derivative with respect to time, of the position.
In the damper we needed a function which was its own derivative,
give or take a constant factor.
| (8) |
Like in the case of the first order exponential, a 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 :
| (9) |
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 :
| (10) |
The minus sign in (6) has been absorbed in (8).
The solution with the cosine 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 (7) then becomes :
| (11) |
Eliminating x, we find :
| (12) |
This is almost identical to (9), 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 (9) then the roots of equation (9) are :
| (13) |
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, relating complex exponentials to trigo­nometry. The basic equation, written here directly with the argument ω ti is :
| (14) |
Writing the same formula with − ω t as the argument and adding the two, we have :
| (15) |
Or in other words :
| (16) |
XXXXXXXXXXXXX
o 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.
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 :
| (15) |
Writing this in the matrix form of (1), we have :
| (16) |
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.
TBW.
Derivatives not 90° out of phase.
TBW.
Derivatives not 90° out of phase.
TBW. Refer to near-critcal damping ??
TBW.
TBW.