Fourier-Series Representation of Discontinuous Functions and Its Physical Applications

In this work, Fourier-series representation of a discontinuous function is used to highlight and clarify the controversial problem of finding the value of the function at a point of discontinuity. Several physical situations are presented to examine the consequences of this kind of representation and its impact on some widely well-known problems whose results are not clearly understood or justified.


Introduction
The problem of a conducting sphere of radius R and uniform charge Q on its surface is discussed in introductory physics textbooks [1] [2]. For such a sphere, Gauss's law gives that the electric field, at a point r, is zero inside ( r R < ) and 2 kQ r outside ( r R > ). Usually, the question of finding the electric field on points on the surface of the sphere is not raised due to the discontinuity of the field at such points. The limit of the electric field as r R → from inside gives zero and from outside gives 2 kQ R and therefore the electric field is ill-defined on the surface. Most textbooks as in [1] and [2], authors calculate, by direct use of Gauss law, the electric field just outside a conducting surface and obtain the correct value 2 kQ R . This value is the same as the outside limiting value of the electric field of the conducting sphere. This causes a misleading and confusion among students for the electric field on the surface and may claim that the electric field there is 2 kQ R . This is not a correct conclusion and one should admit *Corresponding author.
How to cite this paper: Al-Jaber, S.M. and Saadeddin, I. (2019) Fourier-Series Representation of Discontinuous Functions and the ambiguity of the electric field on the surface and care must be taken when dealing with such a situation. In some cases one has to assign a value for the electric field at a very small patch on the surface for the purpose of calculating the electrostatic pressure (force per unit area) on the surface. This has been done by Griffiths in his Electrodynamics book [3]. Griffiths assigned the average value between the inside and outside limits and got the value 2 2 kQ R for the electric field on the surface of the conductor, and he arrived at the correct well-known value of the electrostatic pressure on the surface [4], namely, 2 0 2 σ ε , where σ is the surface charge density and 0 ε is the electric permittivity of free pace.
Other researchers [5] [6] [7] [8] [9] considered the electric field which suffers a jump at the surface and concluded that the appropriate value of the electric field at the surface is the average value between the inside and the outside limits.
In the light of the above debate and due to the ambiguity of this problem, the aim of the present paper is to give a proof that the value of the electric field at the discontinuity point on the surface is in fact the average value between the inside and the outside limits of the electric field as r R → . Fourier series expansion will be used to obtain our result.

Fourier Series Representation of a Discontinuous Function
Expansion of a function by a Fourier series has been of a great advantage in physics and engineering [10]- [18] because it allows one to more easily manipulate functions that are discontinuous or difficult to represent analytically. Some investigators have been working on fast and accurate simulations for Fourier representation of discontinuous function that represent scientific problems [19]- [25]. The value of the expanded function ( ) f x at its point of discontinuity point is the average of the upper and lower limits of the function [26] [27].
This means that the Fourier series converges to half-way between these two limits. Mathematically, at a point of discontinuity, 0 x , the Fourier series converges to the value ( ) The Fourier series expansion of the function ( ) f x , with period 2L is conventionally written as where 0 , , The factor 1 2 which appears in the 0 a term in Equation (2) is included so that Equation (4) may be applied for 0 n = as well as 0 n > .
In order to demonstrate Equation (1), we consider a specific function ( ) f x , which is given by Obviously, at the point of discontinuity ( 0 x = ) the series in Equation (7) converges to 1/2, which is the average value between the two limits of ( ) f x below and above the jump.

A Uniformly Charged Conducting Sphere
In order to discuss the problem of the value of the electric field on the surface of a conducting sphere, we consider a conducting sphere of radius R which is uniformly charged by a charge Q. Direct application of Gauss's law gives the electric field at a point r from the sphere's center, with the result Obviously, the electric field suffers a discontinuity at points on the surface since its limit from inside gives zero while from outside gives 2 kQ R . In order to find the electric field at points on the surface, we proceed as follows: We consider a conducting object which carries a surface charge density σ on its surface. The widely well-known quantity which is usually invoked is the electric field just outside the conductor. The usual treatment to derive this is by considering a cylindrical Gaussian surface whose half of its length inside the conductor and the other half is outside as in Figure 2. Application of Gauss's law yields , which is found in most standard introductory physics textbooks [2].
Therefore, the electric field is zero inside the conductor and a constant ( just outside. The result shows that the electric field suffers a finite jump on the surface, so that the electric field is written as = . Therefore, Equation (2) gives the Fourier expansion of the electric field which is given by It should be clear that the above series converges to 0 2 σ ε at the discontinuity point ( 0 x = ) which is the average value of the electric field between its two limits from inside and outside. Therefore, by using the relation 2 4π q R σ = for the conducting sphere problem, we get our required result for the electric field on the surface, Our result in Equation (11)

Some Physical Problems Involve Discontinuous Functions
Here, we consider three physical situations that involve functions that suffer a jump at a point on a boundary. Therefore, assigning a value of the function at that point is necessary in order to achieve a relevant physical quantity.

The First Problem: Electrostatic Pressure on Surface of a Conductor
The first problem deals with the calculation of electrostatic pressure on the surface of a conductor which contains a surface charge density σ . This problem has been discussed by Griffiths [28] in his famous textbook on electrodynamics. There, Griffiths considered a patch on the surface of the conductor in attempt to find the electrostatic pressure on the surface of the con-  σ ε . However, this argument seems a bit dodgy because the patch is not a point so that part of the patch creates a field that affects the other part of the patch. So our result can now be applied to determine the value of the electric field at a point on the surface. For that purpose, we construct a small cylindrical surface as shown in Figure 1. We assume ε to be very small, so that,

The Second Problem: Energy Aspects in Charging a Capacitor
The well-known two capacitor problem has been of great interest since long time ago, and variety of approaches have been considered to explain the energy loss in this problem [29] [30] [31] [32]. The essence of the problem amounts to the problem of charging a capacitor of capacitance C by a power supply of electromotive force 0 V with a series resistor of resistance R. At the end of charging, the energy stored in the capacitor will be 2 0 and exactly the same amount will be dissipated regardless of the value of R. In ref. [30], the authors used superconducting wires and used the flux of energy carried by the Poynting vector to calculate the energy stored in the capacitor and the energy loss. In such situation, the charge on the capacitor involves a step function, namely, In their derivation of their final result for the stored energy, U, they encountered the integral and a similar one for the energy loss. The value of the step function at the discontinuity point ( 0 t = ) was used by taking the average value between the limits from below and above 0 t = as ( ) ( ) ( ) Therefore, the average value at the discontinuity point has a crucial role in deriving the energy loss in this process.

The Fermi Distribution Function
In this subsection, we present our third physical situation for the use of the average value at the jump of a discontinuous function. The average number of fermions, in a single-particle state with energy is given by the Fermi-Dirac distribution function [33],  where µ is the chemical potential, B k is the Boltzmann constant and T is the temperature in Kelvin, as shown in Figure 2. We note that the Fermi distribution function behaves like a step function Therefore, the average population number of fermions at zero temperature is 1/2, which is at the midpoint of the jump. One can also observe form Equation (14) that for any temperature 0 T > , the average population number is 1/2 when the energy is equal to the chemical potential.

Conclusion
In this paper, the authors examined the behavior of a discontinuous function and its application in some physical systems. Fourier series representation of such function has been studied, and it has been pointed out that, at the point of discontinuity, this series converges to the average value between the two limits of the function about the jump point. So for a step function, this convergence occurs at the exact value of one half. The obtained result clarifies and solves a controversial problem about the value of the electrostatic field at points on the surface of a conducting sphere, which is usually avoided in introductory physics books. As an application of our result, three physical systems have been discussed and the average value of the function at the discontinuity point has been used in such systems: The first deals with the calculation of the electrostatic pressure on the sur-