1 Introduction

1.1 Background and motivations

Stabilization and tracking control of uncertain nonlinear systems have significant applications in electronics, mechanics, and robotic systems [13]. In particular, various dynamical systems such as flexible-link robots, oscillators, chaotic systems, and synchronous machines may be modeled by an uncertain nonlinear structure. In previous years, investigation of nonlinear control problems has attracted much attention due to the nonlinear structure of most physical and dynamical systems [4]. Nonlinear systems with time-varying and uncertain terms can model many important phenomena and display various behaviors such as different equilibrium points and multiple periodic orbits for non-autonomous systems [5].

As an effective and famous robust control scheme, sliding mode control (SMC) has been extensively applied for the improvement of stability, performance, and robustness of linear and nonlinear systems in the presence of uncertainties [68]. The main features of SMC are the fast response, robustness against uncertainties, insensitivity to the bounded disturbances, good transient performance, and computational simplicity with respect to other control techniques [911]. The procedure of SMC can be separated into two phases which are the sliding phase and the reaching phase [12, 13]. Because of the influence of sliding surface on the stability and transient performance of control systems, the major step is to introduce a proper switching surface so that tracking errors reduce to a satisfactory value [6, 14]. In SMC method, the robust tracking performance can be satisfied after the system states reach the sliding surface, and consequently robustness is not guaranteed during the reaching phase. On the other hand, SMC suffers from the undesired high-frequency oscillations known as chattering phenomena which is created by the discontinuous control law and is very harmful for actuators used in practical systems [1517]. To suppress the chattering, a second-order sliding mode (SOSM) control approach has been presented [1820]. The main idea of SOSM is that the discontinuous sign function is forced to act on the time derivative of the control law, and thus the actual control input resulted after integration is continuous which removes the chattering [18]. The other difficult issue in designing SMC is the requirement of the norm of uncertainty properly which is used for the switching control gain. Perturbation estimation techniques have been investigated in [2128] to overcome the problem of the knowledge of perturbation upper bounds.

1.2 Literature review

In [22], an observer-based SMC is presented for the excitation control of synchronous generators which employs output feedback and perturbation estimation. In [23], a sliding perturbation observer is offered and integrated into the proportional integral (PI)-controlled system to compensate for the perturbations caused by parameter variations and unknown disturbances. In [24], a variable structure control technique combined with the adaptive perturbation estimation method is proposed for trajectory tracking of the piezoelectric actuators. In [25], a high-order SMC observer is suggested to guarantee the perturbation estimation of the linear time-invariant systems affected by unmatched perturbations. In [26], an adaptive second-order SMC with a PID sliding surface is designed to overcome the faults in the heat recovery steam generator boilers and achieve good performance for the boilers. The difference of our offered method in comparison with what is proposed in [26] is the nonlinear structure of the controlled system; however, besides good tracking performance stated in [26], the controlled heat recovery steam generator boilers tolerate the faults in input and system matrices. In [27], a SMC system with a PID sliding surface is adopted to control the speed of an electromechanical system, and the desired trajectory is tracked in the presence of uncertainties and disturbances. The novelties of the suggested method of this paper in comparison with [27] are the application of adaptive parameter tuning scheme, using a dynamic sliding surface, and finite-time tracking controller design for uncertain nonlinear systems; however, using high-speed computers and some application tools in [27], the experimental results are presented which confirm the efficiency and simplicity of the method. In [28], an adaptive fuzzy SMC methodology with a PID sliding surface is proposed for the control of robot manipulators. Similar to our proposed method, an adaptive SMC approach combined with a PID sliding surface is presented in [28]; however, fuzzy logic control scheme of [28] is used to generate the hitting control signal, and the output gain of the fuzzy SMC is tuned online by a supervisory fuzzy structure, where the chattering problem is avoided. Also, compared with the proposed method in this paper, an adaptive robust PID–SMC controller is presented in [29] which is optimized by a multi-objective genetic algorithm to control a mechanical system in the presence of external disturbances and perturbations. Moreover, the application of PID-SMC to a MIMO system which is proposed in [30] is a more challenging action due to the coupling effects between the control variables. All the methods introduced in the above-mentioned references motivate researchers to actively develop the proposed method of this paper.

1.3 Contributions

To the best of the author’s knowledge, very little attempts have been made to design a robust adaptive SMC using a PID sliding surface for the tracking control problem of nonlinear system with time-varying uncertainties. In the recent years, very little attention has been paid to this problem, which is still open in the literature. In this paper, a PID sliding surface-based SMC control approach is proposed for the tracking problem of nonlinear uncertain systems with time-varying uncertainties and nonlinearities. Using the suggested control technique, the tracking errors converge to zero in a finite time and the existence of the sliding mode around the sliding surface in a finite time is guaranteed. This approach eliminates the reaching phase of SMC to improve the global robustness of the system. In addition, this method overcomes the chattering problem caused by the discontinuous sign function and eliminates the need for pre-design information about the upper bound of external disturbances. The stability and robustness of the proposed control method are proved using Lyapunov stability theory. To justify the feasibility and efficiency of the introduced method, the tracking problem of an inverted pendulum system is simulated.

1.4 Paper organization

This paper is organized as follows: the problem description is given in Sect. 2. In Sect. 3, the main results are proposed and the convergence and stability of the closed-loop systems are analyzed via Lyapunov stability theory. Simulation results on an inverted pendulum system are provided in Sect. 4, and the conclusions are presented in Sect. 5.

2 Problem description

The nonlinear second-order system with time-varying uncertainties is described as:

$$\begin{aligned} \dot{x}_1 (t)= & {} x_{2} (t),\nonumber \\ \dot{x}_2 (t)= & {} f(x,t)+\Delta f(x,t)\nonumber \\&+\left( {b(x,t)+\Delta b(x,t)}\right) u(t)+d_0 (x,t), \end{aligned}$$
(1)

where \(x(t)=\left[ {x_1 (t), x_2 (t)} \right] ^{T}\) is the state vector, \(u(t)\) is the control input, \(b(x,t)\) and \(f(x,t)\) are the known bounded nonlinear functions, and \(\Delta b(x,t)\), \(\Delta f(x,t)\) and \(d_0 (x,t)\) are the nonlinear functions which introduce the system uncertainties and external disturbances. Defining \(d(x,t)=\Delta f(x,t)+\Delta b(x,t)u(t)+d_0 (x,t)\), the nonlinear second-order system can be considered as:

$$\begin{aligned} \dot{x}_1 (t)= & {} x_2 (t), \nonumber \\ \dot{x}_2 (t)= & {} f(x,t)+b(x,t)u(t)+d(x,t). \end{aligned}$$
(2)

The uncertain nonlinear system (2) is supposed to track the desired trajectory \(x_d (t)=\left[ {x_{1d} (t), x_{2d} (t)} \right] ^{T}\), where \(x_{2d} (t)=\dot{x}_{1d} (t)\), and \(x_{2d} (t)\) is a differentiable function of time. The tracking error is defined as:

$$\begin{aligned} E(t)=x(t)-x_d (t)=\left[ {e(t), \dot{e}(t)} \right] ^{T}, \end{aligned}$$
(3)

where \(e(t)=x_1 (t)-x_{1d} (t)\) and \(\dot{e}(t)=x_2 (t)-x_{2d} (t)\).

The dynamic sliding mode equation for system (2) can be defined as:

$$\begin{aligned} s(t)=G\left( {E(t)-L(t)} \right) , \end{aligned}$$
(4)

where \(G=[g_1 , g_2 ]\) are the gain coefficients and \(L(t)=[l(t), \dot{l}(t)]^{T}\) are the terminal functions.

Assumption 1

[31]: Consider the function \(l(t): R^{+}\rightarrow R\), \(l(t)\in C^{n}[0, \infty )\), \(\dot{l}(t)\in L^{\infty }\), \(l(t)\) is finite in interval \([0, T]\), \(E(0)=L(0)\), \(\dot{E}(0)=\dot{L}(0)\), that is, \(l(0)=e(0)\), \(\dot{l}(0)=\dot{e}(0)\), and \(\ddot{l}(0)=\ddot{e}(0)\). Moreover, for every \(t\ge T\), \(l(t)=0\), \(\dot{l}(t)=0\), and \(\ddot{l}(t)=0\). \(C^{n}[0, \infty )\) is the set of \(n\) rank differentiable continuous functions defined in \([0, \infty )\).

Remark 1

The sliding surface (4) makes that the state trajectories arrive at the sliding surface right from the beginning. Thus, the reaching interval is eliminated, and the global robustness of the whole system is guaranteed. From (4) and Assumption 1, it follows that:

$$\begin{aligned} s(0)= & {} G\left( {E(0)-L(0)} \right) =0,\end{aligned}$$
(5)
$$\begin{aligned} \dot{s}(0)= & {} G\left( {\dot{E}(0)-\dot{L}(0)} \right) =0. \end{aligned}$$
(6)

The terminal function \(l(t)\) is defined as [31]:

$$\begin{aligned} l(t)=\left\{ {{\begin{array}{ll} {\begin{array}{l} \left( {\frac{a_{20} }{T^{5}}e_0 +\frac{a_{21} }{T^{4}}\dot{e}_0 +\frac{a_{22} }{T^{3}}\ddot{e}_0 } \right) t^{5}\\ \quad +\left( {\frac{a_{10} }{T^{4}}e_0 +\frac{a_{11} }{T^{3}}\dot{e}_0 +\frac{a_{12} }{T^{2}}\ddot{e}_0 } \right) t^{4} \\ \quad +\left( {\frac{a_{00} }{T^{3}}e_0 +\frac{a_{01} }{T^{2}}\dot{e}_0 +\frac{a_{02} }{T}\ddot{e}_0 } \right) t^{3}\\ \quad +\frac{1}{2}\ddot{e}_0 t^{2}+\dot{e}_0 t+e_0 , \\ \end{array}} &{}\quad \hbox {if}\;\quad t\le T \\ 0,&{}\quad \hbox {if}\;\quad t\ge T \\ \end{array}}} \right. \nonumber \\ \end{aligned}$$
(7)

In light of Assumption 1 and the following equations, functions \(l(t)\), \(\dot{l}(t)\), and \(\ddot{l}(t)\) can all be equal to zero at time \(t=T\) by designing \(a_{ij} (i,j=0, \ldots , 2)\) as:

$$\begin{aligned}&\left\{ {\begin{array}{l} a_{00} +a_{10} +a_{20} =-1, \\ 3a_{00} +4a_{10} +5a_{20} =0, \\ 6a_{00} +12a_{10} +20a_{20} =0, \\ \end{array} }\right. \end{aligned}$$
(8)
$$\begin{aligned}&\left\{ {\begin{array}{l} a_{01} +a_{11} +a_{21} =-1, \\ 3a_{01} +4a_{11} +5a_{21} =-1, \\ 6a_{01} +12a_{11} +20a_{21} =0, \\ \end{array} }\right. \end{aligned}$$
(9)
$$\begin{aligned}&\left\{ {\begin{array}{l} a_{02} +a_{12} +a_{22} =-\frac{1}{2}, \\ 3a_{02} +4a_{12} +5a_{22} =-1, \\ 6a_{02} +12a_{12} +20a_{22} =-1. \\ \end{array} }\right. \end{aligned}$$
(10)

From (8)–(10), the values of the parameters \(a_{ij} (i,j=0, \ldots , 2)\) can be obtained as follows:

$$\begin{aligned} a_{00}= & {} -10,\; a_{01} =-6,\; a_{02} =-1.5,\; a_{10} =15,\\ a_{11}= & {} 8,\; a_{12} =1.5,\; a_{20} =-6,\; a_{21} =-3,\\ a_{22}= & {} -0.5. \end{aligned}$$

3 Main results

The proposed PID sliding manifold can be defined as:

$$\begin{aligned} \sigma (t)=k_p s(t)+k_i \int \limits _{0}^{t} {s(\tau )d\tau } +k_d \dot{s}(t), \end{aligned}$$
(11)

where \(k_p \), \(k_i \), and \(k_d \) are the positive constants representing the proportional, integral, and derivative coefficients, respectively. The time derivative of the PID sliding manifold (11) can be obtained as:

$$\begin{aligned} \dot{\sigma }(t)=k_p \dot{s}(t)+k_i s(t)+k_d \ddot{s}(t). \end{aligned}$$
(12)

If the condition \(\dot{\sigma }(t)=0\) is satisfied and the constant gains \(k_p \), \(k_i \), and \(k_d \) are designed properly, then the dynamic sliding surface \(s(t)\) will converge to zero exponentially, and hence the right-hand side expression of (12) is strictly Hurwitz.

In the following theorem, the tracking action of the desired trajectory \(x_d (t)\) is guaranteed and the tracking error \(E(t)\) converges to zero in finite time \(T\).

Theorem 1

Consider the uncertain nonlinear second-order system (2). Suppose that the control law is defined as:

$$\begin{aligned} \dot{u}(t)= & {} -\left( {g_2 b(x,t)} \right) ^{-1}\left\{ k_p \left( g_1 \left( {\dot{e}(t)-\dot{l}(t)} \right) \right. \right. \nonumber \\&\left. \left. +\,g_2 \left( {f(x,t)+b(x,t)u(t)-\dot{x}_{2d} -\ddot{l}(t)} \right) \right) \right. \nonumber \\&+\,k_d \left( g_1 \left( {f(x,t)+b(x,t)u(t)-\dot{x}_{2d} -\ddot{l}(t)} \right) \right. \nonumber \\&\left. +\,g_2 \left( {\dot{f}(x,t)+\dot{b}(x,t)u(t)-\ddot{x}_{2d} -{\dddot{l}}(t)} \right) \right) , \nonumber \\&\left. +\,k_i G\left( {E(t)-L(t)} \right) +\kappa \hbox { sgn}(\sigma )\left| \sigma \right| ^{\eta }\right. \nonumber \\&\left. +\,\gamma \sigma +\chi \hbox { sgn}(\sigma ) \right\} , \end{aligned}$$
(13)

where \(\gamma \) and \(\kappa \) are arbitrary positive constants and \(\chi \) is a scalar value which satisfies:

$$\begin{aligned} \chi \ge \max \left( \Lambda \right) , \end{aligned}$$
(14)

where \(\Lambda =\left( {k_p g_2 +k_d g_1 } \right) d(x,t)+k_d g_2 \dot{d}(x,t)\). Then, the sliding manifold \(\sigma (t)\) converges to zero in finite time, the dynamic sliding surface \(s(t)\) converges to zero exponentially, and the tracking action of the desired trajectory \(x_d (t)\) is guaranteed.

Proof

Consider the following candidate Lyapunov function:

$$\begin{aligned} V_1 (t)=\frac{1}{2}\sigma (t)^{T}\sigma (t). \end{aligned}$$
(15)

The first and second time derivatives of the dynamic sliding surface can be obtained from (2)–(4) as:

$$\begin{aligned} \dot{s}(t)= & {} G\left( {\dot{E}(t)-\dot{L}(t)} \right) \nonumber \\= & {} g_1 \left( {\dot{e}(t)-\dot{l}(t)} \right) +g_2 \left( f(x,t)+b(x,t)u(t)\right. \nonumber \\&+\,d(x,t)-\dot{x}_{2d} -\ddot{l}(t) ,\end{aligned}$$
(16)
$$\begin{aligned} \ddot{s}(t)= & {} G\left( {\ddot{E}(t)-\ddot{L}(t)} \right) \nonumber \\= & {} g_1 \left( {f(x,t)+b(x,t)u(t)+d(x,t)-\dot{x}_{2d} -\ddot{l}(t)} \right) \nonumber \\&+\,g_2 \left( \dot{f}(x,t)+\dot{b}(x,t)u(t)+b(x,t)\dot{u}(t)\right. \nonumber \\&\left. +\,\dot{d}(x,t)-\ddot{x}_{2d} -{\dddot{l}}(t) \right) . \end{aligned}$$
(17)

If (4), (16), and (17) are substituted into (12), one gives:

$$\begin{aligned} \dot{\sigma }(t)= & {} k_p \left( g_1 \left( {\dot{e}(t)-\dot{l}(t)} \right) \right. \nonumber \\&+\,g_2 \left( {f(x,t)+b(x,t)u(t)+d(x,t)-\dot{x}_{2d} -\ddot{l}(t)} \right) \nonumber \\&+\,k_i G\left( {E(t)-L(t)} \right) +k_d \left( g_1 \left( f(x,t)\right. \right. \nonumber \\&+\left. \left. \,b(x,t)u(t)+d(x,t)-\dot{x}_{2d} -\ddot{l}(t) \right) \right. \nonumber \\&+\left. \,g_2 \left( \dot{f}(x,t)+\dot{b}(x,t)u(t)+b(x,t)\dot{u}(t)\right. \right. \nonumber \\&+\left. \left. \,\dot{d}(x,t)-\ddot{x}_{2d} -{\dddot{l}}(t) \right) \right) . \end{aligned}$$
(18)

Differentiating \(V_1 (t)\) and using (18) yields:

$$\begin{aligned} \dot{V}_1 (t)= & {} \sigma (t)^{T}\dot{\sigma }(t) \nonumber \\= & {} \sigma (e)^{T}\left\{ k_p \left( g_1 \left( {\dot{e}(t)-\dot{l}(t)} \right) +g_2 \left( f(x,t)\right. \right. \right. \nonumber \\&+\left. \left. \left. \! b(x,t)u(t)+d(x,t)-\dot{x}_{2d} -\ddot{l}(t) \right) \right) \right. \nonumber \\&+\,k_i G\left( {E(t)-L(t)} \right) +k_d \left( g_1 \left( f(x,t)\right. \right. \nonumber \\&+\left. \left. \,b(x,t)u(t)+d(x,t)-\dot{x}_{2d} -\ddot{l}(t) \right) \right. \nonumber \\&+\left. \left. \,g_2 \left( \dot{f}(x,t)+\dot{b}(x,t)u(t)+b(x,t)\dot{u}(t)\right. \right. \right. \nonumber \\&+\left. \left. \left. \,\dot{d}(x,t)-\ddot{x}_{2d} -{\dddot{l}}(t) \right) \right) \right\} , \end{aligned}$$
(19)

where substituting (13) in (19), one can obtain:

$$\begin{aligned} \dot{V}_1 (t)= & {} -\sigma ^{T}\kappa \hbox { sgn}(\sigma )\left| \sigma \right| ^{\eta }-\sigma ^{T}\gamma \sigma -\sigma ^{T}\chi \hbox { sgn}(\sigma )\nonumber \\&+\,\sigma ^{T}\left( {\left( {k_p g_2 +k_d g_1 } \right) d(x,t)+k_d g_2 \dot{d}(x,t)} \right) ,\nonumber \\ \end{aligned}$$
(20)

where based on the condition (14) follows that:

$$\begin{aligned}&\dot{V}_1 (t)\le -\gamma \left| \sigma \right| ^{2}-\kappa \left| \sigma \right| ^{\eta +1} \nonumber \\&\quad =-\alpha V(\sigma )-\beta V^{\bar{{\eta }}}(\sigma ), \end{aligned}$$
(21)

where \(\bar{{\eta }}=\left( {\eta +1} \right) /2<1\), \(\alpha =2\gamma >0\), and \(\beta =2^{\bar{{\eta }}}\kappa >0\). This means that the Lyapunov function (15) decreases gradually and the sliding manifold \(\sigma (t)\) converges to zero in finite time. This completes the proof. \(\square \)

Remark 2

From (5), (6), and (11), one can obtain \(\sigma (0)=0\). Based on the Lyapunov stability analysis, the sliding manifold \(\sigma (t)=0\) can be achieved all the time. This demonstrates that the reaching phase in the sliding mode control can be removed and the global robustness can be satisfied.

Remark 3

Using the discontinuous control law \(\dot{u}(t)\) in (13), the sliding manifold \(\sigma (t)\) is forced to converge to zero in finite time. Thus, by integrating (13), the actual control law \(u(t)\) becomes continuous and eliminates destructive high-frequency oscillations called chattering.

In practice, the upper bound of the system disturbances is often unknown and therefore \(\chi \) is difficult to determine. In the following theorem, an adaptive parameter tuning technique is proposed to estimate the unknown upper bound of the system disturbances.

Theorem 2

Let the PID sliding manifold be in the form of (11) and assume that the external disturbances \(d(x,t)\) and \(\dot{d}(x,t)\) are unknown but bounded, where \(\chi \) in (14) is an unknown positive constant. Also, suppose that \(\hat{{\chi }}\) is the estimation value of \(\chi \) which is estimated by using the following adaptation law:

$$\begin{aligned} \dot{\hat{{\chi }}}=\psi \left| {\sigma (t)} \right| , \end{aligned}$$
(22)

where \(\psi \) is a positive constant. Using the adaptive parameter tuning control law given by:

$$\begin{aligned} \dot{u}(t)= & {} -\left( {g_2 b(x,t)} \right) ^{-1}\left\{ k_p \left( g_1 \left( {\dot{e}(t)-\dot{l}(t)} \right) \right. \right. \nonumber \\&+\left. \left. g_2 \left( {f(x,t)+b(x,t)u(t)-\dot{x}_{2d} -\ddot{l}(t)} \right) \right) \right. \nonumber \\&+\,k_d \left( g_1 \left( {f(x,t)+b(x,t)u(t)-\dot{x}_{2d} -\ddot{l}(t)} \right) \right. \nonumber \\&\left. +\,g_2 \left( {\dot{f}(x,t)+\dot{b}(x,t)u(t)-\ddot{x}_{2d} -{\dddot{l}}(t)} \right) \right) \nonumber \\&\left. {+\,k_i G\left( {E(t)-L(t)} \right) +\kappa \hbox { sgn}(\sigma )\left| \sigma \right| ^{\eta }}\right. \nonumber \\&\left. +\,{\gamma \sigma +\hat{{\chi }}\hbox { sgn}(\sigma )} \right\} , \end{aligned}$$
(23)

then the finite-time convergence of the sliding manifold to zero is guaranteed and also the zero tracking error objective is satisfied.

Proof

The positive definite Lyapunov function is determined as:

$$\begin{aligned} V_2 (t)=\frac{1}{2}\mu \tilde{\chi }^{T}\tilde{\chi }+\frac{1}{2}\sigma ^{T}(t)\sigma (t), \end{aligned}$$
(24)

where \(\tilde{L}=\hat{{L}}-L\) and \(\mu \) is a positive coefficient with the condition \(\mu <\frac{1}{\psi }\). Taking the time derivative of (24) and using (18) and (22) yield:

$$\begin{aligned} \dot{V}_2 (t)= & {} \mu \tilde{\chi }\dot{\tilde{\chi }}+\sigma ^{T}(t)\dot{\sigma }(t) \nonumber \\= & {} \mu \left( {\hat{{\chi }}-\chi } \right) \dot{\hat{{\chi }}}+\sigma ^{T}(t)\left\{ {k_p \dot{s}(t)+k_i s(t)+k_d \ddot{s}(t)} \right\} \nonumber \\= & {} \mu \psi \left( {\hat{{\chi }}-\chi } \right) \left| {\sigma (t)} \right| +\sigma ^{T}(t)\left\{ k_p \left( g_1 \left( {\dot{e}(t)-\dot{l}(t)} \right) \right. \right. \nonumber \\&\left. \left. +\,g_2 \left( f(x,t)+b(x,t)u(t)\right. \right. \right. \nonumber \\&\left. \left. +\,d(x,t)-\dot{x}_{2d} -\ddot{l}(t) \right) \right) \nonumber \\&+\,k_i G\left( {E(t)-L(t)} \right) +k_d \left( g_1 \left( f(x,t)\right. \right. \nonumber \\&\left. \left. +\,b(x,t)u(t)+\,d(x,t)-\dot{x}_{2d} -\ddot{l}(t) \right) \right. \nonumber \\&\left. \left. +\,g_2 \left( \dot{f}(x,t)+\dot{b}(x,t)u(t)+b(x,t)\dot{u}(t)\right. \right. \right. \nonumber \\&\left. \left. \left. +\,\dot{d}(x,t)-\ddot{x}_{2d} -{\dddot{l}}(t) \right) \right) \right\} , \end{aligned}$$
(25)

where substituting (23) into (25), one can obtain:

$$\begin{aligned} \dot{V}_2 (t)= & {} \mu \psi \left( {\hat{{\chi }}-\chi } \right) \left| {\sigma (t)} \right| +\sigma ^{T}(t)\left( -\kappa \hbox { sgn}(\sigma (t))\left| {\sigma (t)} \right| ^{\eta }\right. \nonumber \\&\left. -\,\gamma \sigma (t)-\hat{{\chi }}\hbox { sgn}(\sigma (t))+\Lambda \right) \nonumber \\\le & {} \mu \psi \left( {\hat{{\chi }}-\chi } \right) \left| {\sigma (t)} \right| +\left| \Lambda \right| \left| {\sigma (t)} \right| -\kappa \left| {\sigma (t)} \right| ^{\eta +1}\nonumber \\&-\,\gamma \left| {\sigma (t)} \right| ^{2}-\hat{{\chi }}\left| {\sigma (t)} \right| \nonumber \\\le & {} \,\mu \psi \left( {\hat{{\chi }}-\chi } \right) \left| {\sigma (t)} \right| +\left| \Lambda \right| \left| {\sigma (t)} \right| -\hat{{\chi }}\left| {\sigma (t)} \right| \nonumber \\&+\,\chi \left| {\sigma (t)} \right| -\chi \left| {\sigma (t)} \right| \nonumber \\= & {} -\,\left( {\chi -\left| \Lambda \right| } \right) \left| {\sigma (t)} \right| -\left( {1-\mu \psi } \right) \left( {\hat{{\chi }}-\chi } \right) \left| {\sigma (t)} \right| .\nonumber \\ \end{aligned}$$
(26)

Since \(\chi >\left| \Lambda \right| \) and \(\mu \psi <1\), therefore (26) can be expressed by:

$$\begin{aligned}&\dot{V}_2 (t)\le -\sqrt{2}\left( {\chi -\left| \Lambda \right| } \right) \frac{\left| {\sigma (t)} \right| }{\sqrt{2}}\nonumber \\&\quad -\sqrt{\frac{2}{\mu }}\left( {1-\mu \psi } \right) \frac{\tilde{\chi }}{\sqrt{\frac{2}{\mu }}}\left| {\sigma (t)} \right| \nonumber \\&\quad \le -\min \left\{ {\sqrt{2}\left( {\chi -\left| \Lambda \right| } \right) , \sqrt{\frac{2}{\mu }}\left( {1-\mu \psi } \right) \left| {\sigma (t)} \right| } \right\} \nonumber \\&\quad \times \left( {\frac{\left| {\sigma (t)} \right| }{\sqrt{2}}+\frac{\tilde{\chi }}{\sqrt{\frac{2}{\mu }}}} \right) \nonumber \\&\quad =-\Omega V_2 (t)^{\frac{1}{2}}, \end{aligned}$$
(27)

where \(\Omega =\min \left\{ {\sqrt{2}\left( {\chi -\left| \Lambda \right| } \right) , \sqrt{\frac{2}{\mu }}\left( {1-\mu \psi } \right) \left| {\sigma (t)} \right| } \right\} >0\). In conclusion, using the adaptive tuning control law (23), the finite-time convergence to the sliding manifold \(\sigma (t)=0\) is guaranteed. \(\square \)

Since the discontinuous switching function \(\hbox {sgn}(.)\) presented in (23) can cause the chattering problem, undesired responses can occur for the uncertain nonlinear system. To avoid this problem, the function \(\hbox {sgn}(.)\) can be replaced by the following continuous saturation function:

$$\begin{aligned} \hbox {sat}(\sigma )=\left\{ {\begin{array}{ll} \hbox {sgn}(\sigma ), &{}\quad \left| \sigma \right| >\Phi \\ \frac{\sigma }{\Phi }, &{}\quad \left| \sigma \right| \le \Phi \\ \end{array}} \right. \end{aligned}$$
(28)

where \(\Phi \) is the boundary layer thickness. Furthermore, although the existence of the proposed NFTSMC can be guaranteed outside the \(\Phi \), it cannot be satisfied inside the \(\Phi \). In the worst situation, the state trajectories of the system would just reach \(\Phi \). This will obtain a considerable influence on the steady-state characteristics of the system.

4 Simulation results

The inverted pendulum system is a famous test platform for evaluating control techniques [32]. The control goal is to balance the pendulum in the inverted position. This system has particular and significant real-life applications such as position control, aerospace vehicle control, and robotics [33]. In this section, the proposed control technique is applied to an inverted pendulum system. Dynamical equations of the system are denoted as:

$$\begin{aligned} \dot{x}_1= & {} x_2 , \nonumber \\ \dot{x}_2= & {} \frac{g(m_c +m_p )\sin (x_1 )-m_p l_p x_2^2 \sin (x_1 )\cos (x_1 )}{l_p \left( {\frac{4}{3}(m_c +m_p )-m_p \cos ^{2}(x_1 )} \right) }\nonumber \\&+\,\frac{\cos (x_1 )}{l_p \left( {\frac{4}{3}(m_c +m_p )-m_p \cos ^{2}(x_1 )} \right) }u(t)+d(x,t),\nonumber \\ \end{aligned}$$
(29)

where \(x=\left[ {x_1 , x_2 } \right] ^{T}\), \(x_1 \) and \(x_2 \) are the angular position and angular velocity of the pendulum, \(l_p \) is the length of the pendulum, \(m_c \) is the cart mass, \(m_p \) is the pendulum mass, and \(g\) is the acceleration due to gravity. The values of the system parameters are set as follows:

$$\begin{aligned}&l_p =0.5~\mathrm{m}, \quad m_p =0.1~\mathrm{kg}, \quad m_c =1~\mathrm{kg}, \\&\quad g=9.8~\mathrm{m/s^{2}}. \end{aligned}$$

The external disturbance is assumed as \(d(x,t)=0.3\cos (x_1 )+0.2\cos (\pi t)+0.1\sin (1.5t)u\). From (2) and (29), the bounded nonlinear functions \(f(x,t)\) and \(b(x,t)\) are determined as:

$$\begin{aligned} f(x,t)= & {} \frac{g(m_c +m_p )\sin (x_1 )-m_p l_p x_2^2 \sin (x_1 )\cos (x_1 )}{l_p \left( {\frac{4}{3}(m_c +m_p )-m_p \cos ^{2}(x_1 )} \right) }, \\ b(x,t)= & {} \frac{\cos (x_1 )}{l_p \left( {\frac{4}{3}(m_c +m_p )-m_p \cos ^{2}(x_1 )} \right) }. \end{aligned}$$

The constant parameters are selected as: \(k_p =4\), \(k_i =2\), \(k_d =1\), \(g_1 =5\), \(g_2 =0.6\), \(\psi =4.5\), \(\Phi =0.05\), \(\mu =0.2\), \(\gamma =3\), \(\kappa =15\), and \(\eta =\frac{3}{5}\). The initial conditions of the system states are assumed as:

$$\begin{aligned} x(0)=\left[ 0.5 \quad -1 \right] ^{T}. \end{aligned}$$

The desired trajectory is chosen as:

$$\begin{aligned} x_d (t)=0.5\sin (t). \end{aligned}$$
(30)

The schematic diagram of the control configuration is shown in Fig. 1. The angular position and angular velocity tracking trajectories are shown in Figs. 2 and 3. It can be observed from these figures that the position and velocity states appropriately track the desired reference signals. The time responses of the control input and adaptive parameter \(\chi \) are displayed in Figs. 4 and 5. It is demonstrated that the proposed control law yields the excellent vibration control and robustness features and overcomes the external disturbances and nonlinearities. The time responses of the dynamic sliding surface \(s(t)\) and the PID sliding manifold \(\sigma (t)\) are shown in Figs. 6 and 7. Clearly, it can be seen that the designed sliding surfaces converge to the origin quickly. Noticeably, the simulations confirm the efficiency and feasibility of the proposed method.

Fig. 1
figure 1

Schematic diagram of the proposed controller

Fig. 2
figure 2

Angular position tracking trajectory

Fig. 3
figure 3

Angular velocity tracking trajectory

Fig. 4
figure 4

Control input

Fig. 5
figure 5

Adaptive parameter \(\chi \)

Fig. 6
figure 6

Dynamic sliding surface \(s(t)\)

Fig. 7
figure 7

PID sliding manifold \(\sigma (t)\)

5 Conclusions

In this paper, a novel dynamic PID sliding mode controller is successfully designed for a class of uncertain nonlinear systems. Using the proposed technique, the chattering problem caused by the switching term of the SMC method is eliminated. Also, the proposed control method can guarantee that the system states reach the sliding manifolds at all times, and then the global robustness of the closed-loop system is guaranteed. In addition, an adaptive parameter tuning scheme is presented to estimate the unknown upper bound of the disturbances. Finally, usefulness and effectiveness of the proposed technique for an inverted pendulum system have been verified by simulations.