The Computable Differential Equation Lecture ... - Bruce E. Shapiro

The Computable Differential Equation Lecture ... - Bruce E. Shapiro The Computable Differential Equation Lecture ... - Bruce E. Shapiro

bruce.shapiro.com
from bruce.shapiro.com More from this publisher
21.04.2015 Views

168 CHAPTER 9. DIFFERENTIAL ALGEBRAIC EQUATIONS so the original DAE is equivalent to the ODE u ′ = v (9.10) v ′ = w (9.11) w ′ = − v(ew + we u ) ue w + e u (9.12) which gives explicit expressions for each of the derivatives in terms of the variables. This type of DAE is said to be of index 1 because a single differentiation was sufficient to convert the equation to a system of ODEs. Definition 9.1. The index of a DAE is the minimum number of times all or part of the DAE must be differentiated with respect to t to be able to determine y ′ explicitly as a function of t and y. Example 9.1. Show that the equations for the unit pendulum y ′′ = g − T cos θ (9.13) x ′′ = −T sin θ (9.14) 1 = x 2 + y 2 (9.15) where T is the unknown tension in the pendulum rope, form an index-3 system. Solution. We can rewrite this as a first-order system by defining cartesian velocity components u = x ′ and v = y ′ , and by observing that because of the constraint Hence the first order DAE becomes y = cos θ (9.16) x = sin θ (9.17) x ′ = u (9.18) y ′ = v (9.19) u ′ = −T x (9.20) v ′ = g − T y (9.21) 0 = x 2 + y 2 − 1 (9.22) where T is an unknown variable. To get a differential equation for T we must differentiate the constraint three times, as follows. First, we obtain Differentiating a second time, 0 = xx ′ + yy ′ (9.23) 0 = xu + yv (9.24) 0 = xu ′ + x ′ u + yv ′ + y ′ v (9.25) 0 = −x 2 T + u 2 + yg − T y 2 + v 2 (9.26) Math 582B, Spring 2007 California State University Northridge c○2007, B.E.Shapiro Last revised: May 23, 2007

CHAPTER 9. DIFFERENTIAL ALGEBRAIC EQUATIONS 169 Since x 2 + y 2 = 1, Differentiating a third time gives an equation for T ′ , T = u 2 + v 2 + yg (9.27) T ′ = 2uu ′ + 2vv ′ + gy ′ (9.28) = −2uT x + 2vg − 2vT y + gv (9.29) = −2T (ux + vy) + 3gv (9.30) = 3gv (9.31) Since the DAE can be reduced to an explicit ODE in 3 differentiations, it is an index-3 DAE. Equation 9.1 is sometimes referred to as a fully implicit DAE. It becomes a semi-implicit DAE if we can express the constraint explicitly: F(t, y, y ′ ) = 0 (9.32) g(t, y, y ′ ) = 0 (9.33) where the Jacobian F y ′ is non-singular. If we can express all the derivatives explicitly then we have a semi-explicit DAE: A linear time-varying DAE can be expressed as y ′ = f(t, y, y ′ ) (9.34) 0 = g(t, y, y ′ ) (9.35) A(t)y ′ (t) + B(t)y(t) = f(t) (9.36) where the matrix A(t) is singular for all t (if it were not singular the equation would reduce to linear system of ordinary differential equations). If the matrices are composed of constants we call the system a Linear constant coefficient DAE, and write it as Ay ′ (t) + By(t) = f(t) (9.37) It is convenient to write the linear equations in block form, e.g., as ( ) ( ) ( ) ( ) ( ) A11 A 12 x ′ B11 B A 21 A 22 y ′ + 12 x f(t) = B 22 y g(t) where the A ij and B ij are matrices, and the A 2j are singular. Expanding, B 21 The system is semi-explicit if it has the form (9.38) A 11 x ′ + A 12 y ′ + B 11 x + B 12 y = f(t) (9.39) A 21 x ′ + A 22 y ′ + B 21 x + B 22 y = g(t) (9.40) A 11 x ′ + B 11 x + B 12 y = f(t) (9.41) B 21 x + B 22 y = g(t) (9.42) c○2007, B.E.Shapiro Last revised: May 23, 2007 Math 582B, Spring 2007 California State University Northridge

168 CHAPTER 9. DIFFERENTIAL ALGEBRAIC EQUATIONS<br />

so the original DAE is equivalent to the ODE<br />

u ′ = v (9.10)<br />

v ′ = w (9.11)<br />

w ′ = − v(ew + we u )<br />

ue w + e u (9.12)<br />

which gives explicit expressions for each of the derivatives in terms of the variables.<br />

This type of DAE is said to be of index 1 because a single differentiation was sufficient<br />

to convert the equation to a system of ODEs.<br />

Definition 9.1. <strong>The</strong> index of a DAE is the minimum number of times all or part of<br />

the DAE must be differentiated with respect to t to be able to determine y ′ explicitly<br />

as a function of t and y.<br />

Example 9.1. Show that the equations for the unit pendulum<br />

y ′′ = g − T cos θ (9.13)<br />

x ′′ = −T sin θ (9.14)<br />

1 = x 2 + y 2 (9.15)<br />

where T is the unknown tension in the pendulum rope, form an index-3 system.<br />

Solution. We can rewrite this as a first-order system by defining cartesian velocity<br />

components u = x ′ and v = y ′ , and by observing that because of the constraint<br />

Hence the first order DAE becomes<br />

y = cos θ (9.16)<br />

x = sin θ (9.17)<br />

x ′ = u (9.18)<br />

y ′ = v (9.19)<br />

u ′ = −T x (9.20)<br />

v ′ = g − T y (9.21)<br />

0 = x 2 + y 2 − 1 (9.22)<br />

where T is an unknown variable. To get a differential equation for T we must<br />

differentiate the constraint three times, as follows. First, we obtain<br />

Differentiating a second time,<br />

0 = xx ′ + yy ′ (9.23)<br />

0 = xu + yv (9.24)<br />

0 = xu ′ + x ′ u + yv ′ + y ′ v (9.25)<br />

0 = −x 2 T + u 2 + yg − T y 2 + v 2 (9.26)<br />

Math 582B, Spring 2007<br />

California State University Northridge<br />

c○2007, B.E.<strong>Shapiro</strong><br />

Last revised: May 23, 2007

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!