Solve the Polynomial Functions Conditional Extreme by Applying the Groebner Basis Method

Abstract

In this paper, an algebraic method which is based on the groebner bases theory is proposed to solve the polynomial functions conditional extreme. Firstly, we describe how to solve conditional extreme value problems by establishing Lagrange functions and calculating the differential equations derived from the Lagrange functions. Then, by solving the single variable polynomials in the groebner basis, the solution of polynomial equations could be derived successively. We overcome the high number of variables and constraints in the extreme value problem. Finally, this paper illustrates the calculation process of this method through the general procedures and examples in solving questions of conditional extremum of polynomial function.

Share and Cite:

Luo, J. and Ding, S. (2022) Solve the Polynomial Functions Conditional Extreme by Applying the Groebner Basis Method. Open Journal of Applied Sciences, 12, 1915-1921. doi: 10.4236/ojapps.2022.1211132.

1. Introduction

In real life, we will encounter additional conditions of the multivariate function of the most problem, that the function of the independent variable in addition to meeting the conditions in the domain of definition also needs to meet the corresponding conditions of a certain. For example: the volume of a certain rectangular box of material saving problem. Let the rectangular body of the length, width and height of the three variables x , y , h , respectively, the volume V must determine the length, width and height of the rectangular body, so that in the case of a certain volumeV surface area S = 2 x y + 2 x h + 2 y h material most economical [1]. Such additionally conditioned extremes are called conditional extremes.

There are usually two methods of conditional extremes: the first: converting the conditional extrema into unconditional extrema, which we can find in [2]. In many cases, however, the conversion of a conditional extreme value into an unconditional extreme value is not so simple. We can see this in [3]. Second, the Lagrange multiplier method. This method does not need to convert the conditional extrema into unconditional extrema. Since the Lagrange multiplier method is necessary for the existence of conditional extrema, the point we find is the point where the extrema may exist, and then we have to continue to rely on the definite. We then continue to determine whether or not the point is a conditional extreme value point based on the definite or actual meaning. When there are many variables and constraints in an extreme value problem, this often makes the calculation difficult.

In this paper, the polynomial equations are converted to an equivalent triangular form by computing the reduced groebner bases under the pure lexicographic monomial order, then, the triangular equations can be solved by a successive back-substitution manner just like the elimination theory. By this way, the computational effort of solving systems of differential equations is reduced. Finally, we give a concrete example to illustrate the calculation.

2. Preliminaries

To find the possible extreme value points of the function z = f ( x 1 , x 2 , , x n ) under the additional conditional polynomial equations:

{ φ 1 ( x 1 , , x n ) = 0 , φ m ( x 1 , , x n ) = 0. (1)

We first make the Lagrange function [4]:

L ( x 1 , x 2 , , x n ) = f ( x 1 , x 2 , , x n ) + i = 1 n λ i φ i ( x 1 , x 2 , , x n ) ,

Where λ i ( i = 1 , 2 , , m ) is the parameter, and then find the first order partial derivatives of the Lagrange function for x i ( i = 1 , 2 , , n ) respectively, and make them zero. The following sets of polynomial differential equations are obtained.

{ f ( x 1 , , x n ) x 1 + i = 1 m λ i φ i ( x 1 , , x n ) x 1 = 0 f ( x 1 , , x n ) x n + i = 1 m λ i φ i ( x 1 , , x n ) x n = 0 φ 1 ( x 1 , , x n ) = 0 φ m ( x 1 , , x n ) = 0 , (2)

Finally, solve Equation (2) to obtain x i , i = 1 , 2 , , n and λ i , i = 1 , 2 , , m , so that each x i is the possible extreme value of the function z under the additional condition polynomial Equations (1), and then determine whether it is extreme according to the actual problem. Therefore, the key to solving polynomial function conditional extreme value problems is to find the solution to the system of polynomial Equations (2), and the application of groebner’s method for its solution, to bring a great deal of convenience to the calculation.

3. The Groebner Basis Theory and Solving Polynomials with Conditional Extrema

The groebner bases theory was proposed by Austria mathematician Bruno Buchberg in his 1965 doctoral thesis [5]. He used the division algorithm to systematically study the problem of ideal generators of multivariate polynomial rings over a number field. The more abstract groebner basis theory was developed by L.R. Obbian in 1986 [6]. Prof. Mulan Liu et al. used the groebner basis theory to study linear recursive Lie algebras over rings and to inscribe the structure of linear recursive Lie algebras. In recent years, groebner basis theory has been rapidly developed in the fields of algebraic equation solving, polynomial factoring and so on [7] [8] [9].

3.1. Groebner Basis

K [ Χ ] is the polynomials which are defined on the field K with variables Χ = ( x 1 , x 2 , , x n ) .

Theorem 1(Hilberts basis theorem) [10]: Denote I K [ Χ ] as an ideal, each ideal I K [ Χ ] is finitely generated, there exists g 1 , g 2 , , g l I ,

I = { i = 1 l h i g i : h 1 , , h l K [ Χ ] } . And where I = g 1 , g 2 , , g l .

Definition 1: Let G = { g 1 , g 2 , , g n } denotes a groebner base of I under a mono mial order, if f K [ Χ ] , then

L t [ f ] = c L t [ g i ] , i = 1 , 2 , , n , ( i < n ) .

where g i is a nonzero polynomial, L t [ f ] and L t [ g i ] denote the first terms of f and g i respectively, c is an arbitrary constant.

According to the theorem 1, there is a groebner bases consisting of finitely many polynomials for the ideal I. Generally speaking, the groebner basis depends on the choice of monomial order, in other words, different monomial order generate varying groebner bases. The basic concept of monomial order can be found in [11], here we will just introduce another definition and theorem which are necessary.

Definition 2 [12]: Denote I K [ Χ ] as an ideal, V [ I ] represents the set as following:

V [ I ] = { x K n : f i I , f i ( x ) = 0 } .

where x = ( x 1 , x 2 , , x n ) . It easy to see that V [ I ] is the zero set of the ideal I. For a non-zero ideal, although it contains infinite different polynomials, the zero set V [ I ] is determined by finite polynomial equations.

Theorem 2: I K [ Χ ] is an ideal, G = { g 1 , g 2 , , g l } is the reduced groebner bases of I under the pure lexicographical monomial order, where x 1 > x 2 > > x n . For any 0 l n 1 , the set G l = G K [ x l + 1 , x l + 2 , , x n ] is the groebner basis of the elimination ideal I l .

Proof. Obviously, G K [ x 1 , x 2 , , x n ] I K [ x 1 , x 2 , , x n ] . Assuming that there is f ( x 1 , x 2 , , x n ) I K [ x 1 , x 2 , , x n ] holds. Due to G is the groebner bases ofI, g i , 1 i l , L t ( g i ) | L t ( f ) . Under the pure lexicographical monomial order, we can get the result of g i G K [ x 1 , x 2 , , x n ] . And finally, according to Hilberts basis theorem, G K [ x 1 , x 2 , , x n ] is the groebner bases of I K [ x 1 , x 2 , , x n ] .

Theorem 3: I = f 1 , f 2 , , f s C [ x 1 , x 2 , , x n ] and I 1 is the first elimination ideal. For any 1 i s , f i = g i ( x 1 , x 2 , , x n ) x 1 N i . Where N i 0 , g i C [ x 1 , x 2 , , x n ] , g i 0 . Assuming that we have a partial solution ( a 2 , , a n ) V ( g 1 , g 2 , , g s ) , then there exists a 1 C , ( a 2 , , a n ) V ( I ) .

Proof. The ideal I in the polynomial ring K [ x 1 , , x n ] is generated by the polynomial f , g , i.e. I = f , g . Where

f = a 0 x 1 l + + a l , g = b 0 x 1 m + + b m , a 0 0 , b 0 0 , a i , b i K [ x 2 , , x n ] .

Denote I 1 = I K [ x 2 , , x n ] be the first eliminative ideal of I. We let c be a vector such that c = ( c 2 , , c n ) V [ I 1 ] . If a 0 ( c ) and b 0 ( c ) are not at the same time zero, then there exists c 1 K , such that ( c 1 , c 2 , , c n ) V [ I ] . Clearly there is f , g + x 1 N f f , g holds.

Another aspect, g = ( ( g + x 1 N f ) x 1 N f ) f , g + x 1 N f , so we can obtain that f , g = f , g + x 1 N f , N Z + holds. When taking N to be sufficiently large, there is deg x 1 ( g + x 1 N f ) > deg x 1 g holds. Therefore L c ( g + x 1 N f ) = a 0 , a 0 ( c ) 0 , where L c ( g + x 1 N f ) denotes the first coefficient of the polynomial g + x 1 N f . Then, c 1 K , f ( c 1 , c ) = 0 , g ( c 1 , c ) + c 1 N f ( c 1 , c ) = 0 .

Hence g ( c 1 , c ) = 0 .

Theorem 2 and 3 are also known as the elimination theorems. It guarantees the continuous separation of variables ( x 1 , x 2 , , x n ) . In other words, in the monomial order of a pure dictionary, the reduced groebner bases G under is always in the following triangular form:

G = { g 1 = g 1 ( x 1 , x 2 , , x n ) g 2 = g 2 ( x 2 , , x n ) g n = g n ( x n )

Thus, the process of solving a polynomial equation generated by Lagrange functions can be divided into two steps: first, to calculate the groebner basis of a differential equation under the pure lexicographical monomial order of x 1 > x 2 > > x n ; and second, to solve the triangular polynomial equations by solving the last and acquiring its solution, then to replace each polynomial equation with the penultimate polynomial equation and repeat the process until the first one is solved. In this way, we could ultimately obtain all the possible solutions of the differential equations.

3.2. Example of Demonstration Solving Process

Therefore, the key to solving the conditional extreme value problem of polynomial function is to find the solution of polynomial Equation (2), and the application of groebner method for its solution provides a great deal of computational convenience. An Example is given below.

Consider the standard equation of the ellipsoidal surface:

x 2 a 2 + y 2 b 2 + z 2 c 2 = 1 , ( a > 0 , b > 0 , c > 0 ) .

where variables x , y , z denote the horizontal, vertical and vertical axes of the ellipsoidal system of right angles in space separately, and a , b , c are arbitrary positive constants. Find the largest volume of the rectangular body that is internally connected to the ellipsoidal plane. Let V = x y z , ( x > 0 , y > 0 , z > 0 ) represent the size of rectangular box [13].

Make a Lagrange function:

L ( x , y , z ) = x y z + λ ( x 2 a 2 + y 2 b 2 + z 2 c 2 1 ) .

where λ is the parameter. The system of polynomial differential equations is obtained by finding its partial derivatives with respect to x , y , z and making them zero:

{ L x = y z + 2 λ x a 2 = 0 L y = x z + 2 λ y b 2 = 0 L z = x y + 2 λ z c 2 = 0 (3)

We now consider to solve polynomial Equation (3) using the groebner based approach:

{ y z + 2 λ x a 2 = 0 x z + 2 λ y b 2 = 0 x y + 2 λ z c 2 = 0 x 2 a 2 + y 2 b 2 + z 2 c 2 1 = 0

The above system of equations has only a limited number of solutions and the ideal can be calculated:

y z + 2 λ x a 2 , x z + 2 λ y b 2 , x y + 2 λ z c 2 , x 2 a 2 + y 2 b 2 + z 2 c 2 1

In the pure lexicographical monomial order, the symbol computing software Maple or Mathematic can calculate the reduced groebner bases as follows :

G = [ 1 + 12 a 2 b 2 c 2 λ 2 , 1 a x + 2 a b c λ , 1 b y + 2 a b c λ , 1 c z + 2 a b c λ ]

Solve from equation 1 + 12 a 2 b 2 c 2 λ 2 = 0 to obtain λ = ± a b c 2 3 .

Then substitute λ to the equation of (3),and abandoning solutions that do not satisfy the constraint that x , y and z are all variables greater than zero, there are three solutions:

x = a 3 , y = b 3 , z = c 3 .

Thus, the volume of a rectangular body with length a 3 , width b 3 and height c 3 is the largest among the rectangular bodies connected internally to the ellipsoidal plane, and its value is V = 8 a b c 3 3 .

4. Conclusions

In this paper, a groebner bases based method has been proposed to solve the polynomial functions conditional extreme. Comparing with the traditional direct method of solving systems of differential equations, this method has the following two main advantages:

1) No need to determine directly whether the system of polynomial differential equations has solutions or not;

2) All the solutions can be found with significant savings in computational effort to solve especially when there are many variables and constraints in the conditional extreme value problem.

Conflicts of Interest

The authors declare no conflicts of interest regarding the publication of this paper.

References

[1] Shnurkov, P.V. (2016) Solution of the Unconditional Extremum Problem for a Linear-Fractional Integral Functional on a Set of Probability Measures. Doklady Mathematics, 94, 550-554.
https://doi.org/10.1134/S1064562416050161
[2] Chionh, E.W., Zhang, M. and Goldman, R.N. (2002) Fast Computation of the Bezout and Dixon Resultant Matrices. Symbolic Computation, 33, 13-29.
https://doi.org/10.1006/jsco.2001.0462
[3] Cox, D., Little, J. and Oshea, D. (2006) Ideals, Varieties, and Algorithms: An Introduction to Computational Algebraic Geometry and Commutative Algebra. 3rd Edition, Springer, New York.
[4] Márquez-Campos, G., Ojeda, I. and Tornero, J.M. (2015) On the Computation of the Apéry Set of Numerical Monoids and Affine Semigroups. Semigroup Forum, 91, 139-158.
https://doi.org/10.1007/s00233-014-9631-y
[5] Dong, R.N. and Wang, D.M. (2019) Computing Strong Regular Characteristic Pairs with Groebner Bases. Journal of Symbolic Computation, 104, 312-327.
[6] Huang, Z.Y., England, M., Davenport, J.H. and Paulson, L.C. (2016) Using Machine Learning to Decide When to Precondition Cylindrical Algebraic Decomposition with Groebner Bases. 2016 18th International Symposium on Symbolic and Numeric Algorithms for Scientific Computing (SYNASC), Timisoara, 24-27 September 2016.
https://doi.org/10.1109/SYNASC.2016.020
[7] Zhou, N., Wu, J.Z. and Gao, X.Y. (2013) Algebraic Verification Method for SEREs Properties via Groebner Bases Approaches. Journal of Applied Mathematics, 2013, Article ID: 272781.
https://doi.org/10.1155/2013/272781
[8] Grolet, A. and Thouverez, F. (2015) Computing Multiple Periodic Solutions of Nonlinear Vibration Problems Using the Harmonic Balance Method and Groebner Bases. Mechanical Systems and Signal Processing, 52-53, 529-547.
https://doi.org/10.1016/j.ymssp.2014.07.015
[9] Moore, R.E. and Yang, C.T. (1959) Interval Analysis I. Technical Document LMSD-285875.
[10] Arnon, D.S. and Collins, G.E. (1983) Cylindrical Algerbraic Decomposition I: The Basic Algorithm. SIAM Journal on Computing, 13.
https://doi.org/10.1137/0213054
[11] Kearfott, R.B. (1990) Preconditioners for the Interval Gauss-Seidel Method. SIAM Journal on Numerical Analysis, 27, 809-822.
https://doi.org/10.1137/0727047
[12] Hentenryck, P., Van Mc Allester, D. and Kapur, D. (1997) Solving Polynomial Systems Using a Branch and Prune Approach. SIAM Journal on Numerical Analysis, 34, 797-927.
https://doi.org/10.1137/S0036142995281504
[13] Yang, K.H., Yuan, Z.B., Wei, W., Yuan, R.Y. and Yu, W.S. (2015) Solve the Selective Harmonic Elimination Problem with Groebner Bases Theory. 2015 34th Chinese Control Conference (CCC), Hangzhou, 28-30 July 2015.
https://doi.org/10.1109/ChiCC.2015.7260897

Copyright © 2024 by authors and Scientific Research Publishing Inc.

Creative Commons License

This work and the related PDF file are licensed under a Creative Commons Attribution-NonCommercial 4.0 International License.