Next Article in Journal
Production Decline Rate Prediction for Offshore High Water-Cut Reservoirs by Integrating Moth–Flame Optimization with Extreme Gradient Boosting Tree
Previous Article in Journal
Insulation Ability and Morphological Effect of ZrO2 Spacer Layer in Carbon-Based Multiporous Layered Electrode Perovskite Solar Cells
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

The First- and Second-Order Features Adjoint Sensitivity Analysis Methodologies for Fredholm-Type Neural Integro-Differential Equations: An Illustrative Application to a Heat Transfer Model—Part II

by
Dan Gabriel Cacuci
Department of Mechanical Engineering, University of South Carolina, Columbia, SC 29208, USA
Processes 2025, 13(7), 2265; https://doi.org/10.3390/pr13072265
Submission received: 29 May 2025 / Revised: 8 July 2025 / Accepted: 11 July 2025 / Published: 16 July 2025
(This article belongs to the Section Energy Systems)

Abstract

This work illustrates the application of the “First-Order Features Adjoint Sensitivity Analysis Methodology for Neural Integro-Differential Equations of Fredholm-Type” (1st-FASAM-NIDE-F) and the “Second-Order Features Adjoint Sensitivity Analysis Methodology for Neural Integro-Differential Equations of Fredholm-Type” (2nd-FASAM-NIDE-F) to a paradigm heat transfer model. This physically based heat transfer model has been deliberately constructed so that it can be represented either by a neural integro-differential equation of a Fredholm type (NIDE-F) or by a conventional second-order “neural ordinary differential equation (NODE)” while admitting exact closed-form solutions/expressions for all quantities of interest, including state functions and first-order and second-order sensitivities. This heat transfer model enables a detailed comparison of the 1st- and 2nd-FASAM-NIDE-F versus the recently developed 1st- and 2nd-FASAM-NODE methodologies, highlighting the considerations underlying the optimal choice for cases where the neural net of interest is amenable to using either of these methodologies for its sensitivity analysis. It is shown that the 1st-FASAM-NIDE-F methodology enables the most efficient computation of exactly determined first-order sensitivities of the decoder response with respect to the optimized NIDE-F parameters, requiring a single “large-scale” computation for solving the 1st-Level Adjoint Sensitivity System (1st-LASS), regardless of the number of weights/parameters underlying the NIDE-F decoder, hidden layers, and encoder. The 2nd-FASAM-NIDE-F methodology enables the computation, with unparalleled efficiency, of the second-order sensitivities of decoder responses with respect to the optimized/trained weights.

1. Introduction

The mathematical frameworks of the 1st-FASAM-NIDE-F (First-Order Features Adjoint Sensitivity Analysis Methodology for Neural Integro-Differential Equations of Fredholm-Type) and the 2nd-FASAM-NIDE-F (Second Order Features Adjoint Sensitivity Analysis Methodology for Neural Integro-Differential Equations of Fredholm-Type) were introduced in “Part I” [1]. This work (Part II) presents illustrative applications of the 1st-FASAM-NIDE-F and the 2nd-FASAM-NIDE-F methodologies to a paradigm heat conduction model. Heat conduction processes occur in many fields and have been analyzed for a long time, as illustrated in [2,3,4,5,6,7,8,9,10]. The particular illustrative heat conduction model constructed for this work admits exact closed-form solutions/expressions for all quantities of interest, including state functions and first-order and second-order sensitivities. In addition, this illustrative model can be formulated either as a first-order “neural integro-differential equation of Fredholm-type” (NIDE-F [11,12,13,14,15,16]) or as a conventional second-order “neural ordinary differential equation” (“NODE” [17,18,19,20,21,22,23,24]). The mathematical framework of the “Second-Order Features Adjoint Sensitivity Analysis Methodology for Neural Ordinary Differential Equations (2nd-FASAM-NODE)” was recently presented by Cacuci [25]. The 2nd-FASAM-NODE methodology includes the “First-Order Features Adjoint Sensitivity Analysis Methodology for Neural Ordinary Differential Equations (1st-FASAM-NODE).” By admitting equivalent formulations, either as a NIDE-F or as a NODE, the illustrative paradigm heat conduction model considered in this work makes it possible to compare the detailed, step-by-step, applications of the 1st-FASAM-NIDE-F versus the 1st-FASAM-NODE methodologies (for computing most efficiently the exact expressions of the first-order sensitivities of the decoder response with respect to the model parameters) and, subsequently, to compare the applications of the 2nd-FASAM-NIDE-F versus the 2nd-FASAM-NODE methodologies (for computing most efficiently the exact expressions of the second-order sensitivities of the decoder response with respect to the model parameters).
Section 2.1, below, presents the application of the 1st-FASAM-NIDE-F methodology for obtaining the exact expressions of the first-order sensitivities of the heat conduction model response with respect to the model parameters, using the model in its NIDE-F form. For comparison, Section 2.2 uses the model in its NODE form and illustrates the application of the 1st-FASAM-NODE methodology [25] for obtaining the exact expressions of the same first-order sensitivities (of the heat conduction model response with respect to the model parameters). Section 2.3 presents a comparative discussion that highlights the similarities and differences between the application of the 1st-FASAM-NIDE-F methodology versus the 1st-FASAM-NODE methodology.
Section 3.1 presents the application of the 2nd-FASAM-NIDE-F methodology to obtain the exact expressions of the second-order response sensitivities to model parameters. The alternative application of the 2nd-FASAM-NODE methodology [25] to obtain the second-order response sensitivities to model parameters is presented in Section 3.2. The discussion presented in Section 4 highlights the unparallelled efficiency of the 1st-FASAM-NIDE-F and 2nd-FASAM-NIDE-F methodologies for computing first- and second-order sensitivities of model responses to model parameters. Section 5 concludes this work by noting that the heat conduction model analyzed in this work provides a paradigm example that can be followed not only for applications in heat conduction processes but also for applications in all fields involving neural integro-differential equations of the Fredholm type.

2. Illustrative Application of the 1st-FASAM-NIDE-F Versus the 1st-FASAM-NODE Methodologies to a Heat Transfer Model

The application of the 1st-FASAM-NIDE-F methodology [1] will be illustrated in this Section by considering a model of linear steady-state heat conduction through a homogeneous slab of thickness l , having constant thermal conductivity denoted as k and involving a distributed heat source that is proportional to the temperature distribution within the slab; the proportionality constant is denoted as Q . The slab is considered to be insulated on one side, which is held at a temperature T 0 . The temperature distribution within the slab, denoted as T x , is thus modeled by the following linear heat conduction equation:
d 2 T x d x 2 + Q k T x = 0 ; 0 < x < l ; T 0 = T 0 ; d T x d x x = 0 = 0 .
Consider that the model response of interest, denoted as R T , is the average temperature within the slab, which is defined as follows:
R T 1 l 0 l T x d x .
The model’s primary parameters k , Q , and T 0 are subject to uncertainties, but their nominal/optimal values, denoted as k 0 , Q 0 , T 0 0 , are considered to be known. These parameters are considered to be components of the following (column) “vector of model parameters”:
θ k , Q , T 0 .
The solution of Equation (1) has the following expression:
T x = T 0 cos x γ ( θ ) ; γ ( θ ) Q / k .
The quantity γ ( θ ) is a “feature function” of the primary model parameters. Using in Equation (2) the result obtained in Equation (4) yields the following closed form expression for the model response:
R T T 0 l γ ( θ ) sin l γ ( θ ) .
At the nominal parameter values, the nominal value of the temperature distribution and of the average temperature response, respectively, have the following expressions:
T 0 x = T 0 0 cos x γ 0 ; γ 0 γ ( θ 0 ) ;
R 0 T 0 T 0 0 l γ 0 sin l γ 0 .

2.1. Applying the 1st-FASAM-NIDE-F Methodology to Obtain the First-Order Response Sensitivities to the Primary Model Parameters

The heat conduction equation presented in Equation (1) can be recast into the following equivalent NIDE-F form:
d T x d x + γ 2 ( θ ) 0 l T x d x = T 0 γ ( θ ) sin l γ ( θ ) sin x γ ( θ ) ; T 0 = T 0 .
The first-order sensitivities of the response R T will be determined by applying the general principles of the 1st-FASAM-NIDE-F methodology presented in [1], commencing by determining the first-order Gateaux- (G-) differential, denoted as δ R , of the response R T , which is obtained by applying the definition of the G-differential to the response defined in Equation (2), as follows:
δ R d d ε 1 l 0 l T x + ε δ T x d x ε = 0 = 1 l 0 l δ T x d x .
The variation δ T x is the solution of the 1st-Level Variational Sensitivity System (1st-LVSS) obtained by G-differentiating Equation (8), which yields the following NIDE-F for arbitrary variations δ T x and δ γ ( θ ) around the nominal values T 0 x , θ 0 :
d d ε d T 0 + ε δ T d x + γ 0 + ε δ γ 2 0 l T 0 + ε δ T d x ε = 0 = d d ε T 0 0 + ε δ T 0 γ 0 + ε δ γ sin l γ 0 + ε δ γ sin x γ 0 + ε δ γ ε = 0 ; d d ε T 0 x + ε δ T x x = 0 ε = 0 = δ T 0 .
Performing the operations indicated in Equation (10) yields the following form for the 1st-LVSS:
d d x δ T x + γ 2 ( θ ) 0 l δ T x d x θ = θ 0 = q 1 x , q 1 x δ T 0 γ ( θ ) + δ γ ( θ ) T 0 sin l γ ( θ ) sin x γ ( θ ) θ = θ 0 + δ γ ( θ ) T 0 γ ( θ ) l cos l γ ( θ ) x cos x γ ( θ ) θ = θ 0 2 δ γ ( θ ) γ ( θ ) 0 l T x d x θ = θ 0 ;
δ T x x = 0 = δ T 0 .
For subsequent reference, it is noted that the solution of the above 1st-LVSS has the following expression:
δ T x = δ T 0 cos x γ ( θ ) δ γ ( θ ) T 0 x sin x γ ( θ ) .
The 1st-LVSS would need to be solved repeatedly, using every possible parameter variation, in order to determine the corresponding value of the temperature variation δ T x . These repeated computations can be avoided by eliminating the appearance of the variation δ T x in Equation (9); this aim can be achieved by deriving an alternative expression for the response variation δ R that would not involve the variation δ T x . This alternative expression for δ R will be derived in terms of a first-level adjoint function to be obtained as the solution of the 1st-Level Adjoint Sensitivity System (1st-LASS) to be constructed next by applying the general principles of the 1st-FASAM-NIDE-F Methodology presented in [1]. The construction of this 1st-LASS will be performed in a Hilbert space dented as H 1 Ω x , Ω x x 0 , l , and endowed with an inner product of two elements χ 1 1 x H 1 Ω x and η 1 1 x H 1 Ω x , denoted as χ 1 1 x , η 1 1 x 1 and defined as follows:
χ 1 1 x , η 1 1 x 1 0 l χ 1 1 x η 1 1 x d x .
Forming the inner product of Equation (11) with a yet-undefined function a 1 x yields the following relation:
0 l a 1 x d d x δ T x d x + γ 2 ( θ ) 0 l a 1 x d x 0 l δ T x d x = 0 l a 1 x q 1 x d x .
The relation obtained in Equation (15) is satisfied at the nominal/optimal parameter values, but this fact has not been explicitly indicated in order to simplify the notation. Integrating by parts the first term on the left-side of Equation (15) and rearranging the second term on the left-side of Equation (15) yields the following relation:
0 l a 1 x d x d d x δ T x + γ 2 ( θ ) 0 l a 1 x d x 0 l δ T x d x = a 1 l δ T l a 1 0 δ T 0 + 0 l δ T x d x d a 1 x d x + γ 2 ( θ ) 0 l a 1 x d x .
The function a 1 x will now be determined as follows: (i) it is required that the last term on the right-side of Equation (16) be identical to the G-differential δ R defined in Equation (9), and (ii) the unknown quantity δ T l is eliminated in Equation (16). Imposing these requirements yields the following NIDE-F system for the function a 1 x :
d a 1 x d x + γ 2 ( θ ) 0 l a 1 x d x = 1 l ;
a 1 l = 0 .
The NIDE-F-net represented by Equations (17) and (18) constitutes the 1st-Level Adjoint Sensitivity System (1st-LASS) for the 1st-level adjoint sensitivity function a 1 x . The 1st-LASS is satisfied at the nominal parameter values but this fact has not been explicitly indicated in order to simplify the notation.
Using Equations (15)–(18) in conjunction with Equation (9) yields the following alternative expression for the G-differential δ R in terms of a 1 x :
δ R = 0 l a 1 x q 1 x d x + a 1 0 δ T 0 .
Using, in Equation (19), the expression provided for q 1 x in Equation (11) and identifying the expressions that multiply the variations δ T 0 and δ γ ( θ ) yields the following expressions for the first-order sensitivities of the response with respect to the initial condition T 0 and the feature function γ ( θ ) , respectively:
R T 0 = γ ( θ ) 0 l a 1 x sin l γ ( θ ) sin x γ ( θ ) d x + a 1 0 ;
R γ ( θ ) = T 0 0 l a 1 x sin l γ ( θ ) sin x γ ( θ ) d x + T 0 γ ( θ ) 0 l a 1 x l cos l γ ( θ ) x cos x γ ( θ ) d x 2 γ ( θ ) 0 l a 1 x d x 0 l T x d x .
The expressions obtained in Equations (20) and (21) can be evaluated after having determined the 1st-level adjoint sensitivity function a 1 x . Also, these expressions are to be evaluated using the nominal/optimal parameter values, but this fact has not been explicitly indicated in order to simplify the notation. Notably, the 1st-LASS is independent of parameter variations, so it needs to be solved only once to determine a 1 x . The closed-form explicit expression of the solution of the 1st-LASS represented by Equations (17) and (18) is provided below:
a 1 x = 2 x l l 2 + l 2 γ 2 ( θ ) .
Using the expression obtained in Equation (22) into Equations (20) and (21), respectively, and performing the respective integrations yields the following closed-form expressions:
R T 0 = sin l γ ( θ ) l γ ( θ ) ;
R γ ( θ ) = T 0 γ ( θ ) cos l γ ( θ ) T 0 l γ 2 ( θ ) sin l γ ( θ ) .
As expected, the expressions obtained in Equations (23) and (24) coincide with the expressions that would be obtained by the direct differentiation of the expression for the model response R T obtained in Equation (5) with respect to T 0 and γ ( θ ) , respectively. Of course, the closed-form exact expression for the model response in terms of the model’s primary parameters and/or feature functions is not available in practice.
The sensitivities of the model response with respect to the primary parameters are obtained by using the result obtained in Equation (24) in conjunction with the following “chain-rule of differentiation”:
R Q = R γ ( θ ) γ ( θ ) Q = 1 2 k Q R γ ( θ ) ;
R k = R γ ( θ ) γ ( θ ) k = 1 2 k Q k R γ ( θ ) .

2.2. Applying the 1st-FASAM-NODE Methodology to Obtain the First-Order Response Sensitivities to the Primary Model Parameters

The traditional form of the heat conduction model provided in Equation (1) is a neural ordinary differential equation (NODE) which can be analyzed directly by using the “First-Order Features Adjoint Sensitivity Analysis Methodology for Neural Ordinary Differential Equations (1st-FASAM-NODE) introduced by Cacuci [1]. The G-differential of Equation (1) yields the following 1st-LVSS in NODE-form satisfied by the temperature variation δ T x :
d 2 d x 2 δ T x + γ 2 ( θ ) δ T x θ = θ 0 = 2 δ γ ( θ ) γ ( θ ) T x θ = θ 0 ; 0 < x < l ;
δ T 0 = δ T 0 ; d d x δ T x x = 0 = 0 .
The 1st-LASS corresponding to the above 1st-LVSS is obtained by implementing the same steps as outlined in the previous Subsection, by using Equation (14) to construct the inner-product of a yet undetermined function b 1 x with Equation (27) to obtain the following relation:
0 l b 1 x d x d 2 d x 2 δ T x + γ 2 ( θ ) δ T x = 2 δ γ ( θ ) γ ( θ ) 0 l b 1 x T x d x .
The relation obtained in Equation (29) is to be evaluated at the nominal/optimal parameter values, but this fact has not been explicitly indicated in order to simplify the notation.
Integrating by parts the first term on the left-side of Equation (29) yields the following relation:
0 l b 1 x d x d 2 d x 2 δ T x + γ 2 ( θ ) δ T x = b 1 l d d x δ T x x = l b 1 0 d d x δ T x x = 0 δ T x d b 1 x d x x = l + δ T x d b 1 x d x x = 0 + 0 l δ T x d 2 b 1 x d x 2 + γ 2 ( θ ) b 1 x d x .
Identifying the last term on the right-side of Equation (30) with the G-differential δ R provided in Equation (9), using the conditions provided in Equation (28) and eliminating the unknown boundary values on the right-side of Equation (30) yields the following expression for the G-differential in terms of the function b 1 x :
δ R = 2 δ γ ( θ ) γ ( θ ) 0 l b 1 x T x d x δ T 0 d b 1 x d x x = 0 ,
where the 1st-level adjoint sensitivity function b 1 x is the solution of the following 1st-Level Adjoint Sensitivity System (1st-LASS):
d 2 b 1 x d x 2 + γ 2 ( θ ) b 1 x = 1 l ; 0 < x < l ;
b 1 l = 0 ; d b 1 x d x x = l = 0 .
Identifying the quantities that multiply the variations δ T 0 and δ γ ( θ ) in Equation (31) yields the following expressions for the sensitivities of the model response with respect to T 0 and γ ( θ ) :
R T 0 = d b 1 x d x x = 0 = 0 l b 1 x δ x d x ;
R γ ( θ ) = 2 γ ( θ ) 0 l b 1 x T x d x .
The 1st-LASS can be readily solved to obtain the following expression for the 1st-level adjoint sensitivity function b 1 x :
b 1 x = 1 cos x l γ ( θ ) l γ 2 ( θ ) .
Using in Equations (34) and (35) the expression for b 1 x obtained above yields the following expressions:
R T 0 = sin l γ ( θ ) l γ ( θ ) ;
R γ ( θ ) = T 0 γ ( θ ) cos l γ ( θ ) T 0 l γ 2 ( θ ) sin l γ ( θ ) .
All of the results obtained in Equations (29)–(38) are to be evaluated at the nominal parameter values, but this fact has not been explicitly indicated in order to simplify the notation. As expected, the expression obtained in Equation (37) coincides with the expression obtained in Equation (23), while the expression obtained in Equation (38) coincides with the expression obtained in Equation (24).

2.3. Comparison: Applying the 1st-FASAM-NODE Methodology Versus Applying the 1st-FASAM-NIDE-F Methodology

In cases where the model can be expressed equivalently in either NODE or in NIE-F forms, such as shown in Equation (1) or Equation (8), respectively, it is important to highlight the similarities and differences between applying the 1st-FASAM-NODE methodology versus applying the 1st-FASAM-NIDE-F methodology for determining the first-order response sensitivities to the underlying model parameters. Even though the form of the 1st-LVSS produced by the NODE methodology, namely Equations (27) and (28), differs from the form of the 1st-LVSS produced by the NIDE-F methodology, namely Equations (11) and (12), the two forms are equivalent to each other, so the solutions of these 1st-LVSS are identical to each other, having the expression provided in Equation (13).
On the other hand, the 1st-LASS corresponding to the NODE heat conduction model is not equivalent to the 1st-LASS corresponding to the NIDE-F heat conduction model, so that the corresponding 1st-level adjoint sensitivity function b 1 x for the NODE-model, namely Equation (36), differs from the 1st-level adjoint sensitivity function a 1 x for the NIDE-F heat conduction model, which is provided in Equation (22). Consequently, the expressions obtained in terms of the respective 1st-level adjoint sensitivity functions of the sensitivities of the model response with respect to the primary parameters and feature function for the NODE-representation, namely Equations (34) and (35), differ from those obtained for the NIDE-F representation, namely Equations (20) and (21). The structure of the 1st-LASS and expressions for sensitivities appear to be simpler in the NODE-representation than in the NIDE-F representation, but the choice of representation/framework will be largely influenced by the neural-net software available to the individual user. Ultimately, the final results for the first-order response sensitivities obtained in Equations (37) and (38) by treating the heat conduction model as a NODE-net, cf. Equation (1), are identical with the final results obtained in Equations (23) and (24) by having treated the heat conduction model as a NIDE-F-net, cf. Equation (8).

3. Illustrative Application of the 2nd-FASAM-NIDE Methodology Versus the 2nd-FASAM-NODE Methodology for Computing the Second-Order Response Sensitivities to Model Features and Parameters

When applying the 2nd-FASAM-NIDE-F methodology, the second-order sensitivities arise from the first-order sensitivities obtained in Equations (20) and (21). The derivations involved when applying the 2nd-FASAM-NIDE-F methodology [1] will be presented in Section 3.1, below. Alternatively, when applying the 2nd-FASAM-NODE methodology [10], the second-order sensitivities arise from the first-order sensitivities obtained in Equations (34) and (35). The derivations for this case will be presented in Section 3.2, below.

3.1. Application of the 2nd-FASAM-NIDE-F Methodology to Obtain the Exact Expressions of the Second-Order Response Sensitivities to Model Parameters

When applying the 2nd-FASAM-NIDE-F methodology [1], the second-order sensitivities arise from the first-order sensitivities obtained in Equations (20) and (21). The second-order sensitivities stemming from Equation (20) are derived in Section 3.1.1, while the second-order sensitivities arising from Equation (21) are derived in Section 3.1.2.

3.1.1. Second-Order Sensitivities Stemming from R / T 0 Defined in Equation (20)

The second-order sensitivities arising from the first-order sensitivity expressed by Equation (20) are provided by the G-differential of the respective expression of R / T 0 , for arbitrary variations around the nominal parameter and function values (indicated by the use of the superscript “zero”). Using in Equation (20) the expression for a 1 0 obtained from Equation (22) and applying the definition of the G-differential to the resulting expression yields the relation below:
δ R T 0 δ R T 0 d i r + δ R T 0 i n d = d d ε 2 2 + l 2 γ 0 + ε δ γ 2 1 ε = 0 + d d ε γ 0 + ε δ γ 0 l a 1 , 0 x + ε δ a 1 x sin l γ 0 + ε δ γ sin x γ 0 + ε δ γ   d x ε = 0 ;
where the expressions for the above direct-effect and, respectively, indirect-effect terms are shown below:
δ R T 0 d i r = 4 γ l 2 δ γ 2 + l 2 γ 2 2 θ 0 + δ γ 0 l sin l γ sin x γ + γ l cos l γ x γ sin x γ a 1 x   d x θ 0 ;
δ R T 0 i n d = γ 0 l sin l γ sin x γ δ a 1 x d x θ 0
The direct-effect term can be evaluated immediately. The indirect-effect term depends on the variational function δ a 1 x , which is the solution of the 2nd-LVSS obtained by G-differentiating the 1st-LASS comprising Equations (17) and (18). By definition, the 2nd-LVSS is obtained as follows:
d d x a 1 , 0 x + ε δ a 1 x ε = 0 + γ 0 + ε δ γ 2 0 l a 1 , 0 x + ε δ a 1 x d x ε = 0 = 0 ;
δ a 1 l = 0 .
Performing the operations indicated in Equation (42) yields the following NIDE-F, to be evaluated at the nominal parameter values:
d d x δ a 1 x + γ 2 0 l δ a 1 x d x = 2 γ δ γ 0 l a 1 x d x .
Since the indirect-effect term only depends on the variational function δ a 1 x but does not depend on the variational function δ T x , the relations presented in Equations (43) and (44) constitute the 2nd-LVSS for the function δ a 1 x , which is dependent on parameter variations and would need to be solved anew for each parameter variation in interest.
The need for computing δ a 1 x repeatedly, for every parameter variation in interest, can be avoided by expressing the indirect-effect term defined by Equation (41) in terms of a 2nd-level adjoint sensitivity function that is independent of parameter variations. This adjoint function will be denoted as a 2 1 ; x , where the argument “1” indicates that this adjoint function corresponds to the first-order sensitivity R / T 0 , which was chosen in this case to be the “first” 1st-order sensitivity to be considered. The 2nd-LASS to be satisfied by a 2 1 ; x will be constructed by applying the 2nd-FASAM-NIDE-F, which commences by forming the inner product of a 2 1 ; x with Equation (44), to obtain the following relation:
0 l a 2 1 ; x d d x δ a 1 x d x + γ 2 0 l a 2 1 ; x   d x 0 l δ a 1 y d y = 2 γ δ γ 0 l a 2 1 ; x   d x 0 l a 1 y d y .
Integrating by parts the first term on the left-side of Equation (45) and reversing the order of integrations in the remaining terms yields the following relation:
0 l δ a 1 x d d x a 2 1 ; x + γ 2 0 l a 2 1 ; x d x d x a 2 1 ; l δ a 1 l + a 2 1 ; 0 δ a 1 0 = 2 γ δ γ 0 l a 2 1 ; x   d x 0 l a 1 y d y .
The first term on the left-side of Equation (46) is now required to represent the indirect-effect term defined in Equation (41), which yields the relation below:
d d x a 2 1 ; x + γ 2 0 l a 2 1 ; x d x = γ sin l γ sin x γ .
The unknown quantity δ a 1 0 is eliminated from Equation (46) by imposing the following condition:
a 2 1 ; 0 = 0 .
Replacing the results obtained in Equations (43), (47) and (48) into Equation (46) yields the following alternative expression for the indirect-effect term:
δ R T 0 i n d = 2 γ δ γ 0 l a 2 1 ; x d x 0 l a 1 y d y ,
where the 2nd-level adjoint sensitivity function a 2 1 ; x is the solution of the 2nd-Level Adjoint Sensitivity System (2nd-LASS) comprising Equations (47) and (48). The 2nd-LASS is a NIDE-F net that does not depend on parameter variations and needs to be solved once only at the nominal parameter values; its solution, a 2 1 ; x , is used in Equation (49).
Adding the expressions obtained in Equations (40) and (49) yields the following expression:
δ R T 0 = 4 γ l 2 δ γ 2 + l 2 γ 2 2 + δ γ 0 l a 1 x sin l γ sin x γ + γ l cos l γ x γ sin x γ   d x 2 γ δ γ 0 l a 2 1 ; x   d x 0 l a 1 y d y 2 R T 0 T 0 δ T 0 + 2 R T 0 δ γ δ γ .
It follows from Equation (50) that
2 R T 0 T 0 = 0 ; 2 R T 0 δ γ = 0 l sin l γ sin x γ + γ l cos l γ x γ sin x γ a 1 x   d x 2 γ 0 l a 2 1 ; x   d x 0 l a 1 y d y 4 γ l 2 2 + l 2 γ 2 2 .
The 2nd-LASS represented by Equations (47) and (48) can be solved to obtain the following closed-form expression, to be evaluated at the nominal parameter values, for its solution:
a 2 1 ; x = γ 2 l 1 + γ 2 l 2 / 2 x + cos γ x 1 .
Inserting the above expression for a 2 1 ; x into Equation (51) and performing the respective integrations yields the following closed-form expression for the mixed second-order sensitivity:
2 R T 0 δ γ = 1 γ ( θ ) cos l γ ( θ ) 1 l γ 2 ( θ ) sin l γ ( θ ) .
The validity of the above expression can be readily verified by taking the appropriate derivative of either of the first-order sensitivities provided in Equations (37) and (38).

3.1.2. Second-Order Sensitivities Stemming from R / γ ( θ ) Expressed by Equation (21)

The second-order sensitivities arising from the first-order sensitivity R / γ ( θ ) expressed by Equation (21) are provided by the G-differential of the respective expression for arbitrary variations around the nominal parameter and function values (indicated by the use of the superscript “zero”). By definition, this G-differential is obtained as follows:
δ R γ ( θ ) δ R γ ( θ ) d i r + δ R γ ( θ ) i n d d d ε T 0 0 + ε δ T 0 0 l a 1 , 0 x + ε δ a 1 x × sin l γ 0 + ε δ γ sin x γ 0 + ε δ γ   d x ε = 0 + d d ε T 0 0 + ε δ T 0 γ 0 + ε δ γ × 0 l a 1 , 0 x + ε δ a 1 x l cos l γ 0 + ε δ γ x cos x γ 0 + ε δ γ   d x ε = 0 2 d d ε γ 0 + ε δ γ 0 l a 1 , 0 x + ε δ a 1 x   d x 0 l T 0 x + ε δ T x   d x ε = 0 ,
where the direct-effect and, respectively, indirect-effect terms have the following expressions:
δ R γ ( θ ) d i r = δ T 0 0 l sin l γ 0 sin x γ 0 a 1 , 0 x   d x + δ γ T 0 0 l l cos l γ 0 x cos x γ 0 a 1 , 0 x   d x + T 0 0 δ γ + γ 0 δ T 0 0 l l cos l γ 0 x cos x γ 0 a 1 , 0 x   d x + T 0 0 γ 0 δ γ 0 l x 2 sin x γ 0 l 2 sin l γ 0 a 1 , 0 x d x 2 δ γ 0 l a 1 , 0 x   d x 0 l T 0 x   d x ;
δ R γ ( θ ) i n d = 2 γ 0 0 l δ a 1 , 0 x   d x 0 l T 0 x   d x 2 γ 0 0 l a 1 , 0 x   d x 0 l δ T x   d x + T 0 0 0 l sin l γ 0 sin x γ 0 δ a 1 , 0 x   d x + T 0 0 γ 0 0 l l cos l γ 0 x cos x γ 0 δ a 1 , 0 x   d x .
The variational function δ T x is the solution of Equations (11) and (12) while the variational function δ a 1 x is the solution of Equations (43) and (44). Altogether, these four equations constitute the 2nd-LVSS for the two-component vector-valued variational function V 2 2 ; x δ T x , δ a 1 x .
The need for repeatedly solving the above 2nd-LVSS for all parameter variations in interest can be circumvented by eliminating the appearance of V 2 2 ; x δ T x , δ a 1 x in the expression of the indirect-effect term defined in Equation (56). This elimination is achieved by deriving an alternative expression for the indirect-effect term, using the solution of the 2nd-LASS to be constructed as follows:
1.
Consider a two-component vector function denoted as A ( 2 ) 2 ; 2 ; x a ( 2 ) 1 ; 2 ; x , a ( 2 ) 2 ; 2 ; x , where the first argument denotes the component number and the second argument (“2”) indicates that this function will correspond to the “second” first-order sensitivity R / γ ( θ ) . The construction of this 2nd-LASS will be performed in a Hilbert space denoted as H 2 Ω 2 , comprising elements of the same form as A ( 2 ) 2 ; 2 ; x H 2 Ω 2 , and endowed with the following inner product, denoted as χ ( 1 ) t , η ( 1 ) t 2 , between two elements χ ( 1 ) x χ 1 1 x , χ 2 1 x H 2 and η ( 1 ) x η 1 1 x , η 2 1 x H 2 :
χ ( 1 ) x , η ( 1 ) x 2 i = 1 2 0 l χ i 1 x η i 1 x   d x .
2.
Using the inner product defined in Equation (57), construct the inner product of A ( 2 ) 2 ; 2 ; x a ( 2 ) 1 ; 2 ; x , a ( 2 ) 2 ; 2 ; x with Equations (11) and (44), respectively, to obtain the following relation:
0 l a ( 2 ) 1 ; 2 ; x d d x δ T x   d x + γ 2 0 l a ( 2 ) 1 ; 2 ; x   d x 0 l δ T x   d x 0 l a ( 2 ) 2 ; 2 ; x d d x δ a 1 x   d x + γ 2 0 l a ( 2 ) 2 ; 2 ; x   d x 0 l δ a 1 x   d x = 0 l a ( 2 ) 1 ; 2 ; x q 1 x   d x 2 γ δ γ 0 l a ( 2 ) 2 ; 2 ; x   d x 0 l a 1 x   d x .
3.
Integrate by parts the first and third terms on the left-side of Equation (58) and rearrange the resulting expressions to obtain the following relation:
a ( 2 ) 1 ; 2 ; l δ T l a ( 2 ) 1 ; 2 ; 0 δ T 0 a ( 2 ) 2 ; 2 ; l δ a 1 l + a ( 2 ) 2 ; 2 ; 0 δ a 1 0 + 0 l δ T x d d x a ( 2 ) 1 ; 2 ; x + γ 2 0 l a ( 2 ) 1 ; 2 ; x   d x + 0 l δ a 1 x d d x a ( 2 ) 2 ; 2 ; x + γ 2 0 l a ( 2 ) 2 ; 2 ; x d x   d x = 0 l a ( 2 ) 1 ; 2 ; x q 1 x   d x 2 γ δ γ 0 l a ( 2 ) 2 ; 2 ; x   d x 0 l a 1 x   d x .
4.
Require the last two terms (involving integrals over δ T x and δ a 1 x , respectively) on the left-side of Equation (59) to represent the indirect-effect term defined in Equation (56) by imposing the following relations:
d d x a ( 2 ) 1 ; 2 ; x + γ 2 0 l a ( 2 ) 1 ; 2 ; x = 2 γ 0 l a 1 x   d x ;
d d x a ( 2 ) 2 ; 2 ; x + γ 2 0 l a ( 2 ) 2 ; 2 ; x   d x = 2 γ 0 l T x   d x + T 0 sin l γ sin x γ + T 0 γ l cos l γ x cos x γ .
5.
Eliminate the unknown quantities δ T l and δ a 1 0 on the left-side of Equation (59) by imposing the following boundary conditions:
a ( 2 ) 1 ; 2 ; l = 0 ; a ( 2 ) 2 ; 2 ; 0 = 0 .
6.
Insert the boundary conditions represented by Equations (12) and (43) into Equation (59) and use the relations underlying the 2nd-LASS to obtain the following expression for the indirect-effect term defined in Equation (56):
δ R γ ( θ ) i n d = a ( 2 ) 1 ; 2 ; 0 δ T 0 + 0 l a ( 2 ) 1 ; 2 ; x q 1 x   d x 2 γ δ γ 0 l a ( 2 ) 2 ; 2 ; x   d x 0 l a 1 x   d x .
Add the expression obtained in Equation (63) to the expression of the direct-effect term provided in Equation (55) to obtain the expression below for the G-differential δ R / γ ( θ ) :
δ R γ ( θ ) 2 R T 0 δ γ δ T 0 + 2 R γ γ δ γ = a ( 2 ) 1 ; 2 ; 0 δ T 0 + 0 l a ( 2 ) 1 ; 2 ; x q 1 x   d x 2 γ δ γ 0 l a ( 2 ) 2 ; 2 ; x   d x 0 l a 1 x   d x + δ T 0 0 l sin l γ sin x γ a 1 x   d x + δ γ T 0 0 l l cos l γ x cos x γ a 1 x   d x + T 0 δ γ + γ δ T 0 0 l l cos l γ x cos x γ a 1 x   d x + T 0 γ δ γ 0 l x 2 sin x γ l 2 sin l γ a 1 x d x 2 δ γ 0 l a 1 x   d x 0 l T x   d x .
Insert the expression of q 1 x into the second term on the right-side of Equation (64) and collect the terms multiplying the variations δ T 0 and δ γ , respectively, to obtain the following expressions:
2 R T 0 δ γ = a ( 2 ) 1 ; 2 ; 0 + γ 0 l sin l γ sin x γ a ( 2 ) 1 ; 2 ; x   d x + 0 l sin l γ sin x γ a 1 x   d x + γ 0 l l cos l γ x cos x γ a 1 x   d x ;
2 R γ γ = 0 l a ( 2 ) 1 ; 2 ; x T 0 sin l γ sin x γ + T 0 γ l cos l γ x cos x γ 2 γ 0 l T x d x   d x 2 γ 0 l a ( 2 ) 2 ; 2 ; x   d x 0 l a 1 x   d x + T 0 0 l l cos l γ x cos x γ a 1 x   d x 2 0 l a 1 x   d x 0 l T x   d x + T 0 0 l l cos l γ x cos x γ a 1 x   d x + T 0 γ 0 l x 2 sin x γ l 2 sin l γ a 1 x d x .
The algebraic manipulations involved in obtaining the closed-form expressions of the second-order sensitivities presented in Equations (65) and (66) are straightforward but involve a large amount of algebra stemming from the fact that the 2nd-LASS involves the two-component 2nd-level adjoint sensitivity function A ( 2 ) 2 ; 2 ; x a ( 2 ) 1 ; 2 ; x , a ( 2 ) 2 ; 2 ; x . The reason for needing such a two-component adjoint function stems from the expression of the first-order sensitivity R / γ ( θ ) provided in Equation (21), which involves both the original function T x and the 1st-level adjoint sensitivity function a 1 x . A significant amount of algebraic manipulations could be avoided by eliminating the appearance of either T x or a 1 x in the expression of R / γ ( θ ) . If either of these functions were eliminated from appearing in the expression of R / γ ( θ ) , then the G-differential of R / γ ( θ ) would depend either just on δ a 1 or just on δ T , which are “single-component” (as opposed to “two-components”) variational sensitivity functions. In such a case, the corresponding 2nd-LASS would also comprise just a single-component (as opposed to “two-components”) 2nd-level adjoint sensitivity function. These considerations will be illustrated in the following by using Equation (4) to eliminate the appearance of the function T x in the expression provided in Equation (21) for R / γ ( θ ) , which would consequently take on the following simplified expression:
R γ = T 0 0 l a 1 x l γ cos l γ x γ cos x γ sin l γ sin x γ   d x .
Applying the definition of the G-differential to Equation (67) yields the following expression:
δ R γ = δ R γ d i r + δ R γ i n d ,
where the direct-effect and the indirect-effect terms are defined below:
δ R γ d i r = δ T 0 0 l a 1 x l γ cos l γ x γ cos x γ sin l γ sin x γ   d x + δ γ T 0 0 l a 1 x l 2 γ sin l γ + l cos l γ + x 2 γ cos x γ x cos x γ l cos l γ x cos x γ   d x
δ R γ i n d = T 0 0 l l γ cos l γ x γ cos x γ sin l γ sin x γ δ a 1 x   d x .
The appearance in Equation (70) of the variational function δ a 1 x is eliminated by following the same procedure as followed in the foregoing for the indirect-effect term δ R / T 0 i n d . Ultimately, the indirect-effect term δ R / γ i n d will have the following expression in terms of a 2nd-level adjoint sensitivity function denoted as a 2 2 ; x :
δ R γ i n d = 2 γ δ γ 0 l a 2 2 ; x d x 0 l a 1 y d y ,
where the 2nd-level adjoint sensitivity function a 2 2 ; x is the solution of the following 2nd-LASS:
d d x a 2 2 ; x + γ 2 0 l a 2 2 ; x d x = T 0 l γ cos l γ x γ cos x γ sin l γ sin x γ ;
a 2 2 ; 0 = 0 .
Adding the expressions obtained in Equations (69) and (71) yields the following expression for the G-differential δ R / γ :
δ R γ = δ T 0 0 l a 1 x l γ cos l γ x γ cos x γ sin l γ sin x γ   d x + δ γ T 0 0 l a 1 x l 2 γ sin l γ + l cos l γ + x 2 γ cos x γ x cos x γ l cos l γ x cos x γ   d x 2 γ δ γ 0 l a 2 2 ; x   d x 0 l a 1 y d y 2 R T 0 δ γ δ T 0 + 2 R γ γ δ γ .
It follows from Equation (74) that the respective second-order sensitivities have the following expressions:
2 R T 0 δ γ = 0 l a 1 x l γ cos l γ x γ cos x γ sin l γ sin x γ   d x = 1 γ cos l γ 1 l γ 2 sin l γ .
2 R γ γ = 2 γ 0 l a 2 2 ; x   d x 0 l a 1 y d y + T 0 0 l a 1 x l 2 γ sin l γ + l cos l γ + x 2 γ cos x γ x cos x γ l cos l γ x cos x γ   d x .
The mixed second-order sensitivity 2 R / T 0 δ γ in Equation (75) does not depend on the 2nd-level adjoint sensitivity function a 2 2 ; x and is therefore evaluated immediately. Solving Equations (72) and (73) yields the following expression, to be evaluated at the nominal parameter values, for the 2nd-level adjoint sensitivity function a 2 2 ; x :
a 2 2 ; x = T 0 x sin γ x .
Inserting the result obtained in Equation (77) into Equation (76) and performing the respective operations yields the following expression:
2 R γ ( θ ) γ ( θ ) = T 0 2 sin l γ ( θ ) l γ 3 ( θ ) 2 cos l γ ( θ ) γ 2 ( θ ) l sin l γ ( θ ) γ ( θ ) .
It is evident from Equations (51) and (65) or, alternatively, Equation (78) that the mixed second-order sensitivity 2 R / T 0 δ γ is computed twice, employing distinct expressions involving distinct 2nd-level adjoint sensitivity functions. This mechanism provides a stringent verification of the accuracy of the computation of the respective adjoint sensitivity functions.
In practice, the closed-form analytical expressions of the original functions, such as provided in Equation (4), are seldom available. Nevertheless, if such expressions are available, they can be advantageously used to reduce the amount of computations involved in determining the response sensitivities, as was shown in the foregoing.

3.2. Application of the 2nd-FASAM-NODE Methodology to Obtain the Second-Order Response Sensitivities to Model Parameters

When applying the 2nd-FASAM-NODE methodology [10], the second-order sensitivities arise from the first-order sensitivities obtained in Equations (34) and (35), respectively. The corresponding derivations are presented below, in Section 3.2.1 and Section 3.2.2, respectively.

3.2.1. Second-Order Sensitivities Stemming from R / T 0 Defined in Equation (34)

Thus, the second-order sensitivities arising from the first-order sensitivity R / T 0 expressed in Equation (34) are provided by its G-differential for arbitrary variations around the nominal parameter and function values (indicated by the use of the superscript “zero”), which is by definition obtained as follows:
δ R T 0 d d ε 0 l b 1 , 0 x + ε δ b 1 x δ x d x ε = 0 = 0 l δ b 1 x δ x   d x ,
where δ x denotes the derivative of the Dirac-delta functional. The variational function δ b 1 x is the solution of the following 2nd-LVSS, obtained by G-differentiating Equations (32) and (33):
d 2 d x 2 δ b 1 x + γ 2 δ b 1 x = 2 γ δ γ b 1 x ; 0 < x < l ;
δ b 1 l = 0 ; d d x δ b 1 x x = l = 0 .
The above 2nd-LVSS is to be satisfied by the function δ b 1 x at the nominal parameter values, but the superscript “zero” (which has been used to denote this fact) has been omitted to simplify the notation.
The need for repeatedly solving the above 2nd-LVSS for all parameter variations in interest is circumvented by eliminating the appearance of δ b 1 x in Equation (79). This aim will be accomplished by expressing δ R / T 0 in terms of the solution of the 2nd-LASS to be constructed by considering an adjoint function that will be denoted as b 2 1 ; x , where the argument “1” indicates that this adjoint function corresponds to the first-order sensitivity R / T 0 , which is chosen in this case to be the “first” 1st-order sensitivity to be considered. The 2nd-LASS to be satisfied by b 2 1 ; x will be constructed by applying the 2nd-FASAM-NODE [10], which commences by using Equation (14) to form the inner product of b 2 1 ; x with Equation (80), to obtain the following relation:
0 l b 2 1 ; x d 2 d x 2 δ b 1 x d x + γ 2 0 l b 2 1 ; x δ b 1 x   d x = 2 γ δ γ 0 l b 2 1 ; x b 1 x   d x .
Integrating by parts the first term on the left-side of Equation (82) and rearranging the resulting terms yields the following relation:
b 2 1 ; l d d x δ b 1 l b 2 1 ; 0 d d x δ b 1 0 δ b 1 l d b 2 1 ; l d x + δ b 1 0 d b 2 1 ; 0 d x + 0 l δ b 1 x d 2 d x 2 b 2 1 ; x + γ 2 b 2 1 ; x d x = 2 γ δ γ 0 l b 2 1 ; x b 1 x   d x .
The last term on the left-side of Equation (83) is now required to represent the G-differential defined in Equation (79) to obtain the relation below:
d 2 d x 2 b 2 1 ; x + γ 2 b 2 1 ; x = δ x .
The unknown boundary terms are eliminated from Equation (83) by imposing the following conditions:
b 2 1 ; 0 = 0 ; d d x b 2 1 ; 0 x = 0 = 0 .
The system of equations comprising Equations (84) and (85) constitute the 2nd-LASS for the 2nd-level adjoint sensitivity function b 2 1 ; x .
Replacing the results obtained in Equations (81), (84) and (85) into Equation (83) yields the following alternative expression for the G-differential δ R / T 0 :
δ R T 0 = 2 γ δ γ 0 l b 2 1 ; x b 1 x d x 2 R T 0 T 0 δ T 0 + 2 R T 0 δ γ δ γ .
where the 2nd-level adjoint sensitivity function b 2 1 ; x is the solution of the 2nd-Level Adjoint Sensitivity System (2nd-LASS) comprising Equations (84) and (85). The 2nd-LASS is a NODE-net that does not depend on parameter variations and needs to be solved once only at the nominal parameter values. The solution, b 2 1 ; x , of this 2nd-LASS is used in Equation (86) to determine the respective second-order response sensitivities.
Identifying in Equation (86) the quantities that multiply the respective parameter variations yields the following expressions:
2 R T 0 δ γ = 2 γ 0 l b 2 1 ; x b 1 x d x ; 2 R T 0 T 0 = 0 .
Solving the 2nd-LASS represented by Equations (84) and (85) yields the following expression for the 2nd-level adjoint sensitivity function b 2 1 ; x :
b 2 1 ; x = H x cos γ x ,
where H x denotes the Heaviside functional. Using in Equation (87) the results obtained in Equations (36) and (88) yields the following expression:
2 R T 0 δ γ ( θ ) = 1 γ ( θ ) cos l γ ( θ ) 1 l γ 2 ( θ ) sin l γ ( θ ) .
As expected, the expression obtained in Equation (89) is identical to the expressions obtained in Equations (53) and (75).

3.2.2. Second-Order Sensitivities Stemming from R / γ ( θ ) Expressed by Equation (35)

The second-order sensitivities arising from the first-order sensitivity R / γ ( θ ) represented by Equation (35) are obtained from its G-differential for arbitrary variations around the nominal parameter and function values. Thus, applying the definition of the G-differential to Equation (35) yields the following expression:
δ R γ ( θ ) δ R γ ( θ ) d i r + δ R γ ( θ ) i n d
where the direct-effect and indirect-effect terms have the expressions below:
δ R γ ( θ ) d i r 2 δ γ 0 l b 1 x T x   d x ;
δ R γ ( θ ) i n d 2 γ 0 0 l b 1 x δ T x   d x 2 γ 0 0 l δ b 1 x T x   d x .
The indirect-effect term δ R / γ ( θ ) i n d will be recast in terms of an alternative expression that will not involve the variational functions δ T x and δ b 1 x by applying the principles of the 2nd-FASAM-NODE [10], which are fundamentally the same as those underlying the 2nd-FASAM-NIDE-F [1], as follows:
  • Consider the two-component vector function B ( 2 ) 2 ; 2 ; x b ( 2 ) 1 ; 2 ; x , b ( 2 ) 2 ; 2 ; x , where the first argument denotes the component number and the second argument (“2”) indicates that this function will correspond to the “second” first-order sensitivity, namely R / γ ( θ )
    Using the inner product defined in Equation (57), construct the inner product of B ( 2 ) 2 ; 2 ; x b ( 2 ) 1 ; 2 ; x , b ( 2 ) 2 ; 2 ; x with Equations (27) and (80), respectively, to obtain the following relation, to be satisfied at the nominal parameter values (although the superscript “zero” will be omitted for simplicity):
    0 l b ( 2 ) 1 ; 2 ; x d 2 d x 2 δ T x   d x + γ 2 0 l b ( 2 ) 1 ; 2 ; x δ T x   d x + 0 l b ( 2 ) 2 ; 2 ; x d 2 d x 2 δ b 1 x d x + γ 2 0 l b ( 2 ) 2 ; 2 ; x δ b 1 x d x = 2 γ ( δ γ ) 0 l b ( 2 ) 1 ; 2 ; x T x + b ( 2 ) 2 ; 2 ; x b 1 x   d x .
  • Integrate by parts the first and third terms on the left-side of Equation (93) and rearrange the resulting expression to obtain the following relation:
    0 l δ T x d 2 b ( 2 ) 1 ; 2 ; x d x 2 + γ 2 b ( 2 ) 1 ; 2 ; x   d x + 0 l δ b 1 x d 2 b ( 2 ) 2 ; 2 ; x d x 2 + γ 2 b ( 2 ) 2 ; 2 ; x   d x + P δ T x , δ b 1 x , b ( 2 ) 1 ; 2 ; x ; b ( 2 ) 2 ; 2 ; x = 2 γ ( δ γ ) 0 l b ( 2 ) 1 ; 2 ; x T x + b ( 2 ) 2 ; 2 ; x b 1 x   d x .
    where the bilinear concomitant P δ T x , δ b 1 x , b ( 2 ) 1 ; 2 ; x ; b ( 2 ) 2 ; 2 ; x is defined below:
    P δ T x , δ b 1 x , b ( 2 ) 1 ; 2 ; x ; b ( 2 ) 2 ; 2 ; x b ( 2 ) 1 ; 2 ; l d d x δ T x x = l b ( 2 ) 1 ; 2 ; 0 d d x δ T x x = 0 δ T x d b ( 2 ) 1 ; 2 ; x d x x = l + δ T x b ( 2 ) 1 ; 2 ; x d x x = 0 + b ( 2 ) 2 ; 2 ; l d d x δ b 1 l b ( 2 ) 2 ; 2 ; 0 d d x δ b 1 0 δ b 1 l d b ( 2 ) 2 ; 2 ; l d x + δ b 1 0 d b ( 2 ) 2 ; 2 ; 0 d x .
  • Require the first and second terms on the left-side of Equation (94) to represent the indirect-effect term defined in Equation (92) by imposing the following relations:
    d 2 b ( 2 ) 1 ; 2 ; x d x 2 + γ 2 b ( 2 ) 1 ; 2 ; x = 2 γ b 1 x ;
    d 2 b ( 2 ) 2 ; 2 ; x d x 2 + γ 2 b ( 2 ) 2 ; 2 ; x = 2 γ T x .
  • Eliminate the unknown boundary terms in the expression of the bilinear concomitant defined in Equation (95) by imposing the following boundary conditions:
    b ( 2 ) 1 ; 2 ; l = 0 ; d b ( 2 ) 1 ; 2 ; x d x x = l = 0 ; b ( 2 ) 2 ; 2 ; 0 = 0 ; d b ( 2 ) 2 ; 2 ; x d x x = 0 = 0 .
    The system comprising Equations (96)–(98) constitutes the 2nd-LASS for the two-component 2nd-level adjoint sensitivity function B ( 2 ) 2 ; 2 ; x b ( 2 ) 1 ; 2 ; x , b ( 2 ) 2 ; 2 ; x .
  • Insert the boundary conditions represented by Equations (28) and (81) into Equation (98) and use the relations representing the 2nd-LASS to obtain the following expression for the indirect-effect term defined in Equation (56):
    δ R γ i n d = δ T 0 b ( 2 ) 1 ; 2 ; x d x x = 0 2 γ ( δ γ ) 0 l b ( 2 ) 1 ; 2 ; x T x + b ( 2 ) 2 ; 2 ; x b 1 x   d x .
Adding the expression obtained in Equation (99) to the expression of the direct-effect term provided in Equation (91) yields the following expression for the G-differential δ R / γ :
δ R γ ( θ ) 2 δ γ 0 l b 1 x T x d x δ T 0 b ( 2 ) 1 ; 2 ; x d x x = 0 2 γ ( δ γ ) 0 l b ( 2 ) 1 ; 2 ; x T x + b ( 2 ) 2 ; 2 ; x b 1 x   d x .
It follows from the expression obtained in Equation (100) that
2 R T 0 δ γ = b ( 2 ) 1 ; 2 ; x d x x = 0 ;
2 R γ δ γ = 2 0 l b 1 x T x   d x 2 γ 0 l b ( 2 ) 1 ; 2 ; x T x + b ( 2 ) 2 ; 2 ; x b 1 x   d x .
Solving the 2nd-LASS represented by Equations (96)–(98) yields the following expressions for the components of B ( 2 ) 2 ; 2 ; x b ( 2 ) 1 ; 2 ; x , b ( 2 ) 2 ; 2 ; x :
b ( 2 ) 1 ; 2 ; x = 2 l γ 2 1 γ + x 2 sin γ x l 1 4 γ cos γ x l 5 2 l γ 3 sin γ l + sin 2 γ l γ 2 cos γ l 1 γ 2 cos γ l sin γ x + 5 2 γ l 3 cos γ l + sin γ l γ 2 cos γ x ;
b ( 2 ) 2 ; 2 ; x = T 0 x sin γ x .
Using in Equation (101) the result obtained in Equation (103) yields the following expression:
2 R T 0 δ γ ( θ ) = 1 γ ( θ ) cos l γ ( θ ) 1 l γ 2 ( θ ) sin l γ ( θ ) .
As expected, the above expression coincides with the expression obtained, successively, in Equations (53), (75) and (89). Evidently, the expression of the mixed second-order sensitivity 2 R / T 0 δ γ can be determined in several distinct ways, using distinct adjoint sensitivity functions, thus providing alternatives for verifying the computational accuracy of the respective adjoint functions, when these functions are computed numerically, as is the case in practice.
Inserting the results obtained in Equations (4), (88), (103) and (104) into Equation (102) and performing the respective integrations yields the following expression:
2 R γ ( θ ) γ ( θ ) = T 0 2 sin l γ ( θ ) l γ 3 ( θ ) 2 cos l γ ( θ ) γ 2 ( θ ) l sin l γ ( θ ) γ ( θ ) .
As expected, the above expression coincides with the expression obtained in Equation (78).

4. Discussion

This work has presented the application of the 1st-FASAM-NIDE-F and 2nd-FASAM-NIDE-F methodologies developed in the accompanying “Part I” [1] to an illustrative paradigm heat conduction model. This illustrative model has been chosen because it can be formulated either as a first-order Neural Differential-Integral Equation (NIDE) of the Fredholm type or as a conventional second-order Neural Ordinary Differential Equation (NODE), while admitting exact closed-form solutions/expressions for all quantities of interest, including state functions and first-order and second-order sensitivities. Recall that NODEs [17,18,19,20,21,22,23,24] use differential equation solvers to provide an explicit connection between traditional neural networks [26,27,28] and traditional numerical modeling while offering trade-offs between efficiency, memory costs, and accuracy.
The availability of these alternative formulations, either as a NIDE-F or a NODE, of the illustrative paradigm heat conduction model makes it possible to compare the detailed, step-by-step, applications of the 1st-FASAM-NIDE-F [1] versus the 1st-FASAM-NODE [25] methodologies for computing most efficiently the exact expressions of the first-order sensitivities of the decoder response with respect to the model parameters. In terms of large-scale computations, the 1st-FASAM-NIDE-F and the 1st-FASAM-NODE methodologies are equally efficient conceptually, each requiring a single large-scale computation (for solving the respective 1st-LASS to obtain the respective 1st-level adjoint sensitivity functions) regardless of the number of feature functions of model parameters. The distinctions between using the 1st-FASAM-NIDE-F [1] versus the 1st-FASAM-NODE [25] arise in the fast computations involving quadrature formulas for computing the respective expressions of the integrals that define the respective first-order sensitivities.
The paradigm heat conduction model analyzed in this work has also enabled the exact comparison of applying of the 2nd-FASAM-NIDE-F methodology [1] versus applying the 2nd-FASAM-NODE methodology [25] for computing most efficiently the exact expressions of the second-order sensitivities of the decoder response with respect to the model parameters. As expected, the 2nd-FASAM-NIDE-F and the 2nd-FASAM-NODE methodologies are equally efficient conceptually, each requiring only as many large-scale computations (for solving the respective 2nd-LASS to obtain the respective 2nd-level adjoint sensitivity functions) as there are non-zero first-order sensitivities of the decoder response with respect to the feature functions of model parameters. The distinctions between using the 2nd-FASAM-NIDE-F [1] versus the 2nd-FASAM-NODE [25] arise in the fast computations involving quadrature formulas for computing the respective expressions of the integrals that define the respective second-order sensitivities.

5. Conclusions

The heat conduction model analyzed in this work provides a paradigm example that can be followed for applications in all fields involving neural integro-differential equations of the Fredholm type, highlighting the unsurpassed efficiency of the 2nd-FASAM-NIDE-F methodology for computing exactly obtained expressions of the second-order sensitivities of model responses with respect to model parameters and features thereof. The 2nd-FASAM-NIDE-F encompasses the 1st-FASAM-NIDE-F methodology, which enables the unparalleled efficient computation of exactly obtained expressions of the first-order sensitivities of model responses with respect to model parameters and features thereof. The 1st-FASAM-NIDE-F and 2nd-FASAM-NIDE-F methodologies generalize the recently developed 2nd-FASAM-NIE-F [29] methodology for computing most efficiently exactly obtained expressions of first- and second-order sensitivities of decoder responses associated with Neural Integral Equation of Fredholm-type (NIE-F) with respect to model parameters and features thereof. Mirroring this development, ongoing work aims to generalize the recently developed 2nd-FASAM-NIE-V (“Second-Order Features Adjoint Sensitivity Analysis Methodology for Neural Integral Equations of Volterra-Type”) methodology [30] to enable the most-efficient computation of exactly obtained expressions of the first- and second-order sensitivities of decoder-responses associated with neural integro-differential equations of Volterra-type, which will be designated using the abbreviation/acronym “2nd-FASAM-NIDE-V.” The development of the 2nd-FASAM-NIDE-V will complete the availability of the specialized 2nd-FASAM-NODE, 2nd-FASAM-NIE-F, the 2nd-FASAM-NIE-V, and the 2nd-FASAM-NIDE-F methodologies, which are all derived by particularizing the general-purpose nth-FASAM-N (nth-Order Features Adjoint Sensitivity Analysis Methodology for Nonlinear Systems) methodology [31] for the special neural nets of type NODE, NIE, and NIDE, respectively. For general purpose applications, the nth-FASAM-N [31] remains the sole high-order sensitivity analysis methodology that can compute exactly obtained sensitivities of an arbitrarily high order of model responses with respect to model parameters and features thereof.

Funding

This research received no external funding.

Data Availability Statement

The original contributions presented in this study are included in the article.

Conflicts of Interest

The author declares no conflicts of interest.

References

  1. Cacuci, D.G. The First-and Second-Order Features Adjoint Sensitivity Analysis Methodologies for Fredholm-Type Neural Integro-Differential Equations. I. Mathematical Framework. Processes, 2025; in press. [Google Scholar]
  2. Schneider, P.J. Conduction Heat Transfer; Addison-Wesley Publishing, Co., Ltd.: Reading, MA, USA, 1955. [Google Scholar]
  3. Carslaw, H.S.; Jaeger, J.C. Conduction of Heat in Solids; Clarendon Press: London, UK, 1959. [Google Scholar]
  4. Arpaci, V.S. Conduction Heat Transfer; Addison-Wesley Publishing, Co., Ltd.: Reading, MA, USA, 1966. [Google Scholar]
  5. Ozisik, M.N. Boundary Value Problems of Heat Conduction; International Textbook Company: Scranton, PA, USA, 1968. [Google Scholar]
  6. Ozisik, M.N. Heat Conduction; John Wiley & Sons: New York, NY, USA, 1980. [Google Scholar]
  7. Todreas, N.E.; Kazimi, M.S. Nuclear Systems I: Thermal Hydraulic Fundamentals; Taylor & Francis: Bristol, PA, USA, 1993. [Google Scholar]
  8. Minakov, A.A.; Schick, C. Integro-Differential Equation for the Non-Equilibrium Thermal Response of Glass-Forming Materials: Analytical Solutions. Symmetry 2021, 13, 256. [Google Scholar] [CrossRef]
  9. Ciesielski, M.; Mochnacki, B.; Majchrzak, E. Integro-differential form of the first-order dual phase lag heat transfer equation and its numerical solution using the Control Volume Method. Arch. Mech. 2020, 72, 415–444. [Google Scholar] [CrossRef]
  10. Laitinen, M.T.; Tiihonen, T. Integro-differential equation modelling heat transfer in conducting, radiating and semitransparent materials. Math. Meth. Appl. Sci. 1998, 21, 375–392. [Google Scholar] [CrossRef]
  11. Zappala, E.; De Oliveira Fonseca, A.H.; Moberly, A.H.; Higley, M.J.; Abdallah, C.; Cardin, J.; Van Dijk, D. Neural integro-differential equations. arXiv 2022, arXiv:2206.14282. [Google Scholar] [CrossRef]
  12. Effati, S.; Buzhabadi, R. A neural network approach for solving Fredholm integral equations of the second kind. Neural Comput. Appl. 2012, 21, 843–852. [Google Scholar] [CrossRef]
  13. Caffarelli, L.; Silvestre, L. Regularity theory for fully nonlinear integro-differential equations. Commun. Pure Appl. Math. 2009, 62, 597–638. [Google Scholar] [CrossRef]
  14. Grigoriev, Y.N.; Ibragimov, N.H.; Kovalev, V.F.; Meleschko, S.V. Symmetries of Integro-Differential Equations: With Applications in Mechanics and Plasma Physics; Lecture Notes in Physics Volume 806; Springer Science + Business Media: Dordrecht, The Netherlands, 2010. [Google Scholar]
  15. Lakshmikantham, V. Theory of Integro-Differential Equations; CRC Press: Boca Raton, FL, USA, 1995; Volume 1. [Google Scholar]
  16. Medlock, J.; Kot, M. Spreading disease: Integro-Differential equations old and new. Math. Biosci. 2003, 184, 201–222. [Google Scholar] [CrossRef] [PubMed]
  17. Chen, R.T.Q.; Rubanova, Y.; Bettencourt, J.; Duvenaud, D.K. Neural ordinary differential equations. In Advances in Neural Information Processing Systems; Curran Associates, Inc.: New York, NY, USA, 2018; Volume 31, pp. 6571–6583. [Google Scholar] [CrossRef]
  18. Ruthotto, L.; Haber, E. Deep neural networks motivated by partial differential equations. J. Math. Imaging Vis. 2018, 62, 352–364. [Google Scholar] [CrossRef]
  19. Lu, Y.; Zhong, A.; Li, Q.; Dong, B. Beyond finite layer neural networks: Bridging deep architectures and numerical differential equations. In Proceedings of the International Conference on Machine Learning, Stockholm, Sweden, 10–15 July 2018; PMLR. pp. 3276–3285. [Google Scholar]
  20. Grathwohl, W.; Chen, R.T.Q.; Bettencourt, J.; Sutskever, I.; Duvenaud, D. Ffjord: Free-form continuous dynamics for scalable reversible generative models. In Proceedings of the International Conference on Learning Representations, New Orleans, LA, USA, 6–9 May 2019. [Google Scholar]
  21. Dupont, E.; Doucet, A.; The, Y.W. Augmented neural odes. In Proceedings of the Advances in Neural Information Processing Systems, Vancouver, BC, Canada, 8–14 December 2019; Volume 32, pp. 14–15. [Google Scholar]
  22. Kidger, P.; Morrill, J.; Foster, J.; Lyons, T. Neural controlled differential equations for irregular time series. In Proceedings of the Advances in Neural Information Processing Systems, Virtual, 6–12 December 2020; Volume 33, pp. 6696–6707. [Google Scholar]
  23. Kidger, P. On Neural Differential Equations. arXiv 2022, arXiv:2202.02435. [Google Scholar]
  24. Morrill, J.; Salvi, C.; Kidger, P.; Foster, J. Neural rough differential equations for long time series. In Proceedings of the International Conference on Machine Learning, Virtual, 18–24 July 2021; PMLR. pp. 7829–7838. [Google Scholar]
  25. Cacuci, D.G. Introducing the Second-Order Features Adjoint Sensitivity Analysis Methodology for Neural Ordinary Differential Equations. I: Mathematical Framework. Processes 2024, 12, 2660. [Google Scholar] [CrossRef]
  26. Bishop, C.M. Neural Networks for Pattern Recognition; Clarendon Press: Oxford, UK, 1995. [Google Scholar]
  27. Bishop, C.M. Pattern Recognition and Machine Learning; Springer Science + Business Media: New York, NY, USA, 2006. [Google Scholar]
  28. Bishop, C.M.; Bishop, H. Deep Learning: Foundations and Concepts; Springer Nature: Cham, Switzerland, 2024. [Google Scholar]
  29. Cacuci, D.G. Introducing the Second-Order Features Adjoint Sensitivity Analysis Methodology for Fredholm-Type Neural Integral Equations. Mathematics 2025, 13, 14. [Google Scholar] [CrossRef]
  30. Cacuci, D.G. Introducing the Second-Order Features Adjoint Sensitivity Analysis Methodology for Neural Integral Equations of Volterra-Type: Mathematical Methodology and Illustrative Application to Nuclear Engineering. J. Nucl. Eng. 2025, 6, 8. [Google Scholar] [CrossRef]
  31. Cacuci, D.G. Introducing the nth-Order Features Adjoint Sensitivity Analysis Methodology for Nonlinear Systems (nth-FASAM-N): I. Mathematical Framework. Am. J. Comput. Math. 2024, 14, 11–42. [Google Scholar] [CrossRef]
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content.

Share and Cite

MDPI and ACS Style

Cacuci, D.G. The First- and Second-Order Features Adjoint Sensitivity Analysis Methodologies for Fredholm-Type Neural Integro-Differential Equations: An Illustrative Application to a Heat Transfer Model—Part II. Processes 2025, 13, 2265. https://doi.org/10.3390/pr13072265

AMA Style

Cacuci DG. The First- and Second-Order Features Adjoint Sensitivity Analysis Methodologies for Fredholm-Type Neural Integro-Differential Equations: An Illustrative Application to a Heat Transfer Model—Part II. Processes. 2025; 13(7):2265. https://doi.org/10.3390/pr13072265

Chicago/Turabian Style

Cacuci, Dan Gabriel. 2025. "The First- and Second-Order Features Adjoint Sensitivity Analysis Methodologies for Fredholm-Type Neural Integro-Differential Equations: An Illustrative Application to a Heat Transfer Model—Part II" Processes 13, no. 7: 2265. https://doi.org/10.3390/pr13072265

APA Style

Cacuci, D. G. (2025). The First- and Second-Order Features Adjoint Sensitivity Analysis Methodologies for Fredholm-Type Neural Integro-Differential Equations: An Illustrative Application to a Heat Transfer Model—Part II. Processes, 13(7), 2265. https://doi.org/10.3390/pr13072265

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop