Mathematical and Computational Applications Article Some Notes to Extend the Study on Random Non-Autonomous Second Order Linear Differential Equations Appearing in Mathematical Modeling Julia Calatayud Gregori , Juan Carlos Cortés López and Marc Jornet Sanz * Instituto Universitario de Matemática Multidisciplinar, Universitat Politècnica de València, 46022 Valencia, Spain;
[email protected] (J.C.G.); [email protected].es (J.C.C.L.) *Correspondence:
[email protected] Received: 11 November 2018; Accepted: 24 November 2018; Published: 27 November 2018 Abstract: The objective of this paper is to complete certain issues from our recent contribution (Calatayud, J.; Cortés, J.-C.; Jornet, M.; Villafuerte, L. Random non-autonomous second order linear differential equations: mean square analytic solutions and their statistical properties. Adv. Differ. Equ. 2018 ,392, 1–29, doi:10.1186/s13662-018-1848-8). We restate the main theorem therein that deals with the homogeneous case, so that the hypotheses are clearer and also easier to check in applications. Another novelty is that we tackle the non-homogeneous equation with a theorem of existence of mean square analytic solution and a numerical example. We also prove the uniqueness of mean square solution via a habitual Lipschitz condition that extends the classical Picard theorem to mean square calculus. In this manner, the study on general random non-autonomous second order linear differential equations with analytic data processes is completely resolved. Finally, we relate our exposition based on random power series with polynomial chaos expansions and the random differential transform method, the latter being a reformulation of our random Fröbenius method. Keywords: random non-autonomous second order linear differential equation; mean square analytic solution; random power series; uncertainty quantification MSC: 34F05; 60H10; 60H35; 65C20; 65C30 1. Introduction The important role played by differential equations in dealing with mathematical modeling is beyond discussion. They are powerful tools to describe the dynamics of phenomena appearing in a variety of distinct realms, such as engineering, biomedicine, chemistry, social behavior, etc. [ 1 – 3 ]. In this paper, we concentrate on a class of differential equations that have played a distinguished role in a variety of applications in science, in particular in physics and engineering, namely second order linear differential equations. Indeed, these equations have been successfully applied to describe, for example, vibrations in springs (free undamped or simple harmonic motion, damped vibrations subject to a frictional force, or forced vibrations affected by an external force), the analysis of electric circuits made up of an electromotive force supplied by a battery or a generator, a resistor, an inductor, and a capacitor. In the former type of problems, second order linear differential equations are formulated by applying Newton’s second law, while in the latter case, this class of equations appears via the application of Kirchhoff’s voltage law. In these examples, the formulation of second order linear differential equations to describe the aforementioned physical problems appears as direct applications of important laws of physics. However, this class of equations also arises indirectly when solving significant partial differential equations in physics. In this regard, Airy, Hermite, Laguerre, Legendre, Math. Comput. Appl. 2018,23, 76; doi:10.3390/mca23040076 www.mdpi.com/journal/mca
Math. Comput. Appl. 2018,23, 76 2 of 14 or Bessel differential equations are non-autonomous second order linear differential equations that emerge in this way. For example, the Airy equation appears when solving Schrödinger’s equation with triangular potential and for a particle subject to a one-dimensional constant force field [ 4 ]; the Hermite equation emerges in dealing with the analysis of Schrödinger’s equation for a harmonic oscillator in quantum mechanics [ 5 ]; the Laguerre equation plays a main role in quantum mechanics for the study of the hydrogen atom via Schrödinger’s equation using radial functions [ 6 ] (Ch. 10); the Legendre equation appears when solving the Laplace equation to compute the potential of a conservative field such as the space gravitational potential using spherical coordinates [ 7 ]; and finally, the Bessel equation is encountered, for example, when solving the Helmholtz equation in cylindrical or spherical coordinates by using the method of the separation of variables [6] (Ch. 9). In all the previous examples, two important features can be highlighted to motivate our subsequent analysis. First, the coefficients of the differential equations are analytic (specifically polynomials). Second, these coefficients depend on physical parameters that, in practice, need to be fixed after measurements; therefore, they involve uncertainty. Both facts motivate the study of random non-autonomous second order linear differential equations, whose coefficients and initial conditions are analytic stochastic processes and random initial conditions, respectively. The aim of our contribution is to advance the analysis (both theoretical and practical) of this important class of equations. In our subsequent development, we mainly focus on the theoretical aspects of such an analysis with the conviction that it can become really useful in future applications where randomness is considered in that class of differential equations. In this sense, some numerical experiments illustrating and demonstrating the potentiality of our main findings are also included. The study of random non-autonomous second order linear differential equations has been carried out for particular cases, such as Airy, Hermite, Legendre, Laguerre, and Bessel equations (see [ 8 – 13 ], respectively), and the general case [ 14 – 17 ]. Alternative approaches to study this class of random/stochastic differential equations include the so-called probabilistic transformation method [ 18 ] and stochastic numerical schemes [19,20], for example. For the sake of clarity in the presentation, the layout of the paper is as follows: In Section 2, we study the homogeneous random non-autonomous second order linear differential. The analysis includes a result (Theorem 2) that simplifies the application of a recent finding by the authors that is particularly useful in practical cases. This issue is illustrated via several numerical examples where both the random Airy and Hermite differential equations are treated. In Section 3, the analysis is extended to a random non-autonomous second order linear differential equation with a forcing term. In this study, we have included conditions under which the solution is unique in the mean square sense. This theoretical study is supported with a numerical example as well. Section 4is addressed to enrich our contribution by comparing the random Fröbenius method proposed in this paper against other alternative approaches widely used in the extant literature, specifically generalized polynomial chaos (gPC) expansions, Monte Carlo simulations, and the random differential transform method. Conclusions and future research lines are drawn in Section 5. 2. Homogeneous Case We consider the general form of a homogeneous random non-autonomous second order linear differential equation in an underlying complete probability space (Ω,F,P): ¨ X(t) + A(t)˙ X(t) + B(t)X(t) = 0, t∈R, X(t0) = Y0, ˙ X(t0) = Y1. (1) It is assumed that the stochastic processes A(t) and B(t) are analytic at t0 in the mean square sense [21] (p. 99):
Math. Comput. Appl. 2018,23, 76 3 of 14 A(t) = ∞ ∑ n=0 An(t−t0)n,B(t) = ∞ ∑ n=0 Bn(t−t0)n,t∈(t0−r,r0+r), with convergence in L 2(Ω) . The terms A0 , A1 , . . . and B0 , B1 , . . . are random variables. In fact, they are related to A(t)and B(t), respectively, via Taylor expansions: An=A(n)(t0) n!,Bn=B(n)(t0) n!, where the derivatives are considered in the mean square sense. According to the Fröbenius method, we look for a solution stochastic process X(t) also expressible as a mean square convergent random power series on (t0−r,t0+r): X(t) = ∞ ∑ n=0 Xn(t−t0)n. mean square convergence is important, as it allows approximating the expectation (average) and variance (dispersion) statistics of X(t) at each t [ 21 ] (Th. 4.2.1, Th. 4.3.1). This is one of the primary goals of uncertainty quantification [22]. Proposition 1 ([ 21 ] (Th. 4.2.1, Th. 4.3.1)) . Let {Zn}∞ n=1 and Z be second order random variables. If Zn converges to Z as n→∞ in L 2(Ω) (i.e., in the mean square sense), then the expectation and variance of Z can be approximated as follows: E[Z(t)] = lim n→∞E[Zn(t)],V[Z(t)] = lim n→∞V[Zn(t)]. In [ 17 ], some auxiliary theorems on random power series were stated and proven: differentiation of random power series in the L p(Ω) sense [ 17 ] (Th. 3.1) and Mertens’ theorem for random series in the mean square sense [17] (Th. 3.2), which generalize their deterministic counterparts. Proposition 2 (Differentiation of a random power series in the L p(Ω) sense [ 17 ] (Th. 3.1)) . Let A(t) = ∑∞ n=0An(t−t0)n be a random power series in the L p(Ω) setting ( p≥ 1), for t∈(t0−r , t0+r) , r> 0. Then, the random power series ∑∞ n=1nAn(t−t0)n−1 exists in L p(Ω) for t∈(t0−r , t0+r) , and moreover, the Lp(Ω)derivative of A(t)is equal to it: ˙ A(t) = ∑∞ n=1nAn(t−t0)n−1, for all t ∈(t0−r,t0+r). Proposition 3 (Mertens’ theorem for random series in the mean square sense [ 17 ] (Th. 3.2)) . Let U =∑∞ n=0Unand V =∑∞ n=0Vn be two random series that converge in L 2(Ω) . Suppose that one of the series converges absolutely, say ∑∞ n=0kVnkL2(Ω)<∞. Then: ∞ ∑ n=0 Un! ∞ ∑ n=0 Vn!= ∞ ∑ n=0 Wn, where: Wn= n ∑ m=0 Un−mVm, and ∑∞ n=0Wn is understood in L 1(Ω) . The series ∑∞ n=0Wn is known as the Cauchy product of the series ∑∞ n=0Unand ∑∞ n=0Vn. With these two auxiliary results, the main theorem of [17] was stated as follows: Theorem 1 ([ 17 ] (Th. 3.3)) . Let A(t) = ∑∞ n=0An(t−t0)n and B(t) = ∑∞ n=0Bn(t−t0)n be two random series in the L 2(Ω) setting, for t∈(t0−r , t0+r) , r> 0being finite and fixed. Assume that the initial conditions Y0 and Y1 belong to L 2(Ω) . Suppose that there is a constant Cr> 0, maybe dependent on r , such that
Math. Comput. Appl. 2018,23, 76 4 of 14 kAnkL∞(Ω)≤Cr/rn and kBnkL∞(Ω)≤Cr/rn , n≥ 0. Then, the stochastic process X(t) = ∑∞ n=0Xn(t−t0)n , t∈(t0−r,t0+r), where: X0=Y0,X1=Y1, (2) Xn+2=−1 (n+2)(n+1) n ∑ m=0 [(m+1)An−mXm+1+Bn−mXm],n≥0, (3) is the unique analytic solution to the random initial value problem (1) in the mean square sense. This theorem is a generalization of the deterministic Fröbenius method to a random framework. As was demonstrated in [ 17 ], Theorem 1has many applications in practice. It supposes a unified approach to study the most well-known second order linear random differential equations: Airy [ 8 ], Hermite [ 9 ], Legendre [ 10 , 11 ], Laguerre [ 12 ], and Bessel [ 13 ]. The results established in these articles [8–13] are particular cases of Theorem 1. The main reason why this fact occurs is explained in [ 17 ] (Section 3.3): given a random variable Z , the fact that its centered absolute moments grow at most exponentially, E[|Z|n]≤HRn for certain H> 0 and R> 0, is equivalent to Z being essentially bounded, kZkL∞(Ω)≤R. Notice that Theorem 1does not require any independence assumption about the random input parameters. Moreover, from Theorem 1, [ 17 ] obtained error estimates for the approximation of the solution stochastic process, its mean, and its variance. Let us see that Theorem 1may be put in an easier to handle form. We substitute the growth condition on the coefficients A0 , A1 , . . . and B0 , B1 , . . . by the L ∞(Ω) convergence of the random power series that define A(t) and B(t) . In this manner, in practical applications, one does not need to find any constant Cr; see the forthcoming Examples 1–4. Theorem 2. Let A(t) = ∑∞ n=0An(t−t0)n and B(t) = ∑∞ n=0Bn(t−t0)n be two random series in the L ∞(Ω) setting, for t∈(t0−r , t0+r) , r> 0being finite and fixed. Assume that the initial conditions Y0 and Y1 belong to L 2(Ω) . Then, the stochastic process X(t) = ∑∞ n=0Xn(t−t0)n , t∈(t0−r , t0+r) , whose coefficients are defined by (2) and (3), is the unique analytic solution to the random initial value problem (1) in the mean square sense. Proof. By [11] (Lemma 2.3), ∞ ∑ n=0 kAnkL∞(Ω)|t−t0|n<∞, ∞ ∑ n=0 kBnkL∞(Ω)|t−t0|n<∞, for t∈(t0−r,t0+r). Thus, for each 0 ≤r1<r, ∞ ∑ n=0 kAnkL∞(Ω)rn 1<∞, ∞ ∑ n=0 kBnkL∞(Ω)rn 1<∞. Since the sequences {kAnkL∞(Ω)rn 1}∞ n=0 and {kBnkL∞(Ω)rn 1}∞ n=0 tend to zero, they are both bounded by a number Cr1>0: kAnkL∞(Ω)≤Cr1 rn 1 ,kBnkL∞(Ω)≤Cr1 rn 1 ,n≥0. Then, Theorem 1is applicable with r1 : the stochastic process X(t) = ∑∞ n=0Xn(t−t0)n whose coefficients are given by (2) and (3) is a mean square solution to (1) on (t0−r1 , t0+r1) . Now, since r1 is arbitrary, we can extend this result to the whole interval (t0−r,r0+r). Notice that we have proven that Theorem 1from [ 17 ] entails Theorem 2. However, the other way around also holds: Theorem 2implies Theorem 1. Thus, both theorems are equivalent and offer the same information. Indeed, if we assume the hypotheses from Theorem 1, then:
Math. Comput. Appl. 2018,23, 76 5 of 14 kAnkL∞(Ω)rn 1≤Crr1 rn,kBnkL∞(Ω)≤Crr1 rn, for any 0 ≤r1<r, and since ∑∞ n=0(r1 r)n<∞, by comparison, we derive that: ∞ ∑ n=0 kAnkL∞(Ω)rn 1<∞, ∞ ∑ n=0 kBnkL∞(Ω)rn 1<∞, which entails that the series of A(t) = ∑∞ n=0An(t−t0)n and B(t) = ∑∞ n=0Bn(t−t0)n converge L ∞(Ω) , by [ 11 ] (Lemma 2.3), for t∈(t0−r1 , t0+r1) . As r1 is arbitrary, the L ∞(Ω) convergence holds for t∈(t0−r,t0+r). This is exactly the hypothesis used in Theorem 2. Let us see that Theorem 2has an easier to handle form by checking the hypotheses in the examples from [ 17 ]. We refer the reader to [ 17 ] (Section 4) for approximations of the expectation and variance statistics of the solution stochastic process to each one of the examples. Example 1. Airy’s random differential equation is defined as follows: ¨ X(t) + AtX(t) = 0, t∈R, X(0) = Y0, ˙ X(0) = Y1, (4) where A , Y0 , and Y1 are random variables. We suppose that Y0 and Y1 have centered second order absolute moments. In [ 8 ], the hypothesis used in order to obtain a mean square analytic solution X(t) was E[|A|n]≤ HRn , n≥n0 . See [ 8 ] (expr. (18)–(19)) for the explicit expression of the solution process X(t) . Notice that this growth assumption is equivalent to kAkL∞(Ω)≤R , by [ 17 ] (Section 3.3). In our general notation, A(t) = 0 and B(t) = At . Due to the boundedness of the random variable A , the L ∞(Ω) convergence of the series that define A(t) and B(t) holds, so Theorem 2(and Theorem 1) is applicable: there is an analytic solution stochastic process X(t)to (4) on R, whose coefficients are defined by (2) and (3). Example 2. Hermite’s random differential equation is given as follows: ¨ X(t)−2t˙ X(t) + AX(t) = 0, t∈R, X(0) = Y0, ˙ X(0) = Y1, (5) where A , Y0 , and Y1 are random variables. We suppose that Y0 , Y1∈ L 2(Ω) . In [ 9 ], the hypothesis utilized to derive a mean square analytic solution X(t) was E[|A|n]≤HRn , n≥n0 . See [ 9 ] (expr. (26)–(27)) for the explicit expression of the solution process X(t) . This growth hypothesis is equivalent to kAkL∞(Ω)≤R , by [ 17 ] (Section 3.3). Under the boundedness of the random variable A , the input stochastic processes A(t) = − 2 t and B(t) = A are expressible as L ∞(Ω) convergent random power series. Hence, both Theorem 2and Theorem 1 are applicable and guarantee the existence of a mean square solution process X(t) on R , whose coefficients are defined by (2) and (3). Example 3. We consider the following random linear differential equation with polynomial data processes: ¨ X(t) + (A0+A1t)˙ X(t) + (B0+B1t)X(t) = 0, t∈R, X(0) = Y0, ˙ X(0) = Y1. (6) If the initial conditions Y0 and Y1 belong to L 2(Ω) and the random input parameters A0 , A1 , B0 , and B1 are bounded random variables, then the hypotheses of Theorem 2(and Theorem 1) are fulfilled, and we derive
Math. Comput. Appl. 2018,23, 76 6 of 14 that there is a mean square solution process X(t) on R , with coefficients defined by (2) and (3). In contrast to Example 1and Example 2, the partial sums of the series X(t) are not obtained explicitly. One computes the partial sums computationally via the recursion (2) and (3); see [17] (Example 4.3) for further details. Example 4. We consider (1) with the non-polynomial analytic stochastic process: ¨ X(t) + A(t)˙ X(t) + B(t)X(t) = 0, t∈R, X(0) = Y0, ˙ X(0) = Y1, (7) where An∼Beta( 11, 15 ) , for n≥ 0, Bn= 1 /n2 , for n≥ 1, and Y0 , Y1∈ L 2(Ω) . Since ∑∞ n=0kAnkL∞(Ω)|t|n=∑∞ n=0|t|n is finite for t∈(− 1, 1 ) , and analogously for B(t) , Theorem 2(and consequently, Theorem 1) implies that there is a mean square solution X(t) to (7) on (− 1, 1 ) , with coefficients expressed by (2) and (3). Unlike Example 1and Example 2, the partial sums of the series X(t) are not obtained explicitly, and one acts computationally by means of the recursion (2) and (3); see [ 17 ] (Example 4.4) for details. We raise the following open problem, which would imply that the hypotheses used in Theorem 2 are necessary: “If there exists a point t1∈(t0−r , t0+r) such that A(t1)/∈ L ∞(Ω) or B(t1)/∈ L ∞(Ω) , then there exist two initial conditions Y0 , Y1∈ L 2(Ω) such that (1) has no mean square solution on (t0−r , t0+r) ”. Although we have not been able to prove this statement (which might be false), we think that the proof might be based on the reasoning used in [23] (Example, pp. 4–5). This open problem, despite being of theoretical interest, does not contribute in practical applications. In numerical experiments, one usually truncates the stochastic processes A(t) and B(t) (that is, works with a partial sum instead of the whole Taylor series). This is not uncommon when dealing with stochastic systems computationally, as one requires a dimensionality reduction of the problem. If the coefficients of A(t) and/or B(t) have unbounded support, one may truncate them so that the hypotheses of Theorems 1and 2are fulfilled, and the probabilistic behavior of the data processes does not change much. 3. Non-Homogeneous Case In this section, we generalize (1) by adding a stochastic source term: ¨ X(t) + A(t)˙ X(t) + B(t)X(t) = C(t),t∈R, X(t0) = Y0, ˙ X(t0) = Y1. (8) This new term C(t)is analytic at t0in the mean square sense [21] (p. 99), with Taylor series: C(t) = ∞ ∑ n=0 Cn(t−t0)n,t∈(t0−r,t0+r). The coefficients C0 , C1 , . . . are random variables. For this new model (8), we want to find conditions under which X(t) is an analytic mean square solution on (t0−r , t0+r) . This work was not done in [ 17 ], and it completes the study on the random non-autonomous second order linear differential equation with analytic input processes. The following theorem is a generalization of Theorem 2: Theorem 3. Let A(t) = ∑∞ n=0An(t−t0)n and B(t) = ∑∞ n=0Bn(t−t0)n be two random series in the L ∞(Ω) setting, for t∈(t0−r , t0+r) , r> 0being finite and fixed. Let C(t) = ∑∞ n=0Cn(t−t0)n be a random series
Math. Comput. Appl. 2018,23, 76 7 of 14 in the mean square sense on (t0−r , t0+r) . Assume that the initial conditions Y0 and Y1 belong to L 2(Ω) . Then, the stochastic process X(t) = ∑∞ n=0Xn(t−t0)n, t ∈(t0−r,t0+r), whose coefficients are defined by: X0=Y0,X1=Y1, (9) Xn+2=1 (n+2)(n+1)(− n ∑ m=0 [(m+1)An−mXm+1+Bn−mXm]+Cn),n≥0, (10) is the unique analytic solution to the random initial value problem (8) in the mean square sense. Proof. Suppose that X(t) = ∑∞ n=0Xn(t−t0)n is a solution to (8) in the L 2(Ω) sense, for t∈(t0−r,t0+r) . By Proposition 2with p=2, the mean square derivatives of X(t)are given by: ˙ X(t) = ∞ ∑ n=1 nXn(t−t0)n−1= ∞ ∑ n=0 (n+1)Xn+1(t−t0)n, ¨ X(t) = ∞ ∑ n=2 n(n−1)Xn(t−t0)n−2= ∞ ∑ n=0 (n+2)(n+1)Xn+2(t−t0)n. By Proposition 3, A(t)˙ X(t) = ∞ ∑ n=0 n ∑ m=0 An−m(m+1)Xm+1!(t−t0)n, B(t)X(t) = ∞ ∑ n=0 n ∑ m=0 Bn−mXm!(t−t0)n, where these two random series converge in L1(Ω). From ¨ X(t) + A(t)˙ X(t) + B(t)X(t) = C(t), ∞ ∑ n=0"(n+2)(n+1)Xn+2+ n ∑ m=0 (An−m(m+1)Xm+1+Bn−mXm)#(t−t0)n= ∞ ∑ n=0 Cn(t−t0)n, where the infinite series converge in L 1(Ω) . By Proposition 2with p= 1, differentiating over and over again in the L1(Ω)sense and evaluating at t=t0yield: (n+2)(n+1)Xn+2+ n ∑ m=0 (An−m(m+1)Xm+1+Bn−mXm)=Cn. Isolating Xn+2, we obtain the recursive expression (10). Thus, it only remains to prove that the random power series X(t) = ∑∞ n=0Xn(t−t0)n , whose coefficients are defined by (9) and (10), converges in the mean square sense. From the hypothesis Y0 , Y1∈ L 2(Ω) and by induction on n in Expression (10), we obtain that Xn∈L2(Ω)for all n≥0. On the other hand, by [11] (Lemma 2.3), ∞ ∑ n=0 kAnkL∞(Ω)sn<∞, ∞ ∑ n=0 kBnkL∞(Ω)sn<∞, ∞ ∑ n=0 kCnkL2(Ω)sn<∞, for 0 <s<r . As the general term of a convergent series tends to zero, we have the following bounds: kAnkL∞(Ω)≤Ds sn,kBnkL∞(Ω)≤Ds sn,kCnkL2(Ω)≤Ds sn,n≥0, (11) for a certain constant Ds> 0 that depends on s . Then, from (10), if we apply L 2(Ω) norms and (11), we obtain:
Math. Comput. Appl. 2018,23, 76 8 of 14 kXn+2kL2(Ω)≤1 (n+2)(n+1)(n ∑ m=0h(m+1)kAn−mXm+1kL2(Ω)+kBn−mXmkL2(Ω)i+kCnkL2(Ω)) ≤1 (n+2)(n+1) Ds sn(n ∑ m=0 sm(m+1)kXm+1kL2(Ω)+kXmkL2(Ω)+1). (12) Define H0:=kY0kL2(Ω),H1:=kY1kL2(Ω), and: Hn+2:=1 (n+2)(n+1) Ds sn(n ∑ m=0 sm((m+1)Hm+1+Hm)+1),n≥0. (13) From (12) and (13), by induction on n , it is trivially seen that kXnkL2(Ω)≤Hn , for n≥ 0. If we check that ∑∞ n=0Hnρn 1<∞ , for all 0 <ρ1<s<r , then the random series that defines X(t) converges in the mean square sense on (t0−r,t0+r), as wanted. We rewrite (13) so that Hn+2 is expressed as a function of Hn+1 and Hn (second order recurrence equation). By assuming n≥1, we perform the following operations: Hn+2=1 (n+2)(n+1) Ds sn n−1 ∑ m=0 sm((m+1)Hm+1+Hm)+1+sn((n+1)Hn+1+Hn)! =1 (n+2)(n+1) Ds sn (n+1)n Ds sn−11 (n+1)n Ds sn−1(n−1 ∑ m=0 sm((m+1)Hm+1+Hm)+1) | {z } =Hn+1 +Ds n+2Hn+1+Ds (n+2)(n+1)Hn =n (n+2)s+Ds n+2Hn+1+Ds (n+2)(n+1)Hn. (14) This difference equation of order two has as initial conditions: H2=Ds 2(H1+H0+1),H1=kY1kL2(Ω),H0=kY0kL2(Ω). Notice that H2 is obtained from (13) . Expression (14) coincides with [ 17 ] (expr. (12)) (although with different initial conditions). Then, the method of proof for ∑∞ n=0Hnsn<∞ is identical to the last part of the proof of [17] (Th. 3.3). Indeed, fixing 0 <ρ1<ρ<s, we have: Hn+2ρn+2=nρ (n+2)s+Dsρ n+2Hn+1ρn+1+Dsρ2 (n+2)(n+1)Hnρn. Let Mn=max0≤m≤nHmρm. We have: Hn+2ρn+2≤nρ (n+2)s+Dsρ n+2+Dsρ2 (n+2)(n+1)Mn+1. Since: lim n→∞ nρ (n+2)s+Dsρ n+2+Dsρ2 (n+2)(n+1)=ρ s<1, it holds Mn+2=Mn+1 for all large n , and call the common value M . Hence, Hnρn≤M for all large n , therefore, Hnρn 1≤M(ρ1/ρ)n . Since ∑∞ n=0(ρ1/ρ)n<∞ , by comparison, the series ∑∞ n=0Hnρn 1 converges, and we are done. Example 5. Let us consider Hermite’s random differential equation with a stochastic source term:
Math. Comput. Appl. 2018,23, 76 9 of 14 ¨ X(t)−2t˙ X(t) + AX(t) = Ct2,t∈R, X(0) = Y0, ˙ X(0) = Y1, (15) where A , C , Y0 , and Y1 are random variables. Due to the non-homogeneity of the equation, this example cannot be addressed with [17]. We have set the following probability distributions: A∼Bernoulli(0.35),Y0∼Gamma(2, 2),(Y1,C)∼Multinomial(3, {0.2, 0.8}) (for the Gamma distribution, we use the shape-rate notation) where A , Y0 and (Y1 , C) are independent. Notice that we are considering both discrete and absolutely continuous random variables/vectors and also both independent and non-independent random variables/vectors. Thus, the Fröbenius method covers a wide variety of situations in practice. Since A is bounded and Y0 , Y1 , C∈ L 2(Ω) , Theorem 3ensures that the random power series X(t) = ∑∞ n=0Xn(t−t0)n defined recursively by (9) and (10) is a mean square solution to (15) on R . By considering the partial sums XN(t) = ∑N n=0Xn(t−t0)n , we approximate the expectation and variance of X(t)as: E[X(t)] = lim N→∞ E[XN(t)],V[X(t)] = lim N→∞ V[XN(t)], see Proposition 1. The computations have been performed in the software Mathematica R . Our code to build the partial sum XN(t)was the following one: X[n_?NonPositive] := Y0; X[1] = Y1; X[n_] := 1/(n*(n - 1))*(-Sum[(m + 1)*A[n - 2 - m]*X[m + 1] + B[n - 2 - m]*X[m], {m, 0, n - 2}] + CC[n - 2]); seriesX[t_, t0_, N_] := X[0] + Sum[X[n]*(t - t0)^n, {n, 1, N}]; This implementation in the computer is necessary, as no closed-form expression for XN(t) is available due to the complexity of (15). For each numeric value of N , the functions t7→ E[XN(t)] and t7→ V[XN(t)] have been calculated with the built-in function Expectation applied to seriesX[t, 0, N] (with symbolic t ), by setting the desired probability distributions to A[n] , B[n] , and CC[n] . In Tables 1and 2, we show E[XN(t)] and V[XN(t)] for N= 19, N= 20, and 0 ≤t≤ 1.5. Both orders of truncation produce similar results, which agrees with the theoretical convergence. Observe that, as we move away from the initial condition t0= 0, larger orders of truncation are needed. This indicates that the Fröbenius method might be computationally inviable for large t. The results have been compared with Monte Carlo simulation (with 100,000 and 200,000 realizations). tE[X19(t)] E[X20(t)] MC 100,000 MC 200,000 0.00 1 1 0.995893 1.00266 0.25 1.14231 1.14231 1.13899 1.14544 0.50 1.28890 1.28890 1.28672 1.29236 0.75 1.49183 1.49183 1.49130 1.49547 1.00 1.85892 1.85892 1.86087 1.86246 1.25 2.62573 2.62574 2.63173 2.62863 1.50 4.34772 4.34784 4.36111 4.34892 Table 1. Approximation of E[X(t)] with N=19, N=20, and Monte Carlo simulations. Example 5. tV[X19(t)] V[X20(t)] MC 100,000 MC 200,000 0.00 0.5 0.5 0.493124 0.504501 0.25 0.520298 0.520298 0.514702 0.524803 0.50 0.597008 0.597008 0.593603 0.601376 0.75 0.790556 0.790556 0.790161 0.794549 1.00 1.27425 1.27425 1.27702 1.27759 1.25 2.60694 2.60694 2.60987 2.60982 1.50 6.94095 6.94100 6.92663 6.94787 Table 2. Approximation of V[X(t)] with N=19, N=20, and Monte Carlo simulations. Example 5.