The Computable Differential Equation Lecture ... - Bruce E. Shapiro
The Computable Differential Equation Lecture ... - Bruce E. Shapiro
The Computable Differential Equation Lecture ... - Bruce E. Shapiro
Create successful ePaper yourself
Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.
CHAPTER 9. DIFFERENTIAL ALGEBRAIC EQUATIONS 177<br />
Solution. Write the pendulum equations from the earlier example as<br />
p ′ = u (9.107)<br />
q ′ = v (9.108)<br />
u ′ = −T p (9.109)<br />
v ′ = g − T q (9.110)<br />
0 = p 2 + q 2 − 1 (9.111)<br />
and make the associations x = (u, v) T , y = (p, q) T , and z = (T ). <strong>The</strong>n<br />
( ) −zy1<br />
f(t, x, y, z) =<br />
(9.112)<br />
g − zy 2<br />
( )<br />
x1<br />
g(t, x, y, z) =<br />
(9.113)<br />
x 2<br />
h(t, y) = y1 2 + y2 2 − 1 (9.114)<br />
and<br />
( ) ( )<br />
∂h ∂g ∂f<br />
1 0<br />
∂y ∂x ∂z = (2y −y1<br />
1, 2y 2 )<br />
0 1 −y 2<br />
(9.115)<br />
= −2(y 2 1 + y 2 2) = −2(p 2 + q 2 ) = −2 ≠ 0 (9.116)<br />
9.5 Implementation: A Detailed Example<br />
Implementing a general solver for the differential algebraic equation F(t, y, y ′ ) = 0<br />
can be quite complicated. If we use a method that approximates y ′ with<br />
y ′ n = φ n (. . . , y n+1 , y n , y n−1 , . . . ) (9.117)<br />
then we end up with a system of m nonlinear equations for the y n , where m = dim y:<br />
F (t n , y n , φ n (. . . , y n , . . . )) = 0 (9.118)<br />
For, example, with the Backward Euler Method we have<br />
φ n = 1 h (y n − y n−1 ) (9.119)<br />
which gives us the nonlinear system<br />
(<br />
F t n , y n , 1 )<br />
h (y n − y n−1 ) = 0 (9.120)<br />
Let us consider an implementation of the index-1 system that describes enzymatic<br />
conversion according to the system of chemical reactions<br />
A + E α → X (9.121)<br />
X β → A + E (9.122)<br />
X γ → B + E (9.123)<br />
c○2007, B.E.<strong>Shapiro</strong><br />
Last revised: May 23, 2007<br />
Math 582B, Spring 2007<br />
California State University Northridge