원시데이터 수집 시스템
선정목록으로

Poincare Analyticity and the Complete Variational Equations

관련 수소연료전지 · (7) MEA(막전극접합체)

기본 정보

저자
  1. Kaltchev, Dobrin
  2. Dragt, Alex
DOI
10.48550/arxiv.1102.3394
저널
arXiv (Cornell University)
발행년도
2022
발행기관
Cornell University
피인용수
0
라이선스
0
논문 유형
–
언어
–
원문 페이지
https://doi.org/10.48550/arxiv.1102.3394
토픽
Advanced Materials and Semiconductor Technologies
OpenAlex ID
W6929175848

평가 내용

관련도
관련
사업분야
수소연료전지 · (7) MEA(막전극접합체)
부 분야
–
R&D 측면
–
확신도
–
근거 용어
–
판단 근거
임베딩 유사도 기반 평가로 '수소연료전지 > MEA(막전극접합체)' 분야에 선정된 논문입니다.
R&D 활용 포인트
–
평가 입력
–

초록

According to a theorem of Poincare, the solutions to differential equations are analytic functions of (and therefore have Taylor expansions in) the initial conditions and various parameters providing the right sides of the differential equations are analytic in the variables, the time, and the parameters. We describe how these Taylor expansions may be obtained, to any desired order, by integration of what we call the complete variational equations. As illustrated in a Duffing equation stroboscopic map example, these Taylor expansions, truncated at an appropriate order thereby providing polynomial approximations, can well reproduce the behavior (including infinite period doubling cascades and strange attractors) of the solutions of the underlying differential equations.

본문 183,591자

본문 펼치기
#### Poincar´e Analyticity and the Complete Variational Equations D. Kaltchev <sup>_a,∗_</sup> and A. J. Dragt <sup>_b,†_</sup> _a TRIUMF,_ _4004_ _Wesbrook_ _Mall,_ _Vancouver,_ _B.C.,_ _Canada_ _V6T_ _2A3_ ``` kaltchev@triumf.ca ``` _b Physics_ _Department,_ _University_ _of_ _Maryland,_ _College_ _Park,_ _Maryland_ _20742,_ _USA_ ``` dragt@umd.edu ``` October 19, 2018 ##### Abstract According to a theorem of Poincar´e, the solutions to differential equations are analytic functions of (and therefore have Taylor expansions in) the initial conditions and various parameters providing the right sides of the differential equations are analytic in the variables, the time, and the parameters. We describe how these Taylor expansions may be obtained, to any desired order, by integration of what we call the _complete_ variational equations. As illustrated in a Duffing equation stroboscopic map example, these Taylor expansions, truncated at an appropriate order thereby providing polynomial approximations, can well reproduce the behavior (including infinite period doubling cascades and strange attractors) of the solutions of the underlying differential equations. ##### 1 Introduction In his prize-winning essay[1,2] and subsequent monumental work on celestial mechanics[3], Poincar´e established and exploited the fact that solutions to differential equations are frequently analytic functions of the initial conditions and various parameters (should any occur). This result is often referred to as _Poincar´e_ _analyticity_ or _Poincar´e’s_ _theorem_ on analyticity. _∗_ Corresponding author. _†_ Work supported in part by U.S. Department of Energy Grant DE-FG02-96ER40949. 1 Specifically, consider any set of _m_ first-order differential equations of the form _z_ ˙ _a_ = _fa_ ( _z_ 1 _, · · ·_ _, zm_ ; _t_ ; _λ_ 1 _, · · ·_ _, λn_ ) _,_ _a_ = 1 _, · · ·_ _, m._ (1.1) Here _t_ is the independent variable, the _za_ are dependent variables, and the _λb_ are possible parameters. Let the quantities _za_ <sup>0</sup> <sup>be initial conditions specified at some initial time</sup> <sup>_t_</sup> <sup>=</sup> <sup>_t_</sup> <sup>0,</sup> _za_ ( _t_ <sup>0</sup> ) = _za_ <sup>0</sup> <sup>_._</sup> (1.2) Then, under mild conditions imposed on the functions _fa_ that appear on the right side of (1.1) and thereby define the set of differential equations, there exists a _unique_ solution _za_ ( _t_ ) = _ga_ ( _z_ 1 <sup>0</sup> <sup>_, · · ·_</sup> <sup>_, z_</sup> _m_ <sup>0</sup> <sup>;</sup> <sup>_t_</sup> <sup>0</sup> <sup>_, t_</sup> <sup>;</sup> <sup>_λ_</sup> <sup>1</sup> <sup>_, · · ·_</sup> <sup>_, λn_</sup> <sup>)</sup> <sup>_,_</sup> _a_ = 1 _, m_ (1.3) of (1.1) with the property _za_ ( _t_ <sup>0</sup> ) = _ga_ ( _z_ 1 <sup>0</sup> 1 <sup>0</sup> <sup>_, · · ·_</sup> <sup>_, z_</sup> _m_ <sup>0</sup> <sup>;</sup> <sup>_t_</sup> <sup>0</sup> <sup>_, t_</sup> <sup>0;</sup> <sup>_λ_</sup> <sup>1</sup> <sup>_, · · ·_</sup> <sup>_, λn_</sup> <sup>) =</sup> <sup>_z_</sup> _a_ <sup>0</sup> _a_ <sup>0</sup> <sup>_,_</sup> _a_ = 1 _, m._ (1.4) Now assume that the functions _fa_ are analytic (within some domain) in the quantities _za_, the time _t_, and the parameters _λb_ . Then, according to Poincar´e’s Theorem, the solution given by (1.3) will be analytic (again within some domain) in the initial conditions _za_ <sup>0,</sup> <sup>the</sup> times _t_ <sup>0</sup> and _t_, and the parameters _λb_ . Poincar´e established this result on a case-by-case basis as needed using _Cauchy’s_ method of _majorants_ . It is now more commonly established in general using _Picard_ _iteration_, and appears as background material in many standard texts on ordinary differential equations [4]. If the solution _za_ ( _t_ ) is analytic in the initial conditions _za_ <sup>0</sup> <sup>and</sup> <sup>the</sup> <sup>parameters</sup> <sup>_λb_</sup> <sup>,</sup> <sup>then</sup> it is possible to expand it in the form of a Taylor series, with time-dependent coefficients, in the variables _za_ <sup>0</sup> <sup>and</sup> <sup>_λb_</sup> <sup>.</sup> <sup>The</sup> <sup>aim</sup> <sup>of</sup> <sup>this</sup> <sup>paper</sup> <sup>is</sup> <sup>to</sup> <sup>describe</sup> <sup>how</sup> <sup>these</sup> <sup>Taylor</sup> <sup>coefficients</sup> can be found as solutions to what we will call the _complete_ _variational_ equations. To aid further discussion, it is useful to also rephrase our goal in the context of maps. Suppose we rewrite the set of first-order differential equations (1.1) in the more compact vector form _z_ ˙ = _f_ ( _z_ ; _t_ ; _λ_ ) _._ (1.5) Then, again using vector notation, their solution can be written in the form _z_ ( _t_ ) = _g_ ( _z_ <sup>0</sup> ; _t_ <sup>0</sup> _, t_ ; _λ_ ) _._ (1.6) That is, the quantities _z_ ( _t_ ) at any time _t_ are uniquely specified by the initial quantities _z_ <sup>0</sup> given at the initial time _t_ <sup>0</sup> . We capitalize on this fact by introducing a slightly different notation. First, use _t_ <sup>_i_</sup> instead of _t_ <sup>0</sup> to denote the _initial_ time. Similarly use _z_ <sup>_i_</sup> to denote initial conditions by writing _z_ <sup>_i_</sup> = _z_ <sup>0</sup> = _z_ ( _t_ <sup>_i_</sup> ) _._ (1.7) 2 Next, let _t_ <sup>_f_</sup> be some _final_ time, and define final conditions _z_ <sup>_f_</sup> by writing _z_ <sup>_f_</sup> = _z_ ( _t_ <sup>_f_</sup> ) _._ (1.8) Then, with this notation, (1.6) can be rewritten in the form _z_ <sup>_f_</sup> = _g_ ( _z_ <sup>_i_</sup> ; _t_ <sup>_i_</sup> _, t_ <sup>_f_</sup> ; _λ_ ) _._ (1.9) We now view (1.9) as a _map_ that sends the initial conditions _z_ <sup>_i_</sup> to the final conditions _z_ <sup>_f_</sup> . This map will be called the _transfer_ _map_ between the times _t_ <sup>_i_</sup> and _t_ <sup>_f_</sup>, and will be denoted by the symbol _M_ . What we have emphasized is that a set of first-order differential equations of the form (1.5) can be integrated to produce a transfer map _M_ . We express the fact that _M_ sends _z_ <sup>_i_</sup> to _z_ <sup>_f_</sup> in symbols by writing _z_ <sup>_f_</sup> = _M_ _z_ <sup>_i_</sup> _,_ (1.10) and illustrate this relation by the picture shown in Figure 1. We also note that _M_ is always invertible: Given _z_ <sup>_f_</sup>, _t_ <sup>_f_</sup>, and _t_ <sup>_i_</sup>, we can always integrate (1.5) backward in time from the moment _t_ = _t_ <sup>_f_</sup> to the moment _t_ = _t_ <sup>_i_</sup> and thereby find the initial conditions _z_ <sup>_i_</sup> . In the context of maps, our goal is to find a Taylor representation for _M_ . If parameters are present, we may wish to have an expansion in some or all of them as well. ## _M_ ###### Z i Z f Figure 1: The transfer map _M_ sends the initial conditions _z_ <sup>_i_</sup> to the final conditions _z_ <sup>_f_</sup> . The organization of this paper is as follows: Section 2 derives the complete variational equations without and with dependence on some or all parameters. Sections 3 and 4 describe their solution using forward and backward integration. As an example, Section 5 treats the Duffing equation and describes the properties of an associated stroboscopic map _M_ . Section 6 sets up the complete variational equations for the Duffing equation, including some parameter dependence, and studies some of the properties of the map obtained by solving these variational equations numerically. There we will witness the remarkable 3 fact that a truncated Taylor map approximation to _M_ can reproduce the infinite perioddoubling Feigenbaum cascade and associated strange attractor exhibited by the exact _M_ . Section 7 describes how the variational equations can be solved numerically. A final section provides a concluding summary. ##### 2 Complete Variational Equations This section derives the complete variational equations, first without parameter dependence, and then with parameter dependence. 2.1 Case of No or Ignored Parameter Dependence Suppose the equations (1.1) do not depend on any parameters _λb_ or we do not wish to make expansions in them. We may then suppress their appearance to rewrite (1.1) in the form _z_ ˙ _a_ = _fa_ ( _z, t_ ) _,_ _a_ = 1 _, m._ (2.1) Suppose that _z_ <sup>_d_</sup> ( _t_ ) is some given _design_ solution to these equations, and we wish to study solutions in the vicinity of this solution. That is, we wish to make expansions about this solution. Introduce deviation variables _ζa_ by writing _za_ = _za_ <sup>_d_</sup> <sup>+</sup> <sup>_ζa._</sup> (2.2) Then the equations of motion (2.1) take the form _z_ ˙ _a_ <sup>_d_</sup> <sup>+</sup> <sup>_ζ_</sup> <sup>˙</sup> <sup>_a_</sup> <sup>=</sup> <sup>_fa_</sup> <sup>(</sup> <sup>_zd_</sup> <sup>+</sup> <sup>_ζ, t_</sup> <sup>)</sup> <sup>_._</sup> (2.3) In accord with our hypothesis of analyticity, assume that the right side of (2.3) is analytic about _z_ <sup>_d_</sup> . Then we may write the relation _fa_ ( _z_ <sup>_d_</sup> + _ζ, t_ ) = _fa_ ( _z_ <sup>_d_</sup> _, t_ ) + _ga_ ( _z_ <sup>_d_</sup> _, t, ζ_ ) (2.4) where each _ga_ has a Taylor expansion of the form _ga_ ( _z_ <sup>_d_</sup> _, t, ζ_ ) = _r_ _ga_ <sup>_r_</sup> <sup>(</sup> <sup>_t_</sup> <sup>)</sup> <sup>_Gr_</sup> <sup>(</sup> <sup>_ζ_</sup> <sup>)</sup> <sup>_._</sup> (2.5) Here the _Gr_ ( _ζ_ ) are the various monomials in the _m_ variables _ζb_ labeled by an _index r_ using some convenient labeling scheme, and the _ga_ <sup>_r_</sup> <sup>are</sup> <sup>(generally)</sup> <sup>time-dependent</sup> <sup>coefficients</sup> which we call _forcing_ _terms_ . <sup>1</sup> By construction, all the monomials occurring in the right side of (2.5) have degree one or greater. We note that the _ga_ <sup>_r_</sup> <sup>(</sup> <sup>_t_</sup> <sup>)</sup> <sup>are</sup> <sup>known</sup> <sup>once</sup> <sup>_zd_</sup> <sup>(</sup> <sup>_t_</sup> <sup>)</sup> <sup>is</sup> given. 1Here and in what follows the quantities _ga_ are not to be confused with those appearing in (1.3). 4 By assumption, _z_ <sup>_d_</sup> is a solution of (2.3) and therefore satisfies the relations _z_ ˙ _a_ <sup>_d_</sup> <sup>=</sup> <sup>_fa_</sup> <sup>(</sup> <sup>_zd, t_</sup> <sup>)</sup> <sup>_._</sup> (2.6) It follows that the deviation variables satisfy the equations of motion _ζ_ ˙ _a_ = _ga_ ( _z_ <sup>_d_</sup> _, t, ζ_ ) = _r_ _ga_ <sup>_r_</sup> <sup>(</sup> <sup>_t_</sup> <sup>)</sup> <sup>_Gr_</sup> <sup>(</sup> <sup>_ζ_</sup> <sup>)</sup> <sup>_._</sup> (2.7) These equations are evidently generalizations of the usual first-degree (linear) variational equations, and will be called the _complete_ _variational_ equations. Consider the solution to the complete variational equations with _initial_ conditions _ζb_ <sup>_i_</sup> specified at some initial time _t_ <sup>_i_</sup> . Following Poincar´e, we expect that this solution will be an analytic function of the initial conditions _ζb_ <sup>_i_</sup> <sup>.</sup> <sup>Also,</sup> <sup>since</sup> <sup>the</sup> <sup>right</sup> <sup>side</sup> <sup>of</sup> <sup>(2.7)</sup> <sup>vanishes</sup> when all _ζb_ = 0 [all the monomials _Gr_ in (2.7) have degree one or greater], _ζ_ ( _t_ ) = 0 is a solution to (2.7). It follows that the solution to the complete variational equations has a Taylor expansion of the form _ζa_ ( _t_ ) = _r_ _h_ <sup>_r_</sup> _a_ <sup>(</sup> <sup>_t_</sup> <sup>)</sup> <sup>_Gr_</sup> <sup>(</sup> <sup>_ζ_</sup> <sup>_i_</sup> <sup>)</sup> (2.8) where the _h_ <sup>_r_</sup> _a_ where the _h_ <sup>_r_</sup> _a_ <sup>(</sup> <sup>_t_</sup> <sup>) are functions to be determined, and again all the monomials</sup> <sup>_Gr_</sup> <sup>that occur</sup> have degree one or greater. When the quantities _h_ <sup>_r_</sup> _a_ <sup>(</sup> <sup>_t_</sup> <sup>)</sup> <sup>are</sup> <sup>evaluated</sup> <sup>at</sup> <sup>some</sup> <sup>_final_</sup> <sup>time</sup> <sup>_tf_</sup> <sup>,</sup> have degree one or greater. When the quantities _h_ <sup>_r_</sup> _a_ <sup>(</sup> <sup>_t_</sup> <sup>)</sup> <sup>are</sup> <sup>evaluated</sup> <sup>at</sup> <sup>some</sup> <sup>_final_</sup> <sup>time</sup> <sup>_tf_</sup> <sup>,</sup> (2.8) provides a representation of the transfer map _M_ about the design orbit in the Taylor form _ζa_ <sup>_f_</sup> <sup>=</sup> <sup>_ζa_</sup> <sup>(</sup> <sup>_tf_</sup> <sup>) =</sup> _r_ _h_ <sup>_r_</sup> _a_ <sup>(</sup> <sup>_tf_</sup> <sup>)</sup> <sup>_Gr_</sup> <sup>(</sup> <sup>_ζ_</sup> <sup>_i_</sup> <sup>)</sup> <sup>_._</sup> (2.9) _h_ <sup>_r_</sup> _a_ 2.2 Complete Variational Equations with Parameter Dependence What can be done if we desire to have an expansion in parameters as well? Suppose that there are _n_ such parameters, or that we wish to have expansions in _n_ of them. The work of the previous section can be extended to handle this case by means of a simple trick: View the _n_ parameters as additional _variables_, and “augment” the set of differential equations by additional differential equations that ensure these additional variables remain constant. In detail, suppose we label the parameters so that those in which we wish to have an expansion are _λ_ 1 _· · · λn_ . Introduce _n_ additional variables _zm_ +1 _, · · · zℓ_ where _ℓ_ = _m_ + _n_ by making the replacements _λb_ _→_ _zm_ + _b,_ _b_ = 1 _, n._ (2.10) Next augment the equations (1.1) by _n_ more of the form _z_ ˙ _a_ = 0 _,_ _a_ = _m_ + 1 _, ℓ._ (2.11) 5 By this device we can rewrite the equations (1.1) in the form _z_ ˙ _a_ = _fa_ ( _z, t_ ) _,_ _a_ = 1 _, ℓ_ (2.12) with the understanding that _fa_ = _fa_ ( _z_ ; _t_ ; _λ_ <sup>rem</sup> ) _,_ _a_ = 1 _, m,_ (2.13) where _λ_ <sup>rem</sup> denotes the other _remaining_ parameters, if any, and _fa_ = 0 _,_ _a_ = _m_ + 1 _, ℓ._ (2.14) For the first _m_ equations we impose, as before, the initial conditions _za_ ( _t_ <sup>_i_</sup> ) = _za_ <sup>_i_</sup> <sup>_,_</sup> _a_ = 1 _, m._ (2.15) For the remaining equations we impose the initial conditions _za_ ( _t_ <sup>_i_</sup> ) = _λa−m,_ _a_ = _m_ + 1 _, ℓ._ (2.16) Note that the relations (2.14) then ensure the _za_ for _a > m_ retain these values for all _t_ . To continue, let _z_ <sup>_d_</sup> ( _t_ ) be some design solution. Then, by construction, we have the result _za_ <sup>_d_</sup> _a_ <sup>_d_</sup> <sup>(</sup> <sup>_t_</sup> <sup>) =</sup> <sup>_λd_</sup> _a_ <sup>_d_</sup> _a−m_ <sup>=</sup> <sup>_λa−m,_</sup> _a_ = _m_ + 1 _, ℓ._ (2.17) Again introduce deviation variables by writing _za_ = _za_ <sup>_d_</sup> <sup>+</sup> <sup>_ζa_</sup> <sup>_a_</sup> <sup>= 1</sup> <sup>_, ℓ._</sup> (2.18) Then the quantities _ζa_ for _a_ _>_ _m_ will describe deviations in the parameter values. Moreover, because we have assumed analyticity in the parameters as well, relations of the forms (2.4) and (2.5) will continue to hold except that the _Gr_ ( _ζ_ ) are now the various monomials in the _ℓ_ variables _ζb_ . Relations of the forms (2.6) and (2.7) will also hold with the provisos (2.13) and (2.14) and _ga_ <sup>_r_</sup> <sup>(</sup> <sup>_t_</sup> <sup>) = 0</sup> <sup>_,_</sup> _a_ = _m_ + 1 _, ℓ._ (2.19) Therefore, we will only need to integrate the equations of the forms (2.6) and (2.7) for _a_ _≤_ _m_ . Finally, relations of the form (2.9) will continue to hold for _a_ _≤_ _m_ supplemented by the relations _ζa_ <sup>_f_</sup> _a_ <sup>_f_</sup> <sup>=</sup> <sup>_ζ_</sup> _a_ <sup>_i_</sup> _a_ <sup>_i_</sup> <sup>_,_</sup> _a_ = _m_ + 1 _, ℓ._ (2.20) Since the _Gr_ ( _ζ_ <sup>_i_</sup> ) now involve _ℓ_ variables, the relations of the form (2.9) will provide an expansion of the final quantities _ζa_ <sup>_f_</sup> <sup>(for</sup> <sup>_a_</sup> <sup>_≤_</sup> <sup>_m_</sup> <sup>)</sup> <sup>in</sup> <sup>terms</sup> <sup>of</sup> <sup>the</sup> <sup>initial</sup> <sup>quantities</sup> <sup>_ζ_</sup> _a_ <sup>_i_</sup> <sup>(for</sup> _a ≤_ _m_ ) and also the parameter deviations _ζa_ <sup>_i_</sup> <sup>with</sup> <sup>_a_</sup> <sup>=</sup> <sup>_m_</sup> <sup>+ 1</sup> <sup>_, ℓ_</sup> <sup>.</sup> _a_ <sup>_f_</sup> <sup>(for</sup> <sup>_a_</sup> <sup>_≤_</sup> <sup>_m_</sup> <sup>)</sup> <sup>in</sup> <sup>terms</sup> <sup>of</sup> <sup>the</sup> <sup>initial</sup> <sup>quantities</sup> <sup>_ζ_</sup> _a_ <sup>_i_</sup> _a_ <sup>_i_</sup> <sup>with</sup> <sup>_a_</sup> <sup>=</sup> <sup>_m_</sup> <sup>+ 1</sup> <sup>_, ℓ_</sup> <sup>.</sup> 6 ##### 3 Solution of Complete Variational Equations Using For- ward Integration This section and the next describe two methods for the solution of the complete variational equations. This section describes the method that employs integration forward in time, and is the conceptually simpler of the two methods. 3.1 Method of Forward Integration To determine the functions _h_ <sup>_r_</sup> _a_ <sup>,</sup> <sup>let</sup> <sup>us</sup> <sup>insert</sup> <sup>the</sup> <sup>expansion</sup> <sup>(2.8)</sup> <sup>into</sup> <sup>both</sup> <sup>sides</sup> <sup>of</sup> <sup>(2.7).</sup> With _r_ <sup>_′′_</sup> as a dummy index, the left side becomes the relation _ζ_ ˙ _a_ = _h_ ˙ <sup>_r_</sup> _a_ <sup>_′′_</sup> <sup>(</sup> <sup>_t_</sup> <sup>)</sup> <sup>_Gr′′_</sup> <sup>(</sup> <sup>_ζ_</sup> <sup>_i_</sup> <sup>)</sup> <sup>_._</sup> (3.1) _r_ <sup>_′′_</sup> For the right side we find the intermediate result _h_ <sup>_r_</sup> 1 <sup>_′_</sup> <sup>(</sup> <sup>_t_</sup> <sup>)</sup> <sup>_Gr′_</sup> <sup>(</sup> <sup>_ζ_</sup> <sup>_i_</sup> <sup>)</sup> <sup>_, · · ·_</sup> _h_ <sup>_r_</sup> 1 <sup>_′_</sup> _._ (3.2) _h_ <sup>_r_</sup> _m_ <sup>_′_</sup> <sup>(</sup> <sup>_t_</sup> <sup>)</sup> <sup>_Gr′_</sup> <sup>(</sup> <sup>_ζ_</sup> <sup>_i_</sup> <sup>)</sup> _h_ <sup>_r_</sup> _m_ <sup>_′_</sup> _r_ <sup>_′_</sup> _r_ �� _ga_ <sup>_r_</sup> <sup>(</sup> <sup>_t_</sup> <sup>)</sup> <sup>_Gr_</sup> <sup>(</sup> <sup>_ζ_</sup> <sup>) =</sup> _r_ _ga_ <sup>_r_</sup> _a_ <sup>_r_</sup> <sup>(</sup> <sup>_t_</sup> <sup>)</sup> <sup>_Gr_</sup> _r_ <sup>_′_</sup> However, since the _Gr_ are monomials, there are relations of the form �� _Gr_ _r_ <sup>_′_</sup> _r_ <sup>_′_</sup> _h_ <sup>_r_</sup> 1 <sup>_′_</sup> <sup>(</sup> <sup>_t_</sup> <sup>)</sup> <sup>_Gr′_</sup> <sup>(</sup> <sup>_ζ_</sup> <sup>_i_</sup> <sup>)</sup> <sup>_, · · ·_</sup> _h_ <sup>_r_</sup> 1 <sup>_′_</sup> _h_ <sup>_r_</sup> _m_ <sup>_′_</sup> <sup>(</sup> <sup>_t_</sup> <sup>)</sup> <sup>_Gr′_</sup> <sup>(</sup> <sup>_ζ_</sup> <sup>_i_</sup> <sup>)</sup> _h_ <sup>_r_</sup> _m_ <sup>_′_</sup> = _n_ <sup>_s_</sup> <sup>)</sup> <sup>_Gr′′_</sup> <sup>(</sup> <sup>_ζ_</sup> <sup>_i_</sup> <sup>)</sup> <sup>_,_</sup> (3.3) _Ur_ <sup>_r′′_</sup> _r_ <sup>_′′_</sup> _r_ <sup>_r′′_</sup> <sup>(</sup> <sup>_h_</sup> _n_ <sup>_s_</sup> and therefore the right side of (2.7) can be rewritten in the form _n_ <sup>_s_</sup> <sup>)</sup> <sup>_Gr′′_</sup> <sup>(</sup> <sup>_ζ_</sup> <sup>_i_</sup> <sup>)</sup> <sup>_._</sup> (3.4) _r_ _a_ <sup>_r_</sup> <sup>(</sup> <sup>_t_</sup> <sup>)</sup> <sup>_U_</sup> _r_ <sup>_r′′_</sup> _r_ _r_ <sup>_r′′_</sup> <sup>(</sup> <sup>_h_</sup> _n_ <sup>_s_</sup> _ga_ <sup>_r_</sup> <sup>(</sup> <sup>_t_</sup> <sup>)</sup> <sup>_Gr_</sup> <sup>(</sup> <sup>_ζ_</sup> <sup>) =</sup> _r_ <sup>_′′_</sup> _ga_ <sup>_r_</sup> The notation _Ur_ <sup>_r′′_</sup> _r_ <sup>_r′′_</sup> <sup>(</sup> <sup>_h_</sup> _n_ <sup>_s_</sup> The notation _Ur_ <sup>_r′′_</sup> <sup>(</sup> <sup>_h_</sup> _n_ <sup>_s_</sup> <sup>)</sup> <sup>is</sup> <sup>employed</sup> <sup>to</sup> <sup>indicate</sup> <sup>that</sup> <sup>these</sup> <sup>quantities</sup> <sup>might</sup> <sup>(at</sup> <sup>this</sup> <sup>stage</sup> <sup>of</sup> the argument) depend on all the _h_ <sup>_s_</sup> _n_ <sup>with</sup> <sup>_n_</sup> <sup>ranging</sup> <sup>from</sup> <sup>1</sup> <sup>to</sup> <sup>_m_</sup> <sup>,</sup> <sup>and</sup> <sup>_s_</sup> <sup>ranging</sup> <sup>over</sup> <sup>all</sup> possible values. Now, in accord with (2.7), equate the right sides of (3.1) and (3.4) to obtain the relation _r_ <sup>_′′_</sup> _r_ <sup>_′′_</sup> _h_ ˙ <sup>_r_</sup> _a_ <sup>_′′_</sup> <sup>(</sup> <sup>_t_</sup> <sup>)</sup> <sup>_Gr′′_</sup> <sup>(</sup> <sup>_ζ_</sup> <sup>_i_</sup> <sup>) =</sup> _r_ _a_ <sup>_r_</sup> <sup>(</sup> <sup>_t_</sup> <sup>)</sup> <sup>_U_</sup> _r_ <sup>_r′′_</sup> _ga_ <sup>_r_</sup> _r_ <sup>_r′′_</sup> <sup>(</sup> <sup>_h_</sup> _n_ <sup>_s_</sup> _n_ <sup>_s_</sup> <sup>)</sup> <sup>_Gr′′_</sup> <sup>(</sup> <sup>_ζ_</sup> <sup>_i_</sup> <sup>)</sup> <sup>_._</sup> (3.5) Since the monomials _Gr′′_ ( _ζ_ <sup>_i_</sup> ) are linearly independent, we must have the result _h_ ˙ <sup>_r_</sup> _a_ <sup>_′′_</sup> <sup>(</sup> <sup>_t_</sup> <sup>) =</sup> _r_ _a_ <sup>_r_</sup> <sup>(</sup> <sup>_t_</sup> <sup>)</sup> <sup>_U_</sup> _r_ <sup>_r′′_</sup> _n_ <sup>_s_</sup> <sup>)</sup> <sup>_._</sup> (3.6) _ga_ <sup>_r_</sup> _r_ <sup>_r′′_</sup> <sup>(</sup> <sup>_h_</sup> _n_ <sup>_s_</sup> 7 We have found a set of differential equations that must be satisfied by the _h_ <sup>_r_</sup> _a_ <sup>.</sup> <sup>Moreover,</sup> from (2.8) there is the relation _a_ <sup>_i_</sup> <sup>_._</sup> (3.7) _ζa_ ( _t_ <sup>_i_</sup> ) = _r_ _h_ <sup>_r_</sup> _a_ <sup>_r_</sup> _a_ <sup>(</sup> <sup>_ti_</sup> <sup>)</sup> <sup>_Gr_</sup> <sup>(</sup> <sup>_ζ_</sup> <sup>_i_</sup> <sup>) =</sup> <sup>_ζ_</sup> _a_ <sup>_i_</sup> Thus, all the functions _h_ <sup>_r_</sup> _a_ <sup>(</sup> <sup>_t_</sup> <sup>)</sup> <sup>have</sup> <sup>a</sup> <sup>known</sup> <sup>value</sup> <sup>at</sup> <sup>the</sup> <sup>initial</sup> <sup>time</sup> <sup>_ti_</sup> <sup>,</sup> <sup>and</sup> <sup>indeed</sup> <sup>are</sup> mostly initially zero. When the equations (3.6) are integrated _forward_ from _t_ = _t_ <sup>_i_</sup> to _t_ = _t_ <sup>_f_</sup> to obtain the quantities _h_ <sup>_r_</sup> _a_ <sup>(</sup> <sup>_tf_</sup> <sup>),</sup> <sup>the</sup> <sup>result</sup> <sup>is</sup> <sup>the</sup> <sup>transfer</sup> <sup>map</sup> <sup>_M_</sup> <sup>about</sup> <sup>the</sup> <sup>design</sup> <sup>orbit</sup> <sup>in</sup> the Taylor form (2.9). Let us now examine the structure of this set of differential equations. A key observation is that the functions _Ur_ <sup>_r′′_</sup> <sup>(</sup> <sup>_h_</sup> _n_ <sup>_s_</sup> <sup>) are</sup> <sup>_universal_</sup> <sup>.</sup> <sup>That is, as (3.3) indicates, they describe certain</sup> _combinatorial_ properties of monomials. They depend only on the dimension _m_ of the system under study, and are the _same_ for all such systems. As (2.7) shows, what are peculiar to any given system are the forcing terms _ga_ <sup>_r_</sup> <sup>(</sup> <sup>_t_</sup> <sup>).</sup> _r_ <sup>_r′′_</sup> <sup>(</sup> <sup>_h_</sup> _n_ <sup>_s_</sup> _a_ <sup>_r_</sup> <sup>(</sup> <sup>_t_</sup> <sup>).</sup> 3.2 Application of Forward Integration to the Two-variable Case To see what is going on in more detail, it is instructive to work out the first nontrivial case, that with _m_ = 2. For two variables, all monomials in ( _ζ_ 1 _, ζ_ 2) are of the form ( _ζ_ 1) <sup>_j_</sup> <sup>1</sup> ( _ζ_ 2) <sup>_j_</sup> <sup>2</sup> . Here, to simplify notation, we have dropped the superscript _i_ . Table 1 below shows a convenient way of labeling such monomials, and for this labeling we write _Gr_ ( _ζ_ ) = ( _ζ_ 1) <sup>_j_</sup> <sup>1</sup> ( _ζ_ 2) <sup>_j_</sup> <sup>2</sup> (3.8) with _j_ 1 = _j_ 1( _r_ ) and _j_ 2 = _j_ 2( _r_ ) _._ (3.9) Table 1: A labeling scheme for monomials in two variables. _<u>r</u>_ _<u>j</u>_ <u>1</u> _<u>j</u>_ <u>2</u> _<u>D</u>_ 1 1 0 1 2 0 1 1 3 2 0 2 4 1 1 2 5 0 2 2 6 3 0 3 7 2 1 3 8 1 2 3 9 0 3 3 8 Thus, for example, _G_ 1 = _ζ_ 1 _,_ (3.10) _G_ 2 = _ζ_ 2 _,_ (3.11) _G_ 3 = _ζ_ 1 <sup>2</sup> <sup>_,_</sup> (3.12) _G_ 4 = _ζ_ 1 _ζ_ 2 _,_ (3.13) _G_ 5 = _ζ_ 2 <sup>2</sup> <sup>_,_</sup> <sup>etc</sup> <sup>_._</sup> (3.14) For more detail about monomial labeling schemes, see Section 7. Let us now compute the first few _Ur_ <sup>_r′′_</sup> _n_ <sup>_s_</sup> <sup>).</sup> <sup>From</sup> <sup>(3.3)</sup> <sup>and</sup> <sup>(3.10)</sup> <sup>we</sup> <sup>find</sup> <sup>the</sup> <sup>relation</sup> _r_ <sup>_r′′_</sup> <sup>(</sup> <sup>_h_</sup> _n_ <sup>_s_</sup> �� _G_ 1 _r_ <sup>_′_</sup> _U_ 1 <sup>_r′′Gr′′_</sup> <sup>(</sup> <sup>_ζ_</sup> <sup>)</sup> <sup>_._</sup> (3.15) _U_ 1 <sup>_r′′_</sup> _h_ <sup>_r_</sup> 1 <sup>_′Gr′_</sup> <sup>(</sup> <sup>_ζ_</sup> <sup>)</sup> <sup>_,_</sup> _r_ <sup>_′_</sup> _h_ <sup>_r_</sup> 2 <sup>_′Gr′_</sup> <sup>(</sup> <sup>_ζ_</sup> <sup>)</sup> = _r_ <sup>_′_</sup> _h_ <sup>_r_</sup> 1 <sup>_′Gr′_</sup> <sup>(</sup> <sup>_ζ_</sup> <sup>) =</sup> _h_ <sup>_r_</sup> 1 <sup>_′_</sup> _r_ <sup>_′′_</sup> It follows that there is the result _U_ 1 <sup>_r′′_</sup> 1 <sup>_r′′_</sup> = _h_ <sup>_r_</sup> 1 <sup>_′′_</sup> <sup>_r_</sup> 1 <sup>_′′._</sup> (3.16) Similarly, from (3.3) and (3.11), we find the result _U_ 2 <sup>_r′′_</sup> <sup>_r_</sup> 2 <sup>_′′._</sup> (3.17) 2 <sup>_r′′_</sup> = _h_ <sup>_r_</sup> 2 <sup>_′′_</sup> From (3.3) and (3.12) we find the relation �� _G_ 3 _r_ <sup>_′_</sup> = _s,t_ �2 _h_ <sup>_r_</sup> 1 <sup>_′Gr′_</sup> <sup>(</sup> <sup>_ζ_</sup> <sup>)</sup> _h_ <sup>_r_</sup> 1 <sup>_′Gr′_</sup> <sup>(</sup> <sup>_ζ_</sup> <sup>)</sup> <sup>_,_</sup> _r_ <sup>_′_</sup> _h_ <sup>_r_</sup> 2 <sup>_′Gr′_</sup> <sup>(</sup> <sup>_ζ_</sup> <sup>)</sup> = �� _r_ <sup>_′_</sup> _U_ 3 <sup>_r′′Gr′′_</sup> <sup>(</sup> <sup>_ζ_</sup> <sup>)</sup> <sup>_._</sup> (3.18) _h_ <sup>_s_</sup> 1 <sup>_ht_</sup> 1 <sup>_Gs_</sup> <sup>(</sup> <sup>_ζ_</sup> <sup>)</sup> <sup>_Gt_</sup> <sup>(</sup> <sup>_ζ_</sup> <sup>) =</sup> _r_ <sup>_′′_</sup> Use of (3.18) and inspection of (3.10) through (3.14) yields the results _U_ 3 <sup>1</sup> <sup>= 0</sup> <sup>_,_</sup> (3.19) _U_ 3 <sup>2</sup> <sup>= 0</sup> <sup>_,_</sup> (3.20) _U_ 3 <sup>3</sup> <sup>= (</sup> <sup>_h_</sup> 1 <sup>1)2</sup> <sup>_,_</sup> (3.21) _U_ 3 <sup>4</sup> <sup>= 2</sup> <sup>_h_</sup> 1 <sup>1</sup> <sup>_h_</sup> <sup>2</sup> 1 <sup>_,_</sup> (3.22) _U_ 3 <sup>5</sup> <sup>= (</sup> <sup>_h_</sup> 1 <sup>2)2</sup> <sup>_._</sup> (3.23) From (3.3) and (3.13) we find the relation _s,t_ _r_ <sup>_′_</sup> _h_ <sup>_r_</sup> 2 <sup>_′Gr′_</sup> <sup>(</sup> <sup>_ζ_</sup> <sup>)</sup> = ��� _G_ 4 �� _r_ <sup>_′_</sup> = _h_ <sup>_r_</sup> 1 <sup>_′Gr′_</sup> <sup>(</sup> <sup>_ζ_</sup> <sup>)</sup> <sup>_,_</sup> _h_ <sup>_r_</sup> 1 <sup>_′_</sup> �� _r_ <sup>_′_</sup> _h_ <sup>_r_</sup> 1 <sup>_′_</sup> <sup>_r_</sup> 1 <sup>_′Gr′_</sup> <sup>(</sup> <sup>_ζ_</sup> <sup>)</sup> _h_ <sup>_r_</sup> 2 <sup>_′Gr′_</sup> <sup>(</sup> <sup>_ζ_</sup> <sup>)</sup> _h_ <sup>_r_</sup> 2 <sup>_′_</sup> _r_ <sup>_′_</sup> _h_ <sup>_s_</sup> 1 <sup>_ht_</sup> 2 <sup>_Gs_</sup> <sup>(</sup> <sup>_ζ_</sup> <sup>)</sup> <sup>_Gt_</sup> <sup>(</sup> <sup>_ζ_</sup> <sup>) =</sup> _r_ <sup>_′′_</sup> _U_ 4 <sup>_r′′Gr′′_</sup> <sup>(</sup> <sup>_ζ_</sup> <sup>)</sup> <sup>_._</sup> (3.24) _U_ 4 <sup>_r′′_</sup> 9 It follows that there are the results _U_ 4 <sup>1</sup> <sup>= 0</sup> <sup>_,_</sup> (3.25) _U_ 4 <sup>2</sup> <sup>= 0</sup> <sup>_,_</sup> (3.26) _U_ 4 <sup>3</sup> <sup>=</sup> <sup>_h_</sup> 1 <sup>1</sup> <sup>_h_</sup> 2 <sup>1</sup> <sup>_,_</sup> (3.27) _U_ 4 <sup>4</sup> <sup>=</sup> <sup>_h_</sup> 1 <sup>1</sup> <sup>_h_</sup> <sup>2</sup> 2 <sup>+</sup> <sup>_h_</sup> 1 <sup>2</sup> <sup>_h_</sup> 2 <sup>1</sup> <sup>_,_</sup> (3.28) _U_ 4 <sup>5</sup> <sup>=</sup> <sup>_h_</sup> 1 <sup>2</sup> <sup>_h_</sup> 2 <sup>2</sup> <sup>_._</sup> (3.29) Finally, from (3.3) and (3.14), we find the results _U_ 5 <sup>1</sup> <sup>= 0</sup> <sup>_,_</sup> (3.30) _U_ 5 <sup>2</sup> <sup>= 0</sup> <sup>_,_</sup> (3.31) _U_ 5 <sup>3</sup> <sup>= (</sup> <sup>_h_</sup> 2 <sup>1)2</sup> <sup>_,_</sup> (3.32) _U_ 5 <sup>4</sup> <sup>= 2</sup> <sup>_h_</sup> 2 <sup>1</sup> <sup>_h_</sup> <sup>2</sup> 2 <sup>_,_</sup> (3.33) _U_ 5 <sup>5</sup> <sup>= (</sup> <sup>_h_</sup> 2 <sup>2)2</sup> <sup>_._</sup> (3.34) Two features now become apparent. As in Table 1, let _D_ ( _r_ ) be the _degree_ of the monomial with label _r_ . Then, from the examples worked out, and quite generally from (3.3), we see that there is the relation _Ur_ <sup>_r′′_</sup> = 0 when _D_ ( _r_ ) _> D_ ( _r_ <sup>_′′_</sup> ) _._ (3.35) It follows that the sum on the right side of (3.6) always terminates. Second, for the arguments _h_ <sup>_s_</sup> _n_ <sup>possibly</sup> <sup>appearing</sup> <sup>in</sup> <sup>_U_</sup> _r_ <sup>_r′′_</sup> <sup>(</sup> <sup>_h_</sup> _n_ <sup>_s_</sup> <sup>),</sup> <sup>we</sup> <sup>see</sup> <sup>that</sup> <sup>there</sup> <sup>is</sup> <sup>the</sup> <sup>relation</sup> <sup>_s_</sup> _n_ <sup>possibly</sup> <sup>appearing</sup> <sup>in</sup> <sup>_U_</sup> _r_ <sup>_r′′_</sup> _r_ <sup>_r′′_</sup> <sup>(</sup> <sup>_h_</sup> _n_ <sup>_s_</sup> _n_ <sup>_s_</sup> <sup>),</sup> <sup>we</sup> <sup>see</sup> <sup>that</sup> <sup>there</sup> <sup>is</sup> <sup>the</sup> <sup>relation</sup> _D_ ( _s_ ) _≤_ _D_ ( _r_ <sup>_′′_</sup> ) _._ (3.36) It follows, again see (3.6), that the right side of the differential equation for any _h_ <sup>_r_</sup> _a_ <sup>_′′_</sup> It follows, again see (3.6), that the right side of the differential equation for any _h_ <sup>_r_</sup> _a_ <sup>_′′_</sup> <sup>involves</sup> only the _h_ <sup>_s_</sup> _n_ <sup>for</sup> <sup>which</sup> <sup>(3.36)</sup> <sup>holds.</sup> <sup>Therefore,</sup> <sup>to</sup> <sup>determine</sup> <sup>the</sup> <sup>coefficients</sup> <sup>_h_</sup> _a_ <sup>_r_</sup> <sup>(</sup> <sup>_tf_</sup> <sup>)</sup> <sup>of</sup> <sup>the</sup> only the _h_ <sup>_s_</sup> _n_ <sup>for</sup> <sup>which</sup> <sup>(3.36)</sup> <sup>holds.</sup> <sup>Therefore,</sup> <sup>to</sup> <sup>determine</sup> <sup>the</sup> <sup>coefficients</sup> <sup>_h_</sup> _a_ <sup>_r_</sup> <sup>(</sup> <sup>_tf_</sup> <sup>)</sup> <sup>of</sup> <sup>the</sup> Taylor expansion (2.9) through terms of some degree _D_, it is only necessary to integrate a finite number of equations, and the right sides of these equations involve only the coefficients for this degree and lower. For example, to continue our discussion of the case of two variables, the equations (3.6) take the explicit form <sup>_s_</sup> _n_ <sup>for</sup> <sup>which</sup> <sup>(3.36)</sup> <sup>holds.</sup> <sup>Therefore,</sup> <sup>to</sup> <sup>determine</sup> <sup>the</sup> <sup>coefficients</sup> <sup>_h_</sup> _a_ <sup>_r_</sup> _h_ ˙ <sup>1</sup> 1 <sup>(</sup> <sup>_t_</sup> <sup>) =</sup> 1 <sup>_r_</sup> <sup>(</sup> <sup>_t_</sup> <sup>)</sup> <sup>_U_</sup> _r_ <sup>1</sup> <sup>=</sup> <sup>_g_</sup> 1 <sup>1</sup> _g_ 1 <sup>_r_</sup> 1 <sup>1(</sup> <sup>_t_</sup> <sup>)</sup> <sup>_h_</sup> <sup>1</sup> 1 <sup>(</sup> <sup>_t_</sup> <sup>) +</sup> <sup>_g_</sup> 1 <sup>2(</sup> <sup>_t_</sup> <sup>)</sup> <sup>_h_</sup> <sup>1</sup> 2 <sup>(</sup> <sup>_t_</sup> <sup>)</sup> <sup>_,_</sup> (3.37) _h_ ˙ <sup>1</sup> 2 <sup>(</sup> <sup>_t_</sup> <sup>) =</sup> 2 _r_ =1 2 _r_ =1 2 <sup>_r_</sup> <sup>(</sup> <sup>_t_</sup> <sup>)</sup> <sup>_U_</sup> _r_ <sup>1</sup> <sup>=</sup> <sup>_g_</sup> 2 <sup>1</sup> _g_ 2 <sup>_r_</sup> 2 <sup>1(</sup> <sup>_t_</sup> <sup>)</sup> <sup>_h_</sup> 1 <sup>1(</sup> <sup>_t_</sup> <sup>) +</sup> <sup>_g_</sup> 2 <sup>2(</sup> <sup>_t_</sup> <sup>)</sup> <sup>_h_</sup> <sup>1</sup> 2 <sup>(</sup> <sup>_t_</sup> <sup>)</sup> <sup>_,_</sup> (3.38) 10 _h_ ˙ <sup>2</sup> 1 <sup>(</sup> <sup>_t_</sup> <sup>) =</sup> 1 <sup>_r_</sup> <sup>(</sup> <sup>_t_</sup> <sup>)</sup> <sup>_U_</sup> _r_ <sup>2</sup> <sup>=</sup> <sup>_g_</sup> 1 <sup>1</sup> _g_ 1 <sup>_r_</sup> 1 <sup>1(</sup> <sup>_t_</sup> <sup>)</sup> <sup>_h_</sup> <sup>2</sup> 1 <sup>(</sup> <sup>_t_</sup> <sup>) +</sup> <sup>_g_</sup> 1 <sup>2(</sup> <sup>_t_</sup> <sup>)</sup> <sup>_h_</sup> 2 <sup>2(</sup> <sup>_t_</sup> <sup>)</sup> <sup>_,_</sup> (3.39) _h_ ˙ <sup>2</sup> 2 <sup>(</sup> <sup>_t_</sup> <sup>) =</sup> 2 _r_ =1 2 _r_ =1 2 <sup>_r_</sup> <sup>(</sup> <sup>_t_</sup> <sup>)</sup> <sup>_U_</sup> _r_ <sup>2</sup> <sup>=</sup> <sup>_g_</sup> 2 <sup>1</sup> _g_ 2 <sup>_r_</sup> 2 <sup>1(</sup> <sup>_t_</sup> <sup>)</sup> <sup>_h_</sup> 1 <sup>2(</sup> <sup>_t_</sup> <sup>) +</sup> <sup>_g_</sup> 2 <sup>2(</sup> <sup>_t_</sup> <sup>)</sup> <sup>_h_</sup> 2 <sup>2(</sup> <sup>_t_</sup> <sup>)</sup> <sup>_,_</sup> (3.40) _h_ ˙ <sup>3</sup> 1 <sup>(</sup> <sup>_t_</sup> <sup>)</sup> = 5 _r_ =1 _g_ 1 <sup>_r_</sup> <sup>(</sup> <sup>_t_</sup> <sup>)</sup> <sup>_U_</sup> _r_ <sup>3</sup> 1 <sup>_r_</sup> <sup>(</sup> <sup>_t_</sup> <sup>)</sup> <sup>_U_</sup> _r_ <sup>3</sup> = _g_ 1 <sup>1(</sup> <sup>_t_</sup> <sup>)</sup> <sup>_h_</sup> 1 <sup>3(</sup> <sup>_t_</sup> <sup>) +</sup> <sup>_g_</sup> 1 <sup>2(</sup> <sup>_t_</sup> <sup>)</sup> <sup>_h_</sup> 2 <sup>3(</sup> <sup>_t_</sup> <sup>) +</sup> <sup>_g_</sup> 1 <sup>3(</sup> <sup>_t_</sup> <sup>)[</sup> <sup>_h_</sup> 1 <sup>1(</sup> <sup>_t_</sup> <sup>)]2</sup> + _g_ 1 <sup>4(</sup> <sup>_t_</sup> <sup>)</sup> <sup>_h_</sup> 1 <sup>1(</sup> <sup>_t_</sup> <sup>)</sup> <sup>_h_</sup> 2 <sup>1(</sup> <sup>_t_</sup> <sup>) +</sup> <sup>_g_</sup> 1 <sup>5(</sup> <sup>_t_</sup> <sup>)[</sup> <sup>_h_</sup> 2 <sup>1(</sup> <sup>_t_</sup> <sup>)]2</sup> <sup>_,_</sup> (3.41) _h_ ˙ <sup>3</sup> 2 <sup>(</sup> <sup>_t_</sup> <sup>)</sup> = 5 _r_ =1 _g_ 2 <sup>_r_</sup> <sup>(</sup> <sup>_t_</sup> <sup>)</sup> <sup>_U_</sup> _r_ <sup>3</sup> _g_ 2 <sup>_r_</sup> = _g_ 2 <sup>1(</sup> <sup>_t_</sup> <sup>)</sup> <sup>_h_</sup> <sup>3</sup> 1 <sup>(</sup> <sup>_t_</sup> <sup>) +</sup> <sup>_g_</sup> 2 <sup>2(</sup> <sup>_t_</sup> <sup>)</sup> <sup>_h_</sup> <sup>3</sup> 2 <sup>(</sup> <sup>_t_</sup> <sup>) +</sup> <sup>_g_</sup> 2 <sup>3(</sup> <sup>_t_</sup> <sup>)[</sup> <sup>_h_</sup> <sup>1</sup> 1 <sup>(</sup> <sup>_t_</sup> <sup>)]2</sup> + _g_ 2 <sup>4(</sup> <sup>_t_</sup> <sup>)</sup> <sup>_h_</sup> <sup>1</sup> 1 <sup>(</sup> <sup>_t_</sup> <sup>)</sup> <sup>_h_</sup> <sup>1</sup> 2 <sup>(</sup> <sup>_t_</sup> <sup>) +</sup> <sup>_g_</sup> 2 <sup>5(</sup> <sup>_t_</sup> <sup>)[</sup> <sup>_h_</sup> <sup>1</sup> 2 <sup>(</sup> <sup>_t_</sup> <sup>)]2</sup> <sup>_,_</sup> (3.42) _h_ ˙ <sup>4</sup> 1 <sup>(</sup> <sup>_t_</sup> <sup>)</sup> = 5 _r_ =1 _g_ 1 <sup>_r_</sup> <sup>(</sup> <sup>_t_</sup> <sup>)</sup> <sup>_U_</sup> _r_ <sup>4</sup> _g_ 1 <sup>_r_</sup> = _g_ 1 <sup>1(</sup> <sup>_t_</sup> <sup>)</sup> <sup>_h_</sup> <sup>4</sup> 1 <sup>(</sup> <sup>_t_</sup> <sup>) +</sup> <sup>_g_</sup> 1 <sup>2(</sup> <sup>_t_</sup> <sup>)</sup> <sup>_h_</sup> <sup>4</sup> 2 <sup>(</sup> <sup>_t_</sup> <sup>) + 2</sup> <sup>_g_</sup> 1 <sup>3(</sup> <sup>_t_</sup> <sup>)</sup> <sup>_h_</sup> <sup>1</sup> 1 <sup>(</sup> <sup>_t_</sup> <sup>)</sup> <sup>_h_</sup> <sup>2</sup> 1 <sup>(</sup> <sup>_t_</sup> <sup>)</sup> + _g_ 1 <sup>4(</sup> <sup>_t_</sup> <sup>)[</sup> <sup>_h_</sup> <sup>1</sup> 1 <sup>(</sup> <sup>_t_</sup> <sup>)</sup> <sup>_h_</sup> <sup>2</sup> 2 <sup>(</sup> <sup>_t_</sup> <sup>) +</sup> <sup>_h_</sup> <sup>2</sup> 1 <sup>(</sup> <sup>_t_</sup> <sup>)</sup> <sup>_h_</sup> <sup>1</sup> 2 <sup>(</sup> <sup>_t_</sup> <sup>)] + 2</sup> <sup>_g_</sup> 1 <sup>5(</sup> <sup>_t_</sup> <sup>)</sup> <sup>_h_</sup> <sup>1</sup> 2 <sup>(</sup> <sup>_t_</sup> <sup>)</sup> <sup>_h_</sup> <sup>2</sup> 2 <sup>(</sup> <sup>_t_</sup> <sup>)</sup> <sup>_,_</sup> (3.43) _h_ ˙ <sup>4</sup> 2 <sup>(</sup> <sup>_t_</sup> <sup>)</sup> = 5 _r_ =1 _g_ 2 <sup>_r_</sup> <sup>(</sup> <sup>_t_</sup> <sup>)</sup> <sup>_U_</sup> _r_ <sup>4</sup> _g_ 2 <sup>_r_</sup> = _g_ 2 <sup>1(</sup> <sup>_t_</sup> <sup>)</sup> <sup>_h_</sup> <sup>4</sup> 1 <sup>(</sup> <sup>_t_</sup> <sup>) +</sup> <sup>_g_</sup> 2 <sup>2(</sup> <sup>_t_</sup> <sup>)</sup> <sup>_h_</sup> <sup>4</sup> 2 <sup>(</sup> <sup>_t_</sup> <sup>) + 2</sup> <sup>_g_</sup> 2 <sup>3(</sup> <sup>_t_</sup> <sup>)</sup> <sup>_h_</sup> <sup>1</sup> 1 <sup>(</sup> <sup>_t_</sup> <sup>)</sup> <sup>_h_</sup> <sup>2</sup> 1 <sup>(</sup> <sup>_t_</sup> <sup>)</sup> + _g_ 2 <sup>4(</sup> <sup>_t_</sup> <sup>)[</sup> <sup>_h_</sup> <sup>1</sup> 1 <sup>(</sup> <sup>_t_</sup> <sup>)</sup> <sup>_h_</sup> <sup>2</sup> 2 <sup>(</sup> <sup>_t_</sup> <sup>) +</sup> <sup>_h_</sup> <sup>2</sup> 1 <sup>(</sup> <sup>_t_</sup> <sup>)</sup> <sup>_h_</sup> <sup>1</sup> 2 <sup>(</sup> <sup>_t_</sup> <sup>)] + 2</sup> <sup>_g_</sup> 2 <sup>5(</sup> <sup>_t_</sup> <sup>)</sup> <sup>_h_</sup> <sup>1</sup> 2 <sup>(</sup> <sup>_t_</sup> <sup>)</sup> <sup>_h_</sup> <sup>2</sup> 2 <sup>(</sup> <sup>_t_</sup> <sup>)</sup> <sup>_,_</sup> (3.44) _h_ ˙ <sup>5</sup> 1 <sup>(</sup> <sup>_t_</sup> <sup>)</sup> = 5 _r_ =1 _g_ 1 <sup>_r_</sup> <sup>(</sup> <sup>_t_</sup> <sup>)</sup> <sup>_U_</sup> _r_ <sup>5</sup> _g_ 1 <sup>_r_</sup> = _g_ 1 <sup>1(</sup> <sup>_t_</sup> <sup>)</sup> <sup>_h_</sup> <sup>5</sup> 1 <sup>(</sup> <sup>_t_</sup> <sup>) +</sup> <sup>_g_</sup> 1 <sup>2(</sup> <sup>_t_</sup> <sup>)</sup> <sup>_h_</sup> <sup>5</sup> 2 <sup>(</sup> <sup>_t_</sup> <sup>) +</sup> <sup>_g_</sup> 1 <sup>3(</sup> <sup>_t_</sup> <sup>)[</sup> <sup>_h_</sup> <sup>2</sup> 1 <sup>(</sup> <sup>_t_</sup> <sup>)]2</sup> + _g_ 1 <sup>4(</sup> <sup>_t_</sup> <sup>)</sup> <sup>_h_</sup> <sup>2</sup> 1 <sup>(</sup> <sup>_t_</sup> <sup>)</sup> <sup>_h_</sup> <sup>2</sup> 2 <sup>(</sup> <sup>_t_</sup> <sup>) +</sup> <sup>_g_</sup> 1 <sup>5(</sup> <sup>_t_</sup> <sup>)[</sup> <sup>_h_</sup> <sup>2</sup> 2 <sup>(</sup> <sup>_t_</sup> <sup>)]2</sup> <sup>_,_</sup> (3.45) _h_ ˙ <sup>5</sup> 2 <sup>(</sup> <sup>_t_</sup> <sup>)</sup> = 5 _r_ =1 _g_ 2 <sup>_r_</sup> <sup>(</sup> <sup>_t_</sup> <sup>)</sup> <sup>_U_</sup> _r_ <sup>5</sup> _g_ 2 <sup>_r_</sup> = _g_ 2 <sup>1(</sup> <sup>_t_</sup> <sup>)</sup> <sup>_h_</sup> <sup>5</sup> 1 <sup>(</sup> <sup>_t_</sup> <sup>) +</sup> <sup>_g_</sup> 2 <sup>2(</sup> <sup>_t_</sup> <sup>)</sup> <sup>_h_</sup> <sup>5</sup> 2 <sup>(</sup> <sup>_t_</sup> <sup>) +</sup> <sup>_g_</sup> 2 <sup>3(</sup> <sup>_t_</sup> <sup>)[</sup> <sup>_h_</sup> <sup>2</sup> 1 <sup>(</sup> <sup>_t_</sup> <sup>)]2</sup> + _g_ 2 <sup>4(</sup> <sup>_t_</sup> <sup>)</sup> <sup>_h_</sup> <sup>2</sup> 1 <sup>(</sup> <sup>_t_</sup> <sup>)</sup> <sup>_h_</sup> <sup>2</sup> 2 <sup>(</sup> <sup>_t_</sup> <sup>) +</sup> <sup>_g_</sup> 2 <sup>5(</sup> <sup>_t_</sup> <sup>)[</sup> <sup>_h_</sup> <sup>2</sup> 2 <sup>(</sup> <sup>_t_</sup> <sup>)]2</sup> <sup>_,_</sup> <sup>etc</sup> <sup>_._</sup> (3.46) 11 And, from (3.7), we have the initial conditions _h_ <sup>_r_</sup> _a_ <sup>_r_</sup> _a_ <sup>(</sup> <sup>_ti_</sup> <sup>) =</sup> <sup>_δ_</sup> _a_ <sup>_r_</sup> _a_ <sup>_r._</sup> (3.47) We see that if we desire only the degree one terms in the expansion (2.8), then it is only necessary to integrate the equations (3.37) through (3.40) with the initial conditions (3.47). A moment’s reflection shows that so doing amounts to integrating the first-degree variational equations. We also observe that if we desire only the degree one and degree two terms in the expansion (2.8), then it is only necessary to integrate the equations (3.37) through (3.46) with the initial conditions (3.47), etc. ##### 4 Solution of Complete Variational Equations Using Back- ward Integration There is another method of determining the _h_ <sup>_r_</sup> _a_ <sup>that</sup> <sup>is</sup> <sup>surprising,</sup> <sup>ingenious,</sup> <sup>and</sup> <sup>in</sup> <sup>some</sup> ways superior to that just described. It involves integrating backward in time[5]. 4.1 Method of Backward Integration Let us rewrite (2.9) in the slightly more explicit form _ζa_ <sup>_f_</sup> <sup>=</sup> _r_ _h_ <sup>_r_</sup> _a_ <sup>(</sup> <sup>_ti, tf_</sup> <sup>)</sup> <sup>_Gr_</sup> <sup>(</sup> <sup>_ζ_</sup> <sup>_i_</sup> <sup>)</sup> (4.1) to indicate that there are two times involved, _t_ <sup>_i_</sup> and _t_ <sup>_f_</sup> . From this perspective, (3.6) is a set of differential equations for the quantities ( _∂/∂t_ ) _h_ <sup>_r_</sup> _a_ <sup>(</sup> <sup>_ti, t_</sup> <sup>)</sup> <sup>that</sup> <sup>is</sup> <sup>to</sup> <sup>be</sup> <sup>integrated</sup> <sup>and</sup> set of differential equations for the quantities ( _∂/∂t_ ) _h_ <sup>_r_</sup> _a_ <sup>(</sup> <sup>_ti, t_</sup> <sup>)</sup> <sup>that</sup> <sup>is</sup> <sup>to</sup> <sup>be</sup> <sup>integrated</sup> <sup>and</sup> evaluated at _t_ = _t_ <sup>_f_</sup> . An alternate procedure is to seek a set of differential equations for the quantities ( _∂/∂t_ <sup>¯</sup> ) _h_ <sup>_r_</sup> _a_ <sup>(¯</sup> <sup>_t, tf_</sup> <sup>)</sup> <sup>that</sup> <sup>is</sup> <sup>to</sup> <sup>be</sup> <sup>integrated</sup> <sup>and</sup> <sup>evaluated</sup> <sup>at</sup> <sup>_t_</sup> <sup>¯ =</sup> <sup>_ti_</sup> <sup>.</sup> quantities ( _∂/∂t_ <sup>¯</sup> ) _h_ <sup>_r_</sup> _a_ <sup>(¯</sup> <sup>_t, tf_</sup> <sup>)</sup> <sup>that</sup> <sup>is</sup> <sup>to</sup> <sup>be</sup> <sup>integrated</sup> <sup>and</sup> <sup>evaluated</sup> <sup>at</sup> <sup>_t_</sup> <sup>¯ =</sup> <sup>_ti_</sup> <sup>.</sup> As a first step in considering this alternative, rewrite (4.1) in the form _ζa_ <sup>_f_</sup> <sup>=</sup> _r_ _h_ <sup>_r_</sup> _a_ <sup>(¯</sup> <sup>_t, tf_</sup> <sup>)</sup> <sup>_Gr_</sup> <sup>(</sup> <sup>_ζ_</sup> <sup>(¯</sup> <sup>_t_</sup> <sup>))</sup> <sup>_._</sup> (4.2) _h_ <sup>_r_</sup> _a_ Now reason as follows: If _t_ <sup>¯</sup> is varied and at the same time the quantities _ζ_ ( _t_ <sup>¯</sup> ) are varied (evolve) so as to remain on the solution to (2.7) having final conditions _ζ_ <sup>_f_</sup>, then the quantities _ζ_ <sup>_f_</sup> must remain _unchanged_ . Consequently, there is the differential equation result 0 = _dζa_ <sup>_f_</sup> <sup>_/dt_</sup> <sup>¯ =</sup> _r_ [( _∂/∂t_ <sup>¯</sup> ) _ha_ ( _t, t_ <sup>¯</sup> <sup>_f_</sup> )] _Gr_ ( _ζ_ ( _t_ <sup>¯</sup> )) + _r_ _h_ <sup>_r_</sup> _a_ <sup>(¯</sup> <sup>_t, tf_</sup> <sup>)(</sup> <sup>_d/dt_</sup> <sup>¯)</sup> <sup>_Gr_</sup> <sup>(</sup> <sup>_ζ_</sup> <sup>(¯</sup> <sup>_t_</sup> <sup>))</sup> <sup>_._</sup> (4.3) Let us introduce the notation _h_ <sup>˙</sup> <sup>_r_</sup> _a_ Let us introduce the notation _h_ <sup>˙</sup> <sup>_r_</sup> _a_ <sup>(¯</sup> <sup>_t, tf_</sup> <sup>)</sup> <sup>for</sup> <sup>(</sup> <sup>_∂/∂t_</sup> <sup>¯)</sup> <sup>_hr_</sup> _a_ <sup>(¯</sup> <sup>_t, tf_</sup> <sup>)</sup> <sup>so</sup> <sup>that</sup> <sup>the</sup> <sup>first</sup> <sup>term</sup> <sup>on</sup> <sup>the</sup> right side of (4.3) can be rewritten in the form <sup>_r_</sup> _a_ <sup>(¯</sup> <sup>_t, tf_</sup> <sup>)</sup> <sup>for</sup> <sup>(</sup> <sup>_∂/∂t_</sup> <sup>¯)</sup> <sup>_hr_</sup> _a_ _r_ [( _∂/∂t_ <sup>¯</sup> ) _h_ <sup>_r_</sup> _a_ <sup>(¯</sup> <sup>_t, tf_</sup> <sup>)]</sup> <sup>_Gr_</sup> <sup>(</sup> <sup>_ζ_</sup> <sup>) =</sup> 12 _r_ _h_ ˙ <sup>_r_</sup> _a_ <sup>_Gr_</sup> <sup>(</sup> <sup>_ζ_</sup> <sup>)</sup> <sup>_._</sup> (4.4) Next, begin working on the second term on the right side of (4.3) by replacing the summation index _r_ by the dummy index _r_ <sup>_′_</sup>, _h_ <sup>_r_</sup> _a_ <sup>_′_</sup> <sup>(¯</sup> <sup>_t, tf_</sup> <sup>)(</sup> <sup>_d/dt_</sup> <sup>¯)</sup> <sup>_Gr′_</sup> <sup>(</sup> <sup>_ζ_</sup> <sup>(¯</sup> <sup>_t_</sup> <sup>))</sup> <sup>_._</sup> (4.5) _r_ _h_ <sup>_r_</sup> _a_ <sup>(¯</sup> <sup>_t, tf_</sup> <sup>)(</sup> <sup>_d/dt_</sup> <sup>¯)</sup> <sup>_Gr_</sup> <sup>(</sup> <sup>_ζ_</sup> <sup>(¯</sup> <sup>_t_</sup> <sup>)) =</sup> _r_ <sup>_′_</sup> Now carry out the indicated differentiation using the chain rule and the relation (2.7) which describes how the quantities _ζ_ vary along a solution, ( _∂Gr′/∂ζb_ ) _gb_ <sup>_r′′_</sup> <sup>(¯</sup> <sup>_t_</sup> <sup>)</sup> <sup>_Gr′′_</sup> <sup>(</sup> <sup>_ζ_</sup> <sup>(¯</sup> <sup>_t_</sup> <sup>))</sup> <sup>_._</sup> (4.6) _br_ <sup>_′′_</sup> ( _d/dt_ <sup>¯</sup> ) _Gr′_ ( _ζ_ ( _t_ <sup>¯</sup> )) = �( _∂Gr′/∂ζb_ )( _dζb/dt_ <sup>¯</sup> ) = _b_ Watch closely: Since the _Gr_ are simply standard monomials in the _ζ_, there must be relations of the form [( _∂/∂ζb_ ) _Gr′_ ( _ζ_ )] _Gr′′_ ( _ζ_ ) = _r_ _Cbr_ <sup>_r_</sup> <sup>_′_</sup> _r_ <sup>_′′Gr_</sup> <sup>(</sup> <sup>_ζ_</sup> <sup>)</sup> (4.7) where the _Cbr_ <sup>_r_</sup> <sup>_′_</sup> _r_ <sup>_′′_</sup> <sup>are</sup> <sup>_universal_</sup> <sup>_constant_</sup> <sup>_coefficients_</sup> <sup>that</sup> <sup>describe</sup> <sup>certain</sup> <sup>combinatorial</sup> properties of monomials. As a result, the second term on the right side of (4.3) can be written in the form _r_ _a_ <sup>_r′_</sup> <sup>(¯</sup> <sup>_t, tf_</sup> <sup>)</sup> <sup>_._</sup> (4.8) _r_ <sup>_′_</sup> _h_ <sup>_r_</sup> _a_ <sup>_′_</sup> <sup>(¯</sup> <sup>_t, tf_</sup> <sup>)(</sup> <sup>_d/dt_</sup> <sup>¯)</sup> <sup>_Gr′_</sup> <sup>(</sup> <sup>_ζ_</sup> <sup>(¯</sup> <sup>_t_</sup> <sup>)) =</sup> _br_ <sup>_r_</sup> <sup>_′_</sup> _r_ <sup>_′′g_</sup> _b_ <sup>_r′′_</sup> _b_ <sup>_r′′_</sup> <sup>(¯</sup> <sup>_t_</sup> <sup>)</sup> <sup>_h_</sup> _a_ <sup>_r′_</sup> _Gr_ ( _ζ_ ) _br_ <sup>_′_</sup> _r_ <sup>_′′_</sup> _C_ <sup>_r_</sup> Since the monomials _Gr_ are linearly independent, the relations (4.3) through (4.8) imply the result _a_ <sup>_r′_</sup> <sup>(¯</sup> <sup>_t, tf_</sup> <sup>)</sup> <sup>_._</sup> (4.9) _br_ <sup>_r_</sup> <sup>_′_</sup> _r_ <sup>_′′g_</sup> _b_ <sup>_r′′_</sup> _h_ ˙ <sup>_r_</sup> _a_ <sup>(¯</sup> <sup>_t, tf_</sup> <sup>) =</sup> <sup>_−_</sup> _br_ <sup>_′_</sup> _r_ <sup>_′′_</sup> _C_ <sup>_r_</sup> _b_ <sup>_r′′_</sup> <sup>(¯</sup> <sup>_t_</sup> <sup>)</sup> <sup>_h_</sup> _a_ <sup>_r′_</sup> This result is a set of differential equations for the _h_ <sup>_r_</sup> _a_ <sup>that</sup> <sup>are</sup> <sup>to</sup> <sup>be</sup> <sup>integrated</sup> <sup>from</sup> _t_ ¯ = _t_ <sup>_f_</sup> _back_ to _t_ ¯ = _t_ <sup>_i_</sup> . Also, evaluating (4.2) for _t_ ¯ = _t_ <sup>_f_</sup> gives the results _ζa_ <sup>_f_</sup> <sup>=</sup> _r_ _h_ <sup>_r_</sup> _a_ <sup>_r_</sup> _a_ <sup>(</sup> <sup>_tf_</sup> <sup>_, tf_</sup> <sup>)</sup> <sup>_Gr_</sup> <sup>(</sup> <sup>_ζ_</sup> _a_ <sup>_f_</sup> _a_ <sup>_f_</sup> <sup>)</sup> <sup>_,_</sup> (4.10) from which it follows that (with the usual polynomial labeling) the _h_ <sup>_r_</sup> _a_ <sup>satisfy</sup> <sup>the</sup> <sup>final</sup> conditions _h_ <sup>_r_</sup> _a_ <sup>_r_</sup> _a_ <sup>(</sup> <sup>_tf_</sup> <sup>_, tf_</sup> <sup>) =</sup> <sup>_δ_</sup> _a_ <sup>_r_</sup> _a_ <sup>_r._</sup> (4.11) Therefore the solution to (4.9) is uniquely defined. Finally, it is evident from the definition (4.7) that the coefficients _Cbr_ <sup>_r_</sup> <sup>_′_</sup> _r_ <sup>_′′_</sup> <sup>satisfy</sup> <sup>the</sup> <sup>relation</sup> _Cbr_ <sup>_r_</sup> <sup>_′_</sup> _r_ <sup>_′′_</sup> <sup>= 0</sup> <sup>unless</sup> <sup>[</sup> <sup>_D_</sup> <sup>(</sup> <sup>_r′_</sup> <sup>)</sup> <sup>_−_</sup> <sup>1] +</sup> <sup>_D_</sup> <sup>(</sup> <sup>_r′′_</sup> <sup>) =</sup> <sup>_D_</sup> <sup>(</sup> <sup>_r_</sup> <sup>)</sup> <sup>_._</sup> (4.12) Therefore, since _D_ ( _r_ <sup>_′′_</sup> ) _≥_ 1 in (4.9), it follows from (4.12) that the only _h_ <sup>_r_</sup> _a_ <sup>_′_</sup> <sup>that</sup> <sup>occur</sup> <sup>on</sup> the right side of (4.9) are those that satisfy _D_ ( _r_ <sup>_′_</sup> ) _≤_ _D_ ( _r_ ) _._ (4.13) 13 Similarly, the only _gb_ <sup>_r′′_</sup> that occur are those that satisfy _D_ ( _r_ <sup>_′′_</sup> ) _≤_ _D_ ( _r_ ) _._ (4.14) Therefore, as before, to determine the coefficients _h_ <sup>_r_</sup> _a_ <sup>of the Taylor expansion (2.9) through</sup> terms of some degree _D_, it is only necessary to integrate a finite number of equations, and the right sides of these equations involve only the coefficients for this degree and lower. Comparison of the differential equation sets (3.6) and (4.9) shows that the latter has the remarkable property of being _linear_ in the unknown quantities _h_ <sup>_r_</sup> _a_ <sup>.</sup> <sup>This</sup> <sup>feature</sup> <sup>means</sup> that the evaluation of the right side of (4.9) involves only the retrieval of certain universal constants _Cbr_ <sup>_r_</sup> <sup>_′_</sup> _r_ <sup>_′′_</sup> <sup>and</sup> <sup>straight-forward</sup> <sup>multiplication</sup> <sup>and</sup> <sup>addition.</sup> <sup>By</sup> <sup>contrast,</sup> <sup>the</sup> <sup>use</sup> <sup>of</sup> (3.6) requires evaluation of the fairly complicated _nonlinear_ functions _Ur_ <sup>_r′′_</sup> <sup>(</sup> <sup>_h_</sup> _n_ <sup>_s_</sup> <sup>).</sup> <sup>Finally,</sup> <sup>it</sup> is easier to insure that a numerical integration procedure is working properly for a set of linear differential equations than it is for a nonlinear set. The only complication in the use of (4.9) is that the equations must be integrated backwards in _t_ <sup>¯</sup> . Correspondingly the equations (2.6) for the design solution must also be integrated backwards since they supply the required quantities _ga_ <sup>_r_</sup> <sup>through</sup> <sup>use</sup> <sup>of</sup> <sup>(2.4)</sup> <sup>and</sup> (2.5). This is no problem if the final quantities _z_ <sup>_d_</sup> ( _t_ <sup>fin</sup> ) are known. However if only the initial quantities _z_ <sup>_d_</sup> ( _t_ <sup>in</sup> ) are known, then the equations (2.6) for _z_ <sup>_d_</sup> must first be integrated forward in time to find the final quantities _z_ <sup>_d_</sup> ( _t_ <sup>fin</sup> ). _r_ <sup>_r′′_</sup> <sup>(</sup> <sup>_h_</sup> _n_ <sup>_s_</sup> The only complication in the use of (4.9) is that the equations must be integrated backwards in _t_ <sup>¯</sup> . Correspondingly the equations (2.6) for the design solution must also be integrated backwards since they supply the required quantities _ga_ <sup>_r_</sup> <sup>through</sup> <sup>use</sup> <sup>of</sup> <sup>(2.4)</sup> <sup>and</sup> 4.2 The Two-variable Case Revisited For clarity, let us also apply this second method to the two-variable case. Table 2 shows the nonzero values of _Cbr_ <sup>_r_</sup> <sup>_′_</sup> _r_ <sup>_′′_</sup> <sup>for</sup> <sup>_r_</sup> <sup>_∈_</sup> <sup>[1</sup> <sup>_,_</sup> <sup>5]</sup> <sup>obtained</sup> <sup>using</sup> <sup>(3.10)</sup> <sup>through</sup> <sup>(3.14)</sup> <sup>and</sup> <sup>(4.7).</sup> Note that the rules (4.12) hold. Use of this Table shows that in the two-variable case the equations (4.9) take the form _h_ ˙ <sup>1</sup> 1 <sup>(¯</sup> <sup>_t, tf_</sup> <sup>) =</sup> <sup>_−_</sup> <sup>_g_</sup> 1 <sup>1(¯</sup> <sup>_t_</sup> <sup>)</sup> <sup>_h_</sup> <sup>1</sup> 1 <sup>(¯</sup> <sup>_t, tf_</sup> <sup>)</sup> <sup>_−_</sup> <sup>_g_</sup> 2 <sup>1(¯</sup> <sup>_t_</sup> <sup>)</sup> <sup>_h_</sup> <sup>2</sup> 1 <sup>(¯</sup> <sup>_t, tf_</sup> <sup>)</sup> <sup>_,_</sup> (4.15) _h_ ˙ <sup>1</sup> 2 <sup>(¯</sup> <sup>_t, tf_</sup> <sup>) =</sup> <sup>_−_</sup> <sup>_g_</sup> 1 <sup>1(¯</sup> <sup>_t_</sup> <sup>)</sup> <sup>_h_</sup> <sup>1</sup> 2 <sup>(¯</sup> <sup>_t, tf_</sup> <sup>)</sup> <sup>_−_</sup> <sup>_g_</sup> 2 <sup>1(¯</sup> <sup>_t_</sup> <sup>)</sup> <sup>_h_</sup> <sup>2</sup> 2 <sup>(¯</sup> <sup>_t, tf_</sup> <sup>)</sup> <sup>_,_</sup> (4.16) _h_ ˙ <sup>2</sup> 1 <sup>(¯</sup> <sup>_t, tf_</sup> <sup>) =</sup> <sup>_−_</sup> <sup>_g_</sup> 1 <sup>2(¯</sup> <sup>_t_</sup> <sup>)</sup> <sup>_h_</sup> <sup>1</sup> 1 <sup>(¯</sup> <sup>_t, tf_</sup> <sup>)</sup> <sup>_−_</sup> <sup>_g_</sup> 2 <sup>2(¯</sup> <sup>_t_</sup> <sup>)</sup> <sup>_h_</sup> <sup>2</sup> 1 <sup>(¯</sup> <sup>_t, tf_</sup> <sup>)</sup> <sup>_,_</sup> (4.17) _h_ ˙ <sup>2</sup> 2 <sup>(¯</sup> <sup>_t, tf_</sup> <sup>) =</sup> <sup>_−_</sup> <sup>_g_</sup> 1 <sup>2(¯</sup> <sup>_t_</sup> <sup>)</sup> <sup>_h_</sup> <sup>1</sup> 2 <sup>(¯</sup> <sup>_t, tf_</sup> <sup>)</sup> <sup>_−_</sup> <sup>_g_</sup> 2 <sup>2(¯</sup> <sup>_t_</sup> <sup>)</sup> <sup>_h_</sup> <sup>2</sup> 2 <sup>(¯</sup> <sup>_t, tf_</sup> <sup>)</sup> <sup>_,_</sup> (4.18) _h_ ˙ <sup>3</sup> 1 <sup>(¯</sup> <sup>_t, tf_</sup> <sup>) =</sup> <sup>_−_</sup> <sup>2</sup> <sup>_g_</sup> 1 <sup>1(¯</sup> <sup>_t_</sup> <sup>)</sup> <sup>_h_</sup> <sup>3</sup> 1 <sup>(¯</sup> <sup>_t, tf_</sup> <sup>)</sup> <sup>_−_</sup> <sup>_g_</sup> 1 <sup>3(¯</sup> <sup>_t_</sup> <sup>)</sup> <sup>_h_</sup> <sup>1</sup> 1 <sup>(¯</sup> <sup>_t, tf_</sup> <sup>)</sup> <sup>_−_</sup> <sup>_g_</sup> 2 <sup>1(¯</sup> <sup>_t_</sup> <sup>)</sup> <sup>_h_</sup> <sup>4</sup> 1 <sup>(¯</sup> <sup>_t, tf_</sup> <sup>)</sup> <sup>_−_</sup> <sup>_g_</sup> 2 <sup>3(¯</sup> <sup>_t_</sup> <sup>)</sup> <sup>_h_</sup> <sup>2</sup> 1 <sup>(¯</sup> <sup>_t, tf_</sup> <sup>)</sup> <sup>_,_</sup> (4.19) _h_ ˙ <sup>3</sup> 2 <sup>(¯</sup> <sup>_t, tf_</sup> <sup>) =</sup> <sup>_−_</sup> <sup>2</sup> <sup>_g_</sup> 1 <sup>1(¯</sup> <sup>_t_</sup> <sup>)</sup> <sup>_h_</sup> <sup>3</sup> 2 <sup>(¯</sup> <sup>_t, tf_</sup> <sup>)</sup> <sup>_−_</sup> <sup>_g_</sup> 1 <sup>3(¯</sup> <sup>_t_</sup> <sup>)</sup> <sup>_h_</sup> <sup>1</sup> 2 <sup>(¯</sup> <sup>_t, tf_</sup> <sup>)</sup> <sup>_−_</sup> <sup>_g_</sup> 2 <sup>1(¯</sup> <sup>_t_</sup> <sup>)</sup> <sup>_h_</sup> <sup>4</sup> 2 <sup>(¯</sup> <sup>_t, tf_</sup> <sup>)</sup> <sup>_−_</sup> <sup>_g_</sup> 2 <sup>3(¯</sup> <sup>_t_</sup> <sup>)</sup> <sup>_h_</sup> <sup>2</sup> 2 <sup>(¯</sup> <sup>_t, tf_</sup> <sup>)</sup> <sup>_,_</sup> (4.20) _h_ ˙ <sup>4</sup> 1 1 <sup>1(¯</sup> <sup>_t_</sup> <sup>)</sup> <sup>_h_</sup> <sup>4</sup> 1 <sup>(¯</sup> <sup>_t, tf_</sup> <sup>)</sup> <sup>_−_</sup> <sup>2</sup> <sup>_g_</sup> 1 <sup>2(¯</sup> <sup>_t_</sup> <sup>)</sup> <sup>_h_</sup> <sup>3</sup> 1 <sup>(¯</sup> <sup>_t, tf_</sup> <sup>)</sup> <sup>_−_</sup> <sup>_g_</sup> 1 <sup>4(¯</sup> <sup>_t_</sup> <sup>)</sup> <sup>_h_</sup> <sup>1</sup> 1 <sup>(¯</sup> <sup>_t, tf_</sup> <sup>)</sup> <sup>4</sup> 1 <sup>(¯</sup> <sup>_t, tf_</sup> <sup>)</sup> = _−_ _g_ 1 <sup>1</sup> _−_ 2 _g_ 2 <sup>1(¯</sup> <sup>_t_</sup> <sup>)</sup> <sup>_h_</sup> <sup>5</sup> 1 <sup>(¯</sup> <sup>_t, tf_</sup> <sup>)</sup> <sup>_−_</sup> <sup>_g_</sup> 2 <sup>2(¯</sup> <sup>_t_</sup> <sup>)</sup> <sup>_h_</sup> <sup>4</sup> 1 <sup>(¯</sup> <sup>_t, tf_</sup> <sup>)</sup> <sup>_−_</sup> <sup>_g_</sup> 2 <sup>4(¯</sup> <sup>_t_</sup> <sup>)</sup> <sup>_h_</sup> <sup>2</sup> 1 <sup>(¯</sup> <sup>_t, tf_</sup> <sup>)</sup> <sup>_,_</sup> (4.21) 14 _h_ ˙ <sup>4</sup> 2 1 <sup>1(¯</sup> <sup>_t_</sup> <sup>)</sup> <sup>_h_</sup> 2 <sup>4(¯</sup> <sup>_t, tf_</sup> <sup>)</sup> <sup>_−_</sup> <sup>2</sup> <sup>_g_</sup> 1 <sup>2(¯</sup> <sup>_t_</sup> <sup>)</sup> <sup>_h_</sup> 2 <sup>3(¯</sup> <sup>_t, tf_</sup> <sup>)</sup> <sup>_−_</sup> <sup>_g_</sup> 1 <sup>4(¯</sup> <sup>_t_</sup> <sup>)</sup> <sup>_h_</sup> 2 <sup>1(¯</sup> <sup>_t, tf_</sup> <sup>)</sup> <sup>4</sup> 2 <sup>(¯</sup> <sup>_t, tf_</sup> <sup>)</sup> = _−_ _g_ 1 <sup>1</sup> _−_ 2 _g_ 2 <sup>1(¯</sup> <sup>_t_</sup> <sup>)</sup> <sup>_h_</sup> 2 <sup>5(¯</sup> <sup>_t, tf_</sup> <sup>)</sup> <sup>_−_</sup> <sup>_g_</sup> 2 <sup>2(¯</sup> <sup>_t_</sup> <sup>)</sup> <sup>_h_</sup> 2 <sup>4(¯</sup> <sup>_t, tf_</sup> <sup>)</sup> <sup>_−_</sup> <sup>_g_</sup> 2 <sup>4(¯</sup> <sup>_t_</sup> <sup>)</sup> <sup>_h_</sup> 2 <sup>2(¯</sup> <sup>_t, tf_</sup> <sup>)</sup> <sup>_,_</sup> (4.22) _h_ ˙ <sup>5</sup> 1 <sup>(¯</sup> <sup>_t, tf_</sup> <sup>) =</sup> <sup>_−_</sup> <sup>_g_</sup> 1 <sup>2(¯</sup> <sup>_t_</sup> <sup>)</sup> <sup>_h_</sup> 1 <sup>4(¯</sup> <sup>_t, tf_</sup> <sup>)</sup> <sup>_−_</sup> <sup>_g_</sup> 1 <sup>5(¯</sup> <sup>_t_</sup> <sup>)</sup> <sup>_h_</sup> 1 <sup>1(¯</sup> <sup>_t, tf_</sup> <sup>)</sup> <sup>_−_</sup> <sup>2</sup> <sup>_g_</sup> 2 <sup>2(¯</sup> <sup>_t_</sup> <sup>)</sup> <sup>_h_</sup> 1 <sup>5(¯</sup> <sup>_t, tf_</sup> <sup>)</sup> <sup>_−_</sup> <sup>_g_</sup> 2 <sup>5(¯</sup> <sup>_t_</sup> <sup>)</sup> <sup>_h_</sup> 1 <sup>2(¯</sup> <sup>_t, tf_</sup> <sup>)</sup> <sup>_,_</sup> (4.23) _h_ ˙ <sup>5</sup> 2 <sup>(¯</sup> <sup>_t, tf_</sup> <sup>) =</sup> <sup>_−_</sup> <sup>_g_</sup> 1 <sup>2(¯</sup> <sup>_t_</sup> <sup>)</sup> <sup>_h_</sup> 2 <sup>4(¯</sup> <sup>_t, tf_</sup> <sup>)</sup> <sup>_−_</sup> <sup>_g_</sup> 1 <sup>5(¯</sup> <sup>_t_</sup> <sup>)</sup> <sup>_h_</sup> 2 <sup>1(¯</sup> <sup>_t, tf_</sup> <sup>)</sup> <sup>_−_</sup> <sup>2</sup> <sup>_g_</sup> 2 <sup>2(¯</sup> <sup>_t_</sup> <sup>)</sup> <sup>_h_</sup> 2 <sup>5(¯</sup> <sup>_t, tf_</sup> <sup>)</sup> <sup>_−_</sup> <sup>_g_</sup> 2 <sup>5(¯</sup> <sup>_t_</sup> <sup>)</sup> <sup>_h_</sup> 2 <sup>2(¯</sup> <sup>_t, tf_</sup> <sup>)</sup> <sup>_,_</sup> <sup>etc</sup> <sup>_._</sup> (4.24) As advertised, the right sides of (4.15) through (4.24) are indeed simpler than those of (3.37) through (3.46). Table 2: Nonzero values of _Cbr_ <sup>_r_</sup> <sup>_′_</sup> _r_ <sup>_′′_</sup> <sup>for</sup> <sup>_r_</sup> <sup>_∈_</sup> <sup>[1</sup> <sup>_,_</sup> <sup>5]</sup> <sup>in</sup> <sup>the</sup> <sup>two-variable</sup> <sup>case.</sup> _<u>r</u>_ _<u>b</u>_ _<u>r</u>_ <sup>_′_</sup> _<u>r</u>_ <sup>_′′_</sup> _<u>C</u>_ 1 1 1 1 1 1 2 2 1 1 2 1 1 2 1 2 2 2 2 1 3 1 1 3 1 3 1 3 1 2 3 2 2 3 1 3 2 4 1 1 4 1 1 4 1 4 1 3 2 2 4 1 4 1 1 4 2 2 4 1 4 2 4 2 1 4 2 5 1 2 5 1 1 5 1 5 1 4 2 1 5 2 2 5 1 5 2 5 2 1 ##### 5 Duffing Equation Example 5.1 Introduction As an example application, this section studies some aspects of the _Duffing_ equation. The behavior of the driven Duffing oscillator, like that of generic nonlinear systems, is enormously complicated. Consequently, we will be able to only touch on some of the highlights of this fascinating problem. 15 Duffing’s equation describes the behavior of a periodically driven damped _nonlinear_ oscillator governed by the equation of motion _x_ ¨ + _ax_ ˙ + _bx_ + _cx_ <sup>3</sup> = _d_ cos(Ω _t_ + _ψ_ ) _._ (5.1) Here _ψ_ is an arbitrary phase factor that is often set to zero. For our purposes it is more convenient to set _ψ_ = _π/_ 2 _._ (5.2) Evidently any particular choice of _ψ_ simply results in a shift of the origin in time, and this shift has no physical consequence since the left side of (5.1) is independent of time. We assume _b, c_ _>_ 0, which is the case of a positive hard spring restoring force. <sup>2</sup> We make these assumptions because we want the Duffing oscillator to behave like an ordinary harmonic oscillator when the amplitude is small, and we want the motion to be bounded away from infinity when the amplitude is large. Then, by a suitable choice of time and length scales that introduces new variables _q_ and _τ_, the equation of motion can be brought to the form _q_ ¨ + 2 _β_ ˙ _q_ + _q_ + _q_ <sup>3</sup> = _−ϵ_ sin _ωτ,_ (5.3) where now a dot denotes _d/dτ_ and we have made use of (5.2). In this form it is evident that there are 3 free parameters: _β_, _ϵ_, and _ω_ . 5.2 Stroboscopic Map While the Duffing equation is nonlinear, it does have the simplifying feature that the driving force is periodic with period _T_ = 2 _π/ω._ (5.4) Let us convert (5.3) into a pair of first-order equations by making the definition _p_ = _q,_ ˙ (5.5) with the result _q_ ˙ = _p,_ _p_ ˙ = _−_ 2 _βp −_ _q −_ _q_ <sup>3</sup> _−_ _ϵ_ sin _ωτ._ (5.6) Let _q_ <sup>0</sup> _, p_ <sup>0</sup> denote initial conditions at _τ_ = 0, and let _q_ <sup>1</sup> _, p_ <sup>1</sup> be the final conditions resulting from integrating the pair (5.6) one full period to the time _τ_ = _T_ . Let _M_ denote the transfer map that relates _q_ <sup>1</sup> _, p_ <sup>1</sup> to _q_ <sup>0</sup> _, p_ <sup>0</sup> . Then, using the notation _z_ = ( _q, p_ ), we may write _z_ <sup>1</sup> = _Mz_ <sup>0</sup> _._ (5.7) 2Other authors consider other cases, particularly the ‘double well’ case _b <_ 0 and _c >_ 0. 16 Suppose we now integrate for a second full period to find _q_ <sup>2</sup> _, p_ <sup>2</sup> . Since the right side of (5.6) is periodic, the rules for integrating from _τ_ = _T_ to _τ_ = 2 _T_ are the same as the rules for integrating from _τ_ = 0 to _τ_ = _T_ . Therefore we may write _z_ <sup>2</sup> = _Mz_ <sup>1</sup> = _M_ <sup>2</sup> _z_ <sup>0</sup> _,_ (5.8) and in general _z_ <sup>_n_</sup> <sup>+1</sup> = _Mz_ <sup>_n_</sup> = _M_ <sup>_n_</sup> <sup>+1</sup> _z_ <sup>0</sup> _._ (5.9) We may regard the quantities _z_ <sup>_n_</sup> as the result of viewing the motion in the light provided by a stroboscope that flashes at the times <sup>3</sup> _τ_ <sup>_n_</sup> = _nT._ (5.10) Because of the periodicity of the right side of the equations of motion, the rule for sending _z_ <sup>_n_</sup> to _z_ <sup>_n_</sup> <sup>+1</sup> over the intervals between successive flashes is always the same, namely _M_ . For these reasons _M_ is called a _stroboscopic_ _map_ . Despite the explicit time dependence in the equations of motion, because of periodicity we have been able to describe the long-term motion by the repeated application of a single fixed map. 5.3 Feigenbaum Diagram Overview One way to study a map and analyze its properties, in this case the Duffing stroboscopic map, is to find its fixed points. When these fixed points are found, one can then display how they appear, move, and vanish as various parameters are varied. Such a display is often called a _Feigenbaum_ diagram. This subsection will present selected Feigenbaum diagrams, including the infinite period doubling cascade and its associated strange attractor, for the stroboscopic map obtained by high-accuracy numerical integration of the equations of motion (5.6). They will be made by observing the behavior of fixed points as the driving frequency _ω_ is varied. For simplicity, the damping parameter will be held constant at the value _β_ = 0 _._ 10. Various sample values will be used for the driving strength _ϵ_ . <sup>4</sup> Let us begin with the case of small driving strength. When the driving strength is small, we know from energy considerations that the steady-state response will be small, and therefore the behavior of the steady-state solution will be much like that of the driven damped _linear_ harmonic oscillator. That is, for small amplitude motion, the _q_ <sup>3</sup> term in (5.3) will be negligible compared to the other terms. We also know that, because of damping, there will be only _one_ steady-state solution, and therefore _M_ has only _one_ fixed point _z_ <sup>_f_</sup> such that _Mz_ <sup>_f_</sup> = _z_ <sup>_f_</sup> _._ (5.11) 3Note that, with the choice (5.2) for _ψ_, the driving term described by the right side of (5.3) vanishes at the stroboscopic times _τ_ <sup>_n_</sup> . 4Of course, one can also make Feigenbaum diagrams in which some other parameter, say _ϵ_, is varied while the others, including _ω_, are held fixed. 17 Finally, again because of damping, we know that this fixed point is _stable_ . That is, if _M_ is applied repeatedly to a point near _z_ <sup>_f_</sup>, the result is a sequence of points that approach ever closer to _z_ <sup>_f_</sup> . For this reason a stable fixed point is also called an _attractor_ . 5.3.1 A Simple Feigenbaum Diagram Figure 2 shows the values of _qf_ ( _ω_ ) and for the case _ϵ_ = 0 _._ 150, and Figure 3 shows _pf_ ( _ω_ ). In the figures the phase-space axes are labeled as _q∞_ and _p∞_ to indicate that what are being displayed are steady-state values reached after a large number of applications of _M_ . As anticipated, we observe from Figures 2 and 3 that the response is much like the resonance response of the driven damped linear harmonic oscillator. <sup>5</sup> Note that the coefficient of _q_ in (5.12) is 1, and therefore at small amplitudes, where _q_ <sup>3</sup> can be neglected, the Duffing oscillator described by (5.3) has a natural frequency near 1. Correspondingly, Figure 2 displays a large response when the driving frequency has the value _ω_ _≃_ 1. Observe, however, that the response, while similar, is not exactly like that of the driven damped linear harmonic oscillator. For example, the resonance peak at _ω_ _≃_ 1 is slightly tipped to the right, and there is also a small peak for _ω_ _≃_ 1 _/_ 3. Our strategy for further exploration will be to increase the value of the driving strength _ϵ_, all the while observing the stroboscopic Duffing map Feigenbaum diagram as a function of _ω_ . We hasten to add the disclaimer that the driven Duffing oscillator displays an enormously rich behavior that varies widely with the parameter values _β_, _ϵ_, _ω_, and we shall be able to give a brief summary of some of it. Also, for brevity, we shall generally only display _qf_ ( _ω_ ). 5.3.2 Saddle-Node (Blue-Sky) Bifurcations Figure 4 shows the _q_ Feigenbaum diagram for the case of somewhat larger driving strength, _ϵ_ = 1 _._ 50. For this driving strength the resonance peak, which previously occurred at _ω_ _≃_ 1, has shifted to a higher frequency and taken on a more complicated structure. There are now also noticeable resonances at lower frequencies, with the most prominent one being at _ω_ _≃_ 1 _/_ 2. Examination of Figure 4 shows that for _ω_ _≤_ 1 _._ 5 there is a single stable fixed point whose trail is shown in black. Then, as _ω_ is increased, a pair of fixed points is born at _ω_ _≃_ 1 _._ 8. <sup>6</sup> One of them is stable. The other, whose trail as _ω_ is varied is shown in red, is _unstable_ . That is, if _M_ is applied repeatedly to a point near this fixed point, the result is a sequence of points that move ever farther away from the fixed point. For this reason an unstable fixed point is also called a _repellor_ . 5It was the desire for _q∞_ to exhibit a resonance-like peak as a function of _ω_ that dictated the choice (5.2) for _ψ_ . 6Actually, in the analytic spirit of Poincar´e, these fixed points also exist for smaller values of _ω_, but are then complex. They first become purely real, and therefore physically apparent, when _ω_ _≃_ 1 _._ 8. 18 ### q∞ 0.7 0.6 0.5 0.4 0.3 0.2 0.1 0 0 0.5 1 1.5 2 2.5 ### ω Figure 2: Feigenbaum diagram showing limiting values _q∞_ as a function of _ω_ (when _β_ = 0 _._ 1 and _ϵ_ = _._ 15) for the stroboscopic Duffing map. 19 p∞ 0.4 0.3 0.2 0.1 0 -0.1 -0.2 -0.3 -0.4 0 0.5 1 1.5 2 2.5 ω Figure 3: Feigenbaum diagram showing limiting values _p∞_ as a function of _ω_ (when _β_ = 0 _._ 1 and _ϵ_ = _._ 15) for the stroboscopic Duffing map. This appearance of two fixed points out of nowhere is called a saddle-node _bifurcation_ or a _blue-sky_ bifurcation, and the associated Fiegenbaum diagram is then sometimes called a bifurcation diagram. <sup>7</sup> The original stable fixed point persists as _ω_ is further increased so that over some _ω_ range there are 3 fixed points. Then, as _ω_ is further increased, the original fixed point and the unstable fixed point move until they meet and annihilate when _ω_ _≃_ 2 _._ 6. <sup>8</sup> This disappearance is called an inverse saddle-node or inverse blue-sky bifurcation. Finally, for still larger _ω_ values there is again only one fixed point, and it is stable. The appearance and disappearance of stable-unstable fixed-point pairs, as _ω_ is varied, has a striking dynamical consequence. Suppose, for example in the case of Figure 4, that the driving frequency _ω_ is below the value _ω_ _≃_ 1 _._ 8 where the saddle-node bifurcation occurs. Then there is only one fixed point, and it is attracting. Now suppose _ω_ is _slowly_ increased. Then, since the fixed-point solution is attracting, the solution for the slowly increasing _ω_ case will remain near this solution. See the upper black trail in Figure 4. This “tracking” will continue until _ω_ reaches the value _ω_ _≃_ 2 _._ 6 where the inverse saddle-node bifurcation occurs. At this value the fixed point being followed disappears. Consequently, since the one remaining fixed point is also an attractor, the solution evolves very quickly to that of the remaining fixed point. It happens that the oscillation amplitude associated 7Strictly speaking, a Feigenbaum diagram displays only the trails of stable fixed points while a bifurcation diagram displays the trails of all fixed points. 8Actually, they are not destroyed, but instead become complex and therefore disappear from view. 20 ##### q∞ 3 2.5 2 1.5 1 0.5 0 0.5 1 1.5 2 2.5 3 3.5 ##### ω Figure 4: Feigenbaum/bifurcation diagram showing limiting values _q∞_ as a function of _ω_ (when _β_ = 0 _._ 1 and _ϵ_ = 1 _._ 5) for the stroboscopic Duffing map. Trails of the stable fixed points are shown in black. Also shown, in red, is the trail of the unstable fixed point. Finally, jumps in the steady-state amplitude are illustrated by vertical dashed lines at _ω_ _≃_ 1 _._ 8 and _ω_ _≃_ 2 _._ 6. 21 with this fixed point is much smaller, and therefore there appears to be a sudden jump in oscillation amplitude to a smaller value. Now suppose _ω_ is slowly decreased from a value above the value _ω_ _≃_ 2 _._ 6 where the inverse saddle-node bifurcation occurs. Then the solution will remain near that of the fixed point lying on the bottom black trail in Figure 4. This tracking will continue until _ω_ reaches the value _ω_ _≃_ 1 _._ 8 where the fixed point being followed disappears. Again, since the remaining fixed point is attracting, the solution will now evolve to that of the remaining fixed point. The result is a jump to a larger oscillation amplitude. Evidently the steady-state oscillation amplitude exhibits _hysteresis_ as _ω_ is slowly varied back and forth over an interval that begins below the value where the first saddle-node bifurcation occurs and ends at a value above that where the inverse saddle-node bifurcation occurs. 5.3.3 Pitchfork Bifurcations Let us continue to increase _ϵ_ . Figure 5 shows that a qualitatively new feature appears when _ϵ_ is near 2.2: a _bubble_ is formed between the major resonant peak (the one that has saddle-node bifurcated) and the subresonant peak immediately to its left. To explore the nature of this bubble, let us make _ϵ_ still larger, which, we anticipate, will result in the bubble becoming larger. Figure 6 shows the Feigenbaum diagram in the case _ϵ_ = 5 _._ 5. Now the major resonant peak and the subresonant peak have moved to larger _ω_ values. Correspondingly, the bubble between them has also moved to larger _ω_ values. Moreover, it is larger, yet another smaller bubble has formed, and the subresonant peak between them has also undergone a saddle-node bifurcation. For future use, we will call the major resonant peak the _first_ or _leading_ saddle-node bifurcation, and we will call the subresonant peak between the two bubbles the _second_ saddle-node bifurcation, etc. Also, we will call the bubble just to the left of the first saddle-node bifurcation the _first_ or _leading_ bubble, and the next bubble will be called the _second_ bubble, etc. We also note that three short trails have appeared in Figure 6 just to the right of _ω_ = 4. They correspond to a period-three bifurcation followed shortly thereafter by an inverse bifurcation. Actually, much closer examination shows that there are six trails consisting of three closely-spaced pairs. Each pair comprises a stable and an unstable fixed point of the map _M_ <sup>3</sup> . They are not fixed points of _M_ itself, but rather are sent into each other in cyclic fashion under the action of _M_ . Figure 7 shows the larger (leading) bubble in Figure 6 in more detail and with the addition of red lines indicating the trails of unstable fixed points. It reveals that the bubble describes the _simultaneous_ bifurcation of a single fixed point into three fixed points. Two of these fixed points are stable and the third, whose _q_ coordinate as a function of _ω_ are shown as a red line, is unstable. What happens is that, as _ω_ is increased, a _single_ stable fixed point becomes a _triplet_ of fixed points, two of which are stable and one of which is unstable. This is called a _pitchfork_ bifurcation. Then, as _ω_ is further increased, these three fixed points again merge, in an inverse pitchfork bifurcation, to form what is again a single 22 ###### q∞ 4 3.5 3 2.5 2 1.5 1 0.5 0 -0.5 0 0.5 1 1.5 2 2.5 3 3.5 ###### ω Figure 5: Feigenbaum diagram showing limiting values _q∞_ as a function of _ω_ (when _β_ = 0 _._ 1 and _ϵ_ = 2 _._ 2) for the stroboscopic Duffing map. It displays that a bubble has now formed at _ω_ _≈_ _._ 8. 23 ###### q∞ 6 5 4 3 2 1 0 -1 0 1 2 3 4 5 6 ###### ω Figure 6: Feigenbaum diagram showing limiting values _q∞_ as a function of _ω_ (when _β_ = 0 _._ 1 and _ϵ_ = 5 _._ 5) for the stroboscopic Duffing map. The first bubble has grown, a second smaller bubble has formed to its left, and the sub-resonant peak between them has saddle-node bifurcated to become the second saddle-node bifurcation. 24 stable fixed point. 2 1.5 1 ##### q∞ 0.5 0 -0.5 -1 0.6 0.8 1 1.2 1.4 ##### ω Figure 7: An enlargement of Figure 6 with the addition of red lines indicating the trails of unstable fixed points. 25 5.3.4 A Plethora of Bifurcations and Period Doubling Cascades We end our study of the Duffing equation by increasing _ϵ_ from its earlier value _ϵ_ = 5 _._ 5 to much larger values. First we will set _ϵ_ = 22 _._ 125. Based on our experience so far, we might anticipate that the Feigenbaum diagram would become much more complicated. That is indeed the case. Figure 8 displays _q∞_ when _β_ = 0 _._ 1 and _ϵ_ = 22 _._ 125, as a function of _ω_, for the range _ω_ _∈_ (0 _,_ 12). Evidently the behavior of the attractors for the stroboscopic Duffing map, which is what is shown in Figure 8, is extremely complicated. There are now a great many fixed points both of _M_ itself and various powers of _M_ . Of particular interest to us are the two areas around _ω_ = _._ 8 and _ω_ = 1 _._ 25. They contain what has become of the first two bubbles in Figure 7, and are shown in greater magnification in Figure 9. What has happened is that bubbles have formed within bubbles, and bubbles have formed within these bubbles, etc. to form a cascade. However, these interior bubbles are not the result of pitchfork bifurcations, but rather the result of _period-_ _doubling_ bifurcations. For example, the bifurcation that creates the first bubble at _ω_ _≃_ 1 _._ 2 is a pitchfork bifurcation. But the successive bifurcations within the bubble are perioddoubling bifurcations. In a period-doubling bifurcation a fixed point that is initially stable becomes unstable as _ω_ is increased. When this happens, simultaneously two stable fixed points of _M_ <sup>2</sup> are born. They are not fixed points of _M_ itself, but rather are sent into each other under the action of _M_ . Hence the name “period doubling”. The map _M_ must be applied twice to send such a fixed point back into itself. In the next period doubling, fixed points of _M_ <sup>4</sup> are born, etc. However we note that, as _ω_ increases, the sequence of period-doubling bifurcations only occurs a _finite_ number of times and then undoes itself. Remarkably, when _ϵ_ is just somewhat larger, _infinite_ sequences of period doubling cascades can occur. Figure 10 shows what happens when _ϵ_ = 25. 5.3.5 More Detailed View of Infinite Period Doubling Cascades To display the infinite period doubling cascades in more detail, Figure 11 shows an enlargement of part of Figure 10. And Figures 12 and 13 show successive enlargements of parts of the first bubble in Figure 10. From Figure 11 we see that the first bubble forms as a result of a pitchfork bifurcation just to the right of _ω_ = 1 _._ 2, and from Figures 12 and 13 we see that the first period doubling bifurcation occurs in the vicinity of _ω_ = 1 _._ 268. From Figure 13 it is evident that successive period-doublings occur an infinite number of times to ultimately produce a chaotic region when _ω_ exceeds _ω_ _≃_ 1 _._ 29. 5.3.6 Strange Attractor As evidence that the behavior in this region is chaotic, Figures 14 and 15 show portions of the _full_ phase space, the _q, p_ plane, when _ω_ = 1 _._ 2902. Note the evidence for fractal structure. The points appear to lie on a _strange_ _attractor_ . 26 Figure 8: Feigenbaum diagram showing limiting values _q∞_ as a function of _ω_ (when _β_ = 0 _._ 1 and _ϵ_ = 22 _._ 125) for the stroboscopic Duffing map. 27 ##### q∞ 2.5 2 1.5 1 0.5 0 -0.5 -1 -1.5 -2 0.6 0.8 1 1.2 1.4 1.6 ##### ω Figure 9: Enlarged portion of the Feigenbaum diagram of Figure 8 displaying limiting values _q∞_ as a function of _ω_ (when _β_ = 0 _._ 1 and _ϵ_ = 22 _._ 125) for the stroboscopic Duffing map. It shows part of the first bubble at the far right, the second bubble, and part of a third bubble at the far left. Examine the first and second bubbles. Each initially consists of two stable period-one fixed points. Each also contains the beginnings of period-doubling cascades. These cascades do not complete, but rather remerge to again result in a pair of stable period-one fixed points. There are also many higher-period fixed points and their associated cascades. 28 Figure 10: Feigenbaum diagram showing limiting values _q∞_ as a function of _ω_ (when _β_ = 0 _._ 1 and _ϵ_ = 25) for the stroboscopic Duffing map. 29 q∞ 3 2 1 0 -1 -2 -3 0.6 0.8 1 1.2 1.4 1.6 1.8 2 2.2 ##### ω Figure 11: Enlargement of a portion Figure 10 showing the first, second, and third bubbles. The period-doubling cascades in each of the first and second bubbles complete. Then they undo themselves as _ω_ is further increased. There is no period doubling in the third bubble when _ϵ_ = 25. 30 ###### q∞ 2.5 2 1.5 1 0.5 0 -0.5 -1 -1.5 1.26 1.265 1.27 1.275 1.28 1.285 1.29 1.295 ###### ω Figure 12: Detail of part of the first bubble in Figure 11 showing upper and lower infinite period-doubling cascades. Part of the trail of the stable fixed point associated with the second saddle-node bifurcation accidentally appears to overlay the upper period doubling bifurcation. Finally, there are numerous cascades and remergings associated with higherperiod fixed points. 31 ###### q∞ 1.6 1.5 1.4 1.3 1.2 1.1 1 0.9 0.8 0.7 1.26 1.265 1.27 1.275 1.28 1.285 1.29 ###### ω Figure 13: Detail of part of the upper cascade in Figure 12 showing an infinite perioddoubling cascade, followed by chaos, for what was initially a stable period-one fixed point. 32 ###### p∞ 2.15 2.1 2.05 2 1.95 1.9 1.85 1.8 1.75 0.7 0.8 0.9 1 1.1 1.2 1.3 1.4 1.5 1.6 ###### q∞ Figure 14: Limiting values of _q∞, p∞_ for the stroboscopic Duffing map when _ω_ = 1 _._ 2902 (and _β_ = _._ 1 and _ϵ_ = 25). They appear to lie on a strange attractor. 33 ###### p∞ 2.03 2.025 2.02 2.015 2.01 2.005 2 1.49 1.495 1.5 1.505 1.51 1.515 1.52 1.525 1.53 ###### q∞ Figure 15: Enlargement of boxed portion of Figure 14 illustrating the beginning of selfsimilar fractal structure. 34 ##### 6 Polynomial Approximation to Duffing Stroboscopic Map In this section we will find the complete variational equations for the Duffing equation including dependence on the parameter _ω_ . The two remaining parameters, _β_ and _ϵ_, will remain fixed. We will then study the properties of the resulting polynomial approximation to the Duffing stroboscopic map obtained by truncating its Taylor expansion. 6.1 Complete Variational Equations with Selected Parameter Dependence To formulate the complete variational equations we could proceed as in Section 2.2 by setting _ω_ = _z_ 3 and _z_ 3 = _ω_ <sup>_d_</sup> + _ζ_ 3. So doing would require expanding the function sin( _ωτ_ ) = sin[( _ω_ <sup>_d_</sup> + _ζ_ 3) _τ_ ] as a power series in _ζ_ 3. Such an expansion is, of course, possible, but it leads to variational equations with a large number of forcing terms _ga_ <sup>_r_</sup> <sup>since</sup> <sup>the</sup> <sup>expansion</sup> of sin[( _ω_ <sup>_d_</sup> + _ζ_ 3) _τ_ ] contains an infinite number of terms. In the case of Duffing’s equation this complication can be avoided by a further change of variables. Recall that the first change of variables brought the Duffing equation to the form (5.3), which we now slightly rewrite as _q_ <sup>_′′_</sup> + 2 _βq_ <sup>_′_</sup> + _q_ + _q_ <sup>3</sup> = _−ϵ_ sin _ωτ_ (6.1) where _d/dτ_ is now denoted by a prime. Next make the further change of variables _q_ = _ωQ,_ (6.2) _ω_ = 1 _/σ,_ (6.3) _ωτ_ = _t._ (6.4) When this is done, there are the relations _q_ <sup>_′_</sup> = _ω_ <sup>2</sup> _Q_ <sup>˙</sup> (6.5) and _q_ <sup>_′′_</sup> = _ω_ <sup>3 ¨</sup> _Q_ (6.6) where now a dot denotes _d/dt_ . [Note that the variable _t_ here is different from that in (5.1).] Correspondingly, Duffing’s equation takes the form _Q_ ¨ + 2 _βσQ_ ˙ + _σ_ <sup>2</sup> _Q_ + _Q_ <sup>3</sup> = _−ϵσ_ <sup>3</sup> sin _t._ (6.7) This equation can be converted to a first-order set of the form (2.1) by writing _Q_ = _z_ 1 (6.8) 35 and _Q_ ˙ = _z_ 2 _._ (6.9) Following the method of Section 2.2, we augment the first-order equation set associated with (6.7) by adding the equation _σ_ ˙ = 0 _._ (6.10) Then we may view _σ_ as a variable, and (6.10) guarantees that this variable remains a constant. Taken together, (6.7) and (6.10) may be converted to a first-order triplet of the form (2.12) by writing (6.8), (6.9), and _σ_ = _z_ 3 _._ (6.11) Doing so gives the system _z_ ˙1 = _z_ 2 _,_ (6.12) _z_ ˙2 = _−_ 2 _βz_ 3 _z_ 2 _−_ _z_ 3 <sup>2</sup> <sup>_z_</sup> <sup>1</sup> <sup>_−_</sup> <sup>_z_</sup> 1 <sup>3</sup> <sup>_−_</sup> <sup>_ϵz_</sup> 3 <sup>3</sup> <sup>sin</sup> <sup>_t,_</sup> (6.13) _z_ ˙3 = 0 _,_ (6.14) and we see that there are the relations _f_ 1( _z, t_ ) = _z_ 2 _,_ (6.15) _f_ 2( _z, t_ ) = _−_ 2 _βz_ 3 _z_ 2 _−_ _z_ 3 <sup>2</sup> <sup>_z_</sup> <sup>1</sup> <sup>_−_</sup> <sup>_z_</sup> 1 <sup>3</sup> <sup>_−_</sup> <sup>_ϵz_</sup> 3 <sup>3</sup> <sup>sin</sup> <sup>_t,_</sup> (6.16) _f_ 3( _z, t_ ) = 0 _._ (6.17) Note that, with the change of variables just made, the stroboscopic map is obtained by integrating the equations of motion from _t_ = 0 to _t_ = 2 _π_ . As before, we introduce deviation variables using (2.2) and carry out the steps (2.3) through (2.9). In particular, we write _z_ 3 = _z_ 3 <sup>_d_</sup> <sup>+</sup> <sup>_ζ_</sup> <sup>3</sup> <sup>=</sup> <sup>_σd_</sup> <sup>+</sup> <sup>_ζ_</sup> <sup>3</sup> <sup>_._</sup> (6.18) This time we are working with monomials in the three variables _ζ_ 1, _ζ_ 2, and _ζ_ 3. [That is, _a_ ranges from 1 to 3 in (2.12).] They are conveniently labeled using the indices _r_ given in Table 3 below. With regard to the expansions (2.4) and (2.5), we find the results _f_ 1( _z_ <sup>_d_</sup> + _ζ, t_ ) = _z_ 2 <sup>_d_</sup> <sup>+</sup> <sup>_ζ_</sup> <sup>2</sup> <sup>_,_</sup> (6.19) _f_ 2( _z_ <sup>_d_</sup> + _ζ, t_ ) = _−_ 2 _β_ ( _z_ 3 <sup>_d_</sup> 3 <sup>_d_</sup> <sup>+</sup> <sup>_ζ_</sup> <sup>3)(</sup> <sup>_z_</sup> 2 <sup>_d_</sup> <sup>+</sup> <sup>_ζ_</sup> <sup>2)</sup> <sup>_−_</sup> <sup>(</sup> <sup>_z_</sup> 3 <sup>_d_</sup> <sup>+</sup> <sup>_ζ_</sup> <sup>3)2(</sup> <sup>_z_</sup> 1 <sup>_d_</sup> <sup>+</sup> <sup>_ζ_</sup> <sup>1)</sup> 1 <sup>_d_</sup> <sup>+</sup> <sup>_ζ_</sup> <sup>1)3</sup> <sup>_−_</sup> <sup>_ϵ_</sup> <sup>(</sup> <sup>_z_</sup> 3 <sup>_d_</sup> <sup>+</sup> <sup>_ζ_</sup> <sup>3)3 sin</sup> <sup>_t_</sup> _−_ ( _z_ 1 <sup>_d_</sup> 2 <sup>_dz_</sup> 3 <sup>_d_</sup> <sup>_−_</sup> <sup>_z_</sup> 1 <sup>_d_</sup> <sup>(</sup> <sup>_z_</sup> 3 <sup>_d_</sup> <sup>)2</sup> <sup>_−_</sup> <sup>(</sup> <sup>_z_</sup> 1 <sup>_d_</sup> <sup>)3</sup> <sup>_−_</sup> <sup>_ϵ_</sup> <sup>(</sup> <sup>_z_</sup> 3 <sup>_d_</sup> <sup>)3 sin</sup> <sup>_t_</sup> <sup>]</sup> = [ _−_ 2 _βz_ 2 <sup>_d_</sup> _−_ [3( _z_ 1 <sup>_d_</sup> <sup>)2 + (</sup> <sup>_z_</sup> 3 <sup>_d_</sup> <sup>)2]</sup> <sup>_ζ_</sup> <sup>1</sup> <sup>_−_</sup> <sup>2</sup> <sup>_βz_</sup> 3 <sup>_dζ_</sup> <sup>2</sup> <sup>_−_</sup> <sup>[2</sup> <sup>_βz_</sup> 2 <sup>_d_</sup> <sup>+ 2</sup> <sup>_z_</sup> 1 <sup>_dz_</sup> 3 <sup>_d_</sup> <sup>+ 3</sup> <sup>_ϵ_</sup> <sup>(</sup> <sup>_z_</sup> 3 <sup>_d_</sup> <sup>)2 sin</sup> <sup>_t_</sup> <sup>]</sup> <sup>_ζ_</sup> <sup>3</sup> _−_ 2 _βζ_ 2 _ζ_ 3 _−_ ( _z_ 1 <sup>_d_</sup> <sup>+ 3</sup> <sup>_ϵz_</sup> 3 <sup>_d_</sup> <sup>)</sup> <sup>_ζ_</sup> 3 <sup>2</sup> <sup>_−_</sup> <sup>_z_</sup> 3 <sup>_dζ_</sup> <sup>1</sup> <sup>_ζ_</sup> <sup>2</sup> <sup>_−_</sup> <sup>3</sup> <sup>_z_</sup> 1 <sup>_dζ_</sup> 1 <sup>2</sup> _−_ [3( _z_ 1 <sup>_d_</sup> _−_ 2 _βζ_ 2 _ζ_ 3 _−_ ( _z_ 1 <sup>_d_</sup> <sup>+ 3</sup> <sup>_ϵz_</sup> 3 <sup>_d_</sup> <sup>)</sup> <sup>_ζ_</sup> 3 <sup>2</sup> <sup>_−_</sup> <sup>_z_</sup> 3 <sup>_dζ_</sup> <sup>1</sup> <sup>_ζ_</sup> <sup>2</sup> <sup>_−_</sup> <sup>3</sup> <sup>_z_</sup> 1 <sup>_dζ_</sup> 1 <sup>2</sup> _−ζ_ 1 <sup>3</sup> <sup>_−_</sup> <sup>_ζ_</sup> <sup>1</sup> <sup>_ζ_</sup> 3 <sup>2</sup> <sup>_−_</sup> <sup>_ϵ_</sup> <sup>(sin</sup> <sup>_t_</sup> <sup>)</sup> <sup>_ζ_</sup> 3 <sup>3</sup> <sup>_,_</sup> 1 <sup>3</sup> <sup>_−_</sup> <sup>_ζ_</sup> <sup>1</sup> <sup>_ζ_</sup> 3 <sup>2</sup> <sup>_−_</sup> <sup>_ϵ_</sup> <sup>(sin</sup> <sup>_t_</sup> <sup>)</sup> <sup>_ζ_</sup> 3 <sup>3</sup> <sup>_,_</sup> (6.20) 36 _f_ 3( _z_ <sup>_d_</sup> + _ζ, t_ ) = 0 _._ (6.21) Note the right sides of (6.19) through (6.21) are at most cubic in the deviation variables _ζa_ . Therefore, from Table 3, we see that the index _r_ for the _ga_ <sup>_r_</sup> <sup>should range from 1 through</sup> 19. It follows that for Duffing’s equation (with _σ_ parameter expansion) the only nonzero forcing terms are given by the relations _g_ 1 <sup>2</sup> <sup>= 1</sup> <sup>_,_</sup> (6.22) _g_ 2 <sup>1</sup> <sup>=</sup> <sup>_−_</sup> <sup>3(</sup> <sup>_z_</sup> 1 <sup>_d_</sup> <sup>)2</sup> <sup>_−_</sup> <sup>(</sup> <sup>_z_</sup> 3 <sup>_d_</sup> <sup>)2</sup> <sup>_,_</sup> (6.23) _g_ 2 <sup>2</sup> <sup>=</sup> <sup>_−_</sup> <sup>2</sup> <sup>_βz_</sup> 3 <sup>_d,_</sup> (6.24) _g_ 2 <sup>3</sup> <sup>=</sup> <sup>_−_</sup> <sup>2</sup> <sup>_βz_</sup> 2 <sup>_d_</sup> <sup>_−_</sup> <sup>2</sup> <sup>_z_</sup> 1 <sup>_dz_</sup> 3 <sup>_d_</sup> <sup>_−_</sup> <sup>3</sup> <sup>_ϵ_</sup> <sup>(</sup> <sup>_z_</sup> 3 <sup>_d_</sup> <sup>)2 sin</sup> <sup>_t,_</sup> (6.25) _g_ 2 <sup>4</sup> <sup>=</sup> <sup>_−_</sup> <sup>3</sup> <sup>_z_</sup> 1 <sup>_d,_</sup> (6.26) _g_ 2 <sup>6</sup> <sup>=</sup> <sup>_−_</sup> <sup>2</sup> <sup>_z_</sup> 3 <sup>_d,_</sup> (6.27) _g_ 2 <sup>8</sup> <sup>=</sup> <sup>_−_</sup> <sup>2</sup> <sup>_β,_</sup> (6.28) _g_ 2 <sup>9</sup> <sup>=</sup> <sup>_−z_</sup> 1 <sup>_d_</sup> <sup>_−_</sup> <sup>3</sup> <sup>_ϵz_</sup> 3 <sup>_d_</sup> <sup>sin</sup> <sup>_t,_</sup> (6.29) _g_ 2 <sup>10</sup> <sup>=</sup> <sup>_−_</sup> <sup>1</sup> <sup>_,_</sup> (6.30) _g_ 2 <sup>15</sup> <sup>=</sup> <sup>_−_</sup> <sup>1</sup> <sup>_,_</sup> (6.31) _g_ 2 <sup>19</sup> <sup>=</sup> <sup>_−ϵ_</sup> <sup>sin</sup> <sup>_t._</sup> (6.32) 37 Table 3: A labeling scheme for monomials in three variables. _<u>r</u>_ _<u>j</u>_ <u>1</u> _<u>j</u>_ <u>2</u> _<u>j</u>_ <u>3</u> _<u>D</u>_ 1 1 0 0 1 2 0 1 0 1 3 0 0 1 1 4 2 0 0 2 5 1 1 0 2 6 1 0 1 2 7 0 2 0 2 8 0 1 1 2 9 0 0 2 2 10 3 0 0 3 11 2 1 0 3 12 2 0 1 3 13 1 2 0 3 14 1 1 1 3 15 1 0 2 2 16 0 3 0 3 17 0 2 1 3 18 0 1 2 3 19 0 0 3 3 6.2 Performance of Polynomial Approximation Let _M_ 8 denote the 8 <sup>th</sup> -order polynomial map (with parameter dependence) approximation to the stroboscopic Duffing map _M_ . Provided the relevant phase-space region is not too large, we have found that _M_ 8 reproduces all the features, described in Section 5.3, of the exact map[6]. (The phase-space region must lie within the convergence domain of the Taylor expansion.) This reproduction might not be too surprising in the cases of elementary bifurcations such as saddle-node and pitchfork bifurcations. What is more fascinating, as we will see, is that _M_ 8 also reproduces the infinite period doubling cascade and associated strange attractor. 6.2.1 Infinite Period Doubling Cascade Figure 16 shows the partial Feigenbaum diagram for the map _M_ 8 in the case that _β_ = 0 _._ 1 and _ϵ_ = 25. The Taylor expansion is made about the point indicated by the _black_ _dot_ . 38 This point has the coordinates _q_ bd = 1 _._ 26082 _,_ _p_ bd = 2 _._ 05452 _,_ _ω_ bd = 1 _._ 285 _._ (6.33) It was selected to be an unstable fixed point of _M_, but that is not essential. Any nearby expansion point would have served as well. Note the remarkable resemblance of Figures 13 and 16. We have referred to Figure 16 as a _partial_ Feigenbaum diagram because it shows only _q∞_ and not _p∞_ . In order to give a complete picture, Figure 17 displays them both. 1.6 1.4 1.2 1 0.8 <u>1.26</u> <u>1.265</u> <u>1.27</u> <u>1.275</u> <u>1.28</u> <u>1.285</u> <u>1.29</u> <u>1.295</u> Ω Figure 16: Partial Feigenbaum diagram for the map _M_ 8. The black dot marks the point about which _M_ is expanded to yield _M_ 8 . 39 Figure 17: Full Feigenbaum diagram for the map _M_ 8. The black dot again marks the expansion point. 40 6.2.2 Strange Attractor As displayed in Figures 18 through 21 _M_ 8, like _M_, appears to have a strange attractor. Note the remarkable agreement between Figures 14 and 15 for _M_ and their _M_ 8 counterparts, Figures 18 and 19. In the case of _M_ 8 we have been able to obtain additional _enlargements_, Figures 20 and 21, further illustrating a self-similar fractal structure. Analogous figures are more difficult to obtain for the exact map _M_ due to the excessive numerical integration time required. By contrast the map _M_ 8, because it is a simple polynomial, is easy to evaluate repeatedly. Figure 18: Limiting values of _q∞, p∞_ for the map _M_ 8 when _ω_ = 1 _._ 2902. They appear to lie on a strange attractor. 41 Figure 19: Enlargement of boxed portion of Figure 18 illustrating the beginning of selfsimilar fractal structure. 42 ###### 2.021 2.02 2.019 2.018 2.017 2.016 2.015 2.014 1.519 1.52 1.521 1.522 1.523 q � Figure 20: Enlargement of boxed portion of Figure 19 illustrating the continuation of self-similar fractal structure. 43 ###### 2.0184 2.0182 2.018 2.0178 2.0176 2.0174 2.0172 1.522 1.5221 1.5222 1.5223 q � Figure 21: Enlargement of boxed portion of Figure 20 illustrating the further continuation of self-similar fractal structure. 44 ##### 7 Numerical Implementation The forward integration method (Section 3.1) can be implemented by a code employing the tools of _automatic_ _differentiation_ (AD) described by Neidinger [7]. <sup>9</sup> In this approach arrays of Taylor coefficients of various functions are referred to as AD variables or _pyramids_ since, as will be seen, they have a hyper-pyramidal structure. Generally the first entry in the array will be the value of the function about some expansion point, and the remaining entries will be the higher-order Taylor coefficients about the expansion point and truncated beyond some specified order. Such truncated Taylor expansions are also commonly called _jets_ . In our application elements in these arrays will be addressed and manipulated with the aid of scalar indices associated with look-up tables generated at run time. We have also replaced the original APL implementation of Neidinger with a code written in the language of _Mathematica_ (Version 6, or 7) [8]. Where necessary, for those unfamiliar with the details of _Mathematica_, we will explain the consequences of various _Mathematica_ commands. The inputs to the code are the right sides (RS) of (1.1), or (2.1). Other input parameters are the number of variables _m_, the desired order of the Taylor map _p_, and the initial conditions ( _za_ <sup>_d_</sup> <sup>)</sup> <sup>_i_</sup> <sup>for</sup> <sup>the</sup> <sup>design-solution</sup> <sup>equation</sup> <sup>(2.3).</sup> Various AD tools for describing and manipulating pyramids are outlined in Section 7.1. There we show how pyramid operations are encoded in the case of polynomial RS, as needed for the Duffing equation. For brevity, we omit the cases of rational, fractional power, and transcendental RS. These cases can also be handled using various methods based on functional identities and known Taylor coefficients, or the differential equations that such functions obey along with certain recursive relations [7]. In Section 7.2, based on the work of Section (7.1), we in effect obtain and integrate numerically the set of differential equations (3.6) in pyramid form, i.e. valid for any map order and any number of variables. Section 7.3 treats the specific case of the Duffing equation. A final Section 7.4 describes in more detail the relation between integrating equations for pyramids and the complete variational equations. 7.1 AD tools This section describes how arithmetic expressions representing _fa_ ( _z_ _, t_ ), the right sides of (1.1) where _z_ denotes the dependent variables, are replaced with expressions for arrays (pyramids) of Taylor coefficients. These pyramids in turn constitute the input to our code. Such an ad-hoc replacement, according to the problem at hand, as opposed to operator overloading where the kind of operation depends on the type of its argument, is also the approach taken in [7,9,10]. 9Some authors refer to AD as _truncated_ _power_ _series_ _algebra_ (TPSA) since AD algorithms arise from manipulating multivariable truncated power series. Other authors refer to AD as _Differential_ _Algebra_ (DA). 45 Let _u, v, w_ be general arithmetic expressions, i.e. scalar-valued functions of _z_ . They contain various arithmetic operations such as addition, multiplication ( _∗_ ), and raising to a power ( _∧_ ). (They may also entail the computation of various transcendental functions such as the sine function, etc. However, as stated earlier, for simplicity we will omit these cases.) The arguments of these operations may be a constant, a single variable or multiple variables _za_, or even some other expression. The idea of AD is to redefine the arithmetic operations in such a way (see Definition 1), that all functions _u, v, w_ can be consistently replaced with the arrays of coefficients of their Taylor expansions. For example, by redefining the usual product of numbers ( _∗_ ) and introducing the pyramid operation `PROD`, _u_ _∗_ _v_ is replaced with `PROD[U,V]` . We use upper typewriter font for pyramids ( `U,V,...` ) and for operations on pyramids ( `PROD,` `POW,` `...` ). Everywhere, equalities written in typewriter fonts have equivalent _Mathematica_ expressions. That is, they have associated realizations in _Mathematica_ and directly correspond to various operations and commands in _Mathematica_ . In effect, our code operates entirely on pyramids. However, as we will see, any pyramid expression contains, as its first entry, its usual arithmetic counterpart. We begin with a description of our method of monomial labeling. In brief, we list all monomials in a polynomial in some sequence, and label them by where they occur in the list. Next follow Definition 1 and the recipes for encoding operations on pyramids. Subsequently, by using Definition 2, which simply states the rule by which an arithmetic expressions is replaced with its pyramid counterpart, we show how a general expression can be encoded by using only the pyramid of a constant and of a single variable. 7.1.1 Labeling Scheme A monomial _G_ _j_ ( _z_ ) in _m_ variables is of the form _G_ _j_ ( _z_ ) = ( _z_ 1) <sup>_j_</sup> <sup>1</sup> ( _z_ 2) <sup>_j_</sup> <sup>2</sup> _· · ·_ ( _zm_ ) <sup>_jm_</sup> _._ (7.1) Here we have introduced an exponent vector _j_ by the rule _j_ = ( _j_ 1 _, j_ 2 _, · · · jm_ ) _._ (7.2) Evidently _j_ is an _m_ -tuple of non-negative integers. The degree of _G_ _j_ ( _z_ ), denoted by _|_ _j_ _|_, is given by the sum of exponents, _|_ _j_ _|_ = _j_ 1 + _j_ 2 + _· · ·_ + _jm._ (7.3) The set of all exponents for monomials in _m_ variables with degree less than or equal to _p_ will be denoted by Γ <sup>_p_</sup> _m_ <sup>,</sup> Γ <sup>_p_</sup> _m_ <sup>=</sup> <sup>_{_</sup> <sup>_j_</sup> <sup>_| |_</sup> <sup>_j_</sup> <sup>_| ≤_</sup> <sup>_p}._</sup> (7.4) 46 It can be shown that this set has _L_ ( _m, p_ ) entries with _L_ ( _m, p_ ) given given by a binomial coefficient, _L_ ( _m, p_ ) = - _p_ + _m_ _._ (7.5) _p_ In [6] this quantity is called _S_ 0( _m, p_ ). Assuming that _m_ and _p_ are fixed input variables, we will often write Γ and _L_ . With this notation, a Taylor series expansion (about the origin) of a scalar-valued function _u_ of _m_ variables _z_ = ( _z_ 1 _, z_ 2 _, . . . zm_ ), truncated beyond terms of degree _p_, can be written in the form `U` ( _j_ ) _G_ _j_ ( _z_ ) _._ (7.6) _u_ ( _z_ ) = _j_ _∈_ Γ <sup>_p_</sup> _m_ Here, for now, `U` simply denotes an array of numerical coefficients. When employed in code that has symbolic manipulation capabilities, each `U` ( _j_ ) may also be a symbolic quantity. To proceed, what is needed is some way of listing monomials systematically. With such a list, as already mentioned, we may assign a label _r_ to each monomial based on where it appears in the list. A summary of labeling methods, and an analysis of storage requirements, may be found in [6,9]. Here we describe one of them that is particularly useful for our purposes. The first step is to _order_ the monomials or, equivalently, the exponent vectors. One possibility is _lexicographic_ ( _lex_ ) order. Consider two exponent vectors _j_ and _k_ . Let _j_ _−_ _k_ be the vector whose entries are obtained by component-wise subtraction, _j_ _−_ _k_ = ( _j_ 1 _−_ _k_ 1 _, j_ 2 _−_ _k_ 2 _, · · · jm −_ _km_ ) _._ (7.7) We say that the exponent vector _j_ is lexicographically greater than the exponent vector _k_, and write _j_ _>_ lex _k_, if the _left-most_ _nonzero_ entry in _j_ _−_ _k_ is _positive_ . Thus, for example in the case of monomials in three variables ( _z_ 1 _, z_ 2 _, z_ 3) with exponents ( _j_ 1 _, j_ 2 _, j_ 3), we have the ordering (1 _,_ 0 _,_ 0) _>_ lex (0 _,_ 1 _,_ 0) _>_ lex (0 _,_ 0 _,_ 1) (7.8) and (4 _,_ 2 _,_ 1) _>_ lex (4 _,_ 2 _,_ 0) _>_ lex (2 _,_ 5 _,_ 1) _._ (7.9) For our purposes we have found it convenient to label the monomials in such a way that monomials of a given degree _D_ = _|_ _j_ _|_ occur together. One possibility is to employ _graded_ lexicographic ( _glex_ ) ordering. If _j_ and _k_ are two exponent vectors, we say that _j_ _>_ glex _k_ if either _|_ _j_ _| > |_ _k_ _|_, or _|_ _j_ _|_ = _|_ _k_ _|_ and _j_ _>_ lex _k_ . Table 4 shows a list of monomials in three variables. As one goes down the list, first the monomial of degree _D_ = 0 appears, then the monomials of degree _D_ = 1, etc. Within each group of monomials of fixed degree the individual monomials appear in descending lex order. Note that Table 4 is similar to Table 3 except that it begins with the monomial of degree 0. 47 Table 4: A labeling scheme for monomials in three variables. _<u>r</u>_ _<u>j</u>_ <u>1</u> _<u>j</u>_ <u>2</u> _<u>j</u>_ <u>3</u> _<u>D</u>_ 1 0 0 0 0 2 1 0 0 1 3 0 1 0 1 4 0 0 1 1 5 2 0 0 2 6 1 1 0 2 7 1 0 1 2 8 0 2 0 2 9 0 1 1 2 10 0 0 2 2 11 3 0 0 3 12 2 1 0 3 13 2 0 1 3 14 1 2 0 3 15 1 1 1 3 16 1 0 2 3 17 0 3 0 3 18 0 2 1 3 19 0 1 2 3 20 0 0 3 3 _._ _._ _._ _._ _._ _._ _._ _._ _._ _._ _._ _._ _._ _._ _._ 28 1 2 1 4 _._ _._ _._ _._ _._ _._ _._ _._ _._ _._ _._ _._ _._ _._ _._ We give the name _modified_ _glex_ _sequencing_ to a monomial listing of the kind shown in Table 4. This is the labeling scheme we will use. Other possible listings include ascending true glex order in which monomials appear in ascending lex order within each group of degree _D_, and lex order for the whole monomial list as in [7]. With the aid of the scalar index _r_ the relation (7.6) can be rewritten in the form _u_ ( _z_ ) = _L_ ( _m,p_ ) _r_ =1 48 `U` ( _r_ ) _Gr_ ( _z_ ) _,_ (7.10) because (by construction and with fixed _m_ ) for each positive integer _r_ there is a unique exponent _j_ ( _r_ ), and for each _j_ there is a unique _r_ . Here `U` may be viewed as a vector with entries `U` ( `r` ), and _Gr_ ( _z_ ) denotes _G_ _j_ ( _r_ )( _z_ ). Consider, in an _m_ -dimensional space, the points defined by the vectors _j_ _∈_ Γ <sup>_p_</sup> _m_ <sup>.</sup> <sup>See</sup> (7.4). Figure 22 displays them in the case _m_ = 3 and _p_ = 4. Evidently they form a grid that lies on the surface and interior of what can be viewed as an _m_ -dimensional _pyramid_ in _m_ -dimensional space. At each grid point there is an associated coefficient `U` ( `r` ). Because of its association with this pyramidal structure, we will refer to the entire set of coefficients in (7.6) or (7.10) as the _pyramid_ `U` of _u_ ( _z_ ). 4 3 _j_ 22 1 0 _j_ 2 4 3 _j_ 3 2 1 0 4 3 2 1 0 _j_ 1 Figure 22: A grid of points representing the set Γ <sup>4</sup> 3 <sup>.</sup> <sup>For</sup> <sup>future</sup> <sup>reference</sup> <sup>a</sup> <sup>subset</sup> <sup>of</sup> <sup>Γ4</sup> 3 <sup>,</sup> called a _box_, is shown in blue. 7.1.2 Implementation of Labeling Scheme We have seen that use of modified glex sequencing, for any specified number of variables _m_, provides a labeling rule such that for each positive integer _r_ there is a unique exponent _j_ ( _r_ ), and for each _j_ there is a unique _r_ . That is, there is a invertible function _r_ ( _j_ ) that provides a 1-to-1 correspondence between the positive integers and the exponent vectors _j_ . To proceed further, it would be useful to have this function and its inverse in more explicit form. First, we will learn that there is a formula for _r_ ( _j_ ), which we will call the _Giorgilli_ formula [6]. For any specified _m_ the exponent vectors _j_ take the form (7.2) where all the entries _ji_ are positive integers or zero. Begin by defining the integers _n_ ( _ℓ_ ; _j_ 1 _, · · ·_ _, jm_ ) = _ℓ_ _−_ 1 + 49 _ℓ−_ 1 _k_ =0 _jm−k_ (7.11) for _ℓ_ _∈{_ 1 _,_ 2 _, · · · m}_ . Then, to the general monomial _G_ _j_ ( _z_ ) or exponent vector _j_, assign the label Binomial [ _n_ ( _ℓ_ ; _j_ 1 _, · · · jm_ ) _, ℓ_ ] _._ (7.12) _r_ ( _j_ ) = _r_ ( _j_ 1 _, · · · jm_ ) = 1 + Here the quantities _m_ _ℓ_ =1 - _<u>n</u>_ <u>!</u> _,_ 0 _≤_ _ℓ_ _≤_ _n_ _ℓ_ !( _n−ℓ_ )! 0 _,_ otherwise Binomial [ _n, ℓ_ ] = - _n_ _ℓ_ = (7.13) denote the usual binomial coefficients. It can be shown that this formula reproduces the results of modified glex sequencing [6]. Below is simple _Mathematica_ code that implements the Giorgilli formula in the case of three variables, and evaluates it for selected exponents _j_ . Observe that these evaluations agree with results in Table 4. `Gfor` [ `j1` _~~,~~_ `j2` _~~,~~_ `j3` ] := ( `s1` = `j3` ; `s2` = `1` + `j3` + `j2` ; `s3` = `2` + `j3` + `j2` + `j1` ; `t1` = `Binomial` [ `s1` _,_ `1` ]; `t2` = `Binomial` [ `s2` _,_ `2` ]; `t3` = `Binomial` [ `s3` _,_ `3` ]; `r` = `1` + `t1` + `t2` + `t3` ; `r` ) `Gfor` [ `0` _,_ `0` _,_ `0` ] `Gfor` [ `1` _,_ `0` _,_ `0` ] `Gfor` [ `2` _,_ `0` _,_ `1` ] `Gfor` [ `1` _,_ `2` _,_ `1` ] 1 2 13 28 (7.14) Second, for the inverse relation, we have found it convenient to introduce a rectangular matrix associated with the set Γ <sup>_p_</sup> _m_ <sup>.</sup> <sup>By</sup> <sup>abuse</sup> <sup>of</sup> <sup>notation,</sup> <sup>it</sup> <sup>will</sup> <sup>also</sup> <sup>be</sup> <sup>called</sup> <sup>Γ.</sup> <sup>It</sup> <sup>has</sup> _L_ ( _m, p_ ) rows and _m_ columns with entries Γ _r,a_ = _ja_ ( _r_ ) _._ (7.15) For example, looking a Table 4, we see (when _m_ = 3) that Γ1 _,_ 1 = 0 and Γ17 _,_ 2 = 3. Indeed, if the first and last columns of Table 4 are removed, what remains (when _m_ = 3) is the matrix Γ _r,a_ . In the language of [6], Γ is a _look up table_ that, given _r_, produces the associated _j_ . In our _Mathematica_ implementation Γ is the matrix `GAMMA` with elements `GAMMA` [[ `r` _,_ `a` ]]. 50 The matrix `GAMMA` is constructed using the _Mathematica_ code illustrated below, `Needs` [ `"Combinatorica` ‘ `"` ]; `m` = `3` ; `p` = `4` ; `GAMMA` = `Compositions` [ `0` _,_ `m` ]; `Do` [ `GAMMA` = `Join` [ `GAMMA` _,_ `Reverse` [ `Compositions` [ `d` _,_ `m` ]]] _, {_ `d` _,_ `1` _,_ `p` _,_ `1` _}_ ]; `L` = `Length` [ `GAMMA` ] `r` = `17` ; `a` = `2` ; `GAMMA` [[ `r` ]] `GAMMA` [[ `r` _,_ `a` ]] 35 _{_ 0 _,_ 3 _,_ 0 _}_ 3 (7.16) It employs the _Mathematica_ commands `Compositions`, `Reverse`, and `Join` . We will first describe the ingredients of this code and illustrate the function of each: _•_ The command `Needs` [ `"Combinatorica` ‘ `"` ]; loads a combinatorial package. _•_ The command `Compositions` [ `i` _,_ `m` ] produces, as a list of arrays (a rectangular array), all _compositions_ (under addition) of the integer _i_ into _m_ integer parts. Furthermore, the compositions appear in _ascending_ lex order. For example, the command `Compositions` [ `0` _,_ `3` ] produces the single row 0 0 0 (7.17) As a second example, the command `Compositions` [ `1` _,_ `3` ] produces the rectangular array 0 0 1 0 1 0 1 0 0 (7.18) As a third example, the command `Compositions` [ `2` _,_ `3` ] produces the rectangular array 0 0 2 0 1 1 0 2 0 1 0 1 1 1 0 2 0 0 (7.19) 51 _•_ The command `Reverse` acts on the list of arrays, and reverses the order of the list while leaving the arrays intact. For example, the nested sequence of commands `Reverse` [ `Compositions` [ `1` _,_ `3` ]] produces the rectangular array 1 0 0 0 1 0 0 0 1 (7.20) As a second example, the nested sequence of commands `Reverse` [ `Compositions` [ `2` _,_ `3` ]] produces the rectangular array 2 0 0 1 1 0 1 0 1 0 2 0 0 1 1 0 0 2 (7.21) Now the compositions appear in _descending_ lex order. _•_ Look, for example, at Table 4. We see that the exponents _ja_ for the _r_ = 1 entry are those appearing in (7.17). Next, exponents for the _r_ = 2 through _r_ = 4 entries are those appearing in (7.20). Following them, the exponents for the _r_ = 5 through _r_ = 10 entries, are those appearing in (7.21), etc. Evidently, to produce the exponent list of Table 4, what we must do is successively _join_ various lists. That is what the _Mathematica_ command `Join` can accomplish. We are now ready to describe how `GAMMA` is constructed: _•_ The second line in (7.16) sets the values of _m_ and _p_ . They are assigned the values _m_ = 3 and _p_ = 4 for this example, which will construct `GAMMA` for the case of Table 4. The third line in (7.16) initially sets `GAMMA` to a row of _m_ zeroes. The fourth line is a `Do` loop that successively redefines `GAMMA` by generating and joining to it successive descending lex order compositions. The net result is the exponent list of Table 4. _•_ The quantity _L_ = _L_ ( _m, p_ ) is obtained by applying the _Mathematica_ command `Length` to the the rectangular array `GAMMA` . _•_ The last 6 lines of (7.16) illustrate that _L_ is computed properly and that the command `GAMMA` [[ `r` _,_ `a` ]] accesses the array `GAMMA` in the desired fashion. Specifically, in this example, we find from (7.5) that _L_ (3 _,_ 4) = 35 in agreement with the _Mathe-_ _matica_ output for _L_ . Moreover, `GAMMA` [[ `17` ]] produces the exponent array _{_ 0 _,_ 3 _,_ 0 _}_, in agreement with the _r_ = 17 entry in Table 4, and `GAMMA` [[ `17` _,_ `2` ]] produces Γ17 _,_ 2 = 3, as expected. 52 7.1.3 Pyramid Operations: Addition and Multiplication Here we _derive_ the pyramid operations in terms of _j_ -vectors by using the ordering previously described, and provide scripts to _encode_ them in the _r_ -representation (7.10). Definition 1 _Suppose that w_ ( _z_ ) _arises from carrying out various arithmetic operations on_ _u_ ( _z_ ) _and_ _v_ ( _z_ ) _,_ _and_ _the_ _pyramids_ `U` _and_ `V` _are_ _known._ _The_ _corresponding_ _pyramid_ _operation_ _on_ `U` _and_ `V` _is_ _so_ _defined_ _that_ _it_ _yields_ _the_ _pyramid_ `W` _of_ _w_ ( _z_ ) _._ Here we assume that _u, v, w_ are polynomials such as (7.6). We begin with the operations of scalar multiplication and addition, which are easy to implement. If _w_ ( _z_ ) = _c u_ ( _z_ ) _,_ (7.22) then `W` ( _r_ ) = _c_ `U` ( _r_ ) _,_ (7.23) and we write `W` = _c_ `U` _._ (7.24) If _w_ ( _z_ ) = _u_ ( _z_ ) + _v_ ( _z_ ) _,_ (7.25) then `W` ( _r_ ) = `U` ( _r_ ) + `V` ( _r_ ) _,_ (7.26) and we write `W` = `U` + `V` _._ (7.27) In both cases all operations are performed coordinate-wise (as for vectors). Implementation of scalar multiplication and addition is easy in _Mathematica_ because, as the example below illustrates, it has built in vector routines. There we define two vectors, multiply them by scalars, and add the resulting vectors. `Unprotect` [ `V` ]; `U` = _{_ `1` _,_ `2` _,_ `3` _}_ ; `V` = _{_ `4` _,_ `5` _,_ `6` _}_ ; `W` = _._ `1U` + _._ `2V` _{._ 9 _,_ 1 _._ 2 _,_ 1 _._ 5 _}_ (7.28) Since `V` is a “protected” symbol in the _Mathematica_ language, and, for purposes of illustration, we wish to use it as an ordinary vector variable, it must first be unprotected as in line 1 above. The last line shows that the _Mathematica_ output is indeed the desired result. The operation of polynomial multiplication is more involved. Now we have the relation _w_ ( _z_ ) = _u_ ( _z_ ) _∗_ _v_ ( _z_ ) _,_ (7.29) 53 and we want to encode `W` = `PROD` [ `U` _,_ `V` ] _._ (7.30) Let us write _u_ ( _x_ ) in the form (7.6), but with a change of dummy indices, so that it has the representation `U` ( _i_ ) _G_ _i_ ( _z_ ) _._ (7.31) `V` ( _j_ ) _G_ _j_ ( _z_ ) _._ (7.32) Similarly, write _v_ ( _z_ ) in the form _u_ ( _z_ ) = _v_ ( _z_ ) = _i_ _∈_ Γ <sup>_p_</sup> _m_ _j_ _∈_ Γ <sup>_p_</sup> _m_ Then, according to Leibniz, there is the result _j_ _∈_ Γ <sup>_p_</sup> _m_ _u_ ( _z_ ) _∗_ _v_ ( _z_ ) = From (7.1) we observe that _i_ _∈_ Γ <sup>_p_</sup> _m_ `U` ( _i_ ) `V` ( _j_ ) _G_ _i_ ( _z_ ) _∗_ _G_ _j_ ( _z_ ) _._ (7.33) _G_ _i_ ( _z_ ) _∗_ _G_ _j_ ( _z_ ) = ( _z_ 1) <sup>_i_</sup> <sup>1</sup> ( _z_ 2) <sup>_i_</sup> <sup>2</sup> _· · ·_ ( _zm_ ) <sup>_im_</sup> _∗_ ( _z_ 1) <sup>_j_</sup> <sup>1</sup> ( _z_ 2) <sup>_j_</sup> <sup>2</sup> _· · ·_ ( _zm_ ) <sup>_jm_</sup> = ( _z_ 1) <sup>_i_</sup> <sup>1+</sup> <sup>_j_</sup> <sup>1</sup> ( _z_ 2) <sup>_i_</sup> <sup>2+</sup> <sup>_j_</sup> <sup>2</sup> _· · ·_ ( _zm_ ) <sup>_im_</sup> <sup>+</sup> <sup>_jm_</sup> = _G_ _i_ + _j_ ( _z_ ) _._ (7.34) Therefore, we may also write _j_ _∈_ Γ <sup>_p_</sup> _m_ _u_ ( _z_ ) _∗_ _v_ ( _z_ ) = _i_ _∈_ Γ <sup>_p_</sup> _m_ `U` ( _i_ ) `V` ( _j_ ) _G_ _i_ + _j_ ( _z_ ) _._ (7.35) Now we see that there are two complications. First, there may be terms on the right side of (7.35) whose degree is higher than _p_ and therefore need not be computed. Second, there are generally many terms on the right side of (7.35) that contribute to a given monomial term in _w_ ( _z_ ) = _u_ ( _z_ ) _∗_ _v_ ( _z_ ). Suppose we write _w_ ( _z_ ) = _k_ `W` ( _k_ ) _G_ _k_ ( _z_ ) _._ (7.36) Upon comparing (7.35) and (7.36) we conclude that _j_ _≤_ _k_ `W` ( _k_ ) = `U` ( _i_ ) `V` ( _j_ ) = _i_ + _j_ = _k_ `U` ( _k_ _−_ _j_ ) `V` ( _j_ ) _._ (7.37) Here, by _j_ _≤_ _k_, we mean that the sum ranges over all _j_ such that _ja_ _≤_ _ka_ for all _a ∈_ [1 _, m_ ]. That is, _j_ _≤_ _k_ _⇔_ _ja_ _≤_ _ka_ for all _a ∈_ [1 _, m_ ] _._ (7.38) 54 Evidently, to implement the relation (7.37) in terms of _r_ labels, we need to describe the exponent relation _j_ _≤_ _k_ in terms of _r_ labels. Suppose _k_ is some exponent vector with label _r_ ( _k_ ) as, for example, in Table 4. Introduce the notation _k_ = _r_ ( _k_ ) _._ (7.39) This notation may be somewhat confusing because _k_ is not the norm of the vector _k_, but rather the label associated with _k_ . However, this notation is very convenient. Now, given a label _k_, we can find _k_ . Indeed, from (7.15), we have the result _ka_ = Γ _k,a._ (7.40) Having found _k_, we define a set of exponents _Bk_ by the rule _Bk_ = _{_ _j_ _|_ _j_ _≤_ _k_ _}._ (7.41) This set of exponents is called the _k_ <sup>th</sup> _box_ . For example (when _m_ = 3), suppose _k_ = 28. Then we see from Table 4 that _k_ = (1 _,_ 2 _,_ 1). Table 5 lists, in modified glex order, all the vectors in _B_ 28, i.e. all vectors _j_ such that _j_ _≤_ (1 _,_ 2 _,_ 1). These are the vectors shown in blue in Figure 22. Finally, with this notation, we can rewrite (7.37) in the form `W` ( _k_ ) = _j_ _∈Bk_ `U` ( _k_ _−_ _j_ ) `V` ( _j_ ) _._ (7.42) Table 5: The vectors in _B_ 28 = _{_ _j_ _|_ _j_ _≤_ (1 _,_ 2 _,_ 1) _}_ . _<u>r</u>_ _<u>j</u>_ <u>1</u> _<u>j</u>_ <u>2</u> _<u>j</u>_ <u>3</u> _<u>D</u>_ 1 0 0 0 0 2 1 0 0 1 3 0 1 0 1 4 0 0 1 1 6 1 1 0 2 7 1 0 1 2 8 0 2 0 2 9 0 1 1 2 14 1 2 0 3 15 1 1 1 3 18 0 2 1 3 28 1 2 1 4 What can be said about the vectors ( _k_ _−_ _j_ ) as _j_ ranges over _Bℓ_ ? Table 6 lists, for example, the vectors _j_ _∈_ _B_ 28 and the associated vectors _i_ with _i_ = ( _k_ _−_ _j_ ). Also listed are 55 the labels _r_ ( _j_ ) and _r_ ( _i_ ). Compare columns 2,3,4, which specify the _j_ _∈_ _B_ 28, with columns 5,6,7, which specify the associated _i_ vectors. We see that every vector that appears in the _j_ list also occurs somewhere in the _i_ list, and vice versa. This to be expected because the operation of multiplication is commutative: we can also write (7.37) in the form `W` ( _k_ ) = _j_ _∈Bk_ `U` ( _j_ ) `V` ( _k_ _−_ _j_ ) _._ (7.43) We also observe the more remarkable feature that the two lists are _reverses_ of each other: running down the _j_ list gives the same vectors as running up the _i_ list, and vice versa. This feature is a consequence of our ordering procedure. As indicated earlier, what we really want is a version of (7.37) that involves labels instead of exponent vectors. Looking at Table 6, we see that this is easily done. We may equally well think of _Bk_ as containing a collection of labels _r_ ( _j_ ), and we may introduce a _reversed_ array _Brevk_ of _complementary_ labels _r_ <sup>_c_</sup> ( _j_ ) where _r_ <sup>_c_</sup> ( _j_ ) = _r_ ( _i_ ) _._ (7.44) That is, for example, _B_ 28 would consist of the first column of Table 6 and _Brev_ 28 would consist of the last column of Table 6. Finally, we have already introduced _k_ as being the label associated with _k_ . We these understandings in mind, we may rewrite (7.37) in the label form _r∈Bk_ `U` ( _r_ ) `V` ( _r_ <sup>_c_</sup> ) _._ (7.45) `W` ( _k_ ) = _r∈Bk_ `U` ( _r_ <sup>_c_</sup> ) `V` ( _r_ ) = This is the rule `W` = `PROD` [ `U` _,_ `V` ] for multiplying pyramids. In the language of [6], _Bk_ and _Brevk_ are _look_ _back_ _tables_ that, given a _k_, look back to find all monomial pairs with labels _r, r_ <sup>_c_</sup> which produce, when multiplied, the monomial with label _k_ . 7.1.4 Implementation of Multiplication The code shown below in (7.46) illustrates how _Bk_ and _Brevk_ are constructed using _Math-_ _ematica_ . `JSK` [ `list` _,_ `K` ~~]~~ := `Position` [ `Apply` [ `And` _,_ `Thread` [ `#1<=#2&[#,K]]]&` `/@ list` _,_ `True` ] _//_ `Flatten` ; `B` = `Table` [ `JSK` [ `GAMMA` _,_ `GAMMA` [[ `k` ]]] _, {_ `k` _,_ `1` _,_ `L` _}_ ]; `Brev` = `Reverse /@ B` ; (7.46) As before, some explanation is required. The main tasks are to implement the _j_ _≤_ _k_ operation (7.38) and then to employ this implementation. We will begin by implementing the _j_ _≤_ _k_ operation. Several steps are required, and each of them is described briefly below: 56 Table 6: The vectors _j_ and _i_ = ( _k_ _−_ _j_ ) for _j_ _∈_ _B_ 28 and _ka_ = Γ28 _,a_ . _<u>r</u>_ <u>(</u> _<u>j</u>_ <u>)</u> _<u>j</u>_ <u>1</u> _<u>j</u>_ <u>2</u> _<u>j</u>_ <u>3</u> _<u>i</u>_ <u>1</u> _<u>i</u>_ <u>2</u> _<u>i</u>_ <u>3</u> _<u>r</u>_ <u>(</u> _<u>i</u>_ <u>)</u> 1 0 0 0 1 2 1 28 2 1 0 0 0 2 1 18 3 0 1 0 1 1 1 15 4 0 0 1 1 2 0 14 6 1 1 0 0 1 1 9 7 1 0 1 0 2 0 8 8 0 2 0 1 0 1 7 9 0 1 1 1 1 0 6 14 1 2 0 0 0 1 4 15 1 1 1 0 1 0 3 18 0 2 1 1 0 0 2 28 1 2 1 0 0 0 1 _•_ When _Mathematica_ is presented with a statement of the form _j_ _<_ = _k_, with _j_ and _k_ being _integers_, it replies with the answer True or the answer False. (Here _j_ _<_ = _k_ denotes _j_ _≤_ _k_ .) Two sample _Mathematica_ runs are shown below: ``` 3 <= 4 ``` True (7.47) ``` 5 <= 4 ``` False (7.48) _•_ A _Mathematica_ function can be constructed that does the same thing. It takes the form `#1 <= #2 &` [ `j` _,_ `k` ] (7.49) Here the symbols `#1` and `#2` set up two _slots_ and the symbol `&` means the operation to its left is to be regarded as a function and is to be applied to the arguments to its right by inserting the arguments into the slots. Below is a short _Mathematica_ run illustrating this feature. `j` = `3` ; `k` = `4` ; `#1 <= #2 &` [ `j` _,_ `k` ] True (7.50) Observe that the output of this run agrees with that of (7.47). 57 _•_ The same operation can be performed on pairs of _arrays_ (rather than pairs of numbers) in such a way that corresponding entries from each array are compared, with the output then being an array of True and False answers. This is done using the _Mathematica_ command `Thread` . Below is a short _Mathematica_ run illustrating this feature. `j` = _{_ `1` _,_ `2` _,_ `3` _}_ ; `k` = _{_ `4` _,_ `5` _,_ `1` _}_ ; `Thread` [ `#1 <= #2 &` [ `j` _,_ `k` ]] _{_ True _,_ True _,_ False _}_ (7.51) Note that the first two answers in the output array are True because the statements 1 _≤_ 4 and 2 _≤_ 5 are true. The last answer in the output array is False because the statement 3 _≤_ 1 is false. _•_ Suppose, now, that we are given two arrays _j_ and _k_ and we want to determine if _j_ _≤_ _k_ in the sense of (7.38). This can be done by _applying_ the logical `And` operation (using the _Mathematica_ command `Apply` ) to the True/False output array described above. Below is a short _Mathematica_ run illustrating this feature. `j` = _{_ `1` _,_ `2` _,_ `3` _}_ ; `k` = _{_ `4` _,_ `5` _,_ `1` _}_ ; `Apply` [ `And` _,_ `Thread` [ `#1 <= #2 &` [ `j` _,_ `k` ]]] False (7.52) Note that the output answer is False because at least one of the entries in the output array in (7.51) is False. The output answer would be True if, and only if, all entries in the output array in (7.51) were True. _•_ Now that the _j_ _≤_ _k_ operation has been defined for two exponent arrays, we would like to construct a related operator/function, to be called `JSK` . (Here the letter `S` stands for _smaller_ _than_ _or_ _equal_ _to_ .) It will depend on the exponent array _k_, and its task will be to search a list of exponent arrays to find those _j_ within it that satisfy _j_ _≤_ _k_ . The first step in this direction is to slightly modify the function appearing in (7.52). Below is a short _Mathematica_ run that specifies this modified function and illustrates that it has the same effect. `j` = _{_ `1` _,_ `2` _,_ `3` _}_ ; `k` = _{_ `4` _,_ `5` _,_ `1` _}_ ; `Apply` [ `And` _,_ `Thread` [ `#1 <= #2 &` [ `#` _,_ `k` ]]] `&` [ _j_ ] False (7.53) Comparison of the functions in (7.52) and (7.53) reveals that what has been done is to replace the argument _j_ in (7.52) by a slot `#`, then follow the function by the character `&`, and finally add the symbols [ `j` ]. What this modification does is to redefine the function in such a way that it acts on what follows the second `&` . 58 _•_ The next step is to extend the function appearing in (7.53) so that it acts on a list of exponent arrays. To do this, we replace the symbols [ `j` ] by the symbols `/@ list` . The symbols `/@` indicate that what stands to their left is to act on what stands to their right, and what stands to their right is a list of exponent arrays. The result of this action will be a list of True/False results with one result for each exponent array in the list. Below is a short _Mathematica_ run that illustrates how the further modified function acts on lists. `k` = _{_ `4` _,_ `5` _,_ `1` _}_ ; `ja` = _{_ `3` _,_ `4` _,_ `1` _}_ ; `jb` = _{_ `1` _,_ `2` _,_ `3` _}_ ; `jc` = _{_ `1` _,_ `2` _,_ `1` _}_ ; `list` = _{_ `ja` _,_ `jb` _,_ `jc` _}_ ; `Apply` [ `And` _,_ `Thread` [ `#1 <= #2 &` [ `#` _,_ `k` ]]] `& /@ list` _{_ True _,_ False _,_ True _}_ (7.54) Observe that the output answer list is _{_ True _,_ False _,_ True _}_ because _{_ 3 _,_ 4 _,_ 1 _} ≤{_ 4 _,_ 5 _,_ 1 _}_ is True, _{_ 1 _,_ 2 _,_ 3 _} ≤{_ 4 _,_ 5 _,_ 1 _}_ is False, and _{_ 1 _,_ 2 _,_ 1 _} ≤{_ 4 _,_ 5 _,_ 1 _}_ is True. _•_ What we would really like to know is where the True items are in the list, because that will tell us where the _j_ that satisfy _j_ _≤_ _k_ reside. This can be accomplished by use of the _Mathematica_ command `Position` in conjunction with the result True. Below is a short _Mathematica_ run that illustrates how this works. `k` = _{_ `4` _,_ `5` _,_ `1` _}_ ; `ja` = _{_ `3` _,_ `4` _,_ `1` _}_ ; `jb` = _{_ `1` _,_ `2` _,_ `3` _}_ ; `jc` = _{_ `1` _,_ `2` _,_ `1` _}_ ; `list` = _{_ `ja` _,_ `jb` _,_ `jc` _}_ ; `Position` [ `Apply` [ `And` _,_ `Thread` [ `#1 <= #2 &` [ `#` _,_ `k` ]]] `& /@ list` _,_ `True` ] _{{_ 1 _},_ _{_ 3 _}}_ (7.55) Note that the output is an array of positions in the list for which _j_ _≤_ _k_ . There is, however, still one defect. Namely, the output array is an array of single-element subarrays, and we would like it to be simply an array of location numbers. This defect can be remedied by appending the _Mathematica_ command `Flatten`, preceded by `//`, to the instruction string in (7.55). The short _Mathematica_ run below illustrates this modification. `k` = _{_ `4` _,_ `5` _,_ `1` _}_ ; `ja` = _{_ `3` _,_ `4` _,_ `1` _}_ ; `jb` = _{_ `1` _,_ `2` _,_ `3` _}_ ; `jc` = _{_ `1` _,_ `2` _,_ `1` _}_ ; `list` = _{_ `ja` _,_ `jb` _,_ `jc` _}_ ; `Position` [ `Apply` [ `And` _,_ `Thread` [ `#1 <= #2 &` [ `#` _,_ `k` ]]] `& /@ list` _,_ `True` ] `//Flatten` _{_ 1 _,_ 3 _}_ (7.56) Now the output is a simple array containing the positions in the list for which _j_ _≤_ _k_ . 59 _•_ The last step is to employ the ingredients in (7.56) to define the operator `JSK` [ `list` _,_ `k` ]. The short _Mathematica_ run below illustrates how this can be done. `k` = _{_ `4` _,_ `5` _,_ `1` _}_ ; `ja` = _{_ `3` _,_ `4` _,_ `1` _}_ ; `jb` = _{_ `1` _,_ `2` _,_ `3` _}_ ; `jc` = _{_ `1` _,_ `2` _,_ `1` _}_ ; `list` = _{_ `ja` _,_ `jb` _,_ `jc` _}_ ; `JSK` [ `list` _,_ `k` ~~]~~ := `Position` [ `Apply` [ `And` _,_ `Thread` [ `#1 <= #2 &` [ `#` _,_ `k` ]]] `& /@ list` _,_ `True` ] `//Flatten` ; `JSK` [ `list` _,_ `k` ] _{_ 1 _,_ 3 _}_ (7.57) Lines 4 and 5 above define the operator `JSK` [ `list` _,_ `k` ], line 6 invokes it, and line 7 displays its output, which agrees with the output of (7.56). _•_ With the operator `JSK` [ `list` _,_ `k` ] in hand, we are prepared to construct tables _B_ and _Brev_ that will contain the _Bk_ and the _Brevk_ . The short _Mathematica_ run below illustrates how this can be done. `B` = `Table` [ `JSK` [ `GAMMA` _,_ `GAMMA` [[ `k` ]]] _, {_ `k` _,_ `1` _,_ `L` _,_ `1` _}_ ]; `Brev` = `Reverse /@ B` ; `B` [[ `8` ]] `Brev` [[ `8` ]] `B` [[ `28` ]] `Brev` [[ `28` ]] _{_ 1 _,_ 3 _,_ 8 _}_ _{_ 8 _,_ 3 _,_ 1 _}_ _{_ 1 _,_ 2 _,_ 3 _,_ 4 _,_ 6 _,_ 7 _,_ 8 _,_ 9 _,_ 14 _,_ 15 _,_ 18 _,_ 28 _}_ _{_ 28 _,_ 18 _,_ 15 _,_ 14 _,_ 9 _,_ 8 _,_ 7 _,_ 6 _,_ 4 _,_ 3 _,_ 2 _,_ 1 _}_ (7.58) The first line employs the _Mathematica_ command `Table` in combination with an implied Do loop to produce a two-dimensional array `B` . Values of _k_ in the range [1 _, L_ ] are selected sequentially. For each _k_ value the associated exponent array _k_ ( _k_ ) = `GAMMA` [[ `k` ]] is obtained. The operator `JSK` then searches the full `GAMMA` array to find the list of _r_ values associated with the _j_ _≤_ _k_ . All these _r_ values are listed in a row. Thus, the array `B` consists of list of _L_ rows, of varying width. The rows are labeled by _k_ _∈_ [1 _, L_ ], and in each row are the _r_ values associated with the _j_ _≤_ _k_ . In the second line the _Mathematica_ command `Reverse` is applied to `B` to produce a second array called `Brev` . Its rows are the reverse of those in `B` . For example, as the _Mathematica_ 60 run illustrates, `B` [[ `8` ]], which is the 8 <sup>_th_</sup> row of `B`, contains the list _{_ 1 _,_ 3 _,_ 8 _}_, and `Brev` [[ `8` ]] contains the list _{_ 8 _,_ 3 _,_ 1 _}_ . Inspection of the _r_ = 8 monomial in Table 4, that with exponents _{_ 0 _,_ 2 _,_ 0 _}_, shows that it has the monomials with exponents _{_ 0,0,0 _}_, _{_ 0,1,0 _}_, and _{_ 0,2,0 _}_ as factors. And further inspection of Table 4 shows that the exponents of these factors have the _r_ values _{_ 1 _,_ 3 _,_ 8 _}_ . Similarly `B` [[ `28` ]], which is the 28 <sup>_th_</sup> row of _B_, contains the same entries that appear in the first column of Table 6. And `Brev` [[ `28` ]], which is the 28 <sup>_th_</sup> row of _Brev_, contains the same entries that appear in the last column of Table 6. Finally, we need to explain how the arrays _B_ and _Brev_ can be employed to carry out polynomial multiplication. This can be done using the _Mathematica_ dot product command: _•_ The exhibit below shows a simple _Mathematica_ run that illustrates the use of the dot product command. `Unprotect` [ `V` ]; `U` = _{._ `1` _, ._ `2` _, ._ `3` _, ._ `4` _, ._ `5` _, ._ `6` _, ._ `7` _, ._ `8` _}_ ; `V` = _{_ `1` _._ `1` _,_ `1` _._ `2` _,_ `1` _._ `3` _,_ `1` _._ `4` _,_ `1` _._ `5` _,_ `1` _._ `6` _,_ `1` _._ `7` _,_ `1` _._ `8` _}_ ; `U` _._ `V` `u` = _{_ `1` _,_ `3` _,_ `5` _}_ ; `v` = _{_ `6` _,_ `4` _,_ `2` _}_ ; `U` [[ `u` ]] `V` [[ `v` ]] `U` [[ `u` ]] _._ `V` [[ `v` ]] 5 _._ 64 _{._ 1 _, ._ 3 _, ._ 5 _}_ _{_ 1 _._ 6 _,_ 1 _._ 4 _,_ 1 _._ 2 _}_ 1 _._ 18 (7.59) As before, `V` must be unprotected. See line 1. The rest of the first part this run (lines 2 through 4) defines two vectors `U` and `V` and then computes their dot product. Note that if we multiply the entries in `U` and `V` pairwise and add, we get the result _._ 1 _×_ 1 _._ 1 + _._ 2 _×_ 1 _._ 2 + _· · ·_ + _._ 8 _×_ 1 _._ 8 = 5 _._ 64 _,_ which agrees with the _Mathematica_ result for `U` _·_ `V` . See line 10. The second part of this _Mathematica_ run, lines 5 through 9, illustrates a powerful feature of the _Mathematica_ language. Suppose, as illustrated, we define two arrays `u` and `v` of integers, and use these arrays as _arguments_ for the vectors by writing `U` [[ `u` ]] and `V` [[ `v` ]]. Then _Mathematica_ uses the integers in the two arrays `u` and `v` as labels 61 to select the corresponding entries in `U` and `V`, and from these entries it makes new corresponding vectors. In this example, the 1 <sup>_st_</sup>, 3 <sup>_rd_</sup>, and 5 <sup>_th_</sup> entries in `U` are _._ 1, _._ 3, and _._ 5. And the 6 <sup>_th_</sup>, 4 <sup>_th_</sup>, and 2 <sup>_nd_</sup> entries in `V` are 1 _._ 6, 1 _._ 4, and 1 _._ 2. Consequently, we find that `U` [[ `u` ]] = _{._ 1 _, ._ 3 _, ._ 5 _},_ `V` [[ `v` ]] = _{_ 1 _._ 6 _,_ 1 _._ 4 _,_ 1 _._ 2 _},_ in agreement with lines 11 and 12 of the _Mathematica_ results. Correspondingly, we expect that `U` [[ `u` ]] _·_ `V` [[ `v` ]] will have the value `U` [[ `u` ]] _·_ `V` [[ `v` ]] = _._ 1 _×_ 1 _._ 6 + _._ 3 _×_ 1 _._ 4 + _._ 5 _×_ 1 _._ 2 = 1 _._ 18 _,_ in agreement with the last line of the _Mathematica_ output. _•_ Now suppose, as an example, that we set _k_ = 8 and use `B` [[ `k` ]] and `Brev` [[ `k` ]] in place of the arrays `u` and `v` . The _Mathematica_ fragment below shows what happens when this is done. `k` = `8` ; `B` [[ `k` ]] `Brev` [[ `k` ]] `U` [[ `B` [[ `k` ]]]] `V` [[ `Brev` [[ `k` ]]]] `U` [[ `B` [[ `k` ]]]] _·_ `B` [[ `Brev` [[ `k` ]]]] _{_ 1 _,_ 3 _,_ 8 _}_ _{_ 8 _,_ 3 _,_ 1 _}_ _{._ 1 _, ._ 3 _, ._ 8 _}_ _{_ 1 _._ 8 _,_ 1 _._ 3 _,_ 1 _._ 1 _}_ 1 _._ 45 (7.60) From (7.58) we see that `B` [[ `8` ]] = _{_ 1 _,_ 3 _,_ 8 _}_ and `Brev` [[ `8` ]] = _{_ 8 _,_ 3 _,_ 1 _}_ in agreement with lines 7 and 8 of the _Mathematica_ output above. Also, the 1 <sup>_st_</sup>, 3 <sup>_rd_</sup>, and 8 <sup>_th_</sup> entries in `U` are .1, .3, and .8. And the 8 <sup>_th_</sup>, 3 <sup>_rd_</sup>, and 1 <sup>_st_</sup> entries in `V` are 1.8, 1.3, and 1.1. Therefore we expect the results `U` [[ `B` [[ `k` ]]]] = _{._ 1 _, ._ 3 _, ._ 8 _},_ `V` [[ `Brev` [[ `k` ]]]] = _{_ 1 _._ 8 _,_ 1 _._ 3 _,_ 1 _._ 1 _},_ `U` [[ `B` [[ `k` ]]]] _·_ `V` [[ `Brev` [[ `k` ]]]] = _._ 1 _×_ 1 _._ 8 + _._ 3 _×_ 1 _._ 3 + _._ 8 _×_ 1 _._ 1 = 1 _._ 45 _,_ in agreement with the last three lines of (7.60). 62 _•_ Finally, suppose we carry out the operation `U` [[ `B` [[ `k` ]]]] _·_ `V` [[ `Brev` [[ `k` ]]]] for all _k_ _∈_ [1 _, L_ ] and put the results together in a Table with entries labeled by _k_ . According to (7.45), the result will be the pyramid for the product of the two polynomials whose individual pyramids are `U` and `V` . The _Mathematica_ fragment below shows how this can be done to define a _product_ function, called `PROD`, that acts on general pyramids `U` and `V`, using the command Table with an implied Do loop over _k_ . `PROD` [ `U` _,_ `V` ~~]~~ := `Table` [ `U` [[ `B` [[ `k` ]]]] _·_ `V` [[ `Brev` [[ `k` ]]]] _, {_ `k` _,_ `1` _,_ `L` _,_ `1` _}_ ]; 7.1.5 Implementation of Powers With operation of multiplication in hand, it is easy to implement the operation of raising a pyramid to a power. The code shown below in (7.61) demonstrates how this can be done. `POWER` [ `U` _~~,~~_ `0` ] := `C1` ; `POWER` [ `U` _~~,~~_ `1` ] := `U` ; `POWER` [ `U` _~~,~~_ `2` ] := `PROD` [ `U` _,_ `U` ]; `POWER` [ `U` _~~,~~_ `3` ] := `PROD` [ `U` _,_ `POWER` [ `U` _,_ `2` ]]; _..._ (7.61) Here `C1` is the pyramid for the Taylor series having _one_ as its _constant_ term and all other terms zero, `C1` = _{_ `1` _,_ `0` _,_ `0` _,_ `0` _, · · · }._ (7.62) It can be set up by the _Mathematica_ code `C1` = `Table` [ `KroneckerDelta` [ `k` _,_ `1` ] _, {_ `k` _,_ `1` _,_ `L` _,_ `1` _}_ ]; (7.63) which employs the Table command, the Kronecker delta function, and an implied Do loop over _k_ . This code should be executed before executing (7.61), but after the value of _L_ has been established. 7.1.6 Replacement Rule Definition 2 _The_ _transformation_ _A_ ( _z_ ) ⇝ `A` _means_ _replacement_ _of_ _every_ _real_ _variable_ _za_ _in_ _the_ _arithmetic_ _expression_ _A_ ( _z_ ) _with_ _an_ _associated_ _pyramid,_ _and_ _of_ _every_ _operation_ _on_ _real_ _variables_ _in_ _A_ ( _z_ ) _with_ _the_ _associated_ _operation_ _on_ _pyramids._ Automatic Differentiation is based on the following corollary: if _A_ ( _z_ ) ⇝ `A`, then `A` is the pyramid of _A_ ( _z_ ). For simplicity, we will begin our discussion of the replacement rule with examples involving only a single variable _z_ . In this case monomial labeling, the relation between labels and exponents, is given directly by the simple rules _r_ ( _j_ ) = 1 + _j_ and _j_ ( _r_ ) = _r −_ 1 _._ (7.64) 63 Table 7: A labeling scheme for monomials in one variable. _<u>r</u>_ _<u>j</u>_ 1 0 2 1 3 2 4 3 _·_ _·_ _·_ _·_ See table 7. As a first example, consider the expression _A_ = 2 + 3( _z ∗_ _z_ ) _._ (7.65) We have agreed to consider the case _m_ = 1. Suppose we also set _p_ = 2, in which case _L_ = 3. In ascending glex order, see Table 7, the pyramid for _A_ is then 2 + 3 _z_ <sup>2</sup> ⇝ `A` = (2 _,_ 0 _,_ 3) _._ (7.66) Now imagine that _A_ was not such a simple polynomial, but some complicated expression. Then the pyramid `A` could be generated by computing derivatives of _A_ at _z_ = 0 and dividing them by the appropriate factorials. Automatic differentiation offers another way to find `A` . Assume that all operations in the arithmetic expression _A_ have been encoded according to _Definition_ _1_ . For our example, these are + and `PROD` . Let `C1` and `Z` be the pyramids associated with 1 and _z_, 1 ⇝ `C1` = (1 _,_ 0 _,_ 0) _,_ (7.67) _z_ ⇝ `Z` = ( `0` _,_ `1` _,_ `0` ) _._ (7.68) The quantity 2 + 3 _z_ <sup>2</sup> results from performing various arithmetic operations on 1 and _z_ . _Definition_ _1_ says that the pyramid of 2 + 3 _z_ <sup>2</sup> is identical to the pyramid obtained by performing the same operations on the pyramids `C1` and `Z` . That is, suppose we replace 1 and _z_ with correctly associated pyramids `C1` and `Z`, and also replace _∗_ with `PROD` . Then, upon evaluating `PROD`, multiplying by the appropriate scalar coefficients, and summing, the result will be the same pyramid `A`, 2 `C1` + 3 `PROD` [ `Z` _,_ `Z` ] = `A` _._ (7.69) In this way, by knowing only the basic pyramids `C1` and `Z` (prepared beforehand), one can compute the pyramid of an arbitrary _A_ ( _z_ ). Finally, in contrast to numerical differentiation, 64 all numerical operations involved are accurate to machine precision. _Mathematica_ code that implements (7.69) will be presented shortly in (7.70). Frequently, if _A_ ( _z_ ) is some complicated expression, the replacement rule will result in a long chain of nested pyramid operations. At every step in the chain, the pyramid resulting from the previous step will be combined with some other pyramid to produce a new pyramid. Each such operation has two arguments, and _Definition_ _1_ applies to each step in the chain. Upon evaluating all pyramid operations, the final result will be the pyramid of _A_ ( _z_ ). By using the replacement operator the above procedure can be represented as: 1 ⇝ `C1` _,_ _z_ ⇝ `Z` _,_ _A_ ⇝ `A` _._ The following general recipe then applies: In order to derive the pyramid associated with some arithmetic expression, apply the ⇝ rule to all its variables, or parts, and replace all operations with operations on pyramids. Here “apply the ⇝ rule” to something means replace that something with the associated pyramid. And the term “parts” means subexpressions. _Definition_ _1_ guarantees that the result will be the same pyramid `A` no matter how we split the arithmetic expression _A_ into sub-expressions. It is only necessary to recognize, in case of using sub-expressions, that one pyramid expression should be viewed as a function of another. For illustration, suppose we regard the _A_ given by (7.65) to be the composition of two functions, _F_ ( _z_ ) = 2 + 3 _z_ and _G_ ( _z_ ) = _z_ <sup>2</sup>, so that _A_ ( _z_ ) = _F_ ( _G_ ( _z_ )). Instead of associating a constant and a single variable with their respective pyramids, let us now associate whole sub-expressions. In addition, let us label the pyramid expressions on the right of ⇝ with with some names, `F` and `G` : 2 + 3 _z_ ⇝ 2 `C1` + 3 `Z` = `F` [ `Z` ] _z_ <sup>2</sup> ⇝ `PROD` [ `Z` _,_ `Z` ] = `G` [ `Z` ] _A_ ( _z_ ) ⇝ `F` [ `G` [ `Z` ]] = `A` _._ We have indicated the explicit dependence on `Z` . It is important to note that `F` [ `Z` ] is a pyramid _expression_ prior to executing any the pyramid operations, i.e it is not yet a pyramid, but is simply the result of formal replacements that follow the association rule. _Mathematica_ code for the simple example (7.69) is shown below, `C1` = _{_ `1` _,_ `0` _,_ `0` _}_ ; `Z` = _{_ `0` _,_ `1` _,_ `0` _}_ ; `2 C1` + `3 PROD` [ `Z` _,_ `Z` ] _{_ 2 _,_ 0 _,_ 3 _}_ (7.70) Note that the result (7.70) agrees with (7.66). This example does not use any nested expressions. We will now illustrate how the same results can be obtained using nested expressions. 65 We begin by displaying a simple _Mathematica_ program/execution, that employs ordinary variables, and uses _Mathematica_ ’s intrinsic abilities to handle nested expressions. The program/execution is `f` [ `z` ~~]~~ := `2` + `3z` ; `g` [ `z` ~~]~~ := `z` <sup>`2`</sup> ; `f` [ `g` [ `z` ]] 2 + 3 _z_ <sup>2</sup> (7.71) With _Mathematica_ the underscore in `z` indicates that `z` is a dummy variable name, and the symbols := indicate that `f` is defined with a delayed assignment. That is what is done in line one above. The same is done in line two for `g` . Line three requests evaluation of the nested function _f_ ( _g_ ( _z_ )), and the result of this evaluation is displayed in line four. Note that the result agrees with (7.65). With this background, we are ready to examine a program with analogous nested pyramid operations. The same comments apply regarding the use of underscores and delayed assignments. The program is `C1` = _{_ `1` _,_ `0` _,_ `0` _}_ ; `Z` = _{_ `0` _,_ `1` _,_ `0` _}_ ; `F` [ `Z` ~~]~~ := `2 C1` + `3 Z` ; `G` [ `Z` ~~]~~ := `PROD` [ `Z` _,_ `Z` ]; `F` [ `G` [ `Z` ]] _{_ `2` _,_ `0` _,_ `3` _}_ (7.72) Note that line (7.72) agrees with line (7.70), and is consistent with line (7.66). We close this subsection with an important consequence of the replacement rule and nested operations, which we call the _Taylor_ rule. We begin by considering functions of a single variable. Suppose the function _G_ ( _x_ ) has the special form _G_ ( _x_ ) = _z_ <sup>_d_</sup> + _x_ (7.73) where _z_ <sup>_d_</sup> is some constant. Let _F_ be some other function. Consider the composite (nested) function _A_ defined by _A_ ( _x_ ) = _F_ ( _G_ ( _x_ )) = _F_ ( _z_ <sup>_d_</sup> + _x_ ) _._ (7.74) Then, assuming the necessary analyticity, by the chain rule _A_ evidently has a Taylor expansion in _x_ about the origin of the form _A_ = _A_ (0) + _A_ <sup>_′_</sup> (0) _x_ + (1 _/_ 2) _A_ <sup>_′′_</sup> (0) _x_ <sup>2</sup> + _· · ·_ = _F_ ( _z_ <sup>_d_</sup> ) + _F_ <sup>_′_</sup> ( _z_ <sup>_d_</sup> ) _x_ + (1 _/_ 2) _F_ <sup>_′′_</sup> ( _z_ <sup>_d_</sup> ) _x_ <sup>2</sup> + _· · ·_ _._ (7.75) 66 We conclude that if we know the Taylor expansion of _A_ about the origin, then we also know the Taylor expansion of _F_ about _z_ <sup>_d_</sup>, and vice versa. Suppose, for example, that _F_ ( _z_ ) = 1 + 2 _z_ + 3 _z_ <sup>2</sup> (7.76) and Then there is the result _z_ <sup>_d_</sup> = 4 _._ (7.77) _A_ ( _x_ ) = _F_ ( _G_ ( _x_ )) = _F_ ( _z_ <sup>_d_</sup> + _x_ ) = 1 + 2(4 + _x_ ) + 3(4 + _x_ ) <sup>2</sup> = 57 + 26 _x_ + 3 _x_ <sup>2</sup> _._ (7.78) We now show that this same result can be obtained using pyramids. The _Mathematica_ fragment below illustrates how this can be done. `C1` = _{_ `1` _,_ `0` _,_ `0` _}_ ; `X` = _{_ `0` _,_ `1` _,_ `0` _}_ ; `zd` = `4` ; `F` [ `Z` ] := `1 C1` + `2 Z` + `3 PROD` [ `Z` _,_ `Z` ]; `G` [ `X` ] := `zd C1` + `X` ; `F` [ `G` [ `X` ]] _{_ 57 _,_ 26 _,_ 3 _}_ (7.79) Note that (7.79) agrees with (7.78). Let us also illustrate the Taylor rule in the two-variable case. Let _F_ ( _z_ 1 _, z_ 2) be some function of two variables. Introduce the functions _G_ ( _x_ 1) and _H_ ( _x_ 1) having the special forms _G_ ( _x_ 1) = _z_ 1 <sup>_d_</sup> <sup>+</sup> <sup>_x_</sup> <sup>1</sup> <sup>_,_</sup> (7.80) _H_ ( _x_ 2) = _z_ 2 <sup>_d_</sup> <sup>+</sup> <sup>_x_</sup> <sup>2</sup> <sup>_,_</sup> (7.81) where _z_ 1 <sup>_d_</sup> <sup>and</sup> <sup>_z_</sup> 2 <sup>_d_</sup> <sup>are</sup> <sup>some</sup> <sup>constants.</sup> <sup>Consider</sup> <sup>the</sup> <sup>function</sup> <sup>_A_</sup> <sup>defined</sup> <sup>by</sup> _A_ ( _x_ 1 _, x_ 2) = _F_ ( _G_ ( _x_ 1) _, H_ ( _x_ 2)) = _F_ ( _z_ 1 <sup>_d_</sup> <sup>+</sup> <sup>_x_</sup> <sup>1</sup> <sup>_, z_</sup> 2 <sup>_d_</sup> <sup>+</sup> <sup>_x_</sup> <sup>2)</sup> <sup>_._</sup> (7.82) Then, again assuming the necessary analyticity, by the chain rule _A_ evidently has a Taylor expansion in _x_ 1 and _x_ 2 about the origin (0 _,_ 0) of the form _A_ = _A_ (0 _,_ 0) + [ _∂_ 1 _A_ (0 _,_ 0)] _x_ 1 + [ _∂_ 2 _A_ (0 _,_ 0)] _x_ 2 +(1 _/_ 2)[( _∂_ 1) <sup>2</sup> _A_ (0 _,_ 0)] _x_ <sup>2</sup> 1 <sup>+ [</sup> <sup>_∂_</sup> <sup>1</sup> <sup>_∂_</sup> <sup>2</sup> <sup>_A_</sup> <sup>(0</sup> <sup>_,_</sup> <sup>0)]</sup> <sup>_x_</sup> <sup>1</sup> <sup>_x_</sup> <sup>2</sup> <sup>+ (1</sup> <sup>_/_</sup> <sup>2)[(</sup> <sup>_∂_</sup> <sup>2)2</sup> <sup>_A_</sup> <sup>(0</sup> <sup>_,_</sup> <sup>0)]</sup> <sup>_x_</sup> <sup>2</sup> 2 <sup>+</sup> <sup>_· · ·_</sup> _F_ ( _z_ 1 <sup>_d, z_</sup> 2 <sup>_d_</sup> <sup>) + [</sup> <sup>_∂_</sup> <sup>1</sup> <sup>_F_</sup> <sup>(</sup> <sup>_z_</sup> 1 <sup>_d, z_</sup> 2 <sup>_d_</sup> <sup>)]</sup> <sup>_x_</sup> <sup>1</sup> <sup>+ [</sup> <sup>_∂_</sup> <sup>2</sup> <sup>_F_</sup> <sup>(</sup> <sup>_z_</sup> 1 <sup>_d, z_</sup> 2 <sup>_d_</sup> <sup>)]</sup> <sup>_x_</sup> <sup>2</sup> +(1 _/_ 2)[( _∂_ 1) <sup>2</sup> _F_ ( _z_ 1 <sup>_d, z_</sup> 2 <sup>_d_</sup> <sup>)]</sup> <sup>_x_</sup> <sup>2</sup> 1 <sup>+ [</sup> <sup>_∂_</sup> <sup>1</sup> <sup>_∂_</sup> <sup>2</sup> <sup>_AF_</sup> <sup>(</sup> <sup>_z_</sup> 1 <sup>_d, z_</sup> 2 <sup>_d_</sup> <sup>)]</sup> = _F_ ( _z_ 1 <sup>_d_</sup> 1 <sup>_d, z_</sup> 2 <sup>_d_</sup> <sup>)]</sup> <sup>_x_</sup> <sup>2</sup> 1 <sup>+ [</sup> <sup>_∂_</sup> <sup>1</sup> <sup>_∂_</sup> <sup>2</sup> <sup>_AF_</sup> <sup>(</sup> <sup>_z_</sup> 1 <sup>_d, z_</sup> 2 <sup>_d_</sup> <sup>)]</sup> <sup>_x_</sup> <sup>1</sup> <sup>_x_</sup> <sup>2</sup> <sup>+ (1</sup> <sup>_/_</sup> <sup>2)[(</sup> <sup>_∂_</sup> <sup>2)2</sup> <sup>_A_</sup> <sup>(</sup> <sup>_F_</sup> <sup>(</sup> <sup>_z_</sup> 1 <sup>_d, z_</sup> 2 <sup>_d_</sup> <sup>))]</sup> <sup>_x_</sup> <sup>2</sup> 2 <sup>+</sup> <sup>_· · ·_</sup> (7.83) 67 where when acting on _A_, and _∂_ 1 = _∂/∂x_ 1 _,_ _∂_ 2 = _∂/∂x_ 2 (7.84) _∂_ 1 = _∂/∂z_ 1 _,_ _∂_ 2 = _∂/∂z_ 2 (7.85) when acting on _F_ . We conclude that if we know the Taylor expansion of _A_ about the origin (0 _,_ 0), then we also know the Taylor expansion of _F_ about ( _z_ 1 <sup>_d, z_</sup> 2 <sup>_d_</sup> <sup>),</sup> <sup>and</sup> <sup>vice</sup> <sup>versa.</sup> As a concrete example, suppose that _F_ ( _z_ 1 _, z_ 2) = 1 + 2 _z_ 1 + 3 _z_ 2 + 4 _z_ 1 <sup>2</sup> <sup>+ 5</sup> <sup>_z_</sup> <sup>1</sup> <sup>_z_</sup> <sup>2</sup> <sup>+ 6</sup> <sup>_z_</sup> 2 <sup>2</sup> (7.86) and _z_ 1 <sup>_d_</sup> <sup>= 7</sup> <sup>_,_</sup> <sup>_z_</sup> 2 <sup>_d_</sup> <sup>= 8</sup> <sup>_._</sup> (7.87) Then, hand calculation shows that _F_ ( _G_ ( _x_ 1) _, H_ ( _x_ 2)) takes the form _F_ ( _z_ 1 <sup>_d_</sup> <sup>+</sup> <sup>_x_</sup> <sup>1</sup> <sup>_, z_</sup> 2 <sup>_d_</sup> <sup>+</sup> <sup>_x_</sup> <sup>2)</sup> = _F_ ( _G_ ( _x_ 1) _, H_ ( _x_ 2)) = 899 + 98 _x_ 1 + 4 _x_ <sup>2</sup> 1 <sup>+ 134</sup> <sup>_x_</sup> <sup>2</sup> <sup>+ 5</sup> <sup>_x_</sup> <sup>1</sup> <sup>_x_</sup> <sup>2</sup> <sup>+ 6</sup> <sup>_x_</sup> 2 <sup>2</sup> <sup>_._</sup> (7.88) Below is a _Mathematica_ execution that finds the same result, `F` [ `z1` _~~,~~_ `z2` ~~]~~ := `1` + `2 z1` + `3 z2` + `4 z1` <sup>`2`</sup> + `5 z1 z2` + `6 z2` <sup>`2`</sup> `G` [ `x1` ~~]~~ := `zd1` + `x1` ; `H` [ `x2` ~~]~~ := `zd2` + `x2` ; `zd1` = `7` ; `zd2` = `8` ; `A` = `F` [ `G` [ `x1` ] _,_ `H` [ `x2` ]] `Expand` [ `A` ] 1 + 2 (7 + _x_ 1) + 4 (7 + _x_ 1) <sup>2</sup> + 3 (8 + _x_ 2) + 5 (7 + _x_ 1) (8 + _x_ 2) + 6 (8 + _x_ 2) <sup>2</sup> 899 + 98 _x_ 1 + 4 _x_ 1 <sup>2</sup> + 134 _x_ 2 + 5 _x_ 1 _x_ 2 + _x_ 2 <sup>2</sup> (7.89) 68 The calculation above dealt with the case of a function of two ordinary variables. We now illustrate, for the same example, that there is an analogous result for pyramids. For future reference, Table 8 shows our standard modified glex sequencing applied to the case of two variables. Table 8: A labeling scheme for monomials in two variables. _<u>r</u>_ _<u>j</u>_ <u>1</u> _<u>j</u>_ <u>2</u> 1 0 0 2 1 0 3 0 1 4 2 0 5 1 1 6 0 2 7 3 0 8 2 1 9 1 2 10 0 3 _·_ _·_ _·_ _·_ _·_ _·_ Following the replacement rule, we should make the substitutions _z_ 1 <sup>_d_</sup> <sup>+</sup> <sup>_x_</sup> <sup>1</sup> <sup>⇝</sup> <sup>`zd1 C1`</sup> <sup>+</sup> <sup>`X1`</sup> <sup>_,_</sup> (7.90) _z_ 2 <sup>_d_</sup> <sup>+</sup> <sup>_x_</sup> <sup>2</sup> <sup>⇝</sup> <sup>`zd2 C1`</sup> <sup>+</sup> <sup>`X2`</sup> <sup>_,_</sup> (7.91) 1 + 2 _z_ 1 + 3 _z_ 2 + 4 _z_ 1 <sup>2</sup> <sup>+ 5</sup> <sup>_z_</sup> <sup>1</sup> <sup>_z_</sup> <sup>2</sup> <sup>+ 6</sup> <sup>_z_</sup> 2 <sup>2</sup> <sup>⇝</sup> `C1` + `2 Z1` + `3 Z2` + `4 PROD` [ `Z1` _,_ `Z1` ] + `5 PROD` [ `Z1` _,_ `Z2` ] + `6 PROD` [ `Z2` _,_ `Z2` ] _._ (7.92) 69 The _Mathematica_ fragment below, executed for the case _m_ = 2 and _p_ = 2, in which case _L_ = 6, illustrates how the analogous result is obtained using pyramids, `C1` = _{_ `1` _,_ `0` _,_ `0` _,_ `0` _,_ `0` _,_ `0` _}_ ; `X1` = _{_ `0` _,_ `1` _,_ `0` _,_ `0` _,_ `0` _,_ `0` _}_ ; `X2` = _{_ `0` _,_ `0` _,_ `1` _,_ `0` _,_ `0` _,_ `0` _}_ ; `F` [ `Z1` _~~,~~_ `Z2` ~~]~~ := `C1` + `2 Z1` + `3 Z2` + `4 PROD` [ `Z1` _,_ `Z1` ] + `5 PROD` [ `Z1` _,_ `Z2` ] + `6 PROD` [ `Z2` _,_ `Z2` ]; `G` [ `X1` ~~]~~ := `z01 C1` + `X1` ; `H` [ `X2` ~~]~~ := `z02 C1` + `X2` ; `zd1` = `7` ; `zd2` = `8` ; `F` [ `G` [ `X1` ] _,_ `H` [ `X2` ]] _{_ 899 _,_ 98 _,_ 134 _,_ 4 _,_ 5 _,_ 6 _}_ (7.93) Note that, when use is made of Table 8, the last line of (7.93) agrees with (7.88) and the last line of (7.89). 7.2 Replacement Rule and Numerical Integration 7.2.1 Numerical Integration Consider the set of differential equations (1.5). A standard procedure for their numerical integration from an initial time _t_ <sup>_i_</sup> = _t_ <sup>0</sup> to some final time _t_ <sup>_f_</sup> is to divide the time axis into a large number of steps _N_, each of small duration _h_, thereby introducing successive times _t_ <sup>_n_</sup> defined by the relation _t_ <sup>_n_</sup> = _t_ <sup>0</sup> + _nh_ with _n_ = 0 _,_ 1 _, · · ·_ _, N._ (7.94) By construction, there will also be the relation _Nh_ = _t_ <sup>_f_</sup> _−_ _t_ <sup>_i_</sup> _._ (7.95) The goal is to compute the vectors _z_ <sup>_n_</sup>, where _z_ <sup>_n_</sup> = _z_ ( _t_ <sup>_n_</sup> ) _,_ (7.96) starting from the vector _z_ <sup>0</sup> . The vector _z_ <sup>0</sup> is assumed given as a set of definite numbers, i.e. the initial conditions at _t_ <sup>0</sup> . If we assume Poincar´e analyticity in _t_, we may convert the set of differential equations (1.5) into a set of recursion relations for the _z_ <sup>_n_</sup> in such a way that the _z_ <sup>_n_</sup> obtained by 70 solving the recursion relations differ from the true _z_ <sup>_n_</sup> by only small truncation errors of order _h_ <sup>_m_</sup> . (Here _m_ is _not_ the number of variables, but rather some fixed integer describing the accuracy of the integration method.) One such procedure, fourth-order _Runge_ _Kutta_ (RK4), is the set of marching/recursion rules where, at each step, _z_ <sup>_n_</sup> <sup>+1</sup> = _z_ <sup>_n_</sup> + 6 <sup><u>1</u></sup> <sup>(</sup> <sup>_a_</sup> <sup>+ 2</sup> <sup>_b_</sup> <sup>+ 2</sup> <sup>_c_</sup> <sup>+</sup> <sup>_d_</sup> <sup>)</sup> (7.97) _a_ = _h_ _f_ ( _z_ <sup>_n_</sup> _, t_ <sup>_n_</sup> ) _,_ (7.98) _b_ = _h_ _f_ ( _z_ <sup>_n_</sup> + 2 <sup><u>1</u></sup> <sup>_a_</sup> <sup>_, tn_</sup> <sup>+</sup> <sup><u>1</u></sup> 2 <sup>_h_</sup> <sup>)</sup> <sup>_,_</sup> _c_ = _h_ _f_ ( _z_ <sup>_n_</sup> + 2 <sup><u>1</u></sup> <sup>_b_</sup> <sup>_, tn_</sup> <sup>+</sup> 2 <sup><u>1</u></sup> <sup>_h_</sup> <sup>)</sup> <sup>_,_</sup> _d_ = _h_ _f_ ( _z_ <sup>_n_</sup> + _c_ _, t_ <sup>_n_</sup> + _h_ ) _._ Thanks to the genius of Runge and Kutta, the relations (7.97) and (7.98) have been constructed in such a way that the method is locally (at each step) correct through order _h_ <sup>4</sup>, and makes local truncation errors of order _h_ <sup>5</sup> . In the case of a single variable, and therefore a single differential equation, the relations (7.97) and (7.98) may be encoded in the _Mathematica_ form shown below. Here `Zvar` is the dependent variable, `t` is the time, `Zt` is a temporary variable, `tt` is a temporary time, and `ns` is the number of integration steps. The program employs a Do loop over `i` so that the operations (7.97) and (7.98) are carried out `ns` times. 71 `RK4` := ( `t0` = `t` ; `Do` [ `Aa` = `h F` [ `Zvar` _,_ `t` ]; `Zt` = `Zvar` + ( `1` _/_ `2` ) `Aa` ; `tt` = `t` + `h` _/_ `2` ; `Bb` = `h F` [ `Zt` _,_ `tt` ]; `Zt` = `Zvar` + ( `1` _/_ `2` ) `Bb` ; `Cc` = `h F` [ `Zt` _,_ `tt` ]; `Zt` = `Zvar` + `Cc` ; `tt` = `t` + `h` ; `Dd` = `h F` [ `Zt` _,_ `tt` ]; `Zvar` = `Zvar` + ( `1` _/_ `6` )( `Aa` + `2 Bb` + `2 Cc` + `Dd` ); `t` = `t0` + `i h` ; _,_ _{_ `i` _,_ `1` _,_ `ns` _,_ `1` _}_ ] ) 7.2.2 Replacement Rule, Single Equation/Variable Case (7.99) We now make what, for our purposes, is a fundamental observation: The operations that occur in the Runge Kutta recursion rules (7.97) and (7.98) and realized in the code above can be extended to pyramids by application of the replacement rule. In particular, the dependent variable _z_ can be replaced by a pyramid, and the various operations involved in the recursion rules can be replaced by pyramid operations. Indeed if we look at the code above, apart from the evaluation of `F`, we see that the quantities `Zvar`, `Zt`, `Aa`, `Bb`, `Cc`, and `Dd` can be viewed, if we wish, as pyramids since the only operations involved are scalar multiplication and addition. The only requirement for a pyramidal interpretation of the `RK4` _Mathematica_ code is that the right side of the differential equation, `F` [ _∗, ∗_ ], be defined for pyramids. Finally, we remark that the features that make it possible to interpret the `RK4` _Mathematica_ code either in terms of ordinary variables or pyramidal variables will hold for _Mathematica_ realizations of many other familiar numerical integration methods including other forms of Runge Kutta, predictor-corrector methods, and extrapolation methods. To make these ideas concrete, and to understand their implications, let us begin with a simple example. Suppose, in the single variable case, that the right side of the differential 72 equation has the simple form _f_ ( _z, t_ ) = _−_ 2 _tz_ <sup>2</sup> _._ (7.100) The differential equation with this right side can be integrated analytically to yield the solution _z_ ( _t_ ) = _z_ <sup>0</sup> _/_ [1 + _z_ <sup>0</sup> ( _t −_ _t_ <sup>0</sup> ) <sup>2</sup> ] _._ (7.101) In particular, for the case _t_ <sup>0</sup> = 0, _z_ <sup>0</sup> = 1, and _t_ = 1, there is the result _z_ (1) = _z_ <sup>0</sup> _/_ [1 + _z_ <sup>0</sup> ] = 1 _/_ 2 _._ (7.102) Let us also integrate the differential equation with the right side (7.100) numerically. Shown below is the result of running the associated _Mathematica_ Runge Kutta code for this case. `Clear` [ `"Global` ‘ _∗_ `"` ]; `F` [ `Z` _~~,~~_ `t` ~~]~~ := _−_ `2 t Z` <sup>`2`</sup> ; `h` = _._ `1` ; `ns` = `10` ; `t` = `0` ; `Zvar` = `1` _._ ; `RK4` ; ``` t Zvar ``` 1 _._ 0 _._ 500001 (7.103) Note that the last line of (7.103) agrees with (7.102) save for a “1” in the last entry. As expected, and as experimentation shows, this small difference, due to accumulated truncation error, becomes even smaller if `h` is decreased (and correspondingly, `ns` is increased). Suppose we expand the solution (7.102) about the design initial condition _z_ <sup>_d_</sup> <sup>0</sup> = 1 by replacing _z_ <sup>0</sup> by _z_ <sup>_d_</sup> <sup>0</sup> + _x_ and expanding the result in a Taylor series in _x_ about the point _x_ =0. Below is a _Mathematica_ run that performs this task. `zd0` = `1` ; `Series` [( `zd0` + `x` ) _/_ ( `1` + `zd0` + `x` ) _, {_ `x` _,_ `0` _,_ `5` _}_ ] <u>12</u> <sup>+</sup> <sup>_<u>x</u>_</sup> 4 <sup>_−_</sup> <sup>_<u>x</u>_</sup> 8 <sup>2</sup> <sup>_<u>x</u>_</sup> 8 <sup>2</sup> <sup>+</sup> <sup>_<u>x</u>_</sup> 16 <sup>3</sup> <sup>_<u>x</u>_</sup> 16 <sup>3</sup> <sup>_−_</sup> <sup>_<u>x</u>_</sup> 32 <sup>4</sup> <sup>_<u>x</u>_</sup> 32 <sup>4</sup> <sup>+</sup> <sup>_<u>x</u>_</sup> 64 <sup>5</sup> <sup>_<u>x</u>_</sup> 64 <sup>5</sup> <sup>+</sup> <sup>_O_</sup> <sup>[</sup> <sup>_x_</sup> <sup>]6</sup> (7.104) 73 We will now see that the same Taylor series can be obtained by the operation of numerical integration applied to pyramids. The _Mathematica_ code below shows, for our example differential equation, the application of numerical integration to pyramids. `Clear` [ `"Global` ‘ _∗_ `"` ]; `Needs` [ `"Combinatorica` ‘ `"` ]; `m` = `1` ; `p` = `5` ; `GAMMA` = `Compositions` [ `0` _,_ `m` ]; `Do` [ `GAMMA` = `Join` [ `GAMMA` _,_ `Reverse` [ `Compositions` [ `d` _,_ `m` ]]] _, {_ `d` _,_ `1` _,_ `p` _,_ `1` _}_ ]; `L` = `Length` [ `GAMMA` ]; `JSK` [ `list` _~~,~~_ `k` ~~]~~ := `Position` [ `Apply` [ `And` _,_ `Thread` [ `#1 <= #2 &` [ `#` _,_ `k` ]]] `& /@ list` _,_ `True` ] `//Flatten` ; `B` = `Table` [ `JSK` [ `GAMMA` _,_ `GAMMA` [[ `r` ]]] _, {_ `r` _,_ `1` _,_ `L` _,_ `1` _}_ ]; `Brev` = `Reverse/@ B` ; `PROD` [ `U` _~~,~~_ `V` ~~]~~ := `Table` [ `U` [[ `B` [[ `k` ]]]] _._ `V` [[ `Brev` [[ `k` ]]]] _, {_ `k` _,_ `1` _,_ `L` _,_ `1` _}_ ]; `F` [ `Z` _~~,~~_ `t` ~~]~~ := _−_ `2 t PROD` [ `Z` _,_ `Z` ]; `h` = _._ `01` ; `ns` = `100` ; `t` = `0` ; `zd0` = `1` ; `C1` = _{_ `1` _,_ `0` _,_ `0` _,_ `0` _,_ `0` _,_ `0` _}_ ; `X` = _{_ `0` _,_ `1` _,_ `0` _,_ `0` _,_ `0` _,_ `0` _}_ ; `Zvar` = `zd0 C1` + `X` ; `RK4` ; ``` t Zvar ``` 1 _._ _{_ 0 _._ 5 _,_ 0 _._ 25 _, −_ 0 _._ 125 _,_ 0 _._ 0625 _, −_ 0 _._ 03125 _,_ 0 _._ 015625 _}_ (7.105) The first 11 lines of the code set up what should be by now the familiar procedure for labeling and multiplying pyramids. In particular, _m_ = 1 because we are dealing with a single variable, and _p_ = 5 since we wish to work through fifth order. The line `F` [ `Z` _~~,~~_ `t` ~~]~~ := _−_ `2 t PROD` [ `Z` _,_ `Z` ] (7.106) defines `F` [ _∗, ∗_ ] for the case of pyramids, and is the result of applying the replacement rule to the right side of _f_ as given by (7.100), _−_ 2 _t z_ <sup>2</sup> ⇝ _−_ 2 `t PROD` [ `Z` _,_ `Z` ] _._ (7.107) 74 Lines 13 through 15 are the same as lines 3 through 5 in (7.103) except that, in order to improve numerical accuracy, the step size `h` has been decreased and correspondingly the number of steps `ns` has been increased. Lines 16 through 19 now initialize `Zvar` as a pyramid with constant part `zd0` and first-order monomial part 1, `Zvar` = `zd0 C1` + `X` _._ (7.108) These lines are the pyramid equivalent of line 6 in (7.103). Finally lines 20 through 22 are the same as lines 7 through 9 in (7.103). In particular, the line `RK4` in (7.103) and the line `RK4` in (7.105) refer to exactly the _same_ code, namely that in (7.99). Let us now compare the outputs of (7.103) and (7.105). Comparing the penultimate lines in each we see that the final time _t_ = 1 is the same in each case. Comparing the last lines shows that the output `Zvar` for (7.105) is a pyramid whose first entry agrees with the last line of (7.103). Finally, all the entries in the pyramid output agree with the Taylor coefficients in the expansion (7.104). We see, in the case of numerical integration (of a single differential equation), that replacing the dependent variable by a pyramid, with the initial value of the pyramid given by (7.108), produces a Taylor expansion of the final condition in terms of the initial condition. What accounts for this near miraculous result? It’s the Taylor rule described at the end of Section 7.1.6. We have already learned that to expand some function _F_ ( _z_ ) about some point _z_ <sup>_d_</sup> we must evaluate _F_ ( _z_ <sup>_d_</sup> + _x_ ). See (7.74). We know that the final _Zvar_, call it _Zvar_ <sup>fin</sup>, is an analytic function of the initial _Zvar_, call it _Zvar_ <sup>in</sup>, so that we may write _Zvar_ <sup>fin</sup> = _Zvar_ <sup>fin</sup> ( _Zvar_ <sup>in</sup> ) = _g_ ( _Zvar_ <sup>in</sup> ) (7.109) where _g_ is the function that results from following the trajectory from _t_ = _t_ <sup>in</sup> to _t_ = _t_ <sup>fin</sup> . Therefore, by the Taylor rule, to expand _Zvar_ <sup>fin</sup> about _Zvar_ <sup>in</sup> = _z_ <sup>_d_</sup> <sup>0</sup>, we must evaluate _Zvar_ <sup>fin</sup> ( _z_ <sup>_d_</sup> <sup>0</sup> + _x_ ). That, with the aid of pyramids, is what the code (7.105) accomplishes. 7.2.3 Multi Equation/Variable Case Because of _Mathematica’s_ built-in provisions for handling arrays, the work of the previous section can easily be extended to the case of several differential equations. Consider, as an example, the two-variable case for which _f_ has the form _f_ 1( _z_ _, t_ ) = _−z_ 1 <sup>2</sup> <sup>_,_</sup> _f_ 2( _z_ _, t_ ) = +2 _z_ 1 _z_ 2 _._ (7.110) The differential equations associated with this _f_ can be solved in closed form to yield, with the understanding that _t_ <sup>0</sup> = 0, the solution _z_ 1( _t_ ) = _z_ 1 <sup>0</sup> <sup>_/_</sup> <sup>(1 +</sup> <sup>_tz_</sup> 1 <sup>0)</sup> <sup>_,_</sup> _z_ 2( _t_ ) = _z_ 2 <sup>0(1 +</sup> <sup>_tz_</sup> 1 <sup>0)2</sup> <sup>_._</sup> (7.111) 75 For the final time _t_ = 1 we find the result _z_ 1(1) = _z_ 1 <sup>0</sup> <sup>_/_</sup> <sup>(1 +</sup> <sup>_z_</sup> 1 <sup>0)</sup> <sup>_,_</sup> _z_ 2(1) = _z_ 2 <sup>0(1 +</sup> <sup>_z_</sup> 1 <sup>0)2</sup> <sup>_._</sup> (7.112) Let us expand the solution (7.112) about the design initial conditions _z_ 1 <sup>_d_</sup> <sup>0</sup> <sup>= 1</sup> <sup>_,_</sup> _z_ 2 <sup>_d_</sup> <sup>0</sup> <sup>= 2</sup> <sup>_,_</sup> (7.113) by writing Doing so gives the results _z_ 1 <sup>0</sup> <sup>=</sup> <sup>_z_</sup> 1 <sup>_d_</sup> <sup>0</sup> <sup>+</sup> <sup>_x_</sup> <sup>1</sup> <sup>= 1 +</sup> <sup>_x_</sup> <sup>1</sup> <sup>_,_</sup> _z_ 2 <sup>0</sup> <sup>=</sup> <sup>_z_</sup> 2 <sup>_d_</sup> <sup>0</sup> <sup>+</sup> <sup>_x_</sup> <sup>2</sup> <sup>= 2 +</sup> <sup>_x_</sup> <sup>2</sup> <sup>_._</sup> (7.114) _z_ 1(1) = (1 + _x_ 1) _/_ (2 + _x_ 1) = (2 + _x_ 1 _−_ 1) _/_ (2 + _x_ 1) = 1 _−_ 1 _/_ (2 + _x_ 1) = = 1 _−_ (1 _/_ 2)(1 + _x_ 1 _/_ 2) <sup>_−_</sup> <sup>1</sup> = 1 _−_ (1 _/_ 2)[1 _−_ _x_ 1 _/_ 2 + ( _x_ 1 _/_ 2) <sup>2</sup> _−_ ( _x_ 1 _/_ 2) <sup>3</sup> + _· · ·_ = (1 _/_ 2) + (1 _/_ 4) _x_ 1 _−_ (1 _/_ 8) _x_ <sup>2</sup> 1 <sup>+ (1</sup> <sup>_/_</sup> <sup>16)</sup> <sup>_x_</sup> <sup>3</sup> 1 <sup>+</sup> <sup>_· · ·_</sup> <sup>_,_</sup> _z_ 2(1) = (2 + _x_ 2)(2 + _x_ 1) <sup>2</sup> (7.115) = 8 + 8 _x_ 1 + 4 _x_ 2 + 2 _x_ <sup>2</sup> 1 <sup>+ 4</sup> <sup>_x_</sup> <sup>1</sup> <sup>_x_</sup> <sup>2</sup> <sup>+</sup> <sup>_x_</sup> 1 <sup>2</sup> <sup>_x_</sup> <sup>2</sup> <sup>_._</sup> (7.116) We will now explore how this same result can be obtained using the replacement rule applied to the operation of numerical integration. As before, we will label individual monomials by an integer _r_ . Recall that Table 8 shows our standard modified glex sequencing applied to the case of two variables. The _Mathematica_ code below shows, for our two-variable example differential equation, the application of numerical integration to pyramids. Before describing the code in some detail, we take note of the bottom two lines. When interpreted with the aid of Table 8, we see that the penultimate line of (7.117) agrees with (7.115), and the last line of (7.117) nearly agrees with (7.116). The only discrepancy is that for the monomial with label _r_ = 7 in the last line of (7.117). In the _Mathematica_ output it has the value _−_ 1 _._ 16563 _×_ 10 <sup>_−_</sup> <sup>7</sup> while, according to (7.116), the true value should be zero. This small discrepancy arises from the truncation error inherent in the RK4 algorithm, and becomes smaller as the step size `h` is decreased (and `ns` is correspondingly increased), or if some more accurate integration algorithm is used. We conclude that, with the use of pyramids, it is also possible in the two-variable case to obtain Taylor expansions of the final conditions in terms of the initial 76 conditions. Indeed, what is involved is again the Taylor rule applied, in this instance, to the case of two variables. `Clear` [ `"Global` ‘ _∗_ `"` ]; `Needs` [ `"Combinatorica` ‘ `"` ]; `m` = `2` ; `p` = `3` ; `GAMMA` = `Compositions` [ `0` _,_ `m` ]; `Do` [ `GAMMA` = `Join` [ `GAMMA` _,_ `Reverse` [ `Compositions` [ `d` _,_ `m` ]]] _, {_ `d` _,_ `1` _,_ `p` _,_ `1` _}_ ]; `L` = `Length` [ `GAMMA` ]; `JSK` [ `list` _~~,~~_ `k` ~~]~~ := `Position` [ `Apply` [ `And` _,_ `Thread` [ `#1 <= #2 &` [ `#` _,_ `k` ]]] `& /@ list` _,_ `True` ] `//Flatten` ; `B` = `Table` [ `JSK` [ `GAMMA` _,_ `GAMMA` [[ `r` ]]] _, {_ `r` _,_ `1` _,_ `L` _,_ `1` _}_ ]; `Brev` = `Reverse/@ B` ; `PROD` [ `U` _~~,~~_ `V` ~~]~~ := `Table` [ `U` [[ `B` [[ `k` ]]]] _._ `V` [[ `Brev` [[ `k` ]]]] _, {_ `k` _,_ `1` _,_ `L` _,_ `1` _}_ ]; `F` [ `Z` _~~,~~_ `t` ~~]~~ := _{−_ `PROD` [ `Z` [[ `1` ]] _,_ `Z` [[ `1` ]]] _,_ `2` _._ `PROD` [ `Z` [[ `1` ]] _,_ `Z` [[ `2` ]]] _}_ ; `h` = _._ `01` ; `ns` = `100` ; `t` = `0` ; `zd0` = _{_ `1` _.,_ `2` _.}_ ; `C1` = `Table` [ `KroneckerDelta` [ `k` _,_ `1` ] _, {_ `k` _,_ `1` _,_ `L` _,_ `1` _}_ ]; `X` [ `1` ] = `Table` [ `KroneckerDelta` [ `k` _,_ `2` ] _, {_ `k` _,_ `1` _,_ `L` _,_ `1` _}_ ]; `X` [ `2` ] = `Table` [ `KroneckerDelta` [ `k` _,_ `3` ] _, {_ `k` _,_ `1` _,_ `L` _,_ `1` _}_ ]; `Zvar` = _{_ `zd0` [[ `1` ]] `C1` + `X` [ `1` ] _,_ `zd0` [[ `2` ]] `C1` + `X` [ `2` ] _}_ ; `RK4` ; ``` t Zvar ``` 1 _._ _{{_ 0 _._ 5 _,_ 0 _._ 25 _,_ 0 _., −_ 0 _._ 125 _,_ 0 _.,_ 0 _.,_ 0 _._ 0625 _,_ 0 _.,_ 0 _.,_ 0 _, },_ _{_ 8 _.,_ 8 _.,_ 4 _.,_ 2 _.,_ 4 _.,_ 0 _., −_ 1 _._ 16563 _×_ 10 <sup>_−_</sup> <sup>7</sup> _,_ 1 _.,_ 0 _.,_ 0 _.}}_ (7.117) Let us compare the structures of the routines for the single variable case and multi (two) variable case as illustrated in (7.105) and (7.117). The first difference occurs at line 3 where the number of variables _m_ and the maximum degree _p_ are specified. In (7.117) _m_ is set to 2 because we wish to treat the case of two variables, and _p_ is set to 3 simply to limit the lengths of the output arrays. The next difference occurs in line 12 where the 77 right side `F` of the differential equation is specified. The major feature of the definition of `F` in (7.117) is that it is specified as two pyramids because the right side of the definition has the structure _{∗, ∗}_ where each item _∗_ is an instruction for computing a pyramid. In particular, the two pyramids are those for the two components of _f_ as given by (7.110) and use of the replacement rule, _−_ _z_ 1 <sup>2</sup> <sup>⇝</sup> <sup>_−_</sup> <sup>`PROD`</sup> <sup>[</sup> <sup>`Z`</sup> <sup>[[</sup> <sup>`1`</sup> <sup>]]</sup> <sup>_,_</sup> <sup>`Z`</sup> <sup>[[</sup> <sup>`1`</sup> <sup>]]]</sup> <sup>_,_</sup> (7.118) 2 _z_ 1 _z_ 2 ⇝ 2 _._ `PROD` [ `Z` [[ `1` ]] _,_ `Z` [[ `2` ]]] _._ (7.119) The next differences occur in lines 16 through 20 of (7.117). In line 16, since specification of the initial conditions now requires two numbers, see (7.113), `zd0` is specified as a twocomponent array. In lines 17 and 18 of (7.105) the pyramids `C1` and `X` are set up explicitly for the case _p_ = 5. By contrast, in lines 17 through 19 of (7.117), the pyramids `C1`, `X` [ `1` ], and `X` [ `2` ] are set up for general _p_ with the aid of the Table command and the Kronecker delta function. Recall (7.62) and observe from Tables 4, 7, and 8 that, no matter what the values of _m_ and _p_, the constant monomial has the label _r_ = 1 and the monomial _x_ 1 has the label _r_ = 2. Moreover, as long as _m_ _≥_ 2 and no matter what the value of _p_, the _x_ 2 monomial has the label _r_ = 3. Finally, compare line 19 in (7.105) with line 20 in (7.117), both of which define the initial `Zvar` . We see that the difference is that in (7.105) `Zvar` is defined as a single pyramid while in (7.117) it is defined as a pair of pyramids of the form _{∗, ∗}_ . Most remarkably, all other corresponding lines in (7.105) and (7.117) are the same. In particular, the _same_ RK4 code, namely that given by (7.99), is used in the scalar case (7.103), the single pyramid case (7.105), and the two-pyramid case (7.117). This multi-use is possible because of the convenient way in which _Mathematica_ handles arrays. We conclude that the pattern for the multivariable case is now clear. Only the following items need to be specified in an _m_ dependent way: _•_ The value of _m_ . _•_ The entries in `F` with entries entered as an array _{∗, ∗, · · · }_ of _m_ pyramids. _•_ The design initial condition array `zd0` . _•_ The pyramids for `C1` and `X` [ `1` ] through `X` [ `m` ]. _•_ The entries for the initial `Zvar` specified as an array _{_ `zd0` [[ `1` ]] `C1` + `X` [ `1` ] _,_ `zd0` [[ `2` ]] `C1` + `X` [ `2` ] _, · · ·_ _,_ `zd0` [[ `m` ]] `C1` + `X` [ `m` ] _}_ of _m_ pyramids. 7.3 Duffing Equation Application Let us now apply the methods just developed to the case of the Duffing equation with parameter dependence as described by the relations (6.12) through (6.17). _Mathematica_ code for this purpose is shown below. By looking at the final lines that result from executing 78 this code, we see that the final output is an array of the form _{{∗}, {∗}, {∗}}_ . That is, the final output is an array of three pyramids. This is what we expect, because now we are dealing with three variables. See line 3 of the code, which sets m=3. Also, for convenience of viewing, results are calculated and displayed only through third order as a consequence of setting `p` = `3` . `Clear` [ `"Global` ‘ _∗_ `"` ]; `Needs` [ `"Combinatorica` ‘ `"` ]; `m` = `3` ; `p` = `3` ; `GAMMA` = `Compositions` [ `0` _,_ `m` ]; `Do` [ `GAMMA` = `Join` [ `GAMMA` _,_ `Reverse` [ `Compositions` [ `d` _,_ `m` ]]] _, {_ `d` _,_ `1` _,_ `p` _,_ `1` _}_ ]; `L` = `Length` [ `GAMMA` ]; `JSK` [ `list` _~~,~~_ `k` ~~]~~ := `Position` [ `Apply` [ `And` _,_ `Thread` [ `#1 <= #2 &` [ `#` _,_ `k` ]]] `& /@ list` _,_ `True` ] `//Flatten` ; `B` = `Table` [ `JSK` [ `GAMMA` _,_ `GAMMA` [[ `r` ]]] _, {_ `r` _,_ `1` _,_ `L` _,_ `1` _}_ ]; `Brev` = `Reverse/@ B` ; `PROD` [ `U` _~~,~~_ `V` ~~]~~ := `Table` [ `U` [[ `B` [[ `k` ]]]] _._ `V` [[ `Brev` [[ `k` ]]]] _, {_ `k` _,_ `1` _,_ `L` _,_ `1` _}_ ]; `POWER` [ `U` _,_ `2` ] := `PROD` [ `U` _,_ `U` ]; `POWER` [ `U` _,_ `3` ] := `PROD` [ `U` _,_ `POWER` [ `U` _,_ `2` ]]; `C0` = `Table` [ `0` _, {_ `k` _,_ `1` _,_ `L` _,_ `1` _}_ ]; `F` [ `Z` _~~,~~_ `t` ~~]~~ := _{_ `Z` [[ `2` ]] _,_ _−_ `2` _._ `beta PROD` [ `Z` [[ `3` ]] _,_ `Z` [[ `2` ]]] _−_ `PROD` [ `POWER` [ `Z` [[ `3` ]] _,_ `2` ] _,_ `Z` [[ `1` ]]] _−_ `POWER` [ `Z` [[ `1` ]] _,_ `3` ] _−_ `eps Sin` [ `t` ] `POWER` [ `Z` [[ `3` ]] _,_ `3` ] _,_ `C0` _}_ ; 79 `ns` = `100` ; `t` = `0` ; `h` = ( `2Pi` ) _/_ `ns` ; `beta` = _._ `1` ; `eps` = `1` _._ `5` ; `zd0` = _{._ `3` _, ._ `4` _, ._ `5` _}_ ; `C1` = `Table` [ `KroneckerDelta` [ `k` _,_ `1` ] _, {_ `k` _,_ `1` _,_ `L` _,_ `1` _}_ ]; `X` [ `1` ] = `Table` [ `KroneckerDelta` [ `k` _,_ `2` ] _, {_ `k` _,_ `1` _,_ `L` _,_ `1` _}_ ]; `X` [ `2` ] = `Table` [ `KroneckerDelta` [ `k` _,_ `3` ] _, {_ `k` _,_ `1` _,_ `L` _,_ `1` _}_ ]; `X` [ `3` ] = `Table` [ `KroneckerDelta` [ `k` _,_ `4` ] _, {_ `k` _,_ `1` _,_ `L` _,_ `1` _}_ ]; `Zvar` = _{_ `zd0` [[ `1` ]] `C1` + `X` [ `1` ] _,_ `zd0` [[ `2` ]] `C1` + `X` [ `2` ] _,_ `zd0` [[ `3` ]] `C1` + `X` [ `3` ] _}_ ; `RK4` ; ``` t Zvar ``` 2 _π_ _{{−_ 0 _._ 0493158 _,_ 0 _._ 973942 _, −_ 0 _._ 110494 _,_ 5 _._ 51271 _,_ 3 _._ 54684 _,_ 3 _._ 46678 _,_ 11 _._ 2762 _,_ 2 _._ 36463 _,_ 1 _._ 0985 _,_ 23 _._ 3332 _, −_ 1 _._ 03541 _, −_ 3 _._ 23761 _, −_ 12 _._ 8064 _,_ 4 _._ 03421 _, −_ 23 _._ 4342 _, −_ 17 _._ 8967 _,_ 1 _._ 96148 _,_ 5 _._ 07403 _, −_ 36 _._ 9009 _,_ 25 _._ 1379 _},_ _{_ 0 _._ 439713 _,_ 1 _._ 05904 _,_ 0 _._ 427613 _,_ 3 _._ 3177 _,_ 0 _._ 0872459 _,_ 0 _._ 635397 _, −_ 3 _._ 02822 _,_ 1 _._ 77416 _, −_ 4 _._ 10115 _,_ 3 _._ 16981 _, −_ 2 _._ 43002 _, −_ 5 _._ 33643 _, −_ 7 _._ 77038 _, −_ 6 _._ 08476 _,_ _−_ 0 _._ 541465 _, −_ 21 _._ 1672 _, −_ 1 _._ 4091 _, −_ 9 _._ 54326 _,_ 14 _._ 6334 _, −_ 39 _._ 2312 _},_ _{_ 0 _._ 5 _,_ 0 _,_ 0 _,_ 1 _,_ 0 _,_ 0 _,_ 0 _,_ 0 _,_ 0 _,_ 0 _,_ 0 _,_ 0 _,_ 0 _,_ 0 _,_ 0 _,_ 0 _,_ 0 _,_ 0 _,_ 0 _,_ 0 _}}_ (7.120) The first unusual fragments in the code are lines 12 and 13, which define functions that implement the calculation of second and third powers of pyramids. Recall Section 7.1.5. The first new fragment is line 14, which defines the pyramid `C0` with the aid of the Table command and an implied Do loop. As a result of executing this code, `C0` is an array of _L_ zeroes. The next three lines, lines 15 through 18, define `F`, which specifies the right sides of equations (6.12) through (6.14). See (6.15) through (6.18). The right side of `F` is of the form _{∗, ∗, ∗}_, an array of three pyramids. By looking at (6.15) and recalling the replacement rule, we see that the first pyramid should be `Z` [[ `2` ]], _z_ 2 ⇝ `Z` [[ `2` ]] _._ (7.121) The second pyramid on the right side of `F` is more complicated. It arises by applying the 80 replacement rule to the right side of (6.16) to obtain the associated pyramid, _−_ 2 _βz_ 3 _z_ 2 _−_ _z_ 3 <sup>2</sup> <sup>_z_</sup> <sup>1</sup> <sup>_−_</sup> <sup>_z_</sup> 1 <sup>3</sup> <sup>_−_</sup> <sup>_ϵz_</sup> 3 <sup>3</sup> <sup>sin</sup> <sup>_t_</sup> <sup>⇝</sup> _−_ `2` _._ `beta PROD` [ `Z` [[ `3` ]] _,_ `Z` [[ `2` ]]] _−_ `PROD` [ `POWER` [ `Z` [[ `3` ]] _,_ `2` ] _,_ `Z` [[ `1` ]]] _−_ `POWER` [ `Z` [[ `1` ]] _,_ `3` ] _−_ `eps Sin` [ `t` ] `POWER` [ `Z` [[ `3` ]] _,_ `3` ] _._ (7.122) The third pyramid on the right side of _F_ is simplicity itself. From (6.17) we see that this pyramid should be the result of applying the replacement rule to the number 0. Hence, this pyramid is `C0`, 0 ⇝ `C0` = _{_ `0` _,_ `0` _, · · ·_ _,_ `0` _}._ (7.123) The remaining lines of the code require little comment. Line 20 sets the initial time to 0, and line 21 defines _h_ in such a way that the final value of _t_ will be 2 _π_ . Line 22 establishes the parameter values _β_ = _._ 1 and _ϵ_ = 1 _._ 5, which are those for Figure 4. Line 23 specifies that the design initial condition is _z_ 1(0) = _z_ 1 <sup>_d_</sup> <sup>0</sup> <sup>=</sup> <sup>_._</sup> <sup>3</sup> <sup>_,_</sup> <sup>_z_</sup> <sup>2(0) =</sup> <sup>_z_</sup> 2 <sup>_d_</sup> <sup>0</sup> <sup>=</sup> <sup>_._</sup> <sup>4</sup> <sup>_,_</sup> <sup>_z_</sup> <sup>3(0) =</sup> <sup>_z_</sup> 3 <sup>_d_</sup> <sup>0</sup> <sup>=</sup> <sup>_._</sup> <sup>5 =</sup> <sup>_σ,_</sup> (7.124) and consequently _ω_ = 1 _/σ_ = 2 _._ (7.125) See (6.3). Also, it follows from (6.2) and (6.5) that _q_ (0) = _ωQ_ (0) = _ωz_ 1(0) = (2)( _._ 3) = _._ 6 _,_ (7.126) _q_ <sup>_′_</sup> (0) = _ω_ <sup>2</sup> _Q_ <sup>˙</sup> (0) = _ω_ <sup>2</sup> _z_ 2(0) = (2 <sup>2</sup> )( _._ 4) = 1 _._ 6 _._ (7.127) Next, lines 24 through 28 specify that the expansion is to be carried out about the initial conditions (7.124). Finally, line 29 invokes the `RK4` code given by (7.99). That is, as before, _no_ modifications are required in the integration code. A few more comments about the output are appropriate. Line 32 shows that the final time _t_ is indeed 2 _π_, as desired. The remaining output lines display the three pyramids that specify the final value of `Zvar` . From the first entry in each pyramid we see that _z_ 1(2 _π_ ) = _−_ 0 _._ 0493158 _,_ (7.128) _z_ 2(2 _π_ ) = 0 _._ 439713 _,_ (7.129) _z_ 3(2 _π_ ) = _._ 5 _,_ (7.130) when there are no deviations in the initial conditions. The remaining entries in the pyramids are the coefficients in the Taylor series that describe the changes in the final conditions that occur when changes are made in the initial conditions (including the parameter _σ_ ). We are, of course, particularly interested in the first two pyramids. The third pyramid has entries only in the first place and the fourth place, and these entries are the same as those 81 in the third pyramid pyramid for `Zvar` at the start of the integration, namely those in `zd0` [ `3` ] `C1` + `X` [ `3` ]. The fact that the third pyramid in `Zvar` remains constant is the expected consequence of (6.17). We should also describe how the _M_ 8 employed in Section 6.2 was actually computed. It could have been computed by setting _p_ = 8 in (7.120) and specifying a large number of steps _ns_ to insure good accuracy. Of course, when _p_ = 8, the pyramids are large. Therefore, one does not usually print them out, but rather writes them to files or sends them directly to other programs for further use. However, rather than using RK4 in (7.120), we replaced it with an adaptive 4-5 <sup>th</sup> order Runge-Kutta-Fehlberg routine that dynamically adjusts the time step _h_ during the course of integration to achieve a specified local accuracy, and we required that the error at each step be no larger than 10 <sup>_−_</sup> <sup>12</sup> . Like the RK4 routine, the Runge-Kutta-Fehlberg routine, when implemented in _Mathematica_, has the property that it can integrate any number of equations both in scalar variable and pyramid form without any changes in the code. <sup>10</sup> 7.4 Relation to the Complete Variational Equations At this point it may not be obvious to the reader that the use of pyramids in integration routines to obtain Taylor expansions is the same as integrating the complete variational equations. We now show that the integration of pyramid equations is equivalent to the forward integration of the complete variational equations. For simplicity, we will examine the single variable case with no parameter dependence. The reader who has mastered this case should be able to generalize the results obtained to the general case. In the single variable case with no parameter dependence (2.1) becomes _z_ ˙ = _f_ ( _z, t_ ) _._ (7.131) Let _z_ <sup>_d_</sup> ( _t_ ) be some design solution and introduce a deviation variable _ζ_ by writing _z_ = _z_ <sup>_d_</sup> + _ζ._ (7.132) Then the equation of motion (7.131) takes the form _z_ ˙ <sup>_d_</sup> + _ζ_ <sup>˙</sup> = _f_ ( _z_ <sup>_d_</sup> + _ζ, t_ ) _._ (7.133) Also, the relations (2.4) and (2.5) take the form _f_ ( _z_ <sup>_d_</sup> + _ζ, t_ ) = _f_ ( _z_ <sup>_d_</sup> _, t_ ) + _g_ ( _z_ <sup>_d_</sup> _, t, ζ_ ) (7.134) where _g_ has an expansion of the form _g_ ( _z_ <sup>_d_</sup> _, t, ζ_ ) = _∞_ _j_ =1 _g_ <sup>_j_</sup> ( _t_ ) _ζ_ <sup>_j_</sup> _._ (7.135) 10A _Mathematica_ version of this code is available from the first author upon request. 82 Finally, (2.6) and (2.7) become and (2.8) becomes _z_ ˙ <sup>_d_</sup> = _f_ ( _z_ <sup>_d_</sup> _, t_ ) _,_ (7.136) _ζ_ ˙ = _g_ ( _z_ <sup>_d_</sup> _, t, ζ_ ) = _∞_ _j_ =1 _g_ <sup>_j_</sup> ( _t_ ) _ζ_ <sup>_j_</sup> _,_ (7.137) _ζ_ = _∞_ _h_ <sup>_j_</sup> ( _t_ )( _ζi_ ) <sup>_j_</sup> _._ (7.138) _j_ =1 Insertion of (7.138) into both sides of (7.137) and equating like powers of _ζi_ now yields the set of differential equations _h_ ˙ <sup>_j′′_</sup> ( _t_ ) = _∞_ _j_ =1 _g_ <sup>_j_</sup> ( _t_ ) _U_ <sup>_j′′_</sup> (7.139) _j_ <sup>(</sup> <sup>_hs_</sup> <sup>) with</sup> <sup>_j, j′′_</sup> <sup>_≥_</sup> <sup>1</sup> where the (universal) functions _U_ <sup>_j′′_</sup> _j_ <sup>(</sup> <sup>_hs_</sup> <sup>)</sup> <sup>are</sup> <sup>given</sup> <sup>by</sup> <sup>the</sup> <sup>relations</sup>   _∞_ _j_ <sup>_′_</sup> =1 _j_ _h_ <sup>_j′_</sup> ( _ζi_ ) <sup>_j′_</sup>   = _∞_ _j_ <sup>_′′_</sup> =1 _U_ <sup>_j′′_</sup> (7.140) _j_ <sup>(</sup> <sup>_hs_</sup> <sup>)(</sup> <sup>_ζi_</sup> <sup>)</sup> <sup>_j′′._</sup> The equations (7.136) and (7.139) are to be integrated from _t_ = _t_ <sup>in</sup> = _t_ <sup>0</sup> to _t_ = _t_ <sup>fin</sup> with the initial conditions _z_ <sup>_d_</sup> ( _t_ <sup>0</sup> ) = _z_ <sup>_d_</sup> <sup>0</sup> _,_ (7.141) _h_ <sup>1</sup> ( _t_ <sup>0</sup> ) = 1 _,_ (7.142) _h_ <sup>_j′′_</sup> ( _t_ <sup>0</sup> ) = 0 for _j_ <sup>_′′_</sup> _>_ 1 _._ (7.143) Let us now consider the numerical integration of pyramids. Upon some reflection, we see that the numerical integration of pyramids is equivalent to finding the numerical solution to a differential equation with pyramid arguments. For example, in the single-variable case, let `Zvar` ( _t_ ) be the pyramid appearing in the integration process. Then, its integration is equivalent to solving numerically the pyramid differential equation ( _d/dt_ ) `Zvar` ( _t_ ) = `F` ( `Zvar` _, t_ ) _._ (7.144) We now work out the consequences of this observation. By the inverse of the replacement rule, we may associate a Taylor series with the pyramid `Zvar` ( _t_ ) by writing `Zvar` ( _t_ ) ⇝ _c_ 0( _t_ ) + 83 _j≥_ 1 _cj_ ( _t_ ) _x_ <sup>_j_</sup> _._ (7.145) By (1.45) it is intended that the entries in the pyramid `Zvar` ( _t_ ) be used to construct a corresponding Taylor series with variable _x_ . In view of (7.108), there are the initial conditions _c_ 0( _t_ 0) = _z_ <sup>_d_</sup> ( _t_ 0) _,_ (7.146) _c_ 1( _t_ 0) = 1 _,_ (7.147) _cj_ ( _t_ 0) = 0 for _j_ _>_ 1 _._ (7.148) We next seek the differential equations that determine the time evolution of the _cj_ ( _t_ ). Under the inverse replacement rule, there is also the correspondence ( _d/dt_ ) `Zvar` ( _t_ ) ⇝ _c_ ˙0( _t_ ) + _c_ ˙ _j_ ( _t_ ) _x_ <sup>_j_</sup> _._ (7.149) _j≥_ 1 We have found a representation for the left side of (7.144). We need to do the same for the right side. That is, we need the Taylor series associated with the pyramid `F` ( `Zvar` _, t_ ). By the inverse replacement rule, it will be given by the relation `F` ( `Zvar` _, t_ ) ⇝ _f_ ( _j≥_ 0 _cj_ ( _t_ ) _x_ <sup>_j_</sup> _, t_ ) _._ (7.150) Here it is understood that the right side of (7.150) is to be expanded in a Taylor series about _x_ = 0. From (7.134), (7.135), and (7.140) we have the relations _f_ ( _cj_ ( _t_ ) _x_ <sup>_j_</sup> _, t_ ) = _f_ ( _c_ 0( _t_ )) + _g_ ( _c_ 0( _t_ ) _, t,_ _cj_ ( _t_ ) _x_ <sup>_j_</sup> ) _cj_ ( _t_ ) _x_ <sup>_j_</sup> )) <sup>_k_</sup> _j≥_ 0 = _f_ ( _c_ 0( _t_ )) + = _f_ ( _c_ 0( _t_ )) + Therefore, there is the inverse replacement rule _j≥_ 1 _k≥_ 1 _k≥_ 1 _g_ <sup>_k_</sup> ( _t_ )(� _j≥_ 1 _j≥_ 1 _g_ <sup>_k_</sup> ( _t_ ) _Uk_ <sup>_j_</sup> <sup>(</sup> <sup>_cℓ_</sup> <sup>)</sup> <sup>_xj._</sup> _Uk_ <sup>_j_</sup> (7.151) _j≥_ 1 _Uk_ <sup>_j_</sup> <sup>(</sup> <sup>_cℓ_</sup> <sup>)</sup> <sup>_xj._</sup> (7.152) `F` ( `Zvar` _, t_ ) ⇝ _f_ ( _c_ 0( _t_ )) + _k≥_ 1 _g_ <sup>_k_</sup> ( _t_ ) Upon comparing like powers of _x_ in (7.149) and (7.152), we see that the pyramid differential equation (7.144) is equivalent to the set of differential equations _c_ ˙0( _t_ ) = _f_ ( _c_ 0( _t_ )) _,_ (7.153) _g_ <sup>_k_</sup> ( _t_ ) _Uk_ <sup>_j_</sup> <sup>(</sup> <sup>_cℓ_</sup> <sup>)</sup> <sup>_._</sup> (7.154) _c_ ˙ _j_ ( _t_ ) = _k≥_ 1 84 Finally, compare the initial conditions (7.141) through (7.143) with the initial conditions (7.146) through (7.148), and compare the differential equations (7.136) and (7.139) with the differential equations (7.153) and (7.154). We conclude that that there must be the relations _c_ 0( _t_ ) = _z_ <sup>_d_</sup> ( _t_ ) _,_ (7.155) _cj_ ( _t_ ) = _h_ <sup>_j_</sup> ( _t_ ) for _j_ _≥_ 1 _._ (7.156) We have verified, in the single variable case, that the use of pyramids in integration routines is equivalent to the solution of the complete variational equations using forward integration. As stated earlier, verification of the analogous _m_ -variable result is left to the reader. We also observe the wonderful convenience that, when pyramid operations are implemented and employed, it is not necessary to explicitly work out the forcing terms _ga_ <sup>_r_</sup> <sup>(</sup> <sup>_t_</sup> <sup>)</sup> <sup>and</sup> <sup>the</sup> functions _Ur_ <sup>_r′′_</sup> <sup>(</sup> <sup>_h_</sup> _n_ <sup>_s_</sup> <sup>), nor is it necessary to set up the equations (3.6).</sup> <sup>All these complications</sup> are handled implicitly and automatically by the pyramid routines. ##### 8 Concluding Summary Poincar´e analyticity implies that transfer maps arising from ordinary differential equations can be expanded as Taylor series in the initial conditions and also in whatever parameters may be present. Section 2 showed that the determination of these expansions is equivalent to solving the complete variational equations, and Sections 3 and 4 showed that the complete variational equations can be solved either by forward or backward integration. Sections 5 and 6 applied this procedure for the Duffing stroboscopic map and found, remarkably, that an 8 <sup>th</sup> order polynomial approximation to this map produced an infinite period doubling cascade and apparent strange attractor that closely resembled those of the exact map. A final section described computer methods for automatically setting up and numerically integrating the complete variational equations. ##### References [1] J. Barrow-Green, _Poincar´e_ _and_ _the_ _Three_ _Body_ _Problem_, American Mathematical Society (1997). [2] F. Browder, Edit., _The Mathematical Heritage of Henri Poincar´e,_ _Proceedings of Sym-_ _posia_ _in_ _Pure_ _Mathematics_ _of_ _the_ _American_ _Mathematical_ _Society_ 39, Parts 1 and 2, American Mathematical Society (1983). [3] H. Poincar´e, _New_ _Methods_ _of_ _Celestial_ _Mechanics,_ Parts 1, 2, and 3. (Originally pub lished as Les M´ethodes nouvelles de la M´echanique c´eleste.) American Institute of Physics _History_ _of_ _Modern_ _Physics_ _and_ _Astronomy_, Volume 13, D. L. Goroff, Edit., American Institute of Physics (1993). 85 [4] Francis J. Murray and Kenneth S. Miller, _Existence Theorems for Ordinary Differential_ _Equations_, New York University Press and Interscience Publishing Co. (1954). [5] The method of backward integration was discovered by F. Neri circa 1986. [6] A. Dragt, _Lie_ _Methods_ _for_ _Nonlinear_ _Dynamics_ _with_ _Applications_ _to_ _Accelerator_ _Physics_, (2011), available at http://www.physics.umd.edu/dsat/ [7] R. Neidinger, “Computing Multivariable Taylor Series to Arbitrary Order”, _Proc._ _of_ _Intern._ _Conf._ _on_ _Applied_ _programming_ _languages_, San Antonio, pp. 134-144 (1995). [8] Wolfram Research, Inc., _Mathematica_, Version 7.0, Champaign, IL (2008). [9] D. Kalman and R. Lindell, “A recursive approach to multivariate automatic differen tiation”, _Optimization_ _Methods_ _and_ _Software_, Volume 6, Issue 3, pp. 161-192 (1995). [10] M. Berz, “Differential algebraic description of beam dynamics to very high orders”, _Particle_ _Accelerators_ 24, p. 109 (1989). 86

섹션 본문

섹션 본문이 없습니다.

참고문헌

참고문헌 정보가 없습니다.