Next Article in Journal
Integral Jensen–Mercer and Related Inequalities for Signed Measures with Refinements
Previous Article in Journal
Exploring Optimisation Strategies Under Jump-Diffusion Dynamics
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

On Summation of Fourier Series in Finite Form Using Generalized Functions

by
Ksaverii Malyshev
1,2,*,
Mikhail Malykh
1,3,*,
Leonid Sevastianov
1,3 and
Alexander Zorin
1
1
Department of Computational Mathematics and Artificial Intelligence, RUDN University, 117198 Moscow, Russia
2
Skobeltsyn Institute of Nuclear Physics, Lomonosov Moscow State University, 119991 Moscow, Russia
3
Meshcheryakov Laboratory of Information Technologies, Joint Institute for Nuclear Research, 141980 Dubna, Russia
*
Authors to whom correspondence should be addressed.
Mathematics 2025, 13(3), 538; https://doi.org/10.3390/math13030538
Submission received: 29 December 2024 / Revised: 4 February 2025 / Accepted: 5 February 2025 / Published: 6 February 2025
(This article belongs to the Section E4: Mathematical Physics)

Abstract

:
The problem of obtaining a final expression for a function initially given in the form of a trigonometric Fourier series is considered. We consider a special case of a series when the coefficients of the series are known and are rational functions of the harmonic number. To obtain the final expression, we propose to formulate a differential equation with constant coefficients for the function. A special feature of the proposed approach is the consideration of non-homogeneous equations, with the sum of the divergent Fourier series as the non-homogeneity. In this way, it is possible to compose expressions for the desired functions in the form of quadratures and formulate sufficient conditions for the representability of the desired function in the form of piecewise Liouville elementary functions. In this case, it becomes possible to describe in the language of distribution theory a class of Fourier series that can be summed in a finite form using the method of A. N. Krylov.
MSC:
42A32; 40H05; 33F10

1. Introduction

Solutions to a number of problems in mathematical physics are written out as series in eigenfunctions [1,2]. The use of truncated sums of these series as approximate solutions is usually complicated by the slow (power) rate of convergence of the series and the Gibbs phenomenon. Therefore, the problem of summing a functional series in finite form arises naturally. This problem has been studied in many recent works. Note the works [3] (pp. 344, 346) and [4] (pp. 795–796). If desired, even d’Alembert’s method for solving the wave equation can be considered to be a method for summing a Fourier series [5]. Results on summation in finite form often arose as by-products, for example, when accelerating the convergence of series using the method of A. N. Krylov [6] (p. 9), [7] (p. 174).
However, the problem of summation of a series over eigenfunctions in elementary functions has not been formulated clearly as a problem of computer algebra, to which it obviously belongs. Meanwhile, this problem has a number of features that fundamentally distinguish it from the seemingly similar problem of integration in elementary functions [8,9], which goes back to the works of Liouville [10].
In this paper, we consider the summation in the final form of a trigonometric series
u = a 0 2 + n = 1 a n cos n x + b n sin n x ,
which can be regarded as the simplest series in eigenfunctions of the second derivative operator.
We will consider the summation of such a series in the case of coefficients that are rational functions of the index n. This class of trigonometric series is very important for mathematical modeling of physical phenomena. The most important applications of series with coefficients that are rational functions of the harmonic number are problems of oscillations of a finite segment [1] and many problems of elasticity theory in circular and rectangular areas [11]. The series under consideration is a structural element of solutions to problems related to magnetohydrodynamics [12], electrodynamics of rectangular waveguide systems [13] (p. 237). The elementary expressions for the Fourier series of the class under consideration are used not only for a complete description of physical processes but also to improve the convergence of series of a more complex structure. See, for example, [14] (p. 414).
The variety of applications of the series of the class under consideration motivates an attempt to sum them using standard means of symbolic computations. However, popular computer algebra systems like <<Maple>> [15] sum these series in terms of higher transcendental functions [16]. It seems relevant to develop methods for symbolic summation of series that are capable of recognizing elementary expressions among them.
The concept of an elementary expression is well developed in computer algebra [8,9]. Numerous examples of series summed earlier [17] (v. 1., p. 5.4) encourage the expansion of the class of elementary functions to the class of piecewise elementary ones. But this same circumstance makes the theory being developed very different from Liouville’s theory, where elementary functions are considered analytic functions of a complex variable [18].
Definition 1. 
A periodic function of a real variable is called piecewise elementary if its period can be divided into a finite number of segments, on each of which an elementary expression for this function can be specified.
Keeping in mind the application of the developed theory to symbolic summation in computer algebra systems, we introduce some algebraic notations [19]. We will denote by K [ n ] the ring of polynomials in the variable n with coefficients from the field K . We will denote by K ( n ) the field of rational functions in the variable n, i.e., the field of fractions of the ring K [ n ] . In this paper, the field of real numbers R and the field of rational numbers Q are used as K .
Problem 1. 
A Fourier series (1) is given, where a n , b n are rational functions of n:
a n , b n R ( n ) .
It is required to find a piecewise elementary function x (Definition 1) equal to this series almost everywhere on the real axis R . We will consider the problem solved if we are able to determine the function u on the period [ π , π ] .
The key to solving this problem, in our opinion, is the summation in finite form of divergent series, since the principle of superposition turns out to be valid for them: if the coefficients a n and b n of the series (1) are polynomials in n, then the sum of this series is a linear combination of a constant, the Dirac δ -function, the function cot x 2 and their derivatives (Theorem 5). We will reduce the summation of convergent series with rational coefficients a n , b n to solving linear differential equations with constant coefficients, on the right-hand side of which are sums of divergent series (Section 4), and the integration of these equations—to calculating quadratures in elementary functions, i.e., to Liouville theory. To justify our approach, we use the theory of generalized functions developed by Schwartz [20] (chapter IV).

2. Fourier Series as Generalized Functions

The concept of generalized functions presupposes the choice of an appropriate functional space [21,22]. A very large number of distribution spaces are known [23], adapted to the needs of various problems of mathematical physics. The correct method for summing the Fourier series 1 in symbolic form can be described in the distribution space defined below. Our considerations follow Schwartz’s pattern of reasoning [20] (chapter IV), but we need a finite segment instead of an infinite line R or circle S 1 and use the field of real numbers instead of the field of complex numbers.
We will preface the solution of Problem 1 with the necessary definitions and notations. The symbol D q will henceforth denote the operator of the derivative of order q with respect to variable x.
Definition 2. 
We will call a real function ϕ C [ π , π ] the test one if it satisfies the periodic boundary conditions for every non-negative integer m:
D m ϕ | x = π = D m ϕ | x = π .
Definition 3. 
A sequence of test functions { ϕ n } n = 0 is called convergent if there exists a test function ϕ such that for every non-negative integer m the convergence
D m ϕ n D m ϕ C [ π , π ] 0
takes place.
Definition 4. 
The set of all test functions with the concept of convergence introduced by Definition 3 will be called the space of test functions and denoted as D .
Here D is a topological vector space over R [24]. We emphasize that it differs from the usual spaces of test functions (of class C 0 ( π , π ) or C 0 ( R ) ): it includes constants, trigonometric functions sin n x , cos n x , n Z .
The action of a linear functional f ^ : D R on an element ϕ of the space D will be denoted as ( f ^ , ϕ ) .
The set of continuous linear functionals f ^ over the space D of test functions will be denoted as D .
Definition 5. 
A sequence { f n ^ } n = 0 of elements of D is called convergent in D if there is an element f D such that ϕ D the convergence of the numerical sequence holds:
( f n ^ , ϕ ) ( f ^ , ϕ ) .
The set D with the so-introduced notion of convergence is a vector topological space over the field R . D is isomorphic to the space of periodic Schwarz distributions D ( S 1 ) , if we consider D ( S 1 ) over the field R . We do not call D the space of periodic distributions, wishing to emphasize our interest in what happens precisely on the segment [ π , π ] .
Any piecewise continuous function f can be considered to be an element f ^ of the distribution space D , assuming that for every ϕ D
( f ^ , ϕ ) = π π f ( x ) ϕ ( x ) d x .
The functions sin n x , cos n x , and the constant 1 generate the generalized functions sin n x ^ , cos n x ^ , and 1 ^ from D .
If f has singularities in the interval [ π , π ] , then any interpretation of the integral (regularization) is admissible as long as the functional remains linear and continuous with respect to ϕ . We will call the generalized function f ^ elementary if there exists an elementary function f such that the equality (2) holds for some admissible interpretation of the integral. The interpretation of the elementary function as an element of D depends on the interpretation of the integral.
Following Schwartz [20] (p. 174; ch. IV, p. 2), we give a definition of the Fourier coefficients of the generalized function f ^ D .
Definition 6. 
The numbers a n ( f ^ ) , b n ( f ^ ) , given by the expressions
a 0 ( f ^ ) = 1 π ( f ^ , 1 ) ;
a n ( f ^ ) = 1 π ( f ^ , cos n x ) , b n ( f ^ ) = 1 π ( f ^ , sin n x ) , n N ,
are called the Fourier coefficients of the distribution f ^ D .
Let us now define the Fourier series for the distribution f ^ D .
Definition 7. 
The Fourier series of the distribution f ^ D is the expression associated with the distribution f ^ by the formula:
f ^ a 0 ( f ^ ) 2 1 ^ + n = 1 a n ( f ^ ) cos n x ^ + n = 1 b n ( f ^ ) sin n x ^ .
By analogy with the theorems proved by Schwartz for the space D ( S 1 ) [20], (p. 93) of [25], the following theorems can be proved.
Theorem 1. 
The sequence of partial sums of the Fourier series of any distribution f ^ D converges in D .
Theorem 2. 
Of all trigonometric series, only the Fourier series of the distribution f ^ D converges in D to f ^ .
Theorem 3. 
Let the estimates
| a n | C n k , | b n | C n k , C R , k N
be fulfilled. Let sin n x , cos n x , 1 be understood as generalized functions from D . Then there exists an element f ^ D such that the Fourier series (1) converges in D to f ^ .
Definition 8. 
The derivative of order q of the distribution f ^ D is the element D q f ^ D defined by the formula:
( D q f ^ , ϕ ) = ( 1 ) q ( f ^ , D q ϕ ) ϕ D .
Theorem 4. 
The Fourier series of the distribution f ^ can be differentiated term by term any number of times q N . The resulting Fourier series converges in D to the derivatives D q f ^ . In more detail, ϕ D the convergence of the numerical sequence holds:
n = 1 N a n ( f ^ ) D q cos n x ^ + n = 1 N b n ( f ^ ) D q sin n x ^ , ϕ ( D q f ^ , ϕ ) , N .
Any series (1) with given coefficients a n R ( n ) , b n R ( n ) satisfies the condition of Theorem 3 and defines some element f ^ from the space D . For it, a Fourier series is defined (Definition 7), which converges to f ^ in the sense of the space D by Theorem 1. By Theorem 2, the coefficients of the Fourier series of the element f ^ necessarily coincide with the given rational fractions a n R ( n ) , b n R ( n ) . By Theorem 4, this Fourier series can be differentiated term by term any number of times, thereby obtaining series that converge in D to the corresponding derivatives of f ^ . When calculating a derivative of a sufficiently high order, a series will necessarily arise that diverges almost everywhere in the usual sense, but it will have meaning in D .

3. Summation of Divergent Fourier Series in Finite Form

If the coefficients of the Fourier series (1) are polynomials, a n R [ n ] , b n R [ n ] , i.e.,
a n = m = 0 M α m n m , b n = m = 0 M β m n m ,
then the Problem 1 can be solved as follows.
In this case, we agree to understand the divergent series (1) as an element of the vector topological space D , which is legitimate by virtue of Theorem 3. By virtue of the axioms of vector space and the continuity properties (relative to the introduced topology) of the operations of addition and multiplication by a real number in the vector topological space D , it is legitimate to change the order of finite and infinite summation in the expression (1). Then, the considered divergent Fourier series can be rewritten as
u ^ = a 0 2 + m = 0 M α m n = 1 n m cos n x ^ + m = 0 M β m n = 1 n m sin n x ^ .
The series that arise here are derivatives in the sense of D of the two basic series
S ^ = n = 1 sin n x ^ a n d C ^ = n = 1 cos n x ^ ,
since
n = 1 n 2 m cos n x ^ = ( 1 ) m D 2 m C ^ ( x ) , n = 1 n 2 m sin n x ^ = ( 1 ) m D 2 m S ^ ( x ) ;
n = 1 n 2 m + 1 cos n x ^ = ( 1 ) m D 2 m + 1 S ^ ( x ) , n = 1 n 2 m + 1 sin n x ^ = ( 1 ) m + 1 D 2 m + 1 C ^ ( x ) .
It remains to find the sums of the series C ^ and S ^ .
Lemma 1. 
In the space D the following formulas are valid
C ^ = π δ ( x , 0 ) ^ 1 2 ^
and
S ^ = 1 2 cot x 2 ^ .
Proof. 
To find the sum of the series C ^ , taking into account formula (2) we have
1 2 π ^ + 1 π n = 1 N cos n x ^ , ϕ = 1 2 π π π 1 · ϕ d x + 1 π n = 1 N π π cos n x · ϕ d x =
= 1 2 π π π ϕ d x + 1 π n = 1 N cos ( n · 0 ) π π ϕ cos n x d x .
This expression converges to ϕ ( 0 ) as N . This is true for any ϕ D by virtue of the usual theorems of the theory of Fourier series and the boundary conditions for the elements of the space D of test functions. By analogy with the generally accepted definition of the Dirac δ -function, we take
( δ ( x , 0 ) ^ , ϕ ) ϕ ( 0 ) .
This yields Equation (3).
To justify Equation (4), recall that the series
n = 1 cos n x n ,
converges to the elementary function
s = ln 2 sin x 2
for almost all x in the classical sense, see [17]. Care must be taken when calculating the derivative of s as an element of D , s D since this function has a singularity at zero. Nevertheless, for any ϕ D it is true that
( D 1 s ^ , ϕ ) = ( s ^ , ϕ ) = π π s ϕ d x = lim ϵ 0 π ϵ + ϵ π s ϕ d x =
lim ϵ 0 ( s ϕ | ϵ ϵ + s ϕ | π π ) + lim ϵ 0 π ϵ + ϵ π s ϕ d x = lim ϵ 0 π ϵ + ϵ π 1 2 cot x 2 ϕ d x .
Therefore,
( D 1 s ^ , ϕ ) = 1 2 v . p . cot x 2 , ϕ 1 2 cot x 2 ^ , ϕ ,
where v.p. is the Cauchy principal value symbol. From here, by Theorem 4 we obtain
D 1 n = 1 cos n x ^ n = 1 2 cot x 2 ^ ,
that is, Equation (4). □
Thus, we have arrived at the following theorem.
Theorem 5. 
If a n , b n R [ n ] , then the sum of the Fourier series (1) as an element of D can be represented as a linear combination of 1 ^ , δ ( x , 0 ) ^ , cot x 2 ^ and their derivatives in D , this representation is unique and can be found in a finite number of steps.
Remark 1. 
The relation (4) is sometimes used without reference to the theory of generalized functions [13] (p. 259).
Remark 2. 
The result formulated in Theorem 5 can be found in slightly different formulations in Refs. [26,27]. It should be emphasized, however, that a careful proof of this statement requires the introduction of a space D different from the standard space D .
Theorem 5 is the key to solving Problem 1. Please note that a Fourier series (1) with polynomial coefficients is an elementary generalized function if and only if the representation of this series as a linear combination of 1 ^ , δ ( x , 0 ) ^ , cot x 2 ^ and their derivatives in D does not contain the δ -function and its derivatives.

4. Summation of Convergent Series

We now turn to solving Problem 1 in the case when a n , b n R ( n ) . Furthermore, we will understand the Fourier series in the sense of Schwartz, and, on the contrary, we will omit the notation ^ from now on if this does not lead to misunderstandings.

4.1. Differential Equation for the Fourier Series in Sines

We consider the series in the system of sines, taking all the coefficients a n = 0 .
Theorem 6. 
Let b n R ( n ) , a rational function of index n. Then there exists a linear differential operator L and a polynomial B n R [ n ] such that the sum of the series
u = n = 1 b n sin n x
is a solution in the sense of D of the linear differential equation
L [ u ] = n = 1 B n sin n x , B n R [ n ] .
We will say that the operator L annihilates (cf. [28]) the denominator of the Fourier coefficients of the original series, and the polynomials B n R [ n ] are the Fourier coefficients obtained after the annihilation. From a notational point of view, the differential expression L can be viewed as a polynomial in the derivative operator D, i.e., as an element of the ring of polynomials R [ D ] or ring of polynomials R [ D 2 ] . We introduce the notation L Q for the operator L R [ D 2 ] that annihilates the denominator Q n R [ n ] .
Proof. 
Without loss of generality, we will henceforth assume that the Fourier coefficient b n R ( n ) is a proper fraction defined for all natural values of n:
u = n = 1 P n Q n sin n x ,
P n R [ n ] , Q n R [ n ] , deg P n < deg Q n .
The desired differential expression for L Q is easy to present as an explicit formula.
Let us consider two cases.
Case 1. Let Q n R [ n 2 ] :
Q n = q N n 2 N + q N 1 n 2 ( N 1 ) + . . . + q 0 .
Then the operator L Q R [ D 2 ] has the form:
L Q = ( 1 ) N q N D 2 N + ( 1 ) N 1 q N 1 D 2 ( N 1 ) + + q 0 .
The Fourier coefficients B n R [ n ] have the form:
B n = P n .
This statement follows from the equality
D 2 m sin n x = ( 1 ) m n 2 m sin n x .
Note that this equality holds both for the usual function sin n x and in the sense of generalized functions from D for its restriction to [ π , π ] .
Case 2. Now let the polynomial Q n depend not on n 2 , but on n:
Q n = q N n N + q N 1 n ( N 1 ) + + q 0 R [ n ] .
We introduce polynomial
Q n = q N ( n ) N + q N 1 ( n ) ( N 1 ) + . . . + q 0 R [ n ] .
Then the operator L Q R [ D 2 ] has the form:
L Q = L Q , Q n = Q n · Q n R [ n 2 ] .
The Fourier coefficients B n R [ n ] have the form:
B n = P n Q n .
The expression for the annihilating operator is constructed in the same way as for the case of Q n R [ n 2 ] , but it is necessary to compose a new polynomial Q n , depending on n 2 , for the denominator Q n , and annihilate it. □
Annihilation provides a constructive way to solve Problem 1 since the divergent series on the right in Equation (5) has polynomial coefficients B n R [ n ] and sums to a finite form in the manner described in the previous Section.
Example 1. 
From
u = n = 1 sin n x 1 + n 2
we have
L [ u ] = ( D 2 + 1 ) u = n = 1 sin n x
or
u u = 1 2 cot x 2 .
To solve the linear differential Equation (5), we can use standard integration methods. In this case, we can prove the following analog of Weil’s lemma [29].
Lemma 2. 
The distribution u D satisfying Equation (5) in the sense of D belongs to the class C ( [ π , 0 ) ( 0 , π ] ) . This function satisfies Equation (5) in the classical sense on the set [ π , 0 ) ( 0 , π ] , if only on the right-hand side of Equation (5) the δ-function and its derivatives are replaced by identical zero, and the constant, cotangent and its derivatives are replaced by the corresponding ordinary functions of a real variable.
Proof. 
By the theorem on the regularity of the solution of an ordinary differential equation with smooth right-hand side from the space D ( Ω ) [25], where Ω is the set ( π , 0 ) ( 0 , π ) , the function u is infinitely differentiable everywhere, except perhaps for the point x = 0 and the points x = ± π . To the points x = ± π , the function u continues with all its derivatives by the theorem on the existence and uniqueness of the classical solution of the Cauchy problem for an ordinary differential equation with constant coefficients and a smooth right-hand side. □
Based on Lemma 2, we can find expressions for sums of Fourier series using all known methods and techniques for finding classical solutions of ordinary differential equations. Please note that by Lemma 2, the function u and all its derivatives of even order satisfy the homogeneous Dirichlet conditions at the points x = ± π in the classical sense. Also, the function u satisfies the periodicity conditions in the classical sense.

4.2. Summation of a Convergent Fourier Series over Sines

By Theorem 5, Problem 1 is reduced to the following problem.
Problem 2. 
A linear ordinary differential operator L with constant coefficients and a linear combination f of functions 1, δ ( x ) , cot x 2 and their derivatives are given. It is required to find out whether the equation
L [ u ] = f
has a solution in the space D in piecewise elementary functions.
Theorem 7. 
Let the operator L have order q—the largest order of differentiation in the expression L. Let the right-hand side of the equation L [ u ] = f be a finite linear combination of a constant, a δ-function, and derivatives of the δ-function:
f = α + α 0 δ ( x ) + n = 1 q 1 α n D n δ ( x ) , α R , α 0 R , α n R .
Let the operator L have no zero eigenvalues under the periodicity boundary conditions. Then there exists a unique function u satisfying this equation in the sense of D . This function is expressed in the finite form of piecewise elementary functions of the variable x. This expression can be found in a finite number of steps.
Remark 3. 
For simplicity, we will assume that the roots of any polynomials over C are known, regardless of whether they are representable in radicals or not.
Proof. 
Consider a boundary value problem for the equation L [ u ] = f in the interval [ π , π ] with periodicity conditions [30] (Chapter 1b, Section 1.4, p. 188):
D m u ( π ) = D m u ( π ) , m = 0 , 1 , , q 1 .
Based on Lemma 2, we can reduce the study of the original equation in the space D to the study of the solution of this boundary value problem.
By the condition of Theorem 7, the corresponding homogeneous boundary value problem has only a trivial classical solution. Then, for the operator L with periodicity conditions, there exists a unique Green’s function g ( x , ξ ) depending on the parameter ξ . In this paper, we use the definition of Green’s function of a boundary value problem given in the book [30] (pp. 1.5, 189). The function g ( x , ξ ) satisfies the periodicity conditions in the classical sense of ξ ( π , π ) with respect to the variable x. Therefore, in the sense of the space D it satisfies the equation
L [ g ] = δ ( x ξ ) , ξ ( π , π ) ,
where the operator L acts with respect to the variable x. Since the operator L has constant coefficients, it can be verified (cf. [31] (Ch. III, problems 7.23, 7.28, pp. 99–103)) that this equation has no other solutions in D .
Using Green’s function g ( x , ξ ) , we can write out a unique solution in the sense of the space D of the equation L [ u ] = f with the specified source f. It has the form:
u = α π π g ( x , ξ ) d ξ + α 0 g ( x , 0 ) + n = 1 q 1 α n ( 1 ) n n g ( x , ξ ) ξ n | ξ = 0 , x [ π , π ] ,
where the derivatives with respect to the variable ξ should be understood in the sense of the space D . Due to the properties of Green’s function [30], all derivatives with respect to ξ up to order q 2 will be continuous functions, and the derivative of order q 1 will be piecewise continuous.
The Green’s function of a boundary value problem for an operator with constant coefficients can be found in a finite number of steps, e.g., using the method given in [30] (pp. 1.5, 189). It is expressed as a piecewise elementary function”—the expression uses particular solutions of the homogeneous equation L [ v ] = 0 , which are Liouville elementary functions of x and the roots of the characteristic polynomial of the differential equation L [ v ] = 0 . Due to the structure of particular solutions of homogeneous ordinary differential equations with constant coefficients, the quadrature of Green’s function that arises here is reduced to calculating integrals that are elementary in the sense of Liouville. This means that the desired function u is piecewise elementary. □
Thus, a case is identified in which Problem 2 is solved explicitly.
Remark 4. 
The restriction on the order of the derivative of the delta function in the expression for f in Theorem 7 can easily be removed, then the expression for u will have a similar form. This expression will not be a piecewise elementary function in the sense of Definition 1 since it will contain derivatives of the delta function.
A consequence of Theorem 7 is the possibility of summation in finite form of piecewise elementary functions of a certain class of Fourier series (1). Let us describe this class of Fourier series.
Theorem 8. 
Let the coefficient B n be an odd function of n after annihilation. Let the operator L Q have no zero eigenvalue under the periodicity boundary conditions. Then, the Fourier series is expressed as a piecewise elementary function.
Proof. 
If the polynomial B n is an odd function, then it is a linear combination of odd powers of n. In this case, the distribution of f reduces to a finite sum of derivatives of the Dirac δ -function (the constant and the δ -function itself are obtained by considering cosine series):
f = β 1 · π D 1 δ ( x ) + β 3 · π D 3 δ ( x ) + + ( 1 ) d + 1 2 π D d δ x , d = deg B n .
Hence, the Fourier series
u = n = 1 P n Q n sin n x ,
is summed up using the method specified in the proof of Theorem 7. In this case, the solution to Problem 1 is completely reduced to the explicit solution to Problem 2. □
Let us give a simple example where there is a zero eigenvalue of the operator L, corresponding to the boundary conditions of periodicity, but it can be eliminated by setting homogeneous Dirichlet conditions.
Example 2. 
Consider the convergent Fourier series
y = n = 1 sin n x n , x [ π , π ] ,
whose sum can be found in [17] [v.1, Section 5.4]. Annihilation yields
d 2 y d x 2 = n = 1 n sin n x .
To calculate y we can formulate the Dirichlet problem:
d 2 y d x 2 = π D 1 δ ( x ) , x [ π , π ] ,
y ( π ) = 0 , y ( π ) = 0 .
The solution to this problem will be
y = π 2 sign x x 2 , x [ π , π ] .
The solution y satisfies the equation in the sense of D and is a finite expression for the Fourier series under consideration.
A complete description of the class of uniquely solvable boundary value problems for the operator L suitable for the summation of the Fourier series is beyond the scope of this paper. We indicate the periodicity conditions in Theorems 7 and 8 for simplicity of exposition.
Remark 5. 
Numerous examples illustrating Theorems 7 and 8 were considered in the classical works of A. N. Krylov on accelerating the convergence of the Fourier series. In many examples, A. N. Krylov calculates the sums of series in finite form, reducing the summation to the integration of an ODE with constant coefficients, achieving the possibility of term-by-term differentiation of the series by the preliminary acceleration of convergence. In this case, homogeneous ODEs are obtained, and the derivatives of the Dirac δ-function are taken into account in terms of the conjugation conditions in the boundary value problem for ODEs. All examples of summation in finite form that arise in the monograph [6] can be reduced to a form that satisfies the conditions of Theorem 7.
Let us consider a typical example.
Example 3. 
u = n = 1 n 3 1 + n 4 sin n x
This series arises in the theory of forced vibrations of beams, cf. [6] (p. 255). It is also considered from the point of view of classical analysis in [32] (p. 115).
In this case, we have the boundary value problem
L [ u ] = ( D 4 + 1 ) u = π D 3 δ ( x ) , x [ π , π ] ;
u ( π ) = u ( π ) = 0 , D 2 u ( π ) = D 2 u ( π ) = 0 .
This problem has a unique solution in the sense of D :
u = π 2 cosh x 2 cos 2 π + x 2 cos x 2 cosh 2 π + x 2 cosh π 2 cos π 2 + π h ( x ) cosh x 2 cos x 2 ,
where h ( x ) is the Heaviside function.
Please note that the series for u converges very slowly, and even 100 of its terms do not convey the behavior of the desired function in the vicinity of the discontinuity; see Figure 1 and Figure 2. This perfectly illustrates the importance of summing the series in a finite form for practical applications.
Let us now consider the equations for the Fourier series that are not covered by the condition of Theorem 8. In this case, the polynomial B n R [ n ] is not an odd function of number n. The expression for the right-hand side f does not satisfy the condition of Theorem 7: the cotangent and its derivatives may appear on the right-hand side. Then, the solution of the equation L [ u ] = f will contain quadratures of the form
x p e λ x D q cot x 2 d x , p N , λ C , q N .
The conditions found in Liouville theory under which integrals of this type are expressed in elementary functions [33], ref. [9] provide sufficient conditions for the solvability of Problem 1. A full description of such conditions is beyond the scope of this paper, but the following theorem can be proved.
Theorem 9. 
If after annihilation, the coefficient B n is not an odd function of n, then the expression for the Fourier series in piecewise elementary functions exists (i.e., Problem 1 is solvable) if all roots of the polynomial Q n R [ n ] are simple and belong to the field of rational numbers Q .
Proof. 
Under the conditions of this theorem, the denominator of Q n Q [ n ] has the form (the leading coefficient l c ( Q n ) is set equal to 1 without loss of generality):
Q n = ( n λ 0 ) · · ( n λ N ) Q [ n ] ,
We compose Q n :
Q n = ( n λ 0 ) · · ( n λ N ) Q [ n ] .
The product Q n = Q n · Q n has the form:
Q n = ( n 2 + λ 0 2 ) · · ( n 2 + λ N 2 ) Q [ n 2 ]
Then the annihilation operator L Q has the following explicit form:
L Q = ( D 2 + λ 0 2 ) · . . . · ( D 2 + λ N 2 ) Q [ D 2 ] .
Next, two cases are possible.
Case 1. Let there be no zero among the numbers λ i . Then the desired function u will be represented as the sum of some piecewise elementary function corresponding to the derivatives of the δ -function in the right-hand side of f, and a finite number of quadratures of the form
sin ( λ i x ) D q cot x 2 d x , cos ( λ i x ) D q cot x 2 d x , λ i Q .
All such quadratures are obviously expressed in elementary functions.
Case 2. Among the numbers λ i , there is zero. Then the fundamental set of solutions of the homogeneous equation will contain a linear function, and not only trigonometric ones. This case should be considered very carefully since within the framework of differential algebra, the proof of non-elementarity is known (p. 167) of [9], (p. 24) of [34] for the quadrature of the form
x tan x d x ,
through which the required
x cot x 2 d x
is expressed. Recall that the equation under consideration is obtained as a result of the procedure of annihilation of the denominator of the fraction that defines the coefficient of a certain Fourier series. The denominator has the form
Q n = n · ( n λ 1 ) · · ( n λ N ) Q [ n ] .
The annihilation operator will have the form
L Q = D 2 · ( D 2 + λ 1 2 ) · · ( D 2 + λ N 2 ) Q [ D 2 ] .
An explicit calculation of the action of this operator on the Fourier series under consideration shows that the resulting polynomial B n will not contain a zero-degree term in n. Indeed,
D 2 sin n x n = n sin n x ,
therefore, the coefficient B n obtained after annihilation is divisible by n. Therefore, the right-hand side of the differential equation, the integration of which yields the sum of the Fourier series, will not contain cot x 2 . Possible derivatives of the cotangent will lead to quadratures of the form
x D q cot x 2 d x , q = 2 , 4 ,
which are calculated in elementary functions. □
Let us consider an example illustrating the action of Theorem 9.
Example 4. 
Now let u be expressed as
u = n = 1 sin n x n 2 1 4 .
By differentiating and using the expression for the divergent series S ( x ) , we obtain the boundary value problem:
u + 1 4 u = 1 2 cot x 2 , x [ π , 0 ) ( 0 , π ] ; u ( π ) = u ( π ) = 0 .
Any classical solution to this problem has the form:
u = C o n s t · cos x 2 2 sin x 2 log 1 cos x 2 sin x 2 .
A particular solution of the inhomogeneous equation for this example can be extracted from the reference book [30] (p. 365, No. 2.8).
The only solution satisfying the equation in the sense of D has the form
u = 2 sin x 2 log 1 cos x 2 sin x 2 .
It is easy to verify that this is the final formula for the Fourier series of the example under consideration.
Example 5. 
Returning to Example 1, we see that u is the solution of the boundary value problem
u u = 1 2 cot x 2 , x ( 0 , π ] u ( 0 ) = u ( π ) = 0 .
By the method of variation of constants we obtain:
u = sinh ( x π ) 2 sinh π 0 x sinh y cot y 2 d y sinh x 2 sinh π x π sinh ( y π ) cot y 2 d y .
This expression is defined everywhere as on the segment [ 0 , π ] . Continuing it in an odd way to the segment [ π , π ] , we obtain a representation of the original Fourier series on the period [ π , π ] . Please note that in this example, the sufficient condition for the elementarity of the function u from Theorem 9 is not satisfied. The roots of the polynomial Q n are equal to ± i Q . To solve Problem 1, further study of the elementarity of the obtained quadratures within the framework of Liouville theory is required.
Remark 6. 
The formulated theorems remain valid for the case when the denominator Q n has a natural root n 0 N : then the summation method will find the sum of the Fourier series in which the corresponding term sin n 0 x is missing. To do this, the corresponding harmonic must be removed from the divergent Fourier series for the right-hand side f. Instead of f, it is necessary to use f B n 0 ( f ^ ) sin n 0 x , where B n R [ n ] is the Fourier coefficient obtained after the annihilation of the denominator Q n .

4.3. On Cosine Series

Our consideration does not touch upon convergent Fourier series involving cosines cos n x . It is not difficult to formulate similar statements for them, and the analog of Theorem 6 will literally repeat the original formulation. The analog of Theorem 8 will contain the condition of evenness of the Fourier coefficient instead of oddness of the coefficient B n as a function of the number n. The condition of the rationality of the simple roots of the denominator in Theorem 9 will remain unchanged. In subsequent calculations, the Dirichlet boundary conditions will be replaced by Neumann conditions. Thus, the study of cosine series would largely repeat the above consideration. At the same time, we note that the cosine series is expressed through the sum of the sine series using the Hilbert transform (harmonic conjugation operator, [35] (p. 157)):
n = 1 a n cos n x = 1 2 π v . p . π π u ( t ) cot t x 2 d t ,
where
u = n = 1 a n sin n x .

5. Results Discussion

Our study has shown that the problem of summing the Fourier series (1) in piecewise elementary functions is solved, especially simply if the coefficients of the series a n , b n are polynomials in n. It turned out that the sum of such a series is always a linear combination of a constant, the Dirac δ -function, the function cot x 2 and their derivatives (the superposition principle, Theorem 5). We reduced the study of this problem for the case when the coefficients of the series a n , b n are rational functions in n to the study of the solvability in piecewise elementary functions of a linear differential equation
L [ u ] = f ,
the right-hand side of which is the sum of a divergent Fourier series with polynomial coefficients. This technique allowed us to sum up absolutely all examples that had previously been solved by classical methods.
In fact, we reduced the summation of slowly converging series to the summation of obviously divergent series. From a classical point of view, this seems surprising. The fact is that for a long time, it was generally accepted that the summation of divergent series is of a formal nature and can be introduced in many ways. Therefore, the results obtained with their help can be ambiguous and not coincide with the correct ones obtained by classical methods, cf. [6] (p. 224). Our study showed that Schwarz’s theory gave the very interpretation of divergent Fourier series, thanks to which we were able to justify the use of divergent series for the summation of convergent ones.
We believe that it is this interpretation of the summation in finite form of divergent Fourier series that should be used by default in computer algebra systems. At present, various approaches are used, often conflicting with each other [36]. Moreover, the systematic introduction of the theory of generalized functions into symbolic computations seems to us to be an important and urgent task, the solution of which will allow summing not only Fourier series but also more complex functional series.
The appearance of the Dirac δ -function in the summation of divergent series in a finite form seems quite natural from the point of view of mathematical physics. However, the significance for computer algebra of the fact that the sum of a divergent Fourier series with polynomial coefficients is always the sum of an elementary function, and the δ -function, as well as its derivatives, requires understanding. The description of the class of elementary functions was proposed by Liouville in 1833 and has not changed since then. Expanding this set by adding new operations, such as calculating the Lambert function, leads to such a complex construction that it is not yet possible to study its solvability. We see that in the theory of the Fourier series, another extension naturally arises—adding a δ -function. Of course, it cannot be considered to be a mapping. However, in computer algebra symbolic expressions are not considered to be mappings either. We hope that in this way, it will be possible to construct and implement the theory of summation of functional series in a finite form.

6. Conclusions

Trigonometric series with coefficients of a special type, which are rational functions of the harmonic number, are considered. A simple method for obtaining a final expression in piecewise elementary functions of a real variable or quadratures is indicated for them. The indicated method is suitable for computer implementation. A mathematical justification of the important elements of this method is given using the theory of generalized functions. Our study touched upon a number of classical questions of Liouville theory, which were only outlined in this paper, including finding necessary and sufficient conditions for calculating the Quadrature (6) in elementary functions. We intend to return to this question in the future.

Author Contributions

Conceptualization, K.M. and L.S.; Methodology, M.M.; Validation, K.M.; Investigation, M.M.; Writing—original draft, K.M.; Project administration, A.Z. All authors have read and agreed to the published version of the manuscript.

Funding

The work of K. Malyshev was supported by the Russian Science Foundation (grant No. 20-11-20257, Sections 2–4 and 6). The work of M. Malykh was supported by by the RUDN University Strategic Academic Leadership Program, project No. 021934-0-000 (recipient M. Malykh, Section 1, Section 5).

Data Availability Statement

The original contributions presented in the study are included in the article, further inquiries can be directed to the corresponding authors.

Acknowledgments

The authors are grateful to the anonymous reviewers for reading the manuscript and making important and kind comments. The authors are grateful to M.V. Alekseev (HSE), A.V. Badin (Moscow State University), O.K. Kroytor (RUDN University) for valuable discussions. The graphs were constructed using the CAS <<Maple>> [15].

Conflicts of Interest

The authors declare no conflicts of interest.

References

  1. Courant, R.; Hilbert, D. Methods of Mathematical Physics; Interscience Publishers: New York, NY, USA, 1953; Volume 1–2. [Google Scholar]
  2. Titchmarsh, E.C. Eigenfunction Expansions Associated with Second-Order Differential Equations; Part 1; Clarendon Press: Oxford, UK, 1949. [Google Scholar]
  3. Rykhlov, V.S. Generalized initial-boundary problem for the wave equation with mixed derivative. Contemp. Math. Fundam. Dir. 2023, 69, 342–363. [Google Scholar] [CrossRef]
  4. Naydyuk, F.O.; Pryadiev, V.L.; Sitnik, S.M. Laguerre Polynomials in the Forward and Backward Wave Profile Description for the Wave Equation on an Interval with the Robin Condition or the Attached Mass Condition. Math. Notes 2024, 115, 789–799. [Google Scholar] [CrossRef]
  5. Dolya, P.G. Solution to the homogeneous boundary value problems of free vibrations of a finite string. J. Math. Phys. Anal. Geom. 2008, 4, 237–251. [Google Scholar]
  6. Krylov, A.N. On Some Differential Equations of Mathematical Physics; GITTL: Moscow, Russia, 1950. (In Russian) [Google Scholar]
  7. Khromov, A.P.; Burlutskaya, M.S. Classical solution by the Fourier method of mixed problems with minimum requirements on the initial data. Izv. Saratov Univ. Math. Mech. Inform. 2014, 14, 171–198. (In Russian) [Google Scholar] [CrossRef]
  8. Pavlov, D.I. Symbolic integration. Comput. Tools Educ. 2010, 2, 38–43. (In Russian) [Google Scholar]
  9. Bronstein, M. Symbolic Integration I. Transcendental Functions, 2nd ed.; Springer: Berlin/Heidelberg, Germany, 2005. [Google Scholar] [CrossRef]
  10. Liouville, J. Mémoire sur l’intégration d’une classe de fonctions transcendantes. J. FÜr Die Reine Und Angew. Math. 1835, 13, 93–118. [Google Scholar] [CrossRef]
  11. Birger, I.A.; Panovko, Y.G. (Eds.) Strength, Stability, Vibrations: Handbook; Mashinostroenie: Moscow, Russia, 1968; Volume 1. (In Russian) [Google Scholar]
  12. Shercliff, J.A. Steady motion of conducting fluids in pipes under transverse magnetic fields. Math. Proc. Camb. Philos. Soc. 1953, 49, 136–144. [Google Scholar] [CrossRef]
  13. Berezhnoy, V.A.; Kurdyumov, V.N. Lectures on High-Frequency Electrodynamics: Textbook, 2nd ed.; INR RAS: Moscow, Russia, 2013; (In Russian). [Google Scholar] [CrossRef]
  14. Skobelev, S.P. A Modification of the Kummer’s Method for Efficient Computation of the 2-D and 3-D Green’s Functions for 1-D Periodic Structures. IEEE Trans. Antennas Propag. 2012, 60, 412–416. [Google Scholar] [CrossRef]
  15. Waterloo Maple (Maplesoft), Symbolic and Numeric Computing Environment Maple. 2019. Available online: https://www.maplesoft.com (accessed on 29 December 2024).
  16. Malyshev, K.Y.; Malykh, M.D. Implementation of A.N. Krylov Series Convergence Acceleration in the CAS Sage; International Conference Polynomial Computer Algebra’2023, Euler International Mathematical Institute; Vassiliev, N.N., Ed.; VVM Publishing: St. Petersburg, Russia, 2023. [Google Scholar]
  17. Prudnikov, A.P.; Brychkov, Y.A.; Marichev, O.I. Integrals and Series; Fizmatlit: Moscow, Russia, 2002; Volume 1. (In Russian) [Google Scholar]
  18. Markushevich, A.I. Elements of the Theory of Analytic Functions; Uchpedgiz: Moscow, Russia, 1944. (In Russian) [Google Scholar]
  19. Lang, S. Algebra; Part of the Book Series: Graduate Texts in Mathematics; Springer: New York, NY, USA, 2002; Volume 211. [Google Scholar] [CrossRef]
  20. Schwartz, L. Mathematical Methods for Physical Sciences; French Mir: Moscow, Russia, 1965. (In Russian) [Google Scholar]
  21. Sobolev, S.L. Applications of Functional Analysis in Mathematical Physics; American Mathematical Society: Providence, RI, USA, 1963. [Google Scholar]
  22. Vladimirov, V.S. Equations of Mathematical Physics; Marcel Dekker: New York, NY, USA, 1971. [Google Scholar]
  23. Brychkov, Y.A.; Prudnikov, A.P. Integral transforms of generalized functions. J. Sov. Math. 1986, 34, 1630–1655. [Google Scholar] [CrossRef]
  24. Schaefer, H.H. Topological Vector Spaces; Graduate Texts in Mathematics; Macmillan Series in Advanced Mathematics and Theoretical Physics; Macmillan: London, UK, 1971; Volume 3. [Google Scholar]
  25. Shubin, M.A. Lectures on the Equations of Mathematical Physics; Ed. 2, Corrected; MCCME: Moscow, Russia, 2003. (In Russian) [Google Scholar]
  26. Gelfand, I.M.; Shilov, G.E. Generalized Functions; Properties and Operations; Academic Press: New York, NY, USA; London, UK, 1964. [Google Scholar]
  27. Mikusinsky, Y.; Sikorsky, R. Elementary Theory of Generalized Functions; Issue 1; Inostr. Liter.: Moscow, Russia, 1963. (In Russian) [Google Scholar]
  28. Abramov, S.A.; Zima, E.V. Minimal completely factorable annihilators. In Proceedings of the ISSAC ’97: Proceedings of the 1997 International Symposium on Symbolic and Algebraic Computation, Maui, HI, USA, 21–23 June 1997; pp. 290–297. [Google Scholar] [CrossRef]
  29. Hellwig, G. Partial Differential Equations; Springer: Berlin/Heidelberg, Germany, 1977. [Google Scholar]
  30. Kamke, E. Handbook of Ordinary Differential Equations, 5th ed.; Nauka: Moscow, Russia, 1971. (In Russian) [Google Scholar]
  31. Vladimirov, V.S. (Ed.) A Collection of Problems on the Equations of Mathematical Physics; Springer: Berlin/Heidelberg, Germany, 1986. [Google Scholar] [CrossRef]
  32. Pak, I.N. On the sums of trigonometric series. Russ. Surv. 1980, 35, 105–168. [Google Scholar]
  33. Pankratyev, E.V. Elements of Computer Algebra; Binom: Moscow, Russia, 2007. (In Russian) [Google Scholar]
  34. Bronstein, M. Simbolic Integration Tutorial; ISSAC’98: Rostock, Germany, 1998. [Google Scholar]
  35. Kislyakov, S.V. Classical problems of Fourier analysis, Commutative harmonic analysis—1, Itogi Nauki Tekhniki. Ser. Sovrem. Probl. Mat. Fund. Napr. 1987, 15, 135–195. (In Russian) [Google Scholar]
  36. Malyshev, K.Y. Divergent Fourier Series and Summation in Finite Terms Using the Krylov Method in CAS; International Conference Polynomial Computer Algebra’2024, Euler International Mathematical Institute; Vassiliev, N.N., Ed.; VVM Publishing: St. Petersburg, Russia, 2024. [Google Scholar]
Figure 1. Plot on a half-period [ 0 , π ] of the sum of the first 100 terms of the series from Example 3 (blue) and the plot of the series sum (red).
Figure 1. Plot on a half-period [ 0 , π ] of the sum of the first 100 terms of the series from Example 3 (blue) and the plot of the series sum (red).
Mathematics 13 00538 g001
Figure 2. Plot of the sum of the first 100 terms of the series from Example 3 (blue, dash-dot line) and the plot of the series sum (red, solid line) in the vicinity of the discontinuity point of the function.
Figure 2. Plot of the sum of the first 100 terms of the series from Example 3 (blue, dash-dot line) and the plot of the series sum (red, solid line) in the vicinity of the discontinuity point of the function.
Mathematics 13 00538 g002
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

Malyshev, K.; Malykh, M.; Sevastianov, L.; Zorin, A. On Summation of Fourier Series in Finite Form Using Generalized Functions. Mathematics 2025, 13, 538. https://doi.org/10.3390/math13030538

AMA Style

Malyshev K, Malykh M, Sevastianov L, Zorin A. On Summation of Fourier Series in Finite Form Using Generalized Functions. Mathematics. 2025; 13(3):538. https://doi.org/10.3390/math13030538

Chicago/Turabian Style

Malyshev, Ksaverii, Mikhail Malykh, Leonid Sevastianov, and Alexander Zorin. 2025. "On Summation of Fourier Series in Finite Form Using Generalized Functions" Mathematics 13, no. 3: 538. https://doi.org/10.3390/math13030538

APA Style

Malyshev, K., Malykh, M., Sevastianov, L., & Zorin, A. (2025). On Summation of Fourier Series in Finite Form Using Generalized Functions. Mathematics, 13(3), 538. https://doi.org/10.3390/math13030538

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