A bob on a rigid rod of length swings on a circle around the pivot. Newton’s second law gives rates of change for its position and velocity, but the rod adds a condition on the position alone, with no derivative in it, that must hold at every instant. Can the bob start anywhere on the circle with any velocity, and what decides how hard the rod pulls? Throughout, is the independent variable and a prime means . This lesson shows how such models join rate equations with algebraic constraints, which initial values they accept, and what differentiating a constraint reveals.
Key terms
Differential-algebraic equation
Definition Let be an unknown vector function with entries. A differential-algebraic equation, or DAE, is a system of equations
whose Jacobian matrix , taken with respect to the entries of , is singular at every point of the region considered. Near a point where and this matrix is invertible, with continuously differentiable, the implicit function theorem would let one solve for and obtain an ordinary first-order system , so the singular Jacobian is what sets a DAE apart. A common case is the linear-implicit form
with a constant singular matrix , often called the mass matrix. Because is singular, some nonzero row vector satisfies , and multiplying the system by it gives , an equation without derivatives that has to hold at every time.
In plain words A DAE mixes rates of change with conditions that must hold at every instant. It cannot be solved for every derivative at once, so the conditions are part of the problem from the start, and they limit both the starting values and the motion.
Example For the unknown , the system
has the linear-implicit form with
The matrix has determinant , and the row vector picks out the second row, the relation with no derivative in it. Written as , the system has , and its Jacobian with respect to is this same matrix . No derivative of appears anywhere, so the system as written gives no formula for .
Differential and algebraic variables
Definition A semi-explicit DAE has the form
where and with are columns that together make up the unknown . The entries of are the differential variables, because each has its own rate equation. The entries of are the algebraic variables, because no derivative of appears in the system. Each of the equations is an algebraic constraint, a relation without derivatives that must hold at every time in the interval of the solution. The Jacobian of this system with respect to has an identity block for and zero rows for the constraints, so it is singular. A solution on an open interval is a pair with differentiable and continuous on such that both lines hold for every in . The labels describe the system as written, so rewriting the model can change which variables count as algebraic.
In plain words The model hands each differential variable a rate. An algebraic variable gets no rate of its own, and in a well-posed model its values are whatever the constraints require at each instant, sometimes only after the constraints are differentiated. Those values can still change from moment to moment.
Example In the system , , the variable is differential and is algebraic, with . The constraint gives , and substituting it leaves the linear equation . With the integrating factor it reads , so and . The start gives , and the constraint returns , so for all real
A check of every equation confirms this. The derivative equals , the sum is , and the values at are and . The algebraic variable falls from toward , so algebraic does not mean constant.
Consistent initial values
Definition Initial values of a DAE are consistent if the DAE has a solution on some open interval containing that takes these values at . Consistent values must satisfy every algebraic constraint at , together with every hidden constraint. For a semi-explicit system with and continuously differentiable, suppose that
and that the Jacobian matrix is invertible at . Then the values and are consistent, and any two solutions through them agree on some open interval containing . In this case the differential values are the data one prescribes, and must then solve the constraint at .
In plain words A starting point is allowed only when the model can actually move from it. Values that break a constraint, written or hidden, start no solution at all, and a computation started from them is working on a different problem.
Example For , , the derivative equals , so any may be prescribed and the constraint forces . With the only consistent value is , and the pair is inconsistent, since . From a general consistent start the solution is
which keeps for every and sends both variables to . One free number, the value , selects the solution.
Hidden constraint
Definition Along a solution on an interval , a constraint holds at every in , so its derivative with respect to along the solution is also zero wherever that derivative exists. Substituting the rate equations into this derivative gives a derived relation that every such solution obeys although it is not written in the system. When a derived relation contains no derivatives after this substitution and does not follow from the written constraints, it is a hidden constraint. It restricts the states a solution can pass through, so consistent initial values must satisfy it too. Differentiating again can reveal further hidden constraints. A derived relation adds to the original constraint. It can stand in for it only when the initial values satisfy the original constraint, because a zero derivative only says that stays constant along the solution, not that the constant is .
In plain words A constraint has to keep holding as time runs, and that requirement can impose conditions nobody wrote down. A rod of fixed length, for instance, forbids any motion toward or away from the pivot, so a condition on the position hides a condition on the velocity.
Example Consider , , with differential and algebraic. The constraint says nothing about directly. Differentiating it gives , and substituting gives the hidden constraint
So the only consistent initial values at are and , and the solution is , . Here not even the differential variable has a free starting value. Compare the first system, with . Differentiating its constraint gives , so the two rates are equal and opposite, and substituting gives . That derived relation fixes the rate of but places no new condition on the starting values.
Differentiation index
Definition Differentiate the equations of a DAE with respect to along solutions, all of them or only some, as many times as needed. The differentiation index is the smallest number such that the original equations together with their derivatives up to order determine as a continuous function of and by algebraic steps. The resulting ordinary system is called the underlying ODE, and an ordinary system has index . For a semi-explicit system with continuously differentiable and , write , , and for the partial derivatives and Jacobian matrices. If is invertible along the solution, one differentiation of the constraint gives
which can be solved for , so the index is . If does not depend on , that first derivative contains no , so the index is at least , and it equals when the matrix is invertible. The index belongs to a formulation and to this convention. Rewriting a model can change it, and other notions, such as the perturbation index, are defined differently and need not give the same number for every system.
In plain words The index counts how many rounds of differentiating the constraints it takes before every unknown, the algebraic ones included, has a rate equation. A higher index means more differentiations between the model as written and an ordinary system, and numerical methods generally find such problems harder.
Example In , the matrix is the number , and one differentiation gives . The underlying ODE is
so the index is . In , the constraint does not contain . The first differentiation gives the hidden constraint and the second gives , so the index is , in agreement with . The underlying ODE can have more solutions than the DAE. Adding the two rows of the first underlying ODE gives , so each of its solutions keeps constant, but only those with solve the DAE.
Constrained pendulum
Definition Scale the units so that the mass, the rod length and the gravitational acceleration all equal . Put the pivot at the origin, write the position of the bob as with positive upward and its velocity as , and let the rod act on the bob with the force . The constrained pendulum is the DAE
The differential variables are , , and , and the multiplier is the algebraic variable. The rod force has magnitude , and a positive means the rod pulls the bob toward the pivot. Differentiating the constraint and using , gives , the hidden constraint
Differentiating that and inserting the accelerations gives , which on the circle reads
A third differentiation gives
which supplies the last missing rate, so this formulation has index . Consistent initial values put the bob on the circle, make its velocity tangent to the circle, and fix by the formula above. Of the five unknowns only two numbers are free, the starting point on the circle and the signed speed along it. Other formulations of the same motion have other indices. With the velocity constraint in place of the position constraint the index is , although the bob must still be started on the circle, and in the angle with and the motion is the ordinary equation , of index .
In plain words The rod pulls exactly as hard as needed to keep the bob on the circle. That pull is not an extra starting value to choose, because the position and velocity already decide it, and the fixed length hides a condition on the velocity.
Example At rest at the bottom, . The bob is on the circle, the tangency condition holds, and the formula gives . The accelerations are then and , so the rod force balances gravity and the bob stays at rest, as it should. This small check also catches a sign error in the multiplier convention. Released from rest with the rod horizontal, at , the bob has , so at that instant the rod exerts no force and the accelerations are and , the start of free fall.
Check yourself
- In the system , , which variable is differential and which is algebraic? With , find the consistent value of and solve the problem.
Show the answer
The derivative of appears, so is differential, and is algebraic. The constraint has , so the index is and may be prescribed freely. At the constraint gives , the only consistent value. Eliminating leaves . With the integrating factor this is , so , and gives . Hence
As a check, , the expression is , and the values at are and .
- A classmate replaces the constraint of , by its derivative, which turns the problem into the ordinary system , , and starts it from and . Solve the classmate’s problem and explain why its solution does not solve the DAE.
Show the answer
Adding the two equations gives , so keeps its starting value . Then , so with , and
Both rate equations hold, since and . But at every time, so the original constraint fails throughout, and both variables approach instead of . The starting values were inconsistent, and the differentiated constraint preserved the wrong sum instead of correcting it. From the consistent start the same ordinary system gives the true solution, which is why the original constraint is kept beside its derivative and checked during a computation.
- For the constrained pendulum in scaled units, decide which of the starting states and is consistent. For the consistent one, find and the initial accelerations and .
Show the answer
Both states put the bob on the circle, since . For the first state the hidden constraint holds, because . The formula then gives , and
As a check, the component of this acceleration along the unit vector is , which is the inward acceleration needed to move on the unit circle at speed . For the second state, , so its velocity has a component along the rod. It violates the hidden constraint, and no choice of makes it consistent.