1 Introduction

Time delays exist in a wide range of engineering systems. Since time delay may improve the performance of the system, there are various applications of time delay in active vibration control and noise control [1,2,3,4,5]. On the other hand, time delay may influence the stability and the dynamic behavior of the system [6,7,8,9], which deserves attention. Delay differential equations (DDEs) are employed to describe time-delay systems. They are a special class of differential equations, called functional differential equations. Thus, the approach to solving DDEs differs from that to solving ordinary differential equations. The main difficulty lies in the transcendental character of DDEs [10].

Extensive investigations have been carried out concerning the solution to DDE [10,11,12,13,14,15,16]. Delay problems always bring about an infinite spectrum of frequencies. An approximation method of this type is the well-known Padé approximation, which results in a shortened repeating fraction for the approximation of the characteristic equation of the delay \(\tau \) [11, 12]. The work of Lam [11] gave an algorithm for forming a balanced realization of the all-pass Padé approximants of \(\hbox {e}^{-\tau s}\). The algorithm generated the coefficients of the Padé denominators based on a scaled recurrence formula. The problem of finding reduced-order models for a class of delay systems was considered in Ref. [12]. The delay element \(\hbox {e}^{-\tau s}\) was suggested to be replaced by Padé approximants.

Another approach to solving DDE is to find the response through analyzing the entire delay spectrum instead of approximating the time delay. Several studies have been accomplished to find a solution to DDE by solving its characteristic equation under different conditions [13,14,15]. A related study on analytic solution to linear DDEs can be found in Ref. [13]. In their work, Wright [14] studied a Fourier-like analysis of the existence of the solution and its properties for the nonlinear DDEs. Similar approaches to linear DDEs were also reported by Bellman and Cooke [15]. The uniqueness of the solution and its properties for the linear DDEs with varying coefficients were studied by Wright [14].

Although different methods have been proposed to solve DDEs, they still have a few shortcomings. The solution to DDE can be investigated analytically by using the classical method of steps [16]. However, the calculations will quickly become inconvenient without revealing essential properties of the solution. The readers can refer to Ref. [17] for the example of using the method of steps to solve DDEs. Since a few frequencies are actually dominant in the appearance of oscillations [10], it can be envisioned that an approximation in the frequency domain may be feasible. Therefore, it is of necessity to present a frequency method that guarantees the simplicity of calculation without sacrificing accuracy, which is the motivation of this paper. Jin et al. [18] studied the identification of time delay dynamic system in experiment, while this work can help to better understand the properties of delayed system.

This paper concerns solving a class of linear DDEs with constant coefficients. Firstly, the solution in the frequency domain is deduced and expressed by the transfer function, system parameters and equivalent initial conditions. The theoretical transfer function is represented by infinite number of poles and residues, which can be acquired by fitting the curve of the theoretical frequency response function (FRF). While the transfer function is the sum of infinite terms, it can be truncated by selecting the dominate poles and residues. Moreover, the guidance of selecting these dominant poles and residues is provided.

It is worth noting that the method presented by Qin [6] may lead to the opposite judgement of the stability of the delayed system when the term with time delay was expanded by Maclaurin series. To be more specific, after the delayed term was expanded, one may get the conclusion that the system was unstable while the system was actually stable. However, the method proposed in this paper will not result in the wrong judge of the stability. In other words, the truncation of the transfer function does not affect the stability of the original delayed system so that one will not make mistakes when judging the stability of the system. In addition, since the method is developed in the frequency domain, there will be fewer cumulative errors appearing in other iteration methods, which contributes to the accuracy of calculation. Another feature of the method is that usually a few truncation terms are sufficient for getting a reasonably accurate solution, leading to high efficiency.

The rest of this paper is organized as follows. Section 2 describes the category of the DDEs concerned in this paper. The frequency method to solve the DDE is proposed in Sect. 3. Numerical examples of both stable and unstable systems are presented to illustrate the method in Sect. 4. Conclusions are provided in Sect. 5.

2 Problem formulation

The equation of motion of a time delay system with n degrees-of-freedom (DOF) is given as

$$\begin{aligned} {{\varvec{M}}}{\ddot{{{\varvec{x}}}}}\left( t \right) +{{\varvec{C}}}{\dot{{{\varvec{x}}}}} \left( t \right) +{{\varvec{Kx}}}\left( t \right) ={{\varvec{u}}}\left( t \right) -{{\varvec{Gx}}}\left( {t-\tau } \right) , \end{aligned}$$
(1)

with initial conditions

$$\begin{aligned} {{\varvec{x}}}\left( 0 \right) ={{\varvec{x}}}_0 ,{\dot{{{\varvec{x}}}}}\left( 0 \right) ={\dot{{{\varvec{x}}}}}_0 , \end{aligned}$$
(2)

where \({{\varvec{M, C, K}}}\in R^{n\times n}\) are the mass matrix, damping matrix, stiffness matrix, respectively. \({{\varvec{u}}}\left( t \right) \in R^{n}\) is the vector of external excitation. \({{\varvec{G}}}\in R^{n\times n}\) is the feedback gain matrix, and \(\tau \) is the time-delay. All the system parameters and feedback parameters are real constants. \({{\varvec{x}}}\left( t \right) \in R^{n}\) is the vector of the displacement response of the time delay system.

The characteristic equation of Eq. (1) is

$$\begin{aligned} {{\varvec{M}}}s^{2}+{{\varvec{C}}}s+{{\varvec{K}}}+{{\varvec{G}}}\hbox {e}^{-\tau s}=\mathbf{0}, \end{aligned}$$
(3)

where s represents the pole of the system.

In this paper, we discuss the systems where poles are complex conjugate pairs as

$$\begin{aligned} s_i =\alpha _i +\hbox {i}2\uppi f_i ,\hbox { }s_i^*=\alpha _i -\hbox {i}2\uppi f_i , \end{aligned}$$
(4)

where \(\alpha _i \) is the real part of the pole. \(\hbox {i}=\sqrt{-\hbox {1}}\) is the imaginary unit. \(f_i\) is the frequency in Hz.

The solution to Eq. (1) consists of two parts. The first part is the response of the system over the time interval of \(t\in \left[ {0,\tau } \right) \), while the second part is the response over the time interval of \(t\in \left[ {\tau ,\infty } \right) \). In this paper, the system over the time interval of \(t\in \left[ {0,\tau } \right) \) and \(t\in \left[ {\tau ,\infty } \right) \) will be termed as open-loop system and closed-loop system, respectively.

The derivation of the proposed method can be developed for a general class of inputs. In this research we specifically focus on transient response to highlight the essential aspect of the method proposed. Response under external excitation can be derived in a similar manner. Therefore, this paper presents the derivation of the following DDE

$$\begin{aligned} {{\varvec{M}}}{\ddot{{{\varvec{x}}}}}\left( t \right) +{{\varvec{C}}}{\dot{{{\varvec{x}}}}} \left( t \right) +{{\varvec{Kx}}}\left( t \right) =-\,{{\varvec{Gx}}}\left( {t-\tau } \right) . \end{aligned}$$
(5)

3 Solution to time delay system

The equation of motion of the open-loop system is given as

$$\begin{aligned} {{\varvec{M}}}{\ddot{{{\varvec{x}}}}}_{\mathrm{op}} \left( t \right) +{{\varvec{C}}}{\dot{{{\varvec{x}}}}}_{\mathrm{op}} \left( t \right) +{{\varvec{Kx}}}_{\mathrm{op}} \left( t \right) ={\mathbf{0}}, t\in \left[ {0,\tau } \right) , \end{aligned}$$
(6)

with initial conditions

$$\begin{aligned} {{\varvec{x}}}_{\mathrm{op}} \left( {0} \right) ={{\varvec{x}}}_{0} , {\dot{{{\varvec{x}}}}}_{\mathrm{op}} \left( {0} \right) ={\dot{{{\varvec{x}}}}}_{0} , \end{aligned}$$
(7)

where \({{\varvec{x}}}_{\mathrm{op}} \left( t \right) \in {{R}}^{n}\) is the vector of the displacement response of the open-loop system. The subscript \(\bullet _{\mathrm{op}} \) refers to “open-loop”.

Since it is straightforward to obtain the solution to Eq. (6), the process is omitted here [19]. The displacement and velocity responses can be acquired and denoted as \({{\varvec{x}}}_{\mathrm{op}} \left( t \right) \) and \({\dot{{{\varvec{x}}}}}_{\mathrm{op}} \left( t \right) \), respectively. Substituting \(t=\tau \) into \({{\varvec{x}}}_{\mathrm{op}} \left( t \right) \) and \({\dot{{{\varvec{x}}}}}_{\mathrm{op}} \left( t \right) \) yields the responses at the instant \(t=\tau \), which are given as

$$\begin{aligned} {{\varvec{x}}}_{\mathrm{op}} \left( \tau \right) =\left[ {{\begin{array}{l} {x_{\mathrm{op1}} \left( \tau \right) } \\ {x_{\mathrm{op2}} \left( \tau \right) } \\ \vdots \\ {x_{{\mathrm{op}}n} \left( \tau \right) } \\ \end{array} }} \right] ,{\dot{{{\varvec{x}}}}}_{\mathrm{op}} \left( \tau \right) =\left[ {{\begin{array}{l} {{\dot{{{\varvec{x}}}}}_{\mathrm{op1}} \left( \tau \right) } \\ {{\dot{{{\varvec{x}}}}}_{\mathrm{op2}} \left( \tau \right) } \\ \vdots \\ {{\dot{{{\varvec{x}}}}}_{{\mathrm{op}}n} \left( \tau \right) } \\ \end{array} }} \right] . \end{aligned}$$
(8)

\({{\varvec{x}}}_{\mathrm{op}} \left( \tau \right) \) and \({\dot{{{\varvec{x}}}}}_{\mathrm{op}} \left( \tau \right) \) will be used to calculate the equivalent initial conditions later. So far, the solution to the open-loop system has been obtained.

3.1 Solution to closed-loop system

This section presents the process of solving for the solution to the closed-loop system in detail. The equation of motion of the closed-loop system is a DDE, which can be expressed as

$$\begin{aligned}&{{\varvec{M}}}{\ddot{{{\varvec{x}}}}}_{\mathrm{cl}} \left( t \right) +{{\varvec{C}}}{\dot{{{\varvec{x}}}}}_{\mathrm{cl}} \left( t \right) +{{\varvec{Kx}}}_{\mathrm{cl}} \left( t \right) =-{{\varvec{Gx}}}_{\mathrm{cl}} \left( {t-\tau } \right) , \nonumber \\&t\in \left[ {\tau ,\infty } \right) , \end{aligned}$$
(9)

where \({{\varvec{x}}}_{\mathrm{cl}} \left( t \right) \in {{R}}^{n}\) is the vector of the displacement response of the closed-loop system. The subscript \(\bullet _{\mathrm{cl}} \) refers to “closed-loop”.

The equivalent initial conditions are denoted as

$$\begin{aligned} {{{{\varvec{x}}}}}_{\mathrm{cl0}} =\left[ {{\begin{array}{l} {{{x}}_{\mathrm{cl}0{1}} } \\ {{{x}}_{\mathrm{cl}0{2}} } \\ \vdots \\ {{{x}}_{{\mathrm{cl0}}n} } \\ \end{array} }} \right] , {\dot{{{\varvec{x}}}}}_{\mathrm{cl0}} =\left[ {{\begin{array}{l} {{\dot{{{x}}}}_{\mathrm{cl01}} } \\ {{\dot{{{x}}}}_{\mathrm{cl02}} } \\ \vdots \\ {{\dot{{{x}}}}_{{\mathrm{cl0}}n} } \\ \end{array} }} \right] . \end{aligned}$$
(10)

It is worth noting that \({{\varvec{x}}}_{\mathrm{cl0}} \) and \({\dot{{{\varvec{x}}}}}_{\mathrm{cl0}} \) are two unknown vectors and will be determined with continuity conditions later. Equivalent initial conditions are the responses of the closed-loop system at the instant \(t=0\). However, the domain of Eq. (9) is \(t\in \left[ {\tau ,\infty } \right) \), which means there is no response of the closed-loop system over the time interval \(t\in \left[ {0,\tau } \right) \). Therefore, the equivalent initial conditions have no physical meaning. This is the reason why they are termed as equivalent initial conditions.

The solution to the closed-loop system can be expressed as

$$\begin{aligned} \begin{array}{c} {{\varvec{x}}}_{\mathrm{cl}} \left( t \right) =\mathcal{L}^{-1}\left[ {{{\varvec{H}}}_{\mathrm{cl}} \left( s \right) \left( {{{\varvec{M}}}s+{{\varvec{C}}}} \right) {{\varvec{x}}}_{\mathrm{cl0}}} \right. \\ \left. +\,{{\varvec{H}}}_{\mathrm{cl}} \left( s \right) {{\varvec{M}}} {\dot{{{\varvec{x}}}}}_{\mathrm{cl0}} \right] , \\ \end{array} \end{aligned}$$
(11)

where \(\mathcal{L}^{-1}\left( \cdot \right) \) is inverse Laplace transform and

$$\begin{aligned} {{\varvec{H}}}_{\mathrm{cl}} \left( s \right) =\left( {{{\varvec{M}}}s^{2}+{{\varvec{C}}}s +{{\varvec{K}}}+{{\varvec{G}}}\hbox {e}^{-\tau s}} \right) ^{-1} \end{aligned}$$
(12)

is the transfer function of the closed-loop system.

The velocity \({\dot{{{\varvec{x}}}}}_{\mathrm{cl}} \left( t \right) \) can be obtained by differentiating the displacement. Substituting \(t=\tau \) into the displacement and velocity yields the responses at the instant \(t=\tau \), namely \({{\varvec{x}}}_{\mathrm{cl}} \left( {\tau ,{{\varvec{x}}}_{\mathrm{cl0}} ,{\dot{{{\varvec{x}}}}}_\mathrm{c10}} \right) \) and \({\dot{{{\varvec{x}}}}}_{\mathrm{cl}} \left( {\tau ,{{\varvec{x}}}_{\mathrm{cl0}} ,{\dot{{{\varvec{x}}}}}_{\mathrm{cl0}} } \right) \). However, it is worth noting that the two vectors are expressions containing the unknown equivalent initial conditions given in Eq. (10). We need to calculate the equivalent initial conditions.

3.2 Equivalent initial condition

As stated in the Sect. 2, the solution to the time delay system is calculated over two time intervals, which means the responses of the open-loop and closed-loop systems are respectively acquired. However, since the displacement and velocity of the two systems are continuous at the instant \(t=\tau \), we have the following continuity conditions

$$\begin{aligned} {{\varvec{x}}}_{\mathrm{cl}}\left( \tau ,{{\varvec{x}}}_{\mathrm{cl0}}, {\dot{{{\varvec{x}}}}}_{\mathrm{cl0}}\right) ={{\varvec{x}}}_{\mathrm{op}} \left( \tau \right) ,\nonumber \\ \dot{{{\varvec{x}}}}_{\mathrm{cl}}\left( \tau ,{{\varvec{x}}}_{\mathrm{cl0}}, {\dot{{{\varvec{x}}}}}_{\mathrm{cl0}}\right) =\dot{{{\varvec{x}}}}_{\mathrm{op}}\left( \tau \right) . \end{aligned}$$
(13)

The left-hand side of Eq. (13) is the responses of the closed-loop system containing the unknown equivalent initial conditions \({{\varvec{x}}}_{\mathrm{cl0}} \) and \({\dot{{{\varvec{x}}}}}_\mathrm{{cl0}} \), while the right-hand side is the responses of the open-loop system and have already been obtained in Eq. (8).

Once Eq. (13) is solved, complete solution to the closed-loop system can be completely obtained by substituting the specific values of the equivalent initial conditions into Eq. (11).

3.3 Truncation of transfer function

The transfer function given in Eq. (12) can be written in the form of a matrix as

$$\begin{aligned} {{\varvec{H}}}_{\mathrm{cl}} \left( s \right) =\left[ {{\begin{array}{l@{\quad }l@{\quad }l@{\quad }l} {h_{11} \left( s \right) }&{} {h_{12} \left( s \right) }&{} \cdots &{} {h_{1n} \left( s \right) } \\ {h_{21} \left( s \right) }&{} {h_{22} \left( s \right) }&{} \cdots &{} {h_{2n} \left( s \right) } \\ \vdots &{} \vdots &{} \ddots &{} \vdots \\ {h_{n1} \left( s \right) }&{} {h_{n2} \left( s \right) }&{} \cdots &{} {h_{nn} \left( s \right) } \\ \end{array} }} \right] . \end{aligned}$$
(14)

Substituting Eq. (14) into Eq. (11) yields the solution to the closed-loop system, given by

$$\begin{aligned} {{\varvec{x}}}_{\mathrm{cl}} \left( t \right) =\left[ {{{\varvec{a}}}\left( t \right) {{\varvec{b}}}\left( t \right) } \right] \left[ {{\begin{array}{l} {{{\varvec{x}}}_{\mathrm{cl0}} } \\ {{\dot{{{\varvec{x}}}}}_{\mathrm{cl0}} } \\ \end{array} }} \right] , \end{aligned}$$
(15)

where

$$\begin{aligned} \begin{array}{l} a_{ij} \left( t \right) =\mathcal{L}^{-1}\big [ {h_{ij} \left( s \right) m_j s +\sum \limits _{q=1}^n {h_{iq} \left( s \right) c_{qj} } } \big ], \\ b_{ij} \left( t \right) =\mathcal{L}^{-1}\left[ {h_{ij} \left( s \right) m_j } \right] , \left( {i,j=1,2,\ldots ,n} \right) , \\ \end{array} \end{aligned}$$
(16)

\(m_j \) and \(c_{qj} \) are the elements of the mass matrix and damping matrix, respectively.

The element of the transfer function matrix can be expressed as the sum of terms involving the poles and their residues as

$$\begin{aligned} {h_{ij}}\left( s \right) = \sum \limits _{r = 1}^\infty {\left( {\frac{{{}_r{R_{ij}}}}{{s - {s_r}}} + \frac{{{}_rR_{ij}^*}}{{s - s_r^*}}} \right) ,} \quad i,j = 1,2, \ldots ,n, \end{aligned}$$
(17)

where \(s_{r} \) and \(s_{r}^{*} \) are the pole and its complex conjugate pair. \({}_r{R_{ij}} \) and \({}_r{R_{ij}}^{*} \) are the residue and its complex conjugate pair.

Thus, Eq. (16) can be further rewritten in detail as

$$\begin{aligned} \begin{array}{l} a_{ij} \left( t \right) =m_j \sum _{r=1}^\infty {\left( {{}_r{R_{ij}} s_r \hbox {e}^{s_{r}t}+{}_r{R_{ij}}^*s_{r}^{*} \hbox {e}^{s_{r}^*t}} \right) } \\ \quad +\sum \limits _{q=1}^n {\left[ {c_{qj} \sum _{r=1}^\infty {\left( {r^{R_{iq}} \hbox {e}^{s_{r} t}+{}_{r}{R_{iq}}^*\hbox {e}^{s_{r}^*t}} \right) } } \right] ,} \\ b_{ij} \left( t \right) =m_j \sum _{r=1}^\infty {\left( {{}_r{R_{ij}} \hbox {e}^{s_{r} t} +{}_r{R_{ij}}^*\hbox {e}^{s_{r}^*t}} \right) } , \\ \quad i,j=1,2,\ldots ,n. \\ \end{array} \end{aligned}$$
(18)

It can be seen from Eq. (17) that the transfer function is the sum of infinite terms. From the view of feasibility, the transfer function should be truncated and written in the form of finite items as

$$\begin{aligned} \bar{{{h}}}_{ij} =\sum \limits _{r=1}^N {\left( {\frac{{}_r{R_{ij}} }{s-s_r }+\frac{{}_r{R_{ij}}^*}{s-s_{r}^{*}}} \right) } , \end{aligned}$$
(19)

where N is the truncation order.

The truncated transfer function \(\bar{{{h}}}_{ij} \) in Eq. (19) is the sum of finite terms expressed in terms of the poles and residues. Theoretically, there are numerous choices we can make to select the N pairs of poles to truncate the transfer function. Therefore, it is necessary to provide a rule of selecting the poles.

As can be seen from the expressions of the solution (Eqs. (15) and (18)), the real parts of the poles are the powers of the exponents. This means the larger a real part is, the greater influence its corresponding pole will ultimately have on the solution. In other words, the poles with larger real parts dominate the solution. Consequently, the rule of selecting poles is based on the values of their real parts.

Specifically, if the system is stable, we first sort the poles according to the values of their real parts (see Eq. (4)). The sequence rule is shown in the following inequality as

$$\begin{aligned} 0>\alpha _1>\alpha _2>\cdots>\alpha _N>\alpha _{N+1} >\cdots . \end{aligned}$$
(20)

It is easy to understand that the approximate solution with higher truncation order will have higher accuracy. Nevertheless, in practical problems usually a small number of terms would be sufficient.

Considering an unstable system with U unstable poles, we still sort the poles according to the magnitudes of their real parts. The sequence rule is presented as

$$\begin{aligned} \begin{array}{l} \alpha _1>\alpha _2>\cdots>\alpha _U>0 \\ \hbox { }>\alpha _{N-U}>\cdots>\alpha _N>\alpha _{N+1} >\cdots \\ \end{array}. \end{aligned}$$
(21)

It can be seen that even if there is only one pair of poles chosen in the truncated transfer function, the stability of the original system will not be changed since the selected poles have positive real parts. Therefore, this method of truncation will not lead to the wrong judgment of the stability of the delayed system.

When the truncation order N is determined, the poles that satisfy the inequality (20) or (21) and their corresponding residues will be chosen to truncate the transfer function. Then, substituting the poles and the residues into Eqs. (15) and (18), the approximate solution to the closed-loop system can be obtained with the infinite signs \(\infty \) replaced by the truncation order N, given by

$$\begin{aligned} \bar{{{{\varvec{x}}}}}_{\mathrm{cl}} \left( t \right) =\left[ {{\begin{array}{lll} {\bar{{{{\varvec{a}}}}}\left( t \right) }&{} {\bar{{{{\varvec{b}}}}}\left( t \right) } \\ \end{array} }} \right] \left[ {{\begin{array}{l} {{{\varvec{x}}}_{\mathrm{cl0}} } \\ {{\dot{{{\varvec{x}}}}}_{\mathrm{cl0}} } \\ \end{array} }} \right] , \end{aligned}$$
(22)

where

$$\begin{aligned} \begin{array}{l} \bar{{{a}}}_{ij} \left( t \right) =m_j \sum \limits _{r=1}^N {\left( {{}_r{R_{ij}} s_{r} \hbox {e}^{s_{r} t}+{}_r{R_{ij}}^{*} s_{r}^{*} \hbox {e}^{s_{r}^{*} t}} \right) } \\ \quad +\sum _{q=1}^n {\left[ {c_{qj} \sum _{r=1}^N {\left( {{}_{r}{R_{iq}} \hbox {e}^{s_{r} t}+{}_{r}R_{iq}^*\hbox {e}^{s_{r}^{*} t}} \right) } } \right] } , \\ \bar{{b}}_{ij} \left( t \right) =m_{j} \sum _{r=1}^N {\left( {{}_r{R_{ij}} \hbox {e}^{s_{r} t}+{}_r{R_{ij}}^{*} \hbox {e}^{s_{r}^{*} t}} \right) } , \\ \quad i,j=1,2,\ldots ,n. \\ \end{array} \end{aligned}$$
(23)

The velocity can be obtained by differentiating the displacement. Then, the equivalent initial conditions can be determined by continuity conditions given in Eq. (13). Lastly, substituting the specific values of the equivalent initial conditions into Eq. (22) yields the approximation solution to the closed-loop system.

So far, the solution to the original time delay system has been completely obtained since the solution to the open-loop system and the one to the closed-loop system have been acquired.

4 Numerical simulation

Numerical solutions to DDEs can be obtained by XPPAUT [20], a common software used in the calculation of differential equations. Since there is no analytical solution to DDE, the solutions obtained by XPPAUT will be regarded as “accurate solutions”, which the approximate solutions will be compared with.

In this section, numerical simulations of both stable and unstable time delay systems are given to show the efficiency and accuracy of the proposed method. The equations of motion of both stable and unstable time delay systems are the same as Eq. (1).

4.1 Stable time delay system

In this case, the system parameters are

$$\begin{aligned} \begin{array}{l} {{\varvec{M}}}=\left[ {{\begin{array}{l@{\quad }l@{\quad }l} 1&{} 0&{} 0 \\ 0&{} 3&{} 0 \\ 0&{} 0&{} 5 \\ \end{array} }} \right] \hbox { kg}, \\ {{\varvec{C}}}=\left[ {{\begin{array}{l@{\quad }l@{\quad }l} {{2.1135}}&{} {{1.9568}}&{} {-{1.7949}} \\ {{1.9568}}&{} {{8.7829}}&{} {-{4.2165}} \\ {-{1.7949}}&{} {-{4.2165}}&{} {{11.0923}} \\ \end{array} }} \right] \hbox {N}\cdot \hbox {s/m}, \\ {{\varvec{K}}}=\left[ {{\begin{array}{l@{\quad }l@{\quad }l} {4000}&{} {-1000}&{} 0 \\ {-1000}&{} {8000}&{} {-5000} \\ 0&{} {-5000}&{} {7000} \\ \end{array} }} \right] \hbox { N/m.} \\ \end{array} \end{aligned}$$

The feedback parameters are set as

$$\begin{aligned}&{{\varvec{G}}}&=\left[ {{\begin{array}{lll} {100}&{} 0&{} 0 \\ 0&{} 0&{} 0 \\ 0&{} 0&{} 0 \\ \end{array} }} \right] \hbox { N/m, }\tau =0.6\hbox { s.} \end{aligned}$$

The initial conditions are given as

$$\begin{aligned} {{\varvec{x}}}\left( 0 \right) =\left[ {{\begin{array}{l} 1 \\ 2 \\ 3 \\ \end{array} }} \right] \hbox { m},{\dot{{{\varvec{x}}}}}\left( 0 \right) =\left[ {{\begin{array}{l} 4 \\ 5 \\ 6 \\ \end{array} }} \right] \hbox { m/s}. \end{aligned}$$

According to Eq. (12), the theoretical FRF matrix of the stable delayed system and that of the corresponding uncontrolled system can be obtained. Take one FRF element, say \(H_{1,1} \), as an example. The two FRF curves of the stable delayed system and the uncontrolled system are shown in Fig. 1.

Fig. 1
figure 1

Curves of FRF \(H_{1,1} \) of the stable delayed and uncontrolled system

After using the vector fitting method [21] to fit the FRF curve of the delayed system, we can obtain as many poles as we want. The first 30 poles (15 pairs) are shown on the complex plane in Fig. 2.

Fig. 2
figure 2

Distribution of the poles of the stable delayed system

It can be seen from Fig. 2 that the real parts of the poles are all negative since the delayed system is stable. Also, the poles are sorted by their imaginary parts. However, according to sequence (20), the poles should be sorted by their real parts. Table 1 shows the first 10 pairs of the poles sorted according to sequence (20). The circles with squares in Fig. 2 represented the 10 pairs of poles listed in Table 1.

Table 1 The sorted poles according to real parts

It can be seen from Table 1 that the poles at the beginning of the sequence have real parts with larger values. As is shown in Eq. (23), the real parts of the poles are the powers of the exponents. Thus, the first three frequencies dominate in the approximate solution will be around 10.5, 3.8, and 9.0 Hz.

4.1.1 Free decay

We consider the free decay of the stable time delay system, which means there is no external excitation. Choosing different truncation orders, we can get several groups of approximate solutions by the mentioned method. Three groups of results with truncation order N being 1, 3, and 10 are picked out and analysed to show the validity of the method.

With the truncation order \(N=1\), Fig. 3 shows the comparison between the accurate solution and the approximate solution of DOF 1.

Fig. 3
figure 3

Accurate and approximate solutions of DOF 1 (\(N=1)\)

As can be seen from the enveloping lines, the accurate solution (blue line) includes multiple frequencies, while the approximate solution (red line) includes only one frequency, which is especially obvious in the zoom-in view of the responses from 0.6 to 1.2 s. During the last second, the tendency the red curve, which represents approximate solution coincides well with the blue one standing for accurate solution. However, the amplitudes of the red curve are larger than those of the blue one. Similar phenomena can be observed for DOF 2 and DOF 3. Therefore, the figures of comparisons are omitted here.

Now the truncation order is chosen as \(N=3\) and Fig. 4 shows the comparison between the accurate solution and the approximate solution of DOF 1.

Fig. 4
figure 4

Accurate and approximate solutions of DOF 1 (\(N=3)\)

According to Fig. 4, the tendency of the approximate solution (red line) is consistent with that of the accurate solution (blue line). The zooms of the beginning and the last second show that the curve of the approximate solution coincides quite well with that of the accurate solution. The consistency of the two curves indicates approximation solution is capable of describing the dominant components in the accurate solution. Combining Figs. 3 and 4, it can be obviously noticed that the approximate solution with \(N=3\) is far more satisfactory than that with \(N=1\).

Now the truncation order is selected as \(N=10\). The approximate solutions of DOF 1, 2, and 3 are obtained and presented in the following. Besides, the fast Fourier transforms (FFTs) of the solutions are conducted to indicate the frequency components, as is shown in Figs. 5, 6, and 7.

Fig. 5
figure 5

Accurate and approximate solutions of DOF 1 (\(N=10)\). a Solutions to the DDE. b FFTs of the solutions

Fig. 6
figure 6

Accurate and approximate solutions of DOF 2 (\(N=10)\). a Solutions to the DDE. b FFTs of the solutions

Fig. 7
figure 7

Accurate and approximate solutions of DOF 3 (\(N=10)\). a Solutions to the DDE. b FFTs of the solutions

On one hand, Figs. 5a, 6a, and 7a indicate that the approximation solutions of the three degrees of freedom are highly close to the accurate solutions. On the other hand, Figs. 5b, 6b, and 7b show the curves of the FFTs of the approximate solutions are in good agreement with those of the accurate ones. Take Fig. 7b as an example. The three peaks in Fig. 7b have the frequencies of 3.784, 9.094, and 10.437 Hz, respectively, which are consistent with the first three frequencies shown in Table 1.

Choosing truncation orders ranging from 1 to 10 and repeating the above procedures, we can obtain the corresponding approximate solutions. Here, the figures of the results are omitted due to the limit of space. Figure 8 shows the errors of the FFTs of these approximate solutions with different truncation orders (Figs. 9, 10).

Fig. 8
figure 8

Errors of the FFTs with different truncation orders

Fig. 9
figure 9

Accurate and approximate solutions of DOF 1 (\(N=10)\). a Solutions to the DDE. b FFTs of the solutions

It is obvious that with the increase of truncation order, the accuracy of the approximate solution is improved. Also, the error reaches a plateau when the truncation order increases to 3, which means that approximate results with the truncation orders higher than 3 are quite similar to those with \(N=3\). The convergence of the curves reveals that the truncation order does not have to be very high to get an approximate solution with satisfactory accuracy. Based on this, the proposed method is proved to have convenience and efficiency in calculation without the sacrifice of accuracy.

4.1.2 Forced response

Now we consider the forced response of the stable time-delay system. A sinusoidal excitation \(u_1 \left( t \right) =200\sin \left( {6{\uppi }t} \right) \) is applied on DOF 1 and no external excitation is applied on the other two degrees of freedom. Therefore, the frequency of the only external excitation is 3 Hz.

The process of obtaining approximate solution of the forced response is similar to that of the free response. The following shows the approximation results with the truncation order \(N=10\).

It can be seen from the above figures that the approximation solutions of the three degrees of freedom are highly close to the accurate solutions both in time domain and in frequency domain. The three peaks in Fig. 11b with the frequencies of 3.792, 9.071, and 10.445 Hz are consistent with the first three frequencies shown in Table 1, respectively. The peak with the frequency of 3.0 Hz is caused by the only external sinusoidal excitation.

Choosing truncation orders ranging from 1 to 10 and repeating the above procedures, we can obtain the approximate solutions to the DDE. Figure 12 shows the errors of the FFTs of these approximate solutions with different truncation orders.

It is obvious that with the increase of the truncation order, the accuracy of the approximate solution is improved. The convergence of the curves shown in Fig. 12 reveals the truncation order does not have to be very high to get a quite satisfactory approximate solution. Therefore, the proposed method makes the calculation efficient without sacrificing accuracy.

4.2 Unstable time-delay system

In this case, we study an unstable time-delay system whose system parameters and initial conditions are the same as those of the stable delayed system (see Sect. 4.1). The differences are the feedback parameters, which are set as

$$\begin{aligned} {{\varvec{G}}}=\left[ {{\begin{array}{lll} {2000}&{} 0&{} 0 \\ 0&{} 0&{} 0 \\ 0&{} 0&{} 0 \\ \end{array} }} \right] \hbox { N/m, }\tau =0.6\hbox { s.} \end{aligned}$$

Since the system is unstable, no external force is applied.

According to Eq. (12), the theoretical FRF matrix of the unstable delayed system and that of the corresponding uncontrolled system can be obtained. Take one FRF element, say \(H_{1,1} \), as an example. The two FRF curves are shown in Fig. 13.

Fig. 10
figure 10

Accurate and approximate solutions of DOF 2 (\(N=10)\). a Solutions to the DDE. b FFTs of the solutions

Fig. 11
figure 11

Accurate and approximate solutions of DOF 3 (\(N=10)\). a Solutions to the DDE. b FFTs of the solutions

Fig. 12
figure 12

Errors of the FFTs with different truncation orders

Fig. 13
figure 13

The curves of FRF \(H_{1,1} \) of the unstable delayed and uncontrolled system

After using the vector fitting method to fit the FRF curve of the delayed system, we can obtain as many poles as we want. The first 30 poles are shown on the complex plane in Fig. 14.

Fig. 14
figure 14

The distribution of the poles of the unstable delayed system

It can be seen from Fig. 14 that four pairs of poles (marked by crosses) have positive real parts which means the delayed system is unstable. According to sequence (21), the poles should be sorted by their real parts. Table 2 shows the first 10 pairs of the poles sorted according to sequence (21). The poles with squares in Fig. 14 represented the 10 pairs of poles listed in Table 2.

Table 2 Sorted poles according to real parts

Table 2 shows that the poles in the front of the sequence have the real parts with larger values. After choosing the finite poles with larger real parts, the frequencies of these poles will dominant in the appearance of oscillations.

The process of obtaining approximate solution of the unstable delayed system similar to that of the stable delayed system. Using the proposed method and choosing the truncation order as \(N=15\), we can get the approximate solutions, shown in Fig. 15.

Fig. 15
figure 15

Comparisons between accurate and approximate solutions with \(N=15\). a Solutions of DOF 1. b Solutions of DOF 2. c Solutions of DOF 3

Since this delayed system is unstable and will never be put into practice, it is unnecessary to compare the specific values of the solutions. Figure 15 illustrates that the proposed method will not mistakenly treat an unstable delayed system as a stable one. This means the stability of the delayed system will not be changed due to the truncation of the transfer function, enabling the method to ensure the correctness of stability.

5 Conclusions

The aim of this paper is to provide a frequency method to obtain the solutions of a class of linear DDEs with constant coefficients.

Firstly, the equation of motion is given, which clearly describes the form of the DDE concerned in this paper. The solution to the DDE consists of two parts. One is the solution over \(t\in \left[ {0,\tau } \right) \), which is called an open-loop system. The other is the solution to the system over \(t\in \left[ {\tau ,\infty } \right) \), called a closed-loop system.

Secondly, the solution to the closed-loop system is expressed in terms of the transfer function. Since the theoretical transfer function consists of infinite poles, it can be truncated, which is the basic idea of this method. While there are infinite poles, only a few of them dominate the solution. Therefore, the guideline of selecting poles is provided according to their real parts. Poles with larger real parts and their corresponding residues are selected to truncate the transfer function.

Finally, numerical simulations are given where the approximate solutions obtained by the presented method are compared with the solutions obtained by a well-known software. As is shown in the results, only a few truncation items are needed to get a satisfactory approximate solution, which makes the method quite efficient.