Differential-algebraic system of equations

From HandWiki

In mathematics, a differential-algebraic system of equations (DAE) is a system of equations that either contains differential equations and algebraic equations, or is equivalent to such a system.

The set of the solutions of such a system is a differential algebraic variety, and corresponds to an ideal in a differential algebra of differential polynomials.

In the univariate case, a DAE in the variable t can be written as a single equation of the form

[math]\displaystyle{ F(x'(t), x(t),t)=0, }[/math]

where [math]\displaystyle{ x(t) }[/math] is a vector of unknown functions.

They are distinct from ordinary differential equation (ODE) in that a DAE is not completely solvable for the derivatives of all components of the function x because these may not all appear (i.e. some equations are algebraic); technically the distinction between an implicit ODE system [that may be rendered explicit] and a DAE system is that the Jacobian matrix [math]\displaystyle{ \frac{\partial F(u, v, t)}{\partial u} }[/math] is a singular matrix for a DAE system.[1] This distinction between ODEs and DAEs is made because DAEs have different characteristics and are generally more difficult to solve.[2]

In practical terms, the distinction between DAEs and ODEs is often that the solution of a DAE system depends on the derivatives of the input signal and not just the signal itself as in the case of ODEs;[3] this issue is commonly encountered in nonlinear systems with hysteresis,[4] such as the Schmitt trigger.[5]

This difference is more clearly visible if the system may be rewritten so that instead of x we consider a pair [math]\displaystyle{ (x,y) }[/math] of vectors of dependent variables and the DAE has the form

[math]\displaystyle{ \begin{align}\dot x(t)&=f(x(t),y(t),t),\\0&=g(x(t),y(t),t).\end{align} }[/math]
where [math]\displaystyle{ x(t)\in\R^n }[/math], [math]\displaystyle{ y(t)\in\R^m }[/math], [math]\displaystyle{ f:\R^{n+m+1}\to\R^n }[/math] and [math]\displaystyle{ g:\R^{n+m+1}\to\R^m. }[/math]

A DAE system of this form is called semi-explicit.[1] Every solution of the second half g of the equation defines a unique direction for x via the first half f of the equations, while the direction for y is arbitrary. But not every point (x,y,t) is a solution of g. The variables in x and the first half f of the equations get the attribute differential. The components of y and the second half g of the equations are called the algebraic variables or equations of the system. [The term algebraic in the context of DAEs only means free of derivatives and is not related to (abstract) algebra.]

The solution of a DAE consists of two parts, first the search for consistent initial values and second the computation of a trajectory. To find consistent initial values it is often necessary to consider the derivatives of some of the component functions of the DAE. The highest order of a derivative that is necessary for this process is called the differentiation index. The equations derived in computing the index and consistent initial values may also be of use in the computation of the trajectory. A semi-explicit DAE system can be converted to an implicit one by decreasing the differentiation index by one, and vice versa.[6]

Other forms of DAEs

The distinction of DAEs to ODEs becomes apparent if some of the dependent variables occur without their derivatives. The vector of dependent variables may then be written as pair [math]\displaystyle{ (x,y) }[/math] and the system of differential equations of the DAE appears in the form

[math]\displaystyle{ F\left(\dot x, x, y, t\right) = 0 }[/math]

where

  • [math]\displaystyle{ x }[/math], a vector in [math]\displaystyle{ \R^n }[/math], are dependent variables for which derivatives are present (differential variables),
  • [math]\displaystyle{ y }[/math], a vector in [math]\displaystyle{ \R^m }[/math], are dependent variables for which no derivatives are present (algebraic variables),
  • [math]\displaystyle{ t }[/math], a scalar (usually time) is an independent variable.
  • [math]\displaystyle{ F }[/math] is a vector of [math]\displaystyle{ n+m }[/math] functions that involve subsets of these [math]\displaystyle{ n+m+1 }[/math] variables and [math]\displaystyle{ n }[/math] derivatives.

As a whole, the set of DAEs is a function

[math]\displaystyle{ F: \R^{(2n+m+1)} \to \R^{(n+m)}. }[/math]

Initial conditions must be a solution of the system of equations of the form

[math]\displaystyle{ F\left(\dot x(t_0),\, x(t_0), y(t_0), t_0 \right) = 0. }[/math]

Examples

The behaviour of a pendulum of length L with center in (0,0) in Cartesian coordinates (x,y) is described by the Euler–Lagrange equations

[math]\displaystyle{ \begin{align} \dot x&=u,&\dot y&=v,\\ \dot u&=\lambda x,&\dot v&=\lambda y-g,\\ x^2+y^2&=L^2, \end{align} }[/math]

where [math]\displaystyle{ \lambda }[/math] is a Lagrange multiplier. The momentum variables u and v should be constrained by the law of conservation of energy and their direction should point along the circle. Neither condition is explicit in those equations. Differentiation of the last equation leads to

[math]\displaystyle{ \begin{align} &&\dot x\,x+\dot y\,y&=0\\ \Rightarrow&& u\,x+v\,y&=0, \end{align} }[/math]

restricting the direction of motion to the tangent of the circle. The next derivative of this equation implies

[math]\displaystyle{ \begin{align} &&\dot u\,x+\dot v\,y+u\,\dot x+v\,\dot y&=0,\\ \Rightarrow&& \lambda(x^2+y^2)-gy+u^2+v^2&=0,\\ \Rightarrow&& L^2\,\lambda-gy+u^2+v^2&=0, \end{align} }[/math]

and the derivative of that last identity simplifies to [math]\displaystyle{ L^2\dot\lambda-3gv=0 }[/math] which implies the conservation of energy since after integration the constant [math]\displaystyle{ E=\tfrac32gy-\tfrac12L^2\lambda=\frac12(u^2+v^2)+gy }[/math] is the sum of kinetic and potential energy.

To obtain unique derivative values for all dependent variables the last equation was three times differentiated. This gives a differentiation index of 3, which is typical for constrained mechanical systems.

If initial values [math]\displaystyle{ (x_0,u_0) }[/math] and a sign for y are given, the other variables are determined via [math]\displaystyle{ y=\pm\sqrt{L^2-x^2} }[/math], and if [math]\displaystyle{ y\ne0 }[/math] then [math]\displaystyle{ v=-ux/y }[/math] and [math]\displaystyle{ \lambda=(gy-u^2-v^2)/L^2 }[/math]. To proceed to the next point it is sufficient to get the derivatives of x and u, that is, the system to solve is now

[math]\displaystyle{ \begin{align} \dot x&=u,\\ \dot u&=\lambda x,\\[0.3em] 0&=x^2+y^2-L^2,\\ 0&=ux+vy,\\ 0&=u^2-gy+v^2+L^2\,\lambda. \end{align} }[/math]

This is a semi-explicit DAE of index 1. Another set of similar equations may be obtained starting from [math]\displaystyle{ (y_0,v_0) }[/math] and a sign for x.

DAEs also naturally occur in the modelling of circuits with non-linear devices. Modified nodal analysis employing DAEs is used for example in the ubiquitous SPICE family of numeric circuit simulators.[7] Similarly, Fraunhofer's Analog Insydes Mathematica package can be used to derive DAEs from a netlist and then simplify or even solve the equations symbolically in some cases.[8][9] It is worth noting that the index of a DAE (of a circuit) can be made arbitrarily high by cascading/coupling via capacitors operational amplifiers with positive feedback.[4]

Semi-explicit DAE of index 1

DAE of the form

[math]\displaystyle{ \begin{align}\dot x&=f(x,y,t),\\0&=g(x,y,t).\end{align} }[/math]

are called semi-explicit. The index-1 property requires that g is solvable for y. In other words, the differentiation index is 1 if by differentiation of the algebraic equations for t an implicit ODE system results,

[math]\displaystyle{ \begin{align} \dot x&=f(x,y,t)\\ 0&=\partial_x g(x,y,t)\dot x+\partial_y g(x,y,t)\dot y+\partial_t g(x,y,t), \end{align} }[/math]

which is solvable for [math]\displaystyle{ (\dot x,\,\dot y) }[/math] if [math]\displaystyle{ \det\left(\partial_y g(x,y,t)\right)\ne 0. }[/math]

Every sufficiently smooth DAE is almost everywhere reducible to this semi-explicit index-1 form.

Numerical treatment of DAE and applications

Two major problems in solving DAEs are index reduction and consistent initial conditions. Most numerical solvers require ordinary differential equations and algebraic equations of the form

[math]\displaystyle{ \begin{align}\frac{dx}{dt}&=f\left(x,y,t\right),\\0&=g\left(x,y,t\right).\end{align} }[/math]

It is a non-trivial task to convert arbitrary DAE systems into ODEs for solution by pure ODE solvers. Techniques which can be employed include Pantelides algorithm and dummy derivative index reduction method. Alternatively, a direct solution of high-index DAEs with inconsistent initial conditions is also possible. This solution approach involves a transformation of the derivative elements through orthogonal collocation on finite elements or direct transcription into algebraic expressions. This allows DAEs of any index to be solved without rearrangement in the open equation form

[math]\displaystyle{ \begin{align}0&=f\left(\frac{dx}{dt},x,y,t\right),\\0&=g\left(x,y,t\right).\end{align} }[/math]

Once the model has been converted to algebraic equation form, it is solvable by large-scale nonlinear programming solvers (see APMonitor).

Tractability

Several measures of DAEs tractability in terms of numerical methods have developed, such as differentiation index, perturbation index, tractability index, geometric index, and the Kronecker index.[10][11]

Structural analysis for DAEs

We use the [math]\displaystyle{ \Sigma }[/math]-method to analyze a DAE. We construct for the DAE a signature matrix [math]\displaystyle{ \Sigma=(\sigma_{i,j}) }[/math], where each row corresponds to each equation [math]\displaystyle{ f_i }[/math] and each column corresponds to each variable [math]\displaystyle{ x_j }[/math]. The entry in position [math]\displaystyle{ (i,j) }[/math] is [math]\displaystyle{ \sigma_{i,j} }[/math], which denotes the highest order of derivative to which [math]\displaystyle{ x_j }[/math] occurs in [math]\displaystyle{ f_i }[/math], or [math]\displaystyle{ -\infty }[/math] if [math]\displaystyle{ x_j }[/math] does not occur in [math]\displaystyle{ f_i }[/math].

For the pendulum DAE above, the variables are [math]\displaystyle{ (x_1,x_2,x_3,x_4,x_5)=(x,y,u,v,\lambda) }[/math]. The corresponding signature matrix is

[math]\displaystyle{ \Sigma = \begin{bmatrix} 1 & - & 0^\bullet & - & - \\ - & 1^\bullet & - & 0 & - \\ 0 & - & 1 & - & 0^\bullet \\ - & 0 & - & 1^\bullet & 0 \\ 0^\bullet & 0 & - & - & - \end{bmatrix} }[/math]

See also

References

  1. 1.0 1.1 Uri M. Ascher; Linda R. Petzold (1998). Computer Methods for Ordinary Differential Equations and Differential-Algebraic Equations. SIAM. p. 12. ISBN 978-1-61197-139-2. 
  2. Achim Ilchmann; Timo Reis (2014). Surveys in Differential-Algebraic Equations II. Springer. pp. 104–105. ISBN 978-3-319-11050-9. 
  3. Renate Merker, ed (2001). System Design Automation: Fundamentals, Principles, Methods, Examples. Springer Science & Business Media. p. 221. ISBN 978-0-7923-7313-1. https://archive.org/details/systemdesignauto00teic. 
  4. 4.0 4.1 K. E. Brenan; S. L. Campbell; L. R. Petzold (1996). Numerical Solution of Initial-value Problems in Differential-algebraic Equations. SIAM. pp. 173–177. ISBN 978-1-61197-122-4. 
  5. Günther, M.; Feldmann, U.; Ter Maten, J. (2005). "Modelling and Discretization of Circuit Problems". Numerical Methods in Electromagnetics. Handbook of Numerical Analysis. 13. pp. 523. doi:10.1016/S1570-8659(04)13006-8. ISBN 978-0-444-51375-5. https://research.tue.nl/nl/publications/7e8db823-0664-4b2d-b03d-7c5bd5edb0b5. , pp. 529-531
  6. Ascher and Petzold, p. 234
  7. Ricardo Riaza (2013). "DAEs in Circuit Modelling: A Survey". in Achim Ilchmann. Surveys in Differential-Algebraic Equations I. Springer Science & Business Media. ISBN 978-3-642-34928-7. 
  8. Platte, D.; Jing, S.; Sommer, R.; Barke, E. (2007). "Improving Efficiency and Robustness of Analog Behavioral Models". Advances in Design and Specification Languages for Embedded Systems. pp. 53. doi:10.1007/978-1-4020-6149-3_4. ISBN 978-1-4020-6147-9. 
  9. Hauser, M.; Salzig, C.; Dreyer, A. (2011). "Fast and Robust Symbolic Model Order Reduction with Analog Insydes". Computer Algebra in Scientific Computing. Lecture Notes in Computer Science. 6885. pp. 215. doi:10.1007/978-3-642-23568-9_17. ISBN 978-3-642-23567-2. 
  10. Ricardo Riaza (2008). Differential-algebraic Systems: Analytical Aspects and Circuit Applications. World Scientific. pp. 5–8. ISBN 978-981-279-181-8. https://archive.org/details/differentialalge00riaz. 
  11. Takamatsu, Mizuyo; Iwata, Satoru (2008). "Index characterization of differential-algebraic equations in hybrid analysis for circuit simulation" (in en). International Journal of Circuit Theory and Applications: n/a. doi:10.1002/cta.577. http://www.ise.chuo-u.ac.jp/ise-labs/takamatsu-lab/takamatsu/metr/METR08-10.pdf. Retrieved 9 November 2022. 

Further reading

Books

Various papers


External links