DifferentialAlgebra
RosenfeldGroebner
the RosenfeldGroebner function
Calling Sequence
Parameters
Options
Description
Examples
RosenfeldGroebner(sys, R, opts)
sys
-
a list or a set of differential equations or inequations; all rational in the independent and dependent variables and their derivatives
R
a differential polynomial ring built by DifferentialRing specifying the independent and dependent variables and a ranking (ordering) for them
additionally
(optional) used together with arbitrary and relations to add to the arbitrary of the differential ring
arbitrary
(optional) a function or a name, or a list of them, specifying arbitrary objects, that either override those specified in the differential ring R or add to them when additionally is given
assumeisprime
(optional) used when sys is a regular differential chain and proceeds changing rankings regardless of whether sys is prime or not
attributes
(optional) to specify the attributes expected for the differential chains (cases) returned
discardlowerdimension
(optional) to discard inexistent cases based on their (differential) dimension
notation
(optional) to request the output to be in any of jet, tjet, diff or Diff notations
relations
(optional) to specify relations that are satisfied by the arbitrary objects
singsol
(optional) can be all (default), none or essential, to request the computation of all, none or only the essential singular cases
additionally is used together with arbitrary, to add variables to the list declared as arbitrary when creating the differential ring using DifferentialRing
arbitrary = ... a function or a name, or a list of them, specifying arbitrary objects. This option permits to run a computation with different arbitrary objects than those specified in the differential ring R passed to RosenfeldGroebner, or to add arbitrary objects to those in R when additionally is passed together.
assumeisprime used when changing the ranking of a regular differential chain, this option tells RosenfeldGroebner to proceed disregarding whether the received differential chain is or not prime.
attributes = L where L is a list involving some of the keywords differential, prime, primitive, squarefree, coherent, autoreduced, normalized. This option permits to modify the behavior of the function (e.g. if differential is omitted, the decomposition is purely algebraic ; if normalized is omitted, the returned regular differential chains do not need to be normalized). The presence of some of the attributes may imply, automatically, the presence of some other ones. For more details, see the Glossary.
discardlowerdimension = nocase, safecase, odecase, pdecase. This option controls the splittings performed by RosenfeldGroebner by discarding any component whose dimension (differential dimension in the differential case) is lower than the number of input equations simplified with respect to their integrability conditions.
nocase disables this option.
safecase is the default value. The option is only activated in the non-differential case and in the case of a single input equation. These two cases are theoretically proven.
odecase applies also the option to general ODE systems. The option implements a conjecture in this case [R50, Questions for investigation, 10].
pdecase applies also the option to general PDE systems. The option implements a conjecture in this case.
notation = jet, tjet, diff or Diff. Specifies the notation used for the result of the function call. If not specified, the notation of the input is used.
memout = nonnegative. Specifies a memory limit, in MB, for the computation. Default is zero (no memory out).
relations = ... where the right-hand-side is a set of equations satisfied by the arbitrary objects of the differential ring R or passed with the option arbitrary. Note that all the functions and names (symbolic variables) involved in these relations will automatically be taken as arbitrary, even if they were not declared as such in the differential ring R. Also, all the dependent variables of the differential ring R that are ranked lower than the objects found in the given relations, or within a same orderly sublist of the ranking, are also considered arbitrary.
singsol = all, essential, none. This option controls the splittings performed by RosenfeldGroebner.
all is the default value.
essential ensures that the returned decomposition is irredundant whenever this is possible, i.e., whenever sys is made of only one equation.
none makes RosenfeldGroebner return at most one regular differential chain. The returned chain is the first one that would have been computed without setting this option. In many cases, this first regular differential chain could be considered as the general component, though this notion is not algebraically well-defined in general.
Given a system of equations sys, containing equations (of the form algebraic or algebraic = algebraic) and inequations (of the form algebraic <> 0), RosenfeldGroebner(sys, R) splits the given system sys into cases, each one specified by their Equations and Inequations. One and only one of these cases is the general case, and the rest are singular cases that may exist only when sys is nonlinear. In each of the cases returned, there is no one equation that is the consequence of the other equations and all the integrability conditions are taken into account. The relation between the system sys and the systems of each of theses cases is the solutions, general and singular, of sys are given by the union of the general solutions of each of the returned systems. NOTE: the number of cases returned and the equations and inequations that appear in these cases depend on how the dependent and independent variables are ranked inside R.
More technically, RosenfeldGroebner(sys, R) returns a representation of the radical of the differential ideal generated by sys, as an intersection of radical differential ideals saturated by the multiplicative family generated by the inequations found in sys. This representation consists of a list of regular differential chains with respect to the ranking of R.
The system sys may involve rational differential fractions, that is the ratio between differential polynomials. In that case, the denominators of these rational fractions are automatically considered inequations.
The second argument, R representing a differential ring, is constructed using DifferentialRing, and specifies the dependent and independent variables and a ranking for them.
The differential polynomials in sys are expected to have coefficients in the field Q(x1, ..., xp), obtained by adjoining the independent variables to the field of the rational numbers. Arbitrary symbolic variables and functions can also be part of the coefficient field, for that purpose you can use the option arbitrary = ... when declaring the differential ring or pass this option directly to RosenfeldGroebner.
REMARK: By default, all symbolic variables and functions that were not stated as dependent variables when defining the differential ring are automatically considered arbitrary (equivalent to have indicated them as arbitrary to DifferentialRing). When that happens a related warning message is displayed on the screen.
The regular differential chains in the output of RosenfeldGroebner are assumed to hold the attributes: differential, autoreduced, primitive, squarefree, normalized and coherent. For more details on attributes, see the Glossary.
The returned list may also be empty. In that case sys has no solutions and so the radical of the differential ideal generated by sys is the unit ideal, see [R50, chapter II, Theorem of zeros]. Also, if sys is empty, the returned representation involves a single regular differential chain also empty, which describes the zero ideal.
Recomputing ideals changing the ranking
RosenfeldGroebner can also receive as first argument a prime regular differential chain - say regchain - computed with some ranking, by RosenfeldGroebner or by PretendRegularDifferentialChain, plus an indication of the form blocks = ..., derivations = ... that specifies a new ranking for either or both the dependent (blocks) and independent (derivations) variables, and it recomputes regchain with respect to the new ranking. The returned differential chain defines the same prime differential ideal as regchain and holds the same attributes as regchain. To specify the new ranking for the dependent and/or independent variables you can also directly pass, anywhere after the first argument, a differential ring computed with DifferentialRing. In all cases the new ranking must involve the same dependent and independent variables of the old ranking with which regchain got computed.
NOTE: The method used only applies to prime differential ideals. To know whether a regular differential chain is or not prime use the Is command, as in Is(prime, regchain). If regchain passed to RosenfeldGroebner is not prime, you can nevertheless request RosenfeldGroebner to proceed assuming that regchain is prime by passing the optional argument assumeisprime, but the resulting differential ideal is not guaranteed to represent the same ideal as regchain.
Main usage
with⁡DifferentialAlgebra
BelongsTo,DifferentialRing,Equations,Get,Inequations,Is,NormalForm,PowerSeriesSolution,ReducedForm,RosenfeldGroebner,Tools
NOTE: Prior to any computations with the DifferentialAlgebra package, the appropriate differential indeterminates (dependent variables) and derivation variables (independent variables) with the ranking for them must be defined with the command DifferentialRing as shown in the following examples.
Removing consequences and simplifying taking into account the integrability conditions
When tackling a system of equations with RosenfeldGroebner, in each of the cases returned, there is no one equation that is the consequence of the other equations of the case and all the integrability conditions are taken into account. If during this simplification process the system proves to be inconsistent (say arriving at 1=0) an empty list is returned meaning the system has no solution. To illustrate this consider the following equations
p1≔diff⁡v⁡x,y,y+u⁡x,y
p1≔∂∂yv⁡x,y+u⁡x,y
p2≔diff⁡u⁡x,y,x−diff⁡u⁡x,y,y
p2≔∂∂xu⁡x,y−∂∂yu⁡x,y
Indicate the dependent and independent variables and an ordering (ranking) for them. Because the purpose in this example is to only remove consequences and take into account integrability conditions, use an orderly ranking, that could be u,v or v,u (see DifferentialRing)
R≔DifferentialRing⁡blocks=u,v,derivations=x,y
R≔differential_ring
Consider now the system constructed with p1 and p2 in this way:
sys≔expand⁡p1=0,p2=0,diff⁡p1⁢p2,x=0,diff⁡p2,y=0
sys≔∂∂yv⁡x,y+u⁡x,y=0,∂∂xu⁡x,y−∂∂yu⁡x,y=0,∂2∂x∂yv⁡x,y⁢∂∂xu⁡x,y−∂2∂x∂yv⁡x,y⁢∂∂yu⁡x,y+∂∂xu⁡x,y2−∂∂xu⁡x,y⁢∂∂yu⁡x,y+∂∂yv⁡x,y⁢∂2∂x2u⁡x,y−∂∂yv⁡x,y⁢∂2∂x∂yu⁡x,y+u⁡x,y⁢∂2∂x2u⁡x,y−u⁡x,y⁢∂2∂x∂yu⁡x,y=0,∂2∂x∂yu⁡x,y−∂2∂y2u⁡x,y=0
By construction, we know that the third and fourth equations, diff(p1*p2, x) = 0 and diff(p2, y) = 0, bring no additional information. They are consequences of p1=0,p2=0 and so they are simplified away in the system returned
simplified_sys≔RosenfeldGroebner⁡sys,R
simplified_sys≔regular_differential_chain
Equations⁡simplified_sys
∂∂xu⁡x,y−∂∂yu⁡x,y,∂∂yv⁡x,y+u⁡x,y
Detection of inconsistencies in a differential system
Add now a third equation
p3≔diff⁡v⁡x,y,x+u⁡x,y−y
p3≔∂∂xv⁡x,y+u⁡x,y−y
What RosenfeldGroebner tells us about the system {p1, p2, p3}
RosenfeldGroebner⁡p1,p2,p3,R
This result indicates that the system bears a contradiction; p1, p2, and p3 have no common solution. In this case it is possible to visually detect the contradiction:
diff⁡p1=0,x−diff⁡p3=0,y−p2=0
1=0
The three equations cannot be satisfied simultaneously. The system is inconsistent; it has no solution.
Solving ordinary differential systems: Elimination ranking
To perform a chain resolution of a system of ordinary differential equations, use an elimination ranking. Consider the differential system defined by the following set S of differential polynomials in the unknown functions x⁡t,y⁡t,z⁡t.
S≔diff⁡x⁡t,t−x⁡t⁢x⁡t+y⁡t,diff⁡y⁡t,t+y⁡t⁢x⁡t+y⁡t,diff⁡x⁡t,t2+diff⁡y⁡t,t2+diff⁡z⁡t,t2−1
S≔ⅆⅆtx⁡t−x⁡t⁢x⁡t+y⁡t,ⅆⅆty⁡t+y⁡t⁢x⁡t+y⁡t,ⅆⅆtx⁡t2+ⅆⅆty⁡t2+ⅆⅆtz⁡t2−1
Using an elimination ranking where z⁡t>y⁡t>x⁡t, you obtain differential chains containing an equation in x⁡t alone, an equation determining y⁡t in terms of x⁡t, and finally an equation determining z⁡t in terms of y⁡t and x⁡t. Such an elimination ranking is represented by z,y,x
R≔DifferentialRing⁡blocks=z,y,x,derivations=t:
G≔RosenfeldGroebner⁡S,R
G≔regular_differential_chain,regular_differential_chain
In the result above we see two cases. The equations of the first case satisfying this elimination ranking mentioned are
Equations⁡G1,solved
ⅆⅆtz⁡t2=−ⅆⅆtx⁡t4−2⁢ⅆⅆtx⁡t3⁢x⁡t2+2⁢ⅆⅆtx⁡t2⁢x⁡t4−x⁡t4x⁡t4,y⁡t=−−ⅆⅆtx⁡t+x⁡t2x⁡t,ⅆ2ⅆt2x⁡t=2⁢ⅆⅆtx⁡t⁢x⁡t
The equations of the second case also satisfying the elimination ranking proposed are
Equations⁡G2,solved
ⅆⅆtz⁡t2=−y⁡t4+1,ⅆⅆty⁡t=−y⁡t2,x⁡t=0
Constrained systems: Orderly and mixed rankings
Consider the set of equations describing the motion of a pendulum, that is, a point mass m suspended from a massless rod of length l under the influence of gravity g, in Cartesian coordinates x,y. The Lagrangian formulation leads to two second order differential equations with an algebraic constraint. T is the Lagrangian multiplier.
P≔m⁢diff⁡y⁡t,t,t+T⁡t⁢y⁡t+g,m⁢diff⁡x⁡t,t,t+T⁡t⁢x⁡t,x⁡t2+y⁡t2−l2
P≔m⁢ⅆ2ⅆt2y⁡t+T⁡t⁢y⁡t+g,m⁢ⅆ2ⅆt2x⁡t+T⁡t⁢x⁡t,x⁡t2+y⁡t2−l2
Orderly Ranking
To find the lowest order equations vanishing on the zeros of the system modeling the pendulum and in particular all the algebraic constraints (that is, the equations of order 0), use an orderly ranking T,x,y
R≔DifferentialRing⁡blocks=T,x,y,derivations=t,arbitrary=m,l,g:
G≔RosenfeldGroebner⁡P,R
ⅆⅆtT⁡t=−3⁢ⅆⅆty⁡t⁢gl2,ⅆⅆty⁡t2=−T⁡t⁢y⁡t2⁢l2−T⁡t⁢l4+y⁡t3⁢g−y⁡t⁢l2⁢gm⁢l2,x⁡t2=−y⁡t2+l2
T⁡t=−y⁡t⁢gl2,x⁡t=0,y⁡t2=l2
The second component in the output of RosenfeldGroebner corresponds to the equilibria of the pendulum. From the first component of the output, it can be seen that the actual motion is described by two first order differential equations with a constraint: the solution depends on only two arbitrary constants.
Mixed Ranking
To obtain the differential system satisfied by x and y alone, eliminate T with regards to x,y, so this ranking is T,x,y
RM≔DifferentialRing⁡R,blocks=T,x,y
RM≔differential_ring
GM≔RosenfeldGroebner⁡P,RM
GM≔regular_differential_chain,regular_differential_chain
Equations⁡GM1,solved
T⁡t=−ⅆⅆty⁡t2⁢m⁢l2+y⁡t3⁢g−y⁡t⁢l2⁢gy⁡t2⁢l2−l4,ⅆ2ⅆt2y⁡t=−−ⅆⅆty⁡t2⁢y⁡t⁢m⁢l2−y⁡t4⁢g+2⁢y⁡t2⁢l2⁢g−l4⁢gy⁡t2⁢m⁢l2−m⁢l4,x⁡t2=−y⁡t2+l2
Equations⁡GM2,solved
Note here that the motion is given by a second order differential equation in y⁡t. Then the Lagrange multiplier is given explicitly in terms of y⁡t and its first derivative.
Solving partial differential system: Lexicographic ranking
To solve overdetermined systems of partial differential equations it is interesting to compute first the ordinary differential equations satisfied by the solutions of the system. For this purpose, a lexicographic ranking must be chosen. Consider the differential system S defining the infinitesimal generators of the symmetry group of the Burgers equations.
Burgers_pde≔diff⁡u⁡x,t,x=diff⁡u⁡x,t,t,t−u⁡x,t⁢diff⁡u⁡x,t,t
Burgers_pde≔∂∂xu⁡x,t=∂2∂t2u⁡x,t−u⁡x,t⁢∂∂tu⁡x,t
BurgersSymmetry≔PDEtools:-DeterminingPDE⁡Burgers_pde,u⁡x,t,ξ,φ,η⁡x,t,u
BurgersSymmetry≔∂3∂x3ξ⁡x,t,u=0,∂∂tη⁡x,t,u=∂2∂x2ξ⁡x,t,u2,∂∂uη⁡x,t,u=−∂∂xξ⁡x,t,u2,∂∂xη⁡x,t,u=−∂2∂x2ξ⁡x,t,u⁢u2,∂∂tφ⁡x,t,u=∂∂xξ⁡x,t,u2,∂∂uφ⁡x,t,u=0,∂∂xφ⁡x,t,u=∂∂xξ⁡x,t,u⁢u2+η⁡x,t,u,∂∂tξ⁡x,t,u=0,∂∂uξ⁡x,t,u=0
Seek the ordinary differential equations with respect to t satisfied by the solutions of this system enclosing the dependent variables (in this example, all of them) using lex
R≔DifferentialRing⁡blocks=lexη,φ,ξ,derivations=u,x,t
G≔RosenfeldGroebner⁡BurgersSymmetry,R
G≔regular_differential_chain
∂∂uη⁡x,t,u=−∂∂tφ⁡x,t,u,∂∂uφ⁡x,t,u=0,∂∂uξ⁡x,t,u=0,∂∂xη⁡x,t,u=−∂∂tη⁡x,t,u⁢u,∂∂xφ⁡x,t,u=∂∂tφ⁡x,t,u⁢u+η⁡x,t,u,∂∂xξ⁡x,t,u=2⁢∂∂tφ⁡x,t,u,∂2∂t2η⁡x,t,u=0,∂2∂t2φ⁡x,t,u=0,∂∂tξ⁡x,t,u=0
There are three independent ordinary differential equations with respect to t (the last three in the output above). All other ordinary equations in t vanishing on the solutions of BurgersSymm can be written as linear combination of these three and their derivatives.
Computing singular solutions
Consider the following Clairaut partial differential equation.
u⁡x,y=x⁢diff⁡u⁡x,y,x+y⁢diff⁡u⁡x,y,y+diff⁡u⁡x,y,x⁢diff⁡u⁡x,y,y
u⁡x,y=x⁢∂∂xu⁡x,y+y⁢∂∂yu⁡x,y+∂∂xu⁡x,y⁢∂∂yu⁡x,y
Represent it by the equation p with a more compact syntax, called jet notation.
p≔−u+x⁢ux+y⁢uy+ux⁢uy
p≔x⁢ux+y⁢uy+ux⁢uy−u
Before any manipulation of this equation, define a differential polynomial ring it belongs to:
R≔DifferentialRing⁡blocks=u,derivations=x,y
The Clairaut equation under consideration has a singular solution. This is shown in the output of RosenfeldGroebner by the existence of two cases: the general case (always exists unless the system is inconsistent) and an additional - therefore - singular case; each one represented by a regular_differential_chain
Clairaut≔RosenfeldGroebner⁡p,R
Clairaut≔regular_differential_chain,regular_differential_chain
The equations and inequations of each egular_differential_chain can be accessed using the Equations and Inequations commands. The general case is represented by the differential chain that involve some additional inequations while the second regular differential chain represents the singular case
Equations⁡Clairaut1,Inequations⁡Clairaut1
x⁢ux+y⁢uy+ux⁢uy−u,uy+x
Equations⁡Clairaut2,Inequations⁡Clairaut2
x⁢y+u,
Analysis of singular solutions
All singular cases are present in the output of RosenfeldGroebner while only the essential singular zeros are present when the option singsol = essential is used. For first order differential equations:
The essential singular solutions are envelopes of the nonsingular (general) solutions; that is: they are not particular cases of the general solution.
The other singular solutions are particular cases of the general solution.
Illustrate this analysis on the equation Wp(cf. WeierstrassP):
Wp≔diff⁡w⁡z,z2−4⁢w⁡z3+g2⁢w⁡z+g3
Wp≔ⅆⅆzw⁡z2−4⁢w⁡z3+g2⁢w⁡z+g3
Case g23≠27⁢g32 :
R≔DifferentialRing⁡blocks=w,derivations=z,arbitrary=g2,g3
Equations⁡RosenfeldGroebner⁡Wp,R
ⅆⅆzw⁡z2−4⁢w⁡z3+g2⁢w⁡z+g3,4⁢w⁡z3−g2⁢w⁡z−g3
There are three singular solutions: w⁡z=ri, where ri is one of the roots of 4⁢r3−g2⁢r−g3. There are all three essential singular solutions as we can see using the option singsol = essential
Equations⁡RosenfeldGroebner⁡Wp,R,singsol=essential
As such they are envelopes of the nonsingular (general) solution of Wp. This can also be observed by plotting the real zeros for g2=4,g3=−1:
singular_solutions≔plot⁡fsolve⁡−4⁢r3+4⁢r−1,r,z=−3..3,color=red,thickness=2:
general_solution_sample_1≔seq⁡plotsodeplot⁡dsolve⁡diff⁡w⁡z,z,z−6⁢w⁡z2+2,w⁡ic=−1,D⁡w⁡ic=−1.0,w⁡z,type=numeric,−3..3,color=green,ic=0..4:
general_solution_sample_2≔seq⁡plotsodeplot⁡dsolve⁡diff⁡w⁡z,z,z−6⁢w⁡z2+2,w⁡ic=2,D⁡w⁡ic=−5.0,w⁡z,type=numeric,ic−0.15..ic+1.7,color=blue,ic=−3..1:
plotsdisplay⁡singular_solutionsuniongeneral_solution_sample_1uniongeneral_solution_sample_2,title=g2 = 4, g3 = - 1\n red: singular solutions\n green and blue: samples of general solutions,view=−3..3,−32..3
Case g23=27⁢g32; parametrize the equation with g as in
Wps≔subs⁡g2=3⁢g2,g3=g3,Wp
Wps≔ⅆⅆzw⁡z2−4⁢w⁡z3+3⁢g2⁢w⁡z+g3
Rs≔DifferentialRing⁡R,arbitrary=g:
Equations⁡RosenfeldGroebner⁡Wps,Rs
ⅆⅆzw⁡z2−4⁢w⁡z3+3⁢g2⁢w⁡z+g3,2⁢w⁡z+g,w⁡z−g
There are two singular solutions: w⁡z=g and w⁡z=−g2 from which only w⁡z=g is an essential singular solution of Wps as is shown using the option singsol = essential
Equations⁡RosenfeldGroebner⁡Wps,Rs,singsol=essential
ⅆⅆzw⁡z2−4⁢w⁡z3+3⁢g2⁢w⁡z+g3,w⁡z−g
Therefore w⁡z=g is an envelope of the nonsingular, general solution of Wps. On the contrary, the singular solution w⁡z=−g2 of Wps is not essential and therefore it is a limiting case of the general solution of Wps. Observe the situation for g=−1:
singular_solutions≔plot⁡−1,12,color=red,thickness=2:
general_solution_sample_1≔plot⁡seq⁡−1+32⁢tanh⁡12⁢C−z⁢sqrt⁡62,C=−1..1,z=−3..3,color=green:
general_solution_sample_2≔plot⁡seq⁡−1+32⁢coth⁡12⁢C−z⁢sqrt⁡62,C=−1..1,z=−3..3,color=blue:
plotsdisplay⁡singular_solutions,general_solution_sample_1,general_solution_sample_2,view=−3..3,−32..3,title=g2 = 3, g3 = - 1\n red: singular solutions\n green and blue: samples of general solutions
Case g2=0,g3=0. The equation is:
Wp0≔subs⁡g2=0,g3=0,Wp
Wp0≔ⅆⅆzw⁡z2−4⁢w⁡z3
R0≔DifferentialRing⁡blocks=w,derivations=z:
Equations⁡RosenfeldGroebner⁡Wp0,R0
ⅆⅆzw⁡z2−4⁢w⁡z3,w⁡z
Equations⁡RosenfeldGroebner⁡Wp0,R0,singsol=essential
ⅆⅆzw⁡z2−4⁢w⁡z3
So there is only one singular solution, w⁡z=0, and it is not essential. Observe its limiting property with respect to the nonsingular (general) solution.
singular_solutions≔plot⁡0,s=−4..4,color=red,thickness=2:
general_solution_sample≔plot⁡seq⁡1z−C2,C=−2..1,z=−4..4,color=blue,blue,blue:
plotsdisplay⁡general_solution_sample,singular_solutions,view=−4..4,−12..2,title=g2 = 0, g3 = 0\n red: singular solutions\n blue: samples of general solutions
A two steps strategy changing rankings
The following two examples illustrate a good strategy for computing a representation of the radical of the differential ideal generated by a given system sys, with respect to some target ranking. This strategy usually leads to simpler computations and fewer regular differential chains. It often applies, because, many differential polynomial system do actually define prime differential ideals. The strategy involves two steps.
First, search an easy ranking (may involve trial an error), different from the target one, with respect to which, sys is almost a regular differential chain (if possible, a ranking with respect to which the leading ranks have degree 1). Call now RosenfeldGroebner with this easier rank to generate the ideal associated to the given system of equations.
Second, run RosenfeldGroebner over the regular differential chain(s) computed at the first step, but now with respect to the target ranking.
Euler equations for an incompressible fluid
In this example the two steps strategy is applied to Euler equations for an incompressible fluid in two dimensions. We want to prove that the radical I of the differential ideal generated by this system is prime, and, has differential dimension zero.
To prove that I is prime, by definition, it is sufficient to show that I can be presented by a single regular differential chain C, whose leading ranks have degree 1.
To prove that I has differential dimension zero, it is sufficient to compute C with respect to an orderly ranking, and, to check that each dependent variable has a derivative among the leading derivatives of C [K73, chapter II, section 12, Theorem 6].
The target ranking is orderly, but a direct computation does not allow us to conclude.
unassign⁡p:
p1≔v1t+v1⁢v1x+v2⁢v1y+px:
p2≔v2t+v1⁢v2x+v2⁢v2y+py:
p3≔v1x+v2y:
target_ranking≔derivations=x,y,t,blocks=v1,v2,p
R≔DifferentialRing⁡target_ranking:
ideal≔RosenfeldGroebner⁡p1,p2,p3,R
ideal≔regular_differential_chain,regular_differential_chain,regular_differential_chain
However, there exists an easy ranking, with respect to which, the RosenfeldGroebner algorithm does not split into cases. This easy ranking is not orderly with respect to the dependent variables but an elimination one (we use the keyword lex) and also the ordering for the independent variables changes from x,y,t to x,y,t, but it serves the purpose of our two-steps strategy. Let us perform the first step.
easy_ranking≔derivations=t,x,y,blocks=lexp,v1,v2
S≔DifferentialRing⁡easy_ranking:
ideal≔RosenfeldGroebner⁡p1,p2,p3,S
ideal≔regular_differential_chain
Let us, perform the second step, rewriting ideal using the original ranking R. The output proves that I is prime and has differential dimension zero.
ideal≔RosenfeldGroebner⁡ideal1,R
Tools:-LeadingRank⁡ideal
py,y,v1x,v1y,v2x
A parametric dynamical system
This example illustrates the use of RosenfeldGroebner for studying parametric dynamical systems. Indeed, with respect to any orderly ranking on the state variables, a dynamical system is a regular differential chain, which describes a prime differential ideal.
Here, RosenfeldGroebner is used to compute the so-called input-output relation of a dynamical system. This relation is used, in control theory, to study the global identifiability, and, simplify the estimation of the unknown parameters from measures.
First, one defines a parametric dynamical system of two ODE. The two state variables x1 and x2 are grouped in one block. This ensures that the derivatives of x1 and x2 are ranked orderly. The parameters of the system are considered arbitrary
params≔ke,Ve,k1,2,k2,1
R≔DifferentialRing⁡derivations=t,blocks=x1,x2,arbitrary=params
edoA≔diff⁡x1⁡t,t=−k1,2⁢x1⁡t+k2,1⁢x2⁡t−Ve⁢x1⁡tke+x1⁡t
edoA≔ⅆⅆtx1⁡t=−k1,2⁢x1⁡t+k2,1⁢x2⁡t−Ve⁢x1⁡tke+x1⁡t
edoB≔diff⁡x2⁡t,t=k1,2⁢x1⁡t−k2,1⁢x2⁡t
edoB≔ⅆⅆtx2⁡t=k1,2⁢x1⁡t−k2,1⁢x2⁡t
This call to RosenfeldGroebner bundles the two ODEs in a regular differential chain. The parameters do not generate splitting cases because they were declared arbitrary when entering the differential ring
ideal≔RosenfeldGroebner⁡edoA,edoB,R
The leading ranks of the regular differential chain have degree 1. The differential ideal is thus prime.
Tools:-LeadingRank⁡ideal1
ⅆⅆtx1⁡t,ⅆⅆtx2⁡t
The input-output relation is thus obtained by eliminating x2. This is achieved by a change of ranking for the dependent variables over ideal, from x1,x2 to x2,x1, using RosenfeldGroebner. The input-output relation is the differential polynomial of IOideal whose leading derivative is a derivative of x1. Note that you only need to pass to RosenfeldGroebner the piece of information that is changing and there is no need to re-enter the information of the original differential ring, embedded in the first argument, the ideal to be rewritten
IOideal≔RosenfeldGroebner⁡ideal1,blocks=x2,x1
IOideal≔regular_differential_chain
IOrel≔Equations⁡IOideal,leader=derivative⁡x1⁡t,notation=jet1
IOrel≔Ve⁢ke⁢k2,1⁢x1+Ve⁢k2,1⁢x12+ke2⁢k1,2⁢x1t+ke2⁢k2,1⁢x1t+2⁢ke⁢k1,2⁢x1⁢x1t+2⁢ke⁢k2,1⁢x1⁢x1t+k1,2⁢x12⁢x1t+k2,1⁢x12⁢x1t+Ve⁢ke⁢x1t+ke2⁢x1t,t+2⁢ke⁢x1⁢x1t,t+x12⁢x1t,t
Optional arguments
Changing arbitrary, blocks and adding relations
During a call to RosenfeldGroebner it is also possible to change (replace or add to) the arbitrary and/or blocks stated when constructing the differential ring with DifferentialRing. You can also state relations for the arbitrary, allowing for a more detailed study of a system. As an example, consider again the problem of the singular cases of the Weierstrass differential equation,
but this time take g2 as a variable of the problem and only g3 as arbitrary, so in the differential ring rank g2 within blocks, after w
R≔DifferentialRing⁡blocks=w,g2,derivations=z,arbitrary=g3
This problem now splits into three cases
ideal≔RosenfeldGroebner⁡Wp,R
Equations⁡ideal,solved
ⅆⅆzw⁡z2=4⁢w⁡z3−g2⁢w⁡z−g3,w⁡z3=g2⁢w⁡z4+g34,w⁡z=−g2218⁢g3,g23=27⁢g32
From the equations of each case we see that the new case exists only when the invariants g2 and g3 are related by g23=27⁢g32, corresponding to the discriminant of the WeierstrassP function equal to zero. This is the same third singular case presented in a previous section above without derivation.
Suppose now you are interested in taking both g3 and g2 as arbitrary, or only g2, or none of them. For that purpose, use the option arbitrary and additionally. This adds g2 to the existing arbitrary set of the differential ring R
Equations⁡RosenfeldGroebner⁡Wp,R,additionally,arbitrary=g2,solved
ⅆⅆzw⁡z2=4⁢w⁡z3−g2⁢w⁡z−g3,w⁡z3=g2⁢w⁡z4+g34
This makes only g2 arbitrary, replacing the arbitrary = g3 entered when stating the differential ring R
Equations⁡RosenfeldGroebner⁡Wp,R,arbitrary=g2,solved
ⅆⅆzw⁡z2=4⁢w⁡z3−g2⁢w⁡z−g3,w⁡z3=g2⁢w⁡z4+g34,w⁡z=−3⁢g32⁢g2,g32=g2327
This makes none of g2 and g3 arbitrary, overriding arbitrary = g3 in the differential ring R
Equations⁡RosenfeldGroebner⁡Wp,R,arbitrary=,solved
ⅆⅆzw⁡z2=4⁢w⁡z3−g2⁢w⁡z−g3,w⁡z3=g2⁢w⁡z4+g34,w⁡z=−g2218⁢g3,g23=27⁢g32,w⁡z=0,g2=0,g3=0
Suppose now you are interested in the cases when both g2 and g3 are arbitrary and satisfy certain relations, say the discriminant of the WeierstrassP function equal to zero, that is, 27⁢g32=g23. Before proceeding note that as explained in the description, all the objects involved in these relations will automatically be taken as arbitrary (you can optionally pass arbitrary = [g2, g3]). So the input is
Equations⁡RosenfeldGroebner⁡Wp,R,relations=27⁢g32=g23,solved
ⅆⅆzw⁡z2=4⁢w⁡z3−g2⁢w⁡z−g3,g23=27⁢g32,w⁡z=g229⁢g3,g23=27⁢g32,w⁡z=−3⁢g32⁢g2,g23=27⁢g32
Finally this results in g2 being added to the arbitrary objects declared when constructing the differential ring R and also states the relation 27⁢g32=16 for g3
Equations⁡RosenfeldGroebner⁡Wp,R,additionally,arbitrary=g2,relations=27⁢g32=16,solved
ⅆⅆzw⁡z2=4⁢w⁡z3−g2⁢w⁡z−g3,g32=1627,w⁡z3=g2⁢w⁡z4+g34,g32=1627
Requesting different attributes
The attributes = L option permits to modify the behavior of the function. Here, one omits the differential attribute. Therefore, the PDE system is regarded as a non - differential system. The decomposition is purely algebraic: the derivative ux,y occurring in the third polynomial, is not simplified by the first polynomial.
R≔DifferentialRing⁡derivations=x,y,blocks=a,v,u:
syst≔ux2−4⁢u=0,ux,y⁢vy−u+a=0,vx,x−ux=0:
ideal≔RosenfeldGroebner⁡syst,R,attributes=normalized
a=−ux,y⁢vy+u,vx,x=ux,ux2=4⁢u
Get⁡attributes,ideal
autoreduced,primitive,normalized
See Also
DEtools[rifsimp]
PDEtools[casesplit]
Download Help Document