1. Introduction
The field of fractional calculus has garnered significant attention and relevance in the past three decades, owing to its demonstrated utility across various scientific and engineering disciplines. Offering a range of potentially valuable tools, it has demonstrated vast applications in modeling complex phenomena that occur in nature. Fractional calculus finds applications across various fields, such as physics [
1,
2,
3], epidemiology [
4,
5,
6], engineering [
7,
8], optimal control [
9,
10,
11], economics [
12,
13], and beyond.
It is widely believed that fractional calculus emerged from a query posed in 1695 by L’Hôpital to Leibniz. L’Hôpital asked for a clarification on the interpretation of Leibniz’s notation for derivatives of non-integer orders, particularly when . In his response, Leibniz remarked that it posed an apparent paradox, yet he hinted at its potential for yielding valuable insights in the future. Subsequent references to fractional derivatives were made by notable mathematicians and physicists such as Euler in 1730, Lagrange in 1772, Laplace in 1812, and a host of others through the 19th and early 20th centuries, each contributing to the development and understanding of this intriguing branch of mathematics.
Liouville authored a series of articles, and this marked the introduction of the first fractional integration operator. Riemann then expanded upon this work, pioneering what is now known as the Riemann–Liouville definition. This period saw unprecedented interest and advancement in the field, until the 1960s, when a revision was made. Many authors, including Caputo, sought a new definition of fractional differentiation to address applied problems. The Grunwald–Letnikov fractional derivative aims to generalize the classical definition of differentiation to accommodate arbitrary derivative orders. In the literature, a variety of definitions for fractional derivatives can be found. Alongside those previously mentioned, additional concepts such as Hadamard, Hilfer, Weyl, Riesz, tempered, distributed-order, and others are also explored.
In the work by Jarad et al. [
14], the notion of weighted fractional operators with respect to another function was introduced, accompanied by an in-depth exploration of their fundamental properties. Additionally, a modified Laplace transform for these derivatives was developed. Subsequently, Thabet et al. [
15] extended these concepts by incorporating a generalized Mittag–Leffler function. Fernandez and Fahad [
16] further investigated similar ideas, although with a different differential operator featuring the weight. By exploiting conjugation relationships with classical fractional operators, numerous properties were derived. In [
17], a time-fractional diffusion equation involving weighted fractional derivatives was studied. Additionally, variable fractional order and distributed order derivatives were considered. Boundary value problems concerning weighted fractional derivatives were thoroughly examined in the study [
18], where the existence of solutions and their stability in the Ulam–Hyers–Rassias sense were established.
Another possible approach to fractional derivatives involves the concept of a derivative with respect to another function [
19,
20]. Here, an arbitrary function is incorporated into the integral, and for certain selections of this function, we can retrieve classical ones such as Riemann-Liouville, Caputo, or Hadamard. This approach helps mitigate the proliferation of works for different derivatives and, owing to its arbitrariness, allows for a better adaptation of the process dynamics to the fractional derivative.
In this study, we integrated the two aforementioned concepts by exploring derivatives with respect to another function and with weights. Using this derivative, we aimed to investigate various problems within the calculus of variations. This field focuses on optimizing problems, typically around integrals that vary with time, an unknown state function, and its derivative. Instead of the conventional first-order derivative, we employed a fractional derivative. Our goal was to outline the necessary conditions that the optimal curve must fulfill. The Lagrange function we considered depends on time, the state function, both its sided fractional derivatives, and the initial and final points. For related investigations involving initial and final positions within the Lagrange function, we can reference works such as [
21,
22,
23,
24]. We obtained several necessary optimization conditions for functionals, depending on the variables mentioned earlier. The first one is known in the literature as the Fractional Euler–Lagrange equation. Other cases were considered: where the final time of the integral is also free, when the integration interval of the functional is distinct from that of the fractional derivatives, with an integral constraint in the space of admissible functions, with derivatives of any positive real order, and the generalized Herglotz problem. An interesting question, which remains unanswered, is how to present a generalization of these variational problems, considering a formulation in terms of optimal control.
The structure of this paper is as follows:
Section 2 introduces the necessary definitions and a result essential for subsequent discussions. In
Section 3, we present the original findings of our study. We commence by investigating the fundamental problem of the calculus of variations, aiming to minimize a functional with dependencies on fractional derivatives ranging from 0 to 1. We then impose an integral-type constraint on the problem, narrowing down the class of admissible functions. The Herglotz variational problem, which is a generalization of the usual problem in the calculus of variations, is addressed. Furthermore, we extend the initial problem by considering fractional derivatives of any positive real order. Finally, we conclude with examples, insights, and a discussion for future research.
3. Euler–Lagrange-Type Equations
In this section, we explore problems within the calculus of variations, where the Lagrange function depends on both-sided weighted fractional derivatives, along with the initial and final positions of the curve. The aim is to identify the necessary conditions that these optimal curves must satisfy. These conditions, known as the Euler–Lagrange equations in the literature, serve as fundamental tools in our analysis. The central problem is formulated as follows: to find a
-class curve,
, such that functional
, given through (
5), achieves its minimum value at
U, where
Here, the function is continuously differentiable. We emphasize that the set of functions is required to belong to the class to ensure the well-defined nature and continuity of the fractional derivatives. We also remark that, since and are unrestricted, they represent two variables within the optimization problem that we seek to minimize.
Remark 1. To facilitate notation, we adopt the following conventions. Where clarity permits, we use instead of the longer expression . Additionally, for a function, , we denote the partial derivative with respect to the variable as for .
Remark 2. We define U as a minimizer of the functional if, for every curve , we have . On the other hand, U is classified as a local minimizer of if for every curve within a neighborhood of U.
Theorem 2. Assume that is a local minimizer of the functional given in (5). Then, U satisfies the following three conditions: The Euler–Lagrange equation: for all , The transversality conditions:and
Proof. Let us assume that the curve
U represents an optimal solution to the problem. Now, let us introduce an auxiliary function,
, of class
and consider
. Consider the variation
of the curve
and the function
, defined in a neighborhood of zero. Since
U is a local minimizer of
, we conclude that
is a local minimizer of
. Consequently,
, that is, the first variation of the functional is zero at
. In other words,
By employing the integration via parts formulae, as outlined in (
3) and (
4), with the final two terms of the integral, we derive that
and
Then, we obtain the following expression:
As the function
can assume any value over the interval
, if we assume the additional condition that
and
, then
As
is arbitrary elsewhere, using the fundamental lemma of the calculus of variations, we conclude that, for all
,
Finally, assuming first that and and then that and , we deduce the two remaining necessary conditions that we aimed to prove. □
Remark 3. If, in the initial problem, and are fixed values, then the dependence of f on and becomes irrelevant. The variation must satisfy the conditions and , and thus, we do not obtain the two transversality conditions.
Remark 4. It is important to note that these conditions are only necessary, and the mere vanishing of the first variation does not lead to conclusive results. However, if certain convexity assumptions are imposed on the Lagrange function, then the Euler–Lagrange equation indeed becomes a sufficient condition. Also, the result does not assert anything about the existence of a local minimizer of the functional. The Euler–Lagrange equation is merely a necessary condition, and as such, it states that, if such a minimizer exists, then it must satisfy this equation.
Two immediate results are presented next. In the first one, the final time of the integration interval is free. Consequently, our objective is not only to determine the optimal function U but also to identify the optimal final time.
The functional is defined as
and we abbreviate the Lagrange function as
. The functional is defined with the set
.
Theorem 3. If the pair is a local minimizer of the functional (7), then it satisfies the Euler–Lagrange equation outlined in Theorem 2 within the interval , and it also complies with the two transversality conditions, with the equation evaluated at T for the second condition (not at ). In addition, it also fulfills the equation . Proof. In this scenario, we must not only consider a variation of
U as
but also a variation of the optimal time in the form
, where
is an arbitrary real number. The first variation is, then, as follows:
Through integration via parts, if we assume that , then the first variation of the functional coincides with that given in Theorem 2, and by following the same procedures, we deduce the necessary conditions proven in that theorem. Thus, we arrive at the equality (for an arbitrary ) Assuming now that , we derive the last necessary condition. □
The variational problem involving multiple dependent variables follows a similar structure. Consider the functional
where
,
for all
,
and
is continuously differentiable.
Theorem 4. If is a local minimizer of functional (8), then, for all , the following applies:for all and Proof. If is an optimal solution to the variational problem, consider n auxiliary functions for , and let . Considering the variation and then computing the first variation of the functional, we can deduce the k-th necessary conditions (for ) by assuming that and for , for all . □
Next, we studied the problem known as the isoperimetric problem. When formulating the variational problem, we assumed that the space of admissible functions must comply with an integral constraint of the form
Here, is a fixed real number. Similarly, we assume that the function is continuously differentiable.
Theorem 5. Assume that is a local minimizer of the functional defined in (5) under the constraint (9). Assume also that one of the three next conditions is not satisfied: - 1 .
for all , - 2 .
- 3 .
Then, there exists , such that U satisfies the following three conditions:for all ,and Proof. In this case, we first ensure the existence of an infinite family of variations that satisfy the integral constraint (
9). To achieve this, we consider variations with dependencies on two functions,
and
, as well as on two real numbers,
and
. Defining
and computing
in a similar manner as done in the proof of Theorem 2, we arrive at
Therefore, we conclude that there exists a function, , such that . Since , according to the Implicit Function Theorem, there exists a function, , such that and for every , thus establishing the desired result.
We next proceeded to deduce the three necessary conditions of the theorem. To do so, let us observe that we can formulate the variational problem as a finite-dimensional problem with two variables: minimizing f, subject to the constraint . Since we previously established that , applying the method of Lagrange multipliers ensures the existence of a real number, , such that . By setting , we arrive at the desired conditions. □
Remark 5. In the formulation of Theorem 5, if we remove the condition that U does not satisfy one of the three conditions presented in this theorem, a similar result can still be proven. In this scenario, we ensure the existence of two real numbers, λ and κ, and by substituting with , we still arrive at the same conclusions. Indeed, if the conditions of Theorem 5 are satisfied, we choose and λ, as prescribed according to Theorem 5. Otherwise, if these conditions are not met, we set and select any arbitrary λ.
In the preceding results, the integration interval of the functional coincides with the integration intervals of the sided fractional derivatives. We can extend these findings by considering the integration interval of the functional as a subset of the integral
. To achieve this, let
, and consider the functional
Theorem 6. Suppose represents a local minimizer of the functional as defined in (10). In such a case, U fulfills under the subsequent conditions: The Euler–Lagrange equations: for all ,for all ,and for all , The transversality conditions:and
Proof. Given
, the first variation of the functional is
To apply the integration via parts formulae (
3) and (
4), we consider the relations
and
By employing fractional integration with parts to the four integrals on the right-hand side and subsequently reordering the terms, we attain the intended conclusion. □
In 1930, Herglotz [
25] introduced a generalized variational principle, expanding upon the classical variational principle. As remarked in [
26,
27], Herglotz’s principle provides a versatile tool for describing nonconservative processes, even in cases where the Lagrangian is autonomous, a capability not achievable through classical methods. The problem involves discovering two functions, related via a differential equation, with the objective of minimizing the value of one of them at the final point. It can be demonstrated that, under specific conditions, the Herglotz problem simplifies to a classical variational problem, thereby representing an extension of the fundamental problem in the calculus of variations.
The problem is formulated as follows: finding two functions,
and
, such that
achieves a minimum value, while the pair
satisfies the system
where the function
is of class
. Given that the function
depends on both
u and
v, we will abbreviate it as
. Additionally, it is worth noting that the function
v depends not only on the variable
t but also on the function
u. Thus, we represent it as
when we need to refer to this dependence.
Theorem 7. Suppose that functions U and V are a solution to Herglotz’s problem as related via system (11). Introduce the function as follows: Then, the pair satisfies the following three conditions:
for all ,
Proof. Since
is a solution pair of the optimization problem, let us consider an arbitrary function,
, and a real number,
. We define the function
with the formula
Since
is a fixed value, we have
. On the other hand, since
V achieves an extremum at
, we also have
. Additionally,
We derive the ordinary differential equation
whose solution satisfies the following relationship:
Recalling that
and
, and applying formulae (
3) and (
4), we arrive at:
Based on the arbitrariness of the function , we deduce the intended result, thereby concluding the proof of the theorem. □
In our previous investigations, we solely focused on the case where the order of fractional derivatives falls within the interval
. Now, we consider the broader context, encompassing cases where the derivative order is any positive real number. To do so, we fix a positive integer,
n, and consider a sequence denoted as
, where
. Furthermore, for each
,
. We seek to find a
-class curve
such that the functional
, defined using Equation (
12), attains its minimum value on
U. Functional
is given via the integral
where
is a continuously differentiable function. Once more, we employ the abbreviation
for brevity when there is no risk of confusion.
Theorem 8. If is a local minimizer of the functional , as is (12), then it must fulfill the following three conditions. The Euler–Lagrange equation: for all , The transversality conditions: at , the following holds: Furthermore, at and , and for each , the following conditions hold:
Proof. Assuming the curve
U represents an optimal solution to the problem, let us introduce an auxiliary function,
, of class
and take
. Considering the variation
of the curve
and the function
, we can infer that the first variation of this function is zero at
, implying,
By employing integration via parts (refer to (
3) and (
4)) and reorganizing the terms, we can derive the following:
Given that can assume any value, and the function w satisfies for all , we deduce that the functions and are likewise arbitrary. Consequently, we have established the desired theorem. □