Skip to article frontmatterSkip to article content
Site not loading correctly?

This may be due to an incorrect BASE_URL configuration. See the MyST Documentation for reference.

Second-order systems

Second-order systems are the next level of complexity after first-order systems. They can exhibit a wider range of behaviors, including oscillations and overshoot, which are not possible in first-order systems. In this section, we will explore the properties of second-order systems, how to analyze their behavior, and how to find their responses to various inputs.

Examples and intuition

Second-order systems are common in many areas of science and engineering. We have seen many examples so far:

In fact, first-order systems (refer to the examples) become second-order systems when chained together appropriately. For example:

Transfer function and canonical form

The differential equation for a general second-order system is given by

ay¨(t)+by˙(t)+cy(t)=du(t)a \ddot y(t) + b \dot y(t) + c y(t) = d u(t)

where aa, bb, cc, and dd are constants that depend on the specific system. The system therefore has the following transfer function, which we normalize in a particular way:

G(s)=Y(s)U(s)=das2+bs+c=das2+bas+caG(s) = \frac{Y(s)}{U(s)} = \frac{d}{a s^2 + b s + c} = \frac{\frac{d}{a}}{s^2 + \frac{b}{a} s + \frac{c}{a}}

So there are three degrees of freedom, which we can think of as the three parameters da\frac{d}{a}, ba\frac{b}{a}, and ca\frac{c}{a}. This is more complicated than the first-order case, where there were only two degrees of freedom. The canonical form of a second-order system is as follows:

G(s)=Y(s)U(s)=Kωn2s2+2ζωns+ωn2\boxed{G(s) = \frac{Y(s)}{U(s)} = \frac{K\omega_n^2}{s^2 + 2\zeta\omega_n s + \omega_n^2}}

This may seem like an unusual choice, but we will see that the parameters ωn\omega_n, ζ\zeta, and KK have clear physical interpretations that make it easier to understand the behavior of second-order systems. Returning to the time domain, the corresponding canonical-form ODE is:

y¨(t)+2ζωny˙(t)+ωn2y(t)=Kωn2u(t)\boxed{\ddot y(t) + 2\zeta\omega_n \dot y(t) + \omega_n^2 y(t) = K \omega_n^2 u(t)}

The three parameters ωn\omega_n, ζ\zeta, and KK have names:

Example: spring-mass-damper

Consider a simple spring-mass-damper system. The equations of motion are:

mx¨(t)+bx˙(t)+kx(t)=f(t)m\ddot{x}(t) + b\dot{x}(t) + kx(t) = f(t)

The transfer function is given by

G(s)=X(s)F(s)=1ms2+bs+k=1ms2+bms+kmG(s) = \frac{X(s)}{F(s)} = \frac{1}{ms^2 + bs + k} = \frac{\frac{1}{m}}{s^2 + \frac{b}{m} s + \frac{k}{m}}

Matching coefficients with the canonical form, we see that

1m=Kωn2bm=2ζωnkm=ωn2\begin{aligned} \frac{1}{m} &= K \omega_n^2 \\ \frac{b}{m} &= 2 \zeta \omega_n \\ \frac{k}{m} &= \omega_n^2 \end{aligned}

From the last equation, we can solve for ωn\omega_n:

ωn=km\omega_n = \sqrt{\frac{k}{m}}

Then we can solve for ζ\zeta:

ζ=b2mωn=b2km\zeta = \frac{b}{2 m \omega_n} = \frac{b}{2 \sqrt{km}}

Finally, we can solve for KK:

K=1mωn2=1kK = \frac{1}{m \omega_n^2} = \frac{1}{k}

Therefore, we have:

ωn=km,ζ=b2km,K=1k\boxed{ \omega_n = \sqrt{\frac{k}{m}}, \quad \zeta = \frac{b}{2 \sqrt{km}}, \quad K = \frac{1}{k} }

Example: DC motor

Recall the ODE for a DC motor with input voltage vin(t)v_\textsf{in}(t) and no load torque:

JLω¨+(JR+bL)ω˙+(bR+Km2)ω=KmvinJ L\, \ddot\omega + (J R + b L)\, \dot\omega + (b R + K_m^2)\, \omega = K_m v_\textsf{in}

Dividing through by JLJ L to make the leading coefficient equal to 1, we get

ω¨+JR+bLJLω˙+bR+Km2JLω=KmJLvin\ddot\omega + \frac{J R + b L}{J L}\dot\omega + \frac{b R + K_m^2}{J L} \omega = \frac{K_m}{J L} v_\textsf{in}

Matching coefficients with the canonical form, we see that

KmJL=Kωn2JR+bLJL=2ζωnbR+Km2JL=ωn2\begin{aligned} \frac{K_m}{J L} &= K \omega_n^2 \\ \frac{J R + b L}{J L} &= 2 \zeta \omega_n \\ \frac{b R + K_m^2}{J L} &= \omega_n^2 \end{aligned}

Solving as before, we obtain:

ωn=bR+Km2JL,ζ=JR+bL2JLbR+Km2,K=KmbR+Km2\boxed{ \omega_n = \sqrt{\frac{b R + K_m^2}{J L}}, \quad \zeta = \frac{J R + b L}{2 \sqrt{J L}\sqrt{b R + K_m^2}}, \quad K = \frac{K_m}{b R + K_m^2} }

Classification

Second-order systems have two poles, which are given by the roots of the denominator of the transfer function:

s2+2ζωns+ωn2=0s^2 + 2\zeta\omega_n s + \omega_n^2 = 0

Therefore, the roots are given by the quadratic formula:

s=ζωn±ωnζ21s = -\zeta\omega_n \pm \omega_n \sqrt{\zeta^2 - 1}

Depending on the value of ζ\zeta, we can have three different cases, which lead to very different behaviors. Each case has a special name:

Intuitively, the damping ratio ζ\zeta is a measure of how much damping is present in the system. The terminology above is ordered from “least damped” to “most damped”.

As we vary ζ\zeta from 0 to \infty, the poles start on the imaginary axis, move along a semicircle in the left half-plane, meet at the real axis, and then split apart along the real axis. To see why this is the case, look at the magnitude (length) of the poles when they are complex:

s=(ζωn)2+(ωn1ζ2)2=ζ2ωn2+(1ζ2)ωn2=ωn2=ωn\begin{aligned} |s| &= \sqrt{(-\zeta\omega_n)^2 + \bigl(\omega_n \sqrt{1 - \zeta^2}\bigr)^2} \\ &= \sqrt{\zeta^2 \omega_n^2 + (1 - \zeta^2) \omega_n^2} \\ &= \sqrt{\omega_n^2} \\ &= \omega_n \end{aligned}

Since the magnitude is constant and equal to ωn\omega_n, the poles must lie on a semicircle of radius ωn\omega_n centered at the origin.

Once the poles are real, they break apart and move along the real axis in opposite directions. The pole on the left goes off to infinity, while the pole on the right moves towards zero but remains in the left-half plane.

Use the interactive plot below to see how the poles move around in the complex plane as you vary ζ\zeta with ωn\omega_n held fixed.

 

Step response

Let’s see how an underdamped second-order system responds to a unit step input. The transfer function is given by:

G(s)=Kωn2s2+2ζωns+ωn2G(s) = \frac{K\omega_n^2}{s^2 + 2\zeta\omega_n s + \omega_n^2}

To simplify our calculations, let’s define ωd=ωn1ζ2\omega_d = \omega_n \sqrt{1 - \zeta^2}, which is called the damped natural frequency. The poles can now be written as s=ζωn±jωds = -\zeta \omega_n \pm j \omega_d, and we can complete the square in the denominator of the transfer function:

G(s)=Kωn2(s+ζωn)2+ωd2G(s) = \frac{K\omega_n^2}{(s + \zeta \omega_n)^2 + \omega_d^2}

To find the step response, we multiply G(s)G(s) by the Laplace transform of a unit step input, which is 1s\frac{1}{s}, and perform PFE to find the inverse Laplace transform. We will use the PFE shortcut to save ourselves some algebra.

Kωn2s(s2+2ζωns+ωn2)=As+B(s+ζωn)+Cωds2+2ζωns+ωn2\frac{K\omega_n^2}{s(s^2 + 2\zeta\omega_n s + \omega_n^2)} = \frac{A}{s} + \frac{B (s+\zeta \omega_n) + C \omega_d}{s^2 + 2\zeta\omega_n s + \omega_n^2}

Therefore, the inverse Laplace transform will be

y(t)=A+eζωnt(Bcos(ωdt)+Csin(ωdt))y(t) = A + e^{-\zeta \omega_n t} \bigl(B \cos(\omega_d t) + C \sin(\omega_d t)\bigr)

Using cover-up on Eq. (25) tells us that A=KA=K. Using the systematic method, we have:

Kωn2=K(s2+2ζωns+ωn2)+Bs(s+ζωn)+CsωdK\omega_n^2 = K(s^2 + 2\zeta\omega_n s + \omega_n^2) + B s(s+\zeta \omega_n) + C s \omega_d

Solving for the remaining coefficients, we find that B=KB = -K and C=Kζωn/ωdC = -K \zeta \omega_n / \omega_d, which simplifies to C=Kζ/1ζ2C= -K \zeta / \sqrt{1 - \zeta^2}. Therefore, substituting these values into Eq. (26) gives us the final step response:

y(t)=K(1eζωnt(cos(ωdt)+ζ1ζ2sin(ωdt)))y(t) = K \left(1 - e^{-\zeta \omega_n t} \left(\cos(\omega_d t) + \tfrac{\zeta}{\sqrt{1 - \zeta^2}} \sin(\omega_d t)\right)\right)

We can simplify a bit more. Let’s define the pole angle ϕ\phi as the angle between the negative real axis and the line connecting the origin to one of the poles, so cosϕ=ζ\cos\phi = \zeta and sinϕ=1ζ2\sin\phi = \sqrt{1 - \zeta^2}. Now rewrite the step response as follows:

y(t)=K(111ζ2eζωnt(1ζ2cos(ωdt)+ζsin(ωdt)))=K((111ζ2eζωnt(sinϕcos(ωdt)+cosϕsin(ωdt)))\begin{aligned} y(t) &= K \left(1 - \tfrac{1}{\sqrt{1-\zeta^2}} e^{-\zeta \omega_n t} \left( \sqrt{1-\zeta^2} \cos(\omega_d t) + \zeta \sin(\omega_d t)\right)\right) \\ &= K\left((1 - \tfrac{1}{\sqrt{1-\zeta^2}} e^{-\zeta \omega_n t} \left( \sin\phi \cos(\omega_d t) + \cos\phi \sin(\omega_d t)\right)\right) \end{aligned}

The last step can be simplified using the trigonometric identity for the sine of a sum: sin(a+b)=sin(a)cos(b)+cos(a)sin(b)\sin(a+b) = \sin(a)\cos(b) + \cos(a)\sin(b). Therefore, the final step response is:

y(t)=K(1eζωnt1ζ2sin(ωdt+ϕ))\boxed{ y(t) = K \left(1 - \frac{e^{-\zeta \omega_n t}}{\sqrt{1 - \zeta^2}} \sin(\omega_d t + \phi)\right) }

and also remember the new quantities we defined:

ωd=ωn1ζ2(damped frequency)ϕ=cos1ζ(pole angle)\boxed{ \begin{aligned} \omega_d &= \omega_n \sqrt{1 - \zeta^2} && \textsf{(damped frequency)} \\ \phi &= \cos^{-1}\zeta && \textsf{(pole angle)} \end{aligned} }

Let’s redraw our pole-zero plot with the new quantities we defined. This helps us see the geometric connection between the poles more clearly.

Pole-zero plot showing the natural frequency \omega_n, the damped frequency \omega_d, the pole angle \phi, and the damping ratio \zeta.

Figure 1:Pole-zero plot showing the natural frequency ωn\omega_n, the damped frequency ωd\omega_d, the pole angle ϕ\phi, and the damping ratio ζ\zeta.

Impulse response

We can derive the impulse response of a second-order system in a similar way to the step response, but the derivation is much more straightforward. The transfer function for the impulse response is given by

G(s)=Y(s)U(s)=Kωn2s2+2ζωns+ωn2=Kωn2(s+ζωn)2+ωd2G(s) = \frac{Y(s)}{U(s)} = \frac{K\omega_n^2}{s^2 + 2\zeta\omega_n s + \omega_n^2} = \frac{K\omega_n^2}{(s + \zeta \omega_n)^2 + \omega_d^2}

The impulse response is just the inverse Laplace transform of G(s)G(s), which we can obtain directly from the Laplace transform table:

y(t)=Kωn2ωdeζωntsin(ωdt)=Kωn2ωn1ζ2eζωntsin(ωdt)\begin{aligned} y(t) &= \frac{K \omega_n^2}{\omega_d} e^{-\zeta \omega_n t} \sin(\omega_d t) \\ &= \frac{K \omega_n^2}{\omega_n\sqrt{1-\zeta^2}} e^{-\zeta \omega_n t} \sin(\omega_d t) \end{aligned}

Therefore, the impulse response is given by:

y(t)=Kωn1ζ2eζωntsin(ωdt)\boxed{ y(t) = \frac{K \omega_n}{\sqrt{1-\zeta^2}} e^{-\zeta \omega_n t} \sin(\omega_d t) }

In the next section, we will sketch the step response to see how the different parameters affect the shape of the response, both qualitatively and quantitatively.


Test your knowledge

Solution to Exercise 1 #

For the ODE ay¨(t)+by˙(t)+cy(t)=du(t)a \ddot y(t) + b \dot y(t) + c y(t) = d u(t), the natural frequency and damping ratio are given by the formulas

ωn=ca,ζ=b2ac\omega_n = \sqrt{\frac{c}{a}}, \quad \zeta = \frac{b}{2 \sqrt{a c}}

We can apply this formula to each of the three systems:

  1. For the pendulum, we have a=m2a = m \ell^2, b=0b = 0, and c=mgc = mg\ell. Therefore,

    ωn=mgm2=g=9.81 m/s20.2 m=7rad/sζ=02m23g=0\begin{aligned} \omega_n &= \sqrt{\frac{mg\ell}{m\ell^2}} = \sqrt{\frac{g}{\ell}} = \sqrt{\frac{9.81 \text{ m/s}^2}{0.2 \text{ m}}} = 7\,\text{rad/s} \\ \zeta &= \frac{0}{2 \sqrt{m^2 \ell^3 g}} = 0 \end{aligned}

    So the natural frequency is ωn=7rad/s\omega_n = 7\,\text{rad/s}, the damping ratio is ζ=0\zeta = 0, and the system is undamped.

  2. For the series RLC circuit, we have a=La = L, b=Rb = R, and c=1Cc = \frac{1}{C}. Therefore,

    ωn=1/CL=1/(1μF)40mH=1060.045000rad/sζ=R2L/C=200240×103/(106)=20024×104=0.5\begin{aligned} \omega_n &= \sqrt{\frac{1/C}{L}} = \sqrt{\frac{1/(1\,\mu\text{F})}{40\,\text{mH}}} = \sqrt{\frac{10^6}{0.04}} \approx 5000\,\text{rad/s} \\ \zeta &= \frac{R}{2\sqrt{L/C}} = \frac{200}{2\sqrt{40 \times 10^{-3}/(10^{-6})}} = \frac{200}{2\sqrt{4 \times 10^4}} = 0.5 \end{aligned}

    So the natural frequency is ωn=5000rad/s\omega_n = 5000\,\text{rad/s}, the damping ratio is ζ=0.5\zeta = 0.5, and the system is underdamped.

  3. For the DC motor, we have a=JLa = J L, b=JR+bLb = JR + bL, and c=bR+K2c = bR + K^2. Therefore, The math contains several errors. Here’s the corrected version:

    ωn=bR+K2JL=104×0.5+0.0522.5×104×1.5×10382rad/sζ=JR+bL2JL(bR+K2)=JR+bL2JLωn=2.5×104×0.5+104×1.5×1032×2.5×104×1.5×103×822\begin{aligned} \omega_n &= \sqrt{\frac{bR + K^2}{J L}} = \sqrt{\frac{10^{-4} \times 0.5 + 0.05^2}{2.5 \times 10^{-4} \times 1.5\times 10^{-3}}} \approx 82\,\text{rad/s} \\ \zeta &= \frac{JR + bL}{2 \sqrt{J L (bR + K^2)}} = \frac{JR+bL}{2JL\omega_n} \\ &= \frac{2.5 \times 10^{-4} \times 0.5 + 10^{-4} \times 1.5\times 10^{-3}}{2 \times 2.5 \times 10^{-4} \times 1.5\times 10^{-3} \times 82} \approx 2 \end{aligned}

    So the natural frequency is ωn82rad/s\omega_n \approx 82\,\text{rad/s}, the damping ratio is ζ2\zeta \approx 2, and the system is overdamped.