SN Applied Sciences

, 2:219

# Stability analysis of the homogeneous nonlinear dynamical systems using Lyapunov function generation based on the basic functions

• Mehdi Ansari
• Vahid Meigoli
• Abolhassan Razminia
Research Article
Part of the following topical collections:
1. Engineering: Industrial Informatics: Data Analytics in Remote Sensing and Cyber-Physical Systems

## Abstract

In this paper, based on Lyapunov functions candidates, a new approach in the stability analysis of homogeneous nonlinear systems is proposed in which instead of concentrating on the positive definiteness of the Lyapunov candidate functions, we stress on the negative definiteness of its derivative. Having ensured of negative definiteness of the derivative function, based on sign assignment of the primitive function, the stability of the equilibrium is analyzed wherein the necessary and sufficient conditions are declared simultaneously. Selecting the trend of the Lyapunov candidate function is primarily performed in the form of a linear combination of some simple functions whose unknown coefficients in the candidate function structure are computed based on negative definiteness of the derivative function. Afterward, using these determined coefficients in the Lyapunov function, the sign of the primitive function in the state space is argued. Therefore, the triple sign attitudes of the candidate function can be used to deduce the stability/instability of the equilibrium point. Moreover, in the process of the negative definiteness of the derivative function, the coefficients are obtained using two independent methods. Numerical simulations support the proposed theoretical results and show their effectiveness.

## Keywords

Stability analysis Lyapunov function Homogeneous nonlinear dynamical systems Least squares method

## 1 Introduction

Today, the importance of the issue of stability in control systems, both linear and nonlinear, is clear to everyone, so many researchers’ efforts in the field of control systems have devised appropriate methods for analyzing the stability of control systems [1]. One of the applications of the stability analysis is in cyber-physical systems (CPS) [2], so the stability analysis for these systems is more critical because, as mentioned in [3, 4, 5], these systems exposure with many attacks. In other industrial systems also, stability is a vital factor such as breakwater [6], structural reliability analysis [7], inverter-based nonlinear power systems [8], also some new advances in this field as [9], and so on. As we know, the main idea behind the stability analysis of dynamical systems is the Lyapunov methods. Given that the first method of Lyapunov, utmost opines on the local stability of an equilibrium point, in practice, for extremely nonlinear systems, such as chaotic systems, is not so practical.

On the other hand, the second or direct Lyapunov method, although presenting a sufficient condition for the stability of the equilibrium point of a nonlinear system but finding a candidate function is not systematic or cumulative to meet the conditions of Lyapunov and depending on the type of problem, some functions are offered using trial and error.

So far, many attempts have been made to provide a method for selecting the Lyapunov function, each of which has disadvantages and advantages. For example, we can mention the following: In [10], the method of forming a Lyapunov function with the aid of linear programming for autonomous systems is provided. The mentioned method also provides a lower bound for the absorption region. Establishing a Lyapunov function in the square form for polynomial systems of positive dimensions has taken in [11]. The square Lyapunov function defined in this method is such that some coefficients are unknown, which was calculated using the Homotopy continuation algorithm. A method to determine the Lyapunov function for the desired switching dynamical systems is given in [12]. In [11], by using the theory of normal forms, a method for determining the Lyapunov function for nonlinear systems is presented in the form of normal coordinates.

One of the new ideas in the field of the choice of the Lyapunov function for analyzing the stability of the point of equilibrium of nonlinear systems is the method reported in [13, 14]. This way, called the sum of squares method, or SOS, by forming the Lyapunov function as a sum of pairwise powers polynomial expressions, constructs a certain positive function. Ultimately, by solving a convex optimization problem calculates the unknown coefficients. Recently, the mentioned method has been numerically developed for both types of continuous and discrete-time systems in [15].

Also, in [16], a general structure for the stability analysis of nonlinear systems is presented based on the Sum Of Squared method, which takes place base on the decomposition of the vector into another system. That system is explained in the form of a polynomial vector field with feeds with no memory sentences. It should be noted that all these methods of calculating the Lyapunov function are based on a certain positive function in the sum form squares that simultaneously, the derivative of this function gives a symmetric representation of a sum of squares.

In [17], the backstepping approach is considered for a class of block strict-feedback nonlinear systems. Based on the assumption that nonlinear systems are polynomials, for each backstepping step, the Lyapunov function can be constructed in a polynomial form by Sum Of Square (SOS) technique. A specific linear combination of subsystems’ energies is proposed as Lyapunov function for multi-degree-of-freedom nonlinear stochastic dynamical systems, and the corresponding sufficient condition for the asymptotic Lyapunov stability with probability one is then determined [18]. In [19], they presented a methodology for the algorithmic construction of Lyapunov functions for the transient stability analysis of classical power system models. The proposed methodology used recent advances in the theory of positive polynomials, semidefinite programming, and sum of squares decomposition. In [20] they proposed an approach constructed a continuous piecewise affine function given a suitable partition of the state space, called a triangulation, and values at the vertices of the triangulation. The vertex values are obtained from a Lyapunov function in a classical converse Lyapunov theorem.

Recently in [21], we introduced a new approach to constructing the Lyapunov function, which was fundamentally different from existing methods. In fact, we began with a primary focus on defining the derivative of a function, and then, in the domain space, we define the sign of the candidate function itself. In this way, the result was expressed as a necessary and sufficient condition for the stability of the equilibrium point. The main distinction of this method with the other methods is starting with $$\dot{V}$$ and then reaching $$V$$, while other methods start from a $$V$$ as the candidate of Lyapunov’s function and finally, by determining $$\dot{V}$$ opines on the stability of the equilibrium point. In addition, another innovation in that paper is to provide Lyapunov functions based on the linear combination of simple functions whose coefficients were computed analytically. As a difference with the sum of squares method, calculation of $$V$$ and $$\dot{V}$$ in sum of square method was done at the same time to become sure about the proper symbols of each of these two functions.

In this paper, we extend the method of [21] and calculate the coefficients of Lyapunov function numerically, so many more problems could be solved. The coefficients are determined by using the derivation of the above function. It is worth noting that our main study in this paper deals with standard homogeneous nonlinear systems that are used today in many of the science and engineering branches [22, 23, 24]. Our motivation for the use of these kinds of systems is the formation of candidate Lyapunov function in the form of a linear combination of sentences of the same degree. This candidate function structure, as we will see, will get a systematic approach to stability analysis that will be considered one of the other innovations in this article.

We have to say the method of calculation of unknown coefficients in the SOS approach is fundamentally based on convex optimization, while in this paper, we use two simple algorithms based on Least Squares to calculate the unknown coefficients.

The paper structure is as follows: After this brief introduction, in Sect. 2, the theoretical prerequisites provided for the homogeneous nonlinear systems are reviewed. The main theoretical outcomes of the paper are presented in Sect. 3. In order to demonstrate the ability of the developed theory, some examples are given in Sect. 4, whose numerical simulations confirm the validity of the theoretical results. Finally, the conclusion and the overall results close the paper in Sect. 5.

## 2 Homogeneous systems

In this paper, a special class of nonlinear systems, called standard homogeneous nonlinear systems, is studied. Homogeneous polynomial differential equations appear in all fields of science and engineering due to their unique features.

In fact, it can be said in a general language that many terminology and analytical points in the field of linear systems can be expanded to nonlinear homogeneous systems. One of these unique features is the equivalence of many local attributes around the equilibrium point and globality. For example, if the equilibrium point of a homogeneous nonlinear system is locally stable, in this case, it is also global stable. This feature and other features have led to the widespread use of these systems in the modeling and description of physical systems.

### Definition 1

([25]) A polynomial, whose all terms have the same degree, is called homogeneous polynomial; in other words, a $$V\left( {\text{X}} \right): {\mathbb{R}}^{n} \to {\mathbb{R}}$$ function is homogeneous of $$p$$ degree whenever we hold for all $$\lambda \in {\mathbb{R}}$$:
$$V\left( {\lambda {\mathbf{x}}} \right) = \lambda^{p} V\left( {\mathbf{x}} \right)$$
(1)

In this case, we write $$V \in {\text{H}}_{\text{P}}$$.

### Definition 2

([25]) A dynamical system $${\dot{\mathbf{x}}} = {\mathbf{f}}\left( {\mathbf{x}} \right)$$ is homogeneous of $$k$$ degree if for $${\mathbf{f}}\left( {\mathbf{x}} \right) = \left[ {{\text{f}}_{1} \left( {\mathbf{x}} \right) {\text{f}}_{2} \left( {\mathbf{x}} \right) \ldots {\text{f}}_{\text{n}} \left( {\mathbf{x}} \right)} \right] ^{\text{T}}$$ vector field and $$\lambda \in {\mathbb{R}}$$ we have:
$${\mathbf{f}}\left( {\lambda {\mathbf{x}}} \right) = \lambda^{k} {\mathbf{f}}\left( {\mathbf{x}} \right)$$
(2)

In this case, we write $${\text{f}} \in {\text{S}}_{\text{k}}$$.

It can be seen from Eq. (1) if the homogeneous polynomial $$V$$ has the same sign on an arc of the unit circle $$\left\{ {{\mathbf{x}} \in {\mathbb{R}}^{\text{n}} :{\text{x}} = 1 } \right\}$$, in this case, that function will be the same on the radial part of that arc. This feature is shown in Fig. 1. As an example, the yellow sector is, in fact, the expansion of a branch of a corresponding arc, in which the polynomial does not change its sign on it. Thus, the problem of determining the sign of a homogeneous polynomial decreases to its sign on a single circle.

### Definition 3

For a vector such as $${\text{x}} \in {\mathbb{R}}^{\text{n}}$$ and a natural number such as $$p \in {\mathbb{N}}$$, $$p$$-form representation is defined as follows:
$${\mathbf{x}}^{\left[ p \right]} = \left( {x_{1}^{p} ,x_{1}^{p - 1} x_{2} ,x_{1}^{p - 1} x_{3} , \ldots ,x_{1}^{{p_{1} }} x_{2}^{{p_{2} }} \ldots x_{n}^{{p_{n} }} , \ldots ,x_{n}^{p} } \right)$$
(3)
This $$p$$-form representation contains sentences as $$x_{1}^{{P_{1} }} x_{2}^{{P_{2} }} , \ldots ,x_{n}^{{P_{n} }}$$ which
$$p_{1} + p_{2} + \cdots + p_{n} = p, \quad p_{i} \in {\mathbb{N}}_{0}$$
(4)
where $${\mathbb{N}}_{0} = {{\mathbb{N}}\bigcup }\left\{ 0 \right\}$$.
To form the $${\mathbf{x}}^{\left[ P \right]}$$ representation in a standard manner, we can use lexicography. For example, for $$p = 5$$ and $$n = 3$$, its lexicographic arrangement is as follows:
\begin{aligned} x^{\left[ 5 \right]} & = (x_{1}^{5} ,x_{1}^{4} x_{2} ,x_{1}^{4} x_{3} ,x_{1}^{3} x_{2}^{2} ,x_{1}^{3} x_{2} x_{3} ,x_{1}^{3} x_{3}^{2} , \\ & \quad x_{1}^{2} x_{2}^{3} ,x_{1}^{2} x_{2}^{2} x_{3} ,x_{1}^{2} x_{2} x_{3}^{2} ,x_{1}^{2} x_{3}^{3} ,x_{1} x_{2}^{4} ,x_{1} x_{2}^{3} x_{3} , \\ & \quad x_{1} x_{2}^{2} x_{3}^{2} ,x_{1} x_{2} x_{3}^{3} ,x_{1} x_{3}^{4} ,x_{2}^{5} ,x_{2}^{4} x_{3} ,x_{2}^{3} x_{3}^{2} ,x_{2}^{2} x_{3}^{3} ,x_{2} x_{3}^{4} ,x_{3}^{5} ) \\ \end{aligned}
(5)

It can be easily shown for integers $$p,n$$, there exists $$m = \left( {\begin{array}{*{20}c} {n + p - 1} \\ p \\ \end{array} } \right)$$ functions of a single sentence of $$p$$ degree in a $$p$$-form representation. Below are some useful features of the homogeneous dynamic systems that are used in the next section. In all of the following, it is assumed that the system equilibrium point is at the origin.

### Lemma 1

[26] Assume that the dynamic system $${\dot{\mathbf{x}}} = {\mathbf{f}}\left( {\mathbf{x}} \right)$$ is homogeneous. If the vector field $${\mathbf{f}}$$ is continuous and the equilibrium point of the system is stable, then there is a homogeneous Lyapunov function to prove the stability of this system.

This lemma actually limits the search scope to the Lyapunov function for homogeneous functions, which can be valuable from the computational point of view. An exhaustive version of this proposition is given in the following lemma.

### Lemma 2

[27] For the homogeneous dynamical system $${\dot{\mathbf{x}}} = {\mathbf{f}}\left( {\mathbf{x}} \right)$$ which $${\mathbf{f}} \in {\text{S}}_{\text{k}}$$ if $$V \in {\text{H}}_{\text{P}}$$ is chosen, then the derivative $$V\left( {\mathbf{x}} \right)$$ along the answers of the following system is a homogeneous function of $${\text{degree }}p + k - 1$$; that is $$\dot{V} \in H_{p + k - 1}$$.

## 3 Theoretical results

The most famous theorem in analyzing and designing nonlinear systems is the Lyapunov theorem (Lyapunov’s direct method), which Provides sufficient conditions for stability of the equilibrium point. Moreover, in [28], the so-called instability theory stated that it shows the unstable equilibrium point for unstable systems. In this section, the concept of equilibrium stability is commented upon by starting with a negative definite term for the derivation of the Lyapunov candidate function and then determining the sign of the function itself.

### Theorem 1

The dynamical system $${\dot{\mathbf{x}}} = {\mathbf{f}}\left( {\mathbf{x}} \right)$$ is assumed. If there is a continuous partial function $$V\left( {\mathbf{x}} \right)$$ with $$V\left( 0 \right) = 0$$ and $$\dot{V}\left( {\mathbf{x}} \right)$$ along the system responses is negative definite, in this case if $$V\left( X \right)$$ is topically positive then the equilibrium point of the system is asymptotically stable; otherwise, the point of equilibrium is unstable.

### Proof

For the given dynamical system, we first show that the function $$V\left( {\mathbf{x}} \right)$$ is never Positive semi definite or negative semi definite. With contrary assumption, if $$V\left( {\mathbf{x}} \right)$$ is a positive semi definite, then at a point out of origin $${\mathbf{x}}_{0}$$, we have $$V\left( {{\mathbf{x}}_{0} } \right) = 0$$,.But because of the assumption of the theorem, out of origin,$$\dot{V}\left( {\mathbf{x}} \right)$$ is always negative, and $$V\left( {\mathbf{x}} \right)$$ chances sign by passing that point $${\text{x}}_{0}$$ and this contradicts with positive semi definite of the $$V\left( {\mathbf{x}} \right)$$ function. So the hypothesis is invalidated. In the same way, it can be shown that $$V\left( {\mathbf{x}} \right)$$ is never negative semi definite.

Now we can say that $$V\left( {\mathbf{x}} \right)$$ has three states: totally positive definite, totally negative definite, and indeterminate. Each of these three modes is as follows separately reviewed:
1. 1.

Situation $$V\left( {\mathbf{x}} \right) > 0$$: This condition is exactly the expression of the Lyapunov theorem, which states that for a positive function $$V\left( {\mathbf{x}} \right)$$, whose derivative is always negative definite, the asymptotically stability of the equilibrium point is deductible.

2. 2.

Situation $$V\left( {\mathbf{x}} \right) < 0$$: In this situation, by setting $$\Lambda = - V$$, clearly the hypotheses of the instability theory are obtained. In other words, for the dynamical system studied, we have: $$\varLambda > 0$$ and $$\dot{\varLambda } > 0$$. Thus, according to [28], the instability of the equilibrium point results.

3. 3.

$$V\left( {\mathbf{x}} \right)$$ indeterminate situation: The change of sign $$V\left( {\mathbf{x}} \right)$$ around the equilibrium point means that there is a region around this point, which on that area the sign of $$V\left( {\mathbf{x}} \right)$$ is negative. For this situation, this small area that is adjacent to the equilibrium point, the sign $$V\left( {\mathbf{x}} \right)$$ and $$\dot{V}\left( {\mathbf{x}} \right)$$ are both negative, which, according to condition 2, we conclude that the equilibrium point is unstable.

This completes the proof.□

In the following, by limiting the discussion to homogeneous systems, two methods are proposed for the formation of the Lyapunov function, and hence we conclude the globally stability of the equilibrium point by using that way. For this purpose, consider the homogeneous nonlinear dynamical system $${\dot{\mathbf{x}}} = {\mathbf{f}}\left( {\mathbf{x}} \right)$$ that $${\text{f}} \in {\text{S}}_{\text{k}}$$.We consider the basic functions $$V_{i} \left( {\mathbf{x}} \right)$$ in the $$i$$th entry of $$p$$-representation corresponding to state vector $${\mathbf{x}} \in {\mathbb{R}}^{\text{n}}$$ as follows:
$$v_{i} ({\mathbf{x}}) = {\mathbf{x}}_{i}^{[p]}$$
(6)
We now construct the function of the Lyapunov candidate in the form of the linear combination of these basic functions:
\begin{aligned} V\left( {\mathbf{x}} \right) = \mathop \sum \limits_{i = 1}^{m} a_{i} v_{i} \left( {\mathbf{x}} \right) \hfill \\ \,\,\,\,\,\,\,\,\,\,\,\, = {\mathbf{a}}^{T} ({\mathbf{x}}^{[p]} )^{T} \hfill \\ \end{aligned}
(7)
where $$m = \left( {\begin{array}{*{20}c} {p + k - 1} \\ p \\ \end{array} } \right)$$ is the representation of the number of terms in $$p$$-form, and $$a_{i}$$ are also disturbing coefficients that must be calculated as it goes on in the following. It is noteworthy that the $$p$$-form exhibitions are considered to be linearly independent. In this case, the linear composition coefficients in Eq. (7) are unique. On the other hand, it is easy to see $$V\left( 0 \right) = 0$$. It is clear that according to the symbol introduced in Eq. (7), the vector of coefficients is as follows
$${\mathbf{a}} = \left[ {\begin{array}{*{20}c} {a_{1} } & {a_{1} } & \cdots & {a_{m} } \\ \end{array} } \right]^{T}$$
(8)
Now, by derivation of the proposed Lyapunov Eq. (7) for the homogeneous system $${\dot{\mathbf{x}}} = {\mathbf{f}}\left( {\mathbf{x}} \right)$$ we have:
$$\dot{V}({\mathbf{x}}) = \mathop \sum \limits_{i = 1}^{m} a_{i} \dot{v}_{i} \left( {\mathbf{x}} \right) \equiv {\mathbf{a}}^{T} H^{T} ({\mathbf{x}}^{[p + k - 1]} )^{T} < 0$$
(9)
where $$H$$ is an intermediate matrix that can be calculated depending on the problem. It should be noted that according to Lemma 2, we can say that $$\dot{V}\left( X \right)$$ is homogeneous of degree $$p + k - 1$$, and also the linear combination of the base functions $$V_{i}^{'} \left( X \right)$$ according to Eq. (9) is homogeneous of the $$p + k - 1$$ degree. The method of calculation of the middle matrix is given in the next section. Therefore, the problem becomes the computation of $$a$$ vector such that Eq. (9) holds.
To do this, we set $$\dot{V}\left( {\mathbf{x}} \right)$$ equal to a definite negative function and calculate the unknown coefficients. Before proceeding to demonstrate general methods, the subject is explained by an example. In order to this issue, first consider the following dynamic system with the equilibrium point of the origin:
$$\left\{ {\begin{array}{*{20}c} {\dot{x}_{1} = - x_{1}^{3} - 2x_{2}^{3} } \\ {\dot{x}_{2} = 3x_{1}^{3} - 3x_{2}^{3} } \\ \end{array} } \right.$$
(10)
In the subsequent lines the status of the stability of the equilibrium point is analyzed. It is clear that the mentioned system is homogeneous. So we can choose the Lyapunov function, as a homogeneous form of degree 4:
$$V({\mathbf{x}}) = a_{1} x_{1}^{4} + a_{2} x_{1}^{3} x_{2} + a_{3} x_{1}^{2} x_{2}^{2} + a_{4} x_{1} x_{2}^{3} + a_{5} x_{2}^{4}$$
(11)
and calculate its derivation along the paths of the system:
\begin{aligned} \dot{V}({\mathbf{x}}) & = ( - \;4a_{1} + 3a_{2} )x_{1}^{6} + ( - \;3a_{2} + 6a_{3} )x_{1}^{5} x_{2} \\ & \quad + \;( - 2a_{3} + 9a_{2} )x_{1}^{4} x_{2}^{2} + ( - \;8a_{1} - 3a_{2} - a_{4} \\ & \quad + \;12a_{5} )x_{1}^{3} x_{2}^{3} + ( - \;6a_{2} - 6a_{3} )x_{1}^{2} x_{2}^{4} \\ & \quad + \;( - \;4a_{3} - 9a_{4} )x_{1} x_{2}^{5} + ( - 2a_{4} - 12a_{5} )x_{2}^{6} \\ \end{aligned}
(12)
By putting the above phrase equivalent with a negative phrase like $$- 12x_{1}^{6} - 24x_{2}^{6}$$, simply the following unique answers are obtained for the coefficients:
$$a_{1} = 3,\,\,a_{2} = a_{3} = a_{4} = 0,\,\,a_{5} = 2$$
(13)
Thus, the following Lyapunov function is obtained:
$$V(x) = 3x_{1}^{4} + 2x_{2}^{4}$$
(14)
which clearly indicates the asymptotic stability of the equilibrium point.

In this example, as we have seen, the number of necessary equations was also sufficient from which the unique factors of the unknown coefficients were obtained. And the Lyapunov function was obtained. But in general, one cannot be sure that the equations derived from the unification of derivative function with a desired negative definite phrase give a unique answer. In the following, we explain the above example in a more general way; through that way, a method for calculating the Lyapunov function is obtained. The method presented below is simply extendible for more general systems.

### 3.1 Algebraic method

Consider the following nonlinear homogeneous system of degree 3
$$\left\{ {\begin{array}{*{20}c} {\dot{x}_{1} = b_{11} x_{1}^{3} + b_{12} x_{2}^{3} } \\ {\dot{x}_{2} = b_{21} x_{1}^{3} + b_{22} x_{2}^{3} } \\ \end{array} } \right.$$
(15)
Initially, by choosing a homogeneous Lyapunov candidate function of degree 4, as follows:
\begin{aligned} V({\mathbf{x}}) & = a_{1} x_{1}^{4} + a_{2} x_{1}^{3} x_{2} + a_{3} x_{1}^{2} x_{2}^{2} + a_{4} x_{1} x_{2}^{3} + a_{5} x_{2}^{4} \\ & = {\mathbf{a}}^{T} ({\mathbf{x}}^{[4]} )^{T} \\ \end{aligned}
(16)
By taking time derivative of this function one can get:
\begin{aligned} \dot{V}({\mathbf{x}}) & = 4\dot{x}_{1} x_{1}^{3} a_{1} + (3\dot{x}_{1} x_{1}^{2} x_{2} + x_{1}^{3} \dot{x}_{2} )a_{2} \\ & \quad + \;(2\dot{x}_{1} x_{1} x_{2}^{2} + 2x_{1}^{2} \dot{x}_{2} x_{2} )a_{3} \\ & \quad + \;(\dot{x}_{1} x_{2}^{3} + 3x_{1} \dot{x}_{2} x_{2}^{2} )a_{4} + 4\dot{x}_{2} x_{2}^{3} a_{5} \\ \end{aligned}
(17)
Now, inserting the dynamics of Eq. (15) in $$V$$, the above statement reduces to:
\begin{aligned} \dot{V}({\mathbf{x}}) & = (4b_{11} a_{1} + b_{21} a_{2} )x_{1}^{6} + (3b_{11} a_{2} + 2b_{21} a_{3} )x_{1}^{5} x_{2} \\ & \quad + \;(2b_{11} a_{3} + 3b_{21} a_{2} )x_{1}^{4} x_{2}^{2} + (4b_{12} a_{1} + b_{22} a_{2} + b_{11} a_{4} \\ & \quad + \;4b_{21} a_{5} )x_{1}^{3} x_{2}^{3} + (3b_{12} a_{2} + 2b_{22} a_{3} )x_{1}^{2} x_{2}^{4} \\ & \quad + \;(2b_{12} a_{3} + 3b_{22} a_{4} )x_{1} x_{2}^{5} + (b_{12} a_{4} + 4b_{22} a_{5} )x_{2}^{6} \\ \end{aligned}
(18)
which is retrieved in the following matrix form:
$$\left[ {\begin{array}{*{20}c} {a_{1} } \\ {a_{2} } \\ {a_{3} } \\ {a_{4} } \\ {a_{5} } \\ \end{array} } \right]^{T} \left[ {\begin{array}{*{20}c} {4b_{11} } & 0 & 0 & {4b_{12} } & 0 & 0 & 0 \\ {b_{21} } & {3b_{11} } & 0 & {b_{22} } & {3b_{12} } & 0 & 0 \\ 0 & {2b_{21} } & {2b_{11} } & 0 & {2b_{22} } & {2b_{12} } & 0 \\ 0 & 0 & {3b_{21} } & {b_{11} } & 0 & {2b_{22} } & {b_{12} } \\ 0 & 0 & 0 & {4b_{21} } & 0 & 0 & {4b_{22} } \\ \end{array} } \right]\left[ {\begin{array}{*{20}c} {x_{1}^{6} } \\ {x_{1}^{5} x_{2} } \\ {x_{1}^{4} x_{2}^{2} } \\ {x_{1}^{3} x_{2}^{3} } \\ {x_{1}^{2} x_{2}^{4} } \\ {x_{1} x_{2}^{5} } \\ {x_{2}^{6} } \\ \end{array} } \right] = {\mathbf{a}}^{T} H^{T} ({\mathbf{x}}^{[6]} )^{T}$$
(19)
where
$$H = \left[ {\begin{array}{*{20}c} {4b_{11} } & {b_{21} } & 0 & 0 & 0 \\ 0 & {3b_{11} } & {2b_{21} } & 0 & 0 \\ 0 & 0 & {2b_{11} } & {3b_{21} } & 0 \\ {4b_{12} } & {b_{22} } & 0 & {b_{11} } & {4b_{21} } \\ 0 & {3b_{12} } & {2b_{22} } & 0 & 0 \\ 0 & 0 & {2b_{12} } & {2b_{22} } & 0 \\ 0 & 0 & 0 & {b_{12} } & {4b_{22} } \\ \end{array} } \right]$$
(20)
Now we equalize the Eq. (19) with a certain negative function, such as $$Z^{T} ({\mathbf{x}}^{[p + k - 1]} )^{T}$$:
$$\dot{V}({\mathbf{x}}) \equiv Z^{T} ({\mathbf{x}}^{[p + k - 1]} )^{T}$$
(21)
For example, in the two-variable mode $$n = 2$$, the choice for $$Z$$ can be as follows:
$$Z = \left[ {\begin{array}{*{20}c} { - 1} & 0 & { - 1} & 0 & \cdots & 0 & { - 1} \\ \end{array} } \right]^{T}$$
(22)
Therefore, by comparing Eq. (19) with Eq. (21), the unknown coefficients $$a$$ are obtained by solving the following equation.
$$H{\mathbf{a}} = Z$$
(23)
According to the coefficients of the basic functions, since in the resulting Eq. (23) the number of unknowns $$(a_{i} )$$ (the vector length of $$x^{[p]}$$) is less than the number of equations (that is, the vector length of $$x^{[p + k - 1]}$$) and the coefficients are not exactly determined, one way to determine the optimal of these abnormalities is to use The least squares method [29], which proposes the following response from Eq. (23)
$${\mathbf{a}} = \left( {H^{T} H} \right)^{ - 1} H^{T} Z$$
(24)
After calculating the $$a^{\prime } s$$ coefficients a sign for $$\dot{V}\left( {\mathbf{x}} \right)$$ should be checked out. In case of failure to get the necessary signs two ways are suggested:
1. 1.

Reselection the $$Z$$ vector and then check the necessary sign for the $$\dot{V}\left( {\mathbf{x}} \right)$$ and assign the $$V\left( {\mathbf{x}} \right)$$ sign.

2. 2.

Increase the degree of Lyapunov’s function and then repeat the steps of the above algorithm.

### 3.2 Geometric method

In the following, another method is presented for calculating the unknown coefficients of the Lyapunov candidate function, based on Theorem 1. For this purpose, consider $$V\left( {\mathbf{x}} \right)$$ to the form of the Eq. (7), we set the value of the function $$\dot{V}\left( {\mathbf{x}} \right)$$ on the unit sphere to a given value. According to the homogeneity of this function, we consider the value of $$\dot{V}\left( {\mathbf{x}} \right) = - 1$$. Now, by choosing the number of N points on the surface of the unit sphere, we form the following equations:
$$\sum\limits_{i = 1}^{m} {a_{i} \dot{v}_{i} (x^{j} )} = - 1,\quad j = 1,2,3, \ldots ,N$$
(25)
where $${\mathbf{x}}^{j}$$ is the j-point on a unit sphere, and we have $$N$$ number of equations and $$m$$ unknown parameters, which always must $$N \ge m$$ that the set of Equations be solvable. Note that these $$N$$ points are selected in the form of an equal align on the sphere that by increasing their number, points location becomes closer together, and then the precision of the answer gets better. On the other hand, increasing of $$N$$ will result in heavier computing. That it will slow down the program. The set of Eq. (25) can be retrieved in the following matrix:
$$G{\mathbf{a}} = \left[ {\begin{array}{*{20}c} {\dot{v}_{1} ({\mathbf{x}}^{1} )} & {\dot{v}_{2} ({\mathbf{x}}^{1} )} & \cdots & {\dot{v}_{m} ({\mathbf{x}}^{1} )} \\ {\dot{v}_{1} ({\mathbf{x}}^{2} )} & {\dot{v}_{2} ({\mathbf{x}}^{2} )} & \cdots & {\dot{v}_{m} ({\mathbf{x}}^{2} )} \\ \vdots & \vdots & \ddots & \vdots \\ {\dot{v}_{1} ({\mathbf{x}}^{N} )} & {\dot{v}_{2} ({\mathbf{x}}^{N} )} & \cdots & {\dot{v}_{m} ({\mathbf{x}}^{N} )} \\ \end{array} } \right]\left[ {\begin{array}{*{20}c} {a_{1} } \\ {a_{2} } \\ \vdots \\ {a_{m} } \\ \end{array} } \right] = \left[ {\begin{array}{*{20}c} { - 1} \\ { - 1} \\ \vdots \\ { - 1} \\ \end{array} } \right]$$
(26)
where $$G$$ matrix is a $$N \times m$$ matrix. Given that in this device, the number of equations is greater than the number of unknowns, one method of calculating the missing vector is using the Least Squares method. Simply the answer is as following:
$${\mathbf{a}} = \left( {G^{T} G} \right)^{ - 1} G^{T} \left( {\begin{array}{*{20}c} { - 1} \\ { - 1} \\ \vdots \\ { - 1} \\ \end{array} } \right)$$
(27)

After calculating $${\mathbf{a}}$$, vector of the coefficients, by inserting them in the $$\dot{V}\left( {\mathbf{x}} \right)$$ expression again, we must check the sign $$\dot{V}\left( {\mathbf{x}} \right)$$ and $$V\left( {\mathbf{x}} \right)$$. After assurance of the negative making of $$\dot{V}\left( {\mathbf{x}} \right)$$, by using the calculated coefficients $$a$$ of Eq. (27) and their replacement in Eq. (7), function $$V\left( {\mathbf{x}} \right)$$ forms that by determining its sign and using Theorem 1, we can analyze the stability of the equilibrium point of the studied system.

## 4 Examples and simulations

In this section, examples are presented to illustrate the theoretical results obtained in the preceding sections. In fact, we will investigate all three modes that are expressed in theory 1 with three different examples using the proposed solution methods.

### Example 1

Consider the system introduced in Eq. (10) once again. By choosing the Lyapunov function as in Eq. (16) which is homogeneous of degree 4, its derivative is calculated as follow:
\begin{aligned} \dot{V}({\mathbf{x}}) & = (3a_{2} - 4a_{1} )x_{1}^{6} + (6a_{3} - 3a_{2} )x_{1}^{5} x_{2} \\ & \quad + \;(9a_{4} - 2a_{3} )x_{1}^{4} x_{2}^{2} + (12a_{5} - 3a_{2} - a_{4} - 8a_{1} )x_{1}^{3} x_{2}^{3} \\ & \quad + \;( - \;6a_{2} - 6a_{3} )x_{1}^{2} x_{2}^{4} + ( - \;4a_{3} - 9a_{4} )x_{1} x_{2}^{5} - (2a_{4} - 12a_{5} )x_{2}^{6} \\ \end{aligned}
(28)
To solve the problem using the algebraic method, we select the vector $$Z$$ as follows:
$$Z = \left[ {\begin{array}{*{20}c} { - 1} & 0 & { - 1} & 0 & { - 1} & 0 & { - 1} \\ \end{array} } \right]^{T}$$
(29)
Then, by using the Eq. (24), we obtain the following coefficients:
$$a_{1} = 0.184,\quad a_{2} = 0.054,\quad a_{3} = 0.090,\quad a_{4} = - \;0.069,\quad a_{5} = 0.113$$
(30)
So the $$\dot{V}\left( X \right)$$ form will be obtained as follows:
\begin{aligned} \dot{V}({\mathbf{x}}) & = - \; 0. 5 7 2 2x_{1}^{6} + 0. 3 7 5 3x_{1}^{5} x_{2} - 0. 8 0 5 2x_{1}^{4} x_{2}^{2} \\ & \quad - \; 0. 2 1 3 8x_{1}^{3} x_{2}^{3} - 0. 8 6 7x_{1}^{2} x_{2}^{4} + 0. 2 6 6x_{1} x_{2}^{5} - 1. 2 1 3 8x_{2}^{6} \\ \end{aligned}
(31)
In Fig. 2, the value of $$\dot{V}\left( {\mathbf{x}} \right)$$ for, $${\mathbf{x}} = [\sin \theta ,\cos \theta ]$$ is plotted on the unit circle. As is evident from the Fig. 2, $$\dot{V}\left( {\mathbf{x}} \right)$$ is negative definite. Also, the $$V\left( {\mathbf{x}} \right)$$ function is obtained as follows:
$$V = 0.184x_{1}^{4} + 0.0546x_{1}^{3} x_{2} + 0.0899x_{1}^{2} x_{2}^{2} - 0.0695x_{1} x_{2}^{3} + 0.1127x_{2}^{4}$$
(32)

As shown in Fig. 2, $$V\left( X \right)$$ is a certain positive function, and therefore, by referring to the theory 1, the asymptotic stability of equilibrium point of the system Eq. (10) is proved.

### Example 2

Consider the homogeneous system described in Eq. (15) with the following parameters values:
$$b_{11} = 2,\quad b_{12} = 5,\quad b_{21} = - \;4,\quad b_{22} = 1$$
(33)
To analyze the stability of the equilibrium point of the system by using the algebraic method, by choosing the Lyapunov function presented in Eq. (16) and using Eq. (20) for the $$H$$ matrix, and taking into account the Eq. (29) for the $$Z$$ vector, the following value is obtained for the vector of unknown coefficients through the Eq. (24):
$$a_{1} = - \;0.054,\quad a_{2} = - \;0.063,\quad a_{3} = - \;0.032,\quad a_{4} = 0.064,\quad a_{5} = - \;0.006$$
(34)
By plotting $$V\left( {\mathbf{x}} \right)$$ and $$\dot{V}\left( {\mathbf{x}} \right)$$ functions on the unit circle around the origin on the phase space page, as shown in Fig. 3, while $$\dot{V}\left( {\mathbf{x}} \right)$$ is negative definite, $$V\left( {\mathbf{x}} \right)$$ is also a negative definite function. By using the Theorem 1, we can conclude that the equilibrium point of the studied system is unstable.

### Example 3

Consider the following homogeneous system of degree 2:
$$\left\{ {\begin{array}{*{20}c} {\dot{x}_{1} = x_{1}^{2} + x_{2}^{2} } \\ {\dot{x}_{2} = 2x_{1} x_{2} } \\ \end{array} } \right.$$
(35)
By selecting the Lyapunov candidate function as follows:
$$V(x) = a_{1} x_{1}^{3} + a_{2} x_{1}^{2} x_{2} + a_{3} x_{1}^{1} x_{2}^{2} + a_{4} x_{2}^{3}$$
(36)
And calculating its derivative along the system’s answers, the following expressions are obtained for $$V\left( {\mathbf{x}} \right)$$ and $$\dot{V}\left( {\mathbf{x}} \right)$$:
\begin{aligned} \dot{V}({\mathbf{x}}) & = - \;0.8148x_{1}^{4} - 1.185x_{1}^{2} x_{2}^{2} - 0.0741x_{2}^{4} , \\ V({\mathbf{x}}) & = - \;0.2716x_{1}^{3} - 0.0741x_{1} x_{2}^{2} \\ \end{aligned}
(37)
where the algebraic method is used with the following $$Z$$-vector.
$$Z = \left[ {\begin{array}{*{20}c} { - 1} & 0 & { - 1} & 0 & { - 1} \\ \end{array} } \right]^{T}$$
(38)
By drawing the functions $$V\left( {\mathbf{x}} \right)$$ and $$\dot{V}\left( {\mathbf{x}} \right)$$ on a circle around the origin as it is clear in Fig. 4, while $$\dot{V}\left( {\mathbf{x}} \right)$$ is negative definite, $$V\left( {\mathbf{x}} \right)$$ changes sign. By using Theorem 1, we find the instability of the equilibrium point of system Eq. (33).

### Example 4

In this example, we reconsider the system presented in Eq. (10) and use the geometric method and in the case of the Theorem 1, we analyze the stability of its equilibrium point. We consider the initial Lyapunov function as the Eq. (16), whose derivative along the solution system, is as follows:
\begin{aligned} \dot{V}({\mathbf{x}}) & = ( - \;8x_{1}^{3} x_{2}^{3} - 4x_{1}^{6} )a_{1} + (3x_{1}^{6} - 3x_{1}^{5} x_{2} - 3x_{1}^{3} x_{2}^{3} - 6x_{1}^{2} x_{2}^{4} )a_{2} \\ & \quad + \;(6x_{1}^{5} x_{2} - 2x_{1}^{4} x_{2}^{2} - 6x_{1}^{2} x_{2}^{4} - 4x_{1} x_{2}^{5} )a_{3} \\ & \quad + \;(9x_{1}^{4} x_{2}^{2} - x_{1}^{3} x_{2}^{3} - 9x_{1} x_{2}^{5} - 2x_{2}^{6} )a_{4} + (12x_{1}^{3} x_{2}^{3} + 12x_{2}^{6} )a_{5} \\ \end{aligned}
(39)
To use the geometric method, we select 6 points on the unit circle in the form of $$\left( {a_{1 } \ldots a_{5} } \right)$$, there will be an equation with five unknowns which, by means of Eq. (27), the amount of the coefficients are as follows:
$$a_{1} = 0.452,\quad a_{2} = 0.269,\quad a_{3} = 0.377,\quad a_{4} = - 0.200,\quad a_{5} = 0.109$$
(40)
By placing these coefficients in $$V\left( {\mathbf{x}} \right)$$ and $$\dot{V}\left( {\mathbf{x}} \right)$$ and drawing the obtained functions in the distance $$\theta \in \left( {0,2\pi } \right)$$, Fig. 5 will be obtained, where $$N = 6$$.
As is shown in Fig. 5, the value $$\dot{V}\left( {\mathbf{x}} \right)$$ is always negative and $$V\left( {\mathbf{x}} \right)$$ is always positive, according to the Theorem 1, the equilibrium point of the system is asymptotically stable. As indicated, Fig. 5 is plotted for $$N = 6$$. Now by increasing the $$N$$ by $$25$$, Fig. 6 shows that a significant change in the values of $$V\left( {\mathbf{x}} \right)$$ will not be achieved, while the shape $$\dot{V}\left( {\mathbf{x}} \right)$$ around $$- \;1$$ is getting smoother that this is also due to the increase in the number of selected points in calculating the coefficient vector in the geometric method.
So far, assuming $$p = 4$$ has been worked out. Now, we want to see the effect of increasing p on the $$\dot{V}\left( {\mathbf{x}} \right)$$ oscillation range around $$- \;1$$. So we repeat the problem again for $$p = 8$$, which leads to the definition of the following function:
\begin{aligned} V({\mathbf{x}}) & = a_{1} x_{1}^{8} + a_{2} x_{1}^{7} x_{2} + a_{3} x_{1}^{6} x_{2}^{2} + a_{4} x_{1}^{5} x_{2}^{3} + a_{5} x_{1}^{4} x_{2}^{4} \\ & \quad + \;a_{6} x_{1}^{3} x_{2}^{5} + ax_{1}^{2} x_{2}^{6} + a_{8} x_{1} x_{2}^{7} + a_{9} x_{2}^{8} \\ \end{aligned}
(41)
By using the geometric method we will have:
\begin{aligned} \dot{V}(x) & = - \;1.015x_{1}^{10} + 0.03x_{1}^{9} 3x_{2} - 4.249x_{1}^{8} x_{2}^{2} - 0.41x_{1}^{7} x_{2}^{3} - 13.49x_{1}^{6} x_{2}^{4} \\ & \quad + \;1.044x_{1}^{5} x_{2}^{5} - 6.538x_{1}^{4} x_{2}^{6} - 0.598x_{1}^{3} x_{2}^{7} - 5.724x_{1}^{2} x_{2}^{8} + 0.059x_{1} x_{2}^{9} - 0.984x_{2}^{10} \\ \end{aligned}
(42)
As shown in Fig. 7, the oscillation in $$\dot{V}\left( {\mathbf{x}} \right)$$ is reduced, which means $$\dot{V}\left( {\mathbf{x}} \right)$$ is nearer to the optimal value $$- \;1$$.

Thus, we can say by increasing the degree of the initial Lyapunov function, can more accurately obtain a certain negative $$\dot{V}\left( X \right)$$.

## 5 Conclusion and further directions

The Lyapunov stability and instability theorems present a standard method for analyzing the stability of nonlinear systems. This article by considering the common part of the previous theorems, which is being negative definite of the derivative of the Lyapunov candidate function, presented these cases in the form of a theorem, which is based on determining the sign of the initial function. Therefore, the approach of this paper emphasizes on the being negative definite of its derivative in the analysis of the stability of nonlinear systems, rather than focusing on the being positive definite on the significance of the Lyapunov candidate function. This method forms the Lyapunov candidate function as a linear combination of some base functions a $$p$$-form with unknown coefficients. The coefficients of this linear composition must be found in such a way as derivative of the candidate function Lyapunov be a negative definite function. For this purpose, two methods, called algebraic and geometric methods, were presented to calculate the unknown coefficients in homogeneous systems, based on the least squares method.

Although we have shown progress to find unknown coefficients for the Lyapunov function in the homogenous system, we can expand it to other nonlinear systems, and it could be an open question. Further work should include the development of stability analysis for a new nonlinear system. Besides, we can implement this solution in any branch of science.

## Notes

### Conflict of interests

The author declare that they have no competing interests.

## References

1. 1.
Khalil H (2002) Nonlinear systems. Prentice Hall, Upper Saddle River
2. 2.
Kim H, Guo P, Zhu M, Liu P (2017)Attack-resilient estimation of switched nonlinear cyber-physical systems. In: 2017 American control conference (ACC), Seattle, pp 4328–4333Google Scholar
3. 3.
Fawzi H, Tabuada P, Diggavi S (2014) Secure estimation and control for cyber-physical systems under adversarial attacks. IEEE Trans Autom Control 59(6):1454–1467
4. 4.
Kim H, Guo P, Zhu M, Liu P (2016) Attack-resilient estimation of switched nonlinear cyber-physical systems. arXiv preprint http://arxiv.org/abs/1609.03600
5. 5.
Pasqualetti F, Dörfler F, Bullo F (2013) Attack detection and identification in cyber-physical systems. IEEE Trans Autom Control 58(11):2715–2729
6. 6.
Sande José, Peña Enrique, Maciñeira Enrique (2018) Stability of breakwater roundhead protected with a Cubipod single-layer armor. Appl Ocean Res 79:36–48
7. 7.
Keshtegar Behrooz (2016) Chaotic conjugate stability transformation method for structural reliability analysis. Comput Methods Appl Mech Eng 310:866–885
8. 8.
Chen G, Guo Z (2019) Observer-based distributed control and synchronization analysis of inverter-based nonlinear power systems. Nonlinear Dyn 1–23Google Scholar
9. 9.
Mobayen Saleh, Baleanu Dumitru (2016) Stability analysis and controller design for the performance improvement of disturbed nonlinear systems using adaptive global sliding mode control approach. Nonlinear Dyn 83(3):1557–1565
10. 10.
Hafstein SF (2007) An algorithm for constructing Lyapunov functions. Electron J Differ Equ Monograph 08Google Scholar
11. 11.
Ji Z, Wu W, Feng Y, Zhang G (2013) Constructing the Lyapunov function through solving positive dimensional polynomial system. J Appl Math 13, 859578
12. 12.
Schwartz CA, Yan A (1997) Construction of Lyapunov functions for nonlinear systems using normal forms. J Math Anal Appl 216(2):521–535
13. 13.
Papachristodoulou A, Prajna S (2002) On the construction of Lyapunov functions using the sum of squares decomposition. In: Proceedings of IEEE CDCGoogle Scholar
14. 14.
Fisher J, Bhattacharya R (2009) Analysis of partial stability problems using sum of squares techniques. Automatica 45(3):724–730
15. 15.
Matsue K, Hiwaki T, Yamamoto N (2017) “On the construction of Lyapunov functions with computer assistance. J Comput Appl Math 319:385–412
16. 16.
Hancock EJ, Papachristodoulou A (2013) Generalised absolute stability and sum of squares. Automatica 49(4):960–967
17. 17.
Wang Z, Liu X, Liu K, Li S, Wang H (2017) Backstepping-based Lyapunov function construction using approximate dynamic programming and sum of square techniques. IEEE Trans Cybern 47(10):3393–3403Google Scholar
18. 18.
Ling Q, Jin XL, Wang Y, Li HF, Huang ZL (2013) Lyapunov function construction for nonlinear stochastic dynamical systems. Nonlinear Dyn 72(4):853–864
19. 19.
Anghel M, Milano F, Papachristodoulou A (2013) Algorithmic construction of Lyapunov functions for power system stability analysis. IEEE Trans Circuits Syst I Regul Pap 60(9):2533–2546
20. 20.
Hafstein S, Kellett CM, Li H (2014) Continuous and piecewise affine Lyapunov functions using the Yoshizawa construction. In: American control conference (ACC)Google Scholar
21. 21.
Meigoli V, Ansari M, Barhaghtalab MH (2017) Stability analysis of non-linear dynamical homogeneous systems based on Lyapunov function constructed of linear combination of basic functions, Sindhological Studies, vol 2017, no 1Google Scholar
22. 22.
Bouzaouache H, Braiek NB (2008) On the stability analysis of nonlinear systems using polynomial Lyapunov functions. Math Comput Simul 76(5–6):316–329
23. 23.
Shen Y, Xia X (2011) Global asymptotical stability and global finite-time stability for nonlinear homogeneous systems. IFAC Proc Vol 44(1):4644–4647
24. 24.
Haimo VT (1986) An algebraic approach to nonlinear stability. Nonlinear Anal. Theory Methods Appl. 10(7):683–692
25. 25.
Baillieul J (1980) The geometry of homogeneous-polynomial dynamical systems. Nonlinear Anal Theor Merhods Appl 4(5):879–900
26. 26.
Rosier L (1992) Homogeneous Lyapunov function for homogeneous continuous vector field. Syst Control Lett 19:467–473
27. 27.
Kawski M (1990) Homogeneous feedback stabilization. In: Conte G, Perdon AM, Wyman B (eds) New Trends in Systems Theory. Birkhauser, Boston, pp 464–471Google Scholar
28. 28.
Slotine JJ, Li W (1991) Applied nonlinear control. Pearson, London
29. 29.
Mayer C (2000) Matrix analysis and applied linear algebra. SIAM, New Delhi

© Springer Nature Switzerland AG 2020

## Authors and Affiliations

• Mehdi Ansari
• 1
• Vahid Meigoli
• 1
• Abolhassan Razminia
• 2
1. 1.Department of Electrical Engineering, School of EngineeringPersian Gulf UniversityBushehrIran
2. 2.Dynamical Systems & Control (DSC) Research Laboratory, Department of Electrical Engineering, School of EngineeringPersian Gulf UniversityBushehrIran