On the previous page, we derived the model of the moving-coil galvanometer, and we concluded that it's
identical to the damped harmonic oscillator with an external driving force:
where is the displacement,
is the mass (cfr. moment of inertia ), is the damping factor, is the
spring constant, and is an external driving force.
On this page, we'll solve the equation of the damped harmonic oscillator analytically, discussing the
different solution regimes, and calculating the key features of the step response, such as overshoot
and rise time.
To make solving the equation easier, we'll define two constants:
is called the natural frequency, and the damping factor. The origin of these names
will become clear in the next section.
Equation then becomes:
Equation is a linear ordinary differential equation with constant coefficients, so the
general solution is the sum of the homogeneous solution and a particular solution:
In this section, we'll derive the solution of the step response, that is, the solution for if
, the Heaviside step function:
The homogeneous solution is the solution to
The characteristic equation is
with the solutions
If , the homogeneous solution is
where and are two arbitrary real constants of integration that depend on the initial conditions.
If , the terms and are linearly
dependent, so they no longer form a basis for the homogeneous solution space. One can form a valid basis by
multiplying the second term by :
It can be verified that these are indeed solutions by simply substituting equations
and and their derivatives into equation .
To find and , we use the following initial conditions:
They are specified at , which should be understood as a limit for approaching zero from the right,
because the derivatives are undefined at .
For the practical computation of and , this doesn't matter, but the discontinuity of
does imply that we cannot extend the solution for .
In order to be able to evaluate the second boundary condition, we need an expression for . Luckily,
consists of just exponentials and a flat Heaviside step (recall that ).
Evaluating for :
This is simply a system of two equations and two unknowns, and . The solutions are:
Depending on the parameters , and , the solution can look qualitatively very different.
If the discriminant of equation is positive, its roots
will be real. If the discriminant is negative, will be complex. If the roots are real, we say
that the oscillator is in the overdamped regime, and if the roots have a nonzero imaginary part, we say
that the oscillator is in the underdamped regime. On the boundary between these two regimes, the
discriminant of is exactly zero, and . This
is called the critically damped regime.
Looking at equation , you can see that the roots will be real if , and complex
if . In conclusion:
Regime
Damping factor
Physical constants
Underdamped
Critically damped
Overdamped
The figure below shows the qualitative differences between the different regimes.
We know that in this case, , so we can revise the formula for :
where is the imaginary unit , and are real, positive constants defined as
Substituting this into the solution (equation ), and using Euler's formula
:
You could compute the new constants and using their definitions
but it's probably easiest to just solve the system of initial conditions again:
Now that we have a nice sinusoidal expression for the solution, we can determine the position
of the first peak, the global maximum of the step response (see the previous figure).
The factor in equation is monotonically
decreasing, and the other factor is sinusoidal with a constant amplitude, so the global maximum
of occurs at the same time as the first local maximum of . To find the value for at this maximum, ,
we look at the roots of the derivative (equation ):
The peak time is the first solution of for :
By plugging in this value into the expression for , we can determine the amplitude of peak, and
by how much it overshoots the limit .
Expressed as a percentage, the overshoot is
The rise time is the time it takes for the step response to reach for the first time.
The first solution gives a negative value for , so is added to find the second solution, which is
the first solution for .
Since the rise time is inversely proportional to the natural frequency of the system, it's common to eliminate it from
the equation:
The lower the damping ratio, the faster the output rises, so the smaller the rise time. As the damping ratio
increases, the system reacts more slowly, and the rise time increases. For , the system becomes
critically damped, and the output will get asymptotically closer to , but never reach it, so the
rise time is infinite.
The settling time is the time after which the step response settles in a small error band around
, never to leave it again.
Usually, the width of the error band is chosen to be of :
In equation , we derived that the extrema of the step response occur when
, or .
Combining this with equations and ,
we find that the value of at these extrema is:
The amplitude of these extrema can be used to approximate the settling time:
The following image visualizes the exponential decay of the extrema, as derived in equation
.
The period of the sinusoidal factor of the step response (equation ) is
From equation , we also know that this is equal to distance between two
successive maxima or minima of the step response.
The corresponding frequency is therefore called the damped frequency of the oscillator.
It's the frequency of the oscillations of the step response of the damped harmonic oscillator.
Usually, the damped frequency is expressed as an angular frequency:
Looking at equation and the previous figure, you can see that as the damping ratio
decreases to zero (no damping), the frequency of the oscillations becomes equal to . This explains the
choice of parameters at the beginning of this page: the natural frequency is the frequency at which
the oscillator would oscillate if all damping were removed.
In this case, and will be real, and the step response
(equation ) is made up of two exponential terms and the step function:
The following image clearly shows the interaction between the two exponential terms. The step response is the blue
curve, it is the sum of the orange and green curves.
At , the two terms cancel out (this was imposed by
the initial condition ). The green curve decays to zero relatively quickly, so the actual step
response is pretty close to the orange curve, which approaches the final value more slowly.
The green curve does have an important contribution at the beginning:
it ensures that the slope of the step response gradually
increases. This was the second initial condition: .
Unlike in the underdamped case, the step response of an overdamped oscillator never reaches its final value
, it approaches it asymptotically. When using the same definition of rise time as in
the underdamped case, you could only conclude that for any overdamped oscillator, which is of
course meaningless. As a solution, we define the rise time of an overdamped system as the time it takes to
go from of to of .
To compute the rise time, we need to find and such that:
This results in equations of the form
where is either or .
Note that the coefficients and
do not depend on , only on the damping factor .
Unfortunately, this type of equation doesn't have a general analytical solution, so we'll have to
settle for an approximated or numerical solution.
A first observation is that as the damping factor increases,
decreases in magnitude, while increases.
The inverses of are the time constants of the exponential terms in
. As increases, the corresponding time constant
becomes very small. This means that the second term decays very quickly compared to the
first term. This can be seen in the previous image, where the green curve decays much faster than the orange one.
As a consequence of decreasing and increasing,
approaches , and goes to zero, as shown in the following figure.
This means that if is large enough, the second term of can be ignored:
An approximation of and would therefore be the solution of
Moving the denominator to the right-hand side and taking the logarithm from both sides:
The corresponding rise time is then
We can simplify the denominator of equation :
In conclusion, the approximation of rise time by ignoring the second exponential is
When is large, this simplifies to
To solve equation , you could use Newton's or Halley's method, since you
can easily write out and . However, it's even easier to use fixed-point iteration to
solve:
The following image shows the numerical solutions for the true rise time, the approximation by ignoring the second
exponential, and the linear approximation, i.e. the asymptote for .
As expected, the approximation that ignores the second exponential gives poor results for close to ,
but matches the true solution very nicely for large . Eventually, both curves approach the asymptote.
In the overdamped case, the rise time and the settling time are tightly coupled.
The settling time gives requires solving the same kind of transcendental equation of the same form as
(equation ). To get the settling time, .
The same kind of approximation is used as well, by ignoring the second exponential term.
As expected, the approximation is more accurate for the settling time than for the rise time, because the second
exponential has more time to decay.
Like the overdamped regime, the rise time of the critically damped regime is undefined, because the step
response approaches its final value asymptotically, it never reaches or crosses it. The rise time is
defined in the same way as for the overdamped case (equation ), and leads to similar
transcendental equations:
Rearranging this equation for fixed-point iteration:
Solving this equation numerically yields