The problem of a conducting sphere of radius R and uniform charge Q on its surface is discussed in introductory physics textbooks   . For such a sphere, Gauss’s law gives that the electric field, at a point r, is zero inside ( ) and outside ( ). 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 from inside gives zero and from outside gives and therefore the electric field is ill-defined on the surface. Most textbooks as in  and  , authors calculate, by direct use of Gauss law, the electric field just outside a conducting surface and obtain the correct value . 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 . This is not a correct conclusion and one should admit 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  . Griffiths assigned the average value between the inside and outside limits and got the value 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  , namely, , where is the surface charge density and is the electric permittivity of free pace. Other researchers      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 . Fourier series expansion will be used to obtain our result.
2. 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  -  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  -  . The value of the expanded function at its point of discontinuity point is the average of the upper and lower limits of the function   . This means that the Fourier series converges to half-way between these two limits. Mathematically, at a point of discontinuity, , the Fourier series converges to the value given by
The Fourier series expansion of the function , with period 2L is conventionally written as
where are constants called Fourier coefficients. Due to the orthogonality of the sine and cosine functions, the Fourier coefficients are readily obtained with the result
The factor which appears in the term in Equation (2) is included so that Equation (4) may be applied for as well as .
In order to demonstrate Equation (1), we consider a specific function , which is given by
Applying Equations (3)-(5), one immediately gets , and for only. Therefore, Equation (2) yields
Obviously, at the point of discontinuity ( ) the series in Equation (7) converges to 1/2, which is the average value between the two limits of below and above the jump.
3. 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
with . Obviously, the electric field suffers a discontinuity at points on the surface since its limit from inside gives zero while from outside gives . 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  . 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
where ε is a small quantity and , the discontinuity point, represents a point on the surface. The point now is to expand the electric field in Fourier series over the interval . Comparing Equation (9) with Equation (6) and noting that , the Fourier coefficients, given in Equations (3)-(5) are easily calculated with the result , and . 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 at the discontinuity point ( ) which is the average value of the electric field between its two limits from inside and outside. Therefore, by using the relation for the conducting sphere problem, we get our required result for the electric field on the surface,
Our result in Equation (11) removes the ambiguity of the electric field at points on the surface of a conducting sphere and assigns a value of this field at its discontinuity point. This interesting result must be explained at the undergraduate level for physics and engineering students, since it has been avoided in almost all undergraduate physics textbooks. It should be emphasized that our result, beside its mathematical interest, it also has applications in physical situations in which the value of a function at its point of discontinuity is necessary in order to derive some relevant physical quantities. In the next section, three physical situations will be presented to demonstrate the use of our result and to show that the value of a discontinuous function at its point of discontinuity is the average value of the function at that point, which is the value where the Fourier series of the function converges.
4. 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.
4.1. 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  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 conductor. He argued (but not rigorously) that the electric field on the patch is the average value between the value of electric field just outside the conductor ( ) and its zero value inside. Hence he arrived at the value at the patch, and therefore the pressure (force per unit area) is just . 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, and . Therefore, the average of these two limits gives the correct value of the electric field at a point on the surface of the conducting sphere, namely, and hence the well-known value of the electrostatic pressure on the surface of the sphere.
4.2. 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     . The essence of the problem amounts to the problem of charging a capacitor of capacitance C by a power supply of electromotive force with a series resistor of resistance R. At the end of charging,
the energy stored in the capacitor will be and exactly the same
amount will be dissipated regardless of the value of R. In ref.  , 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 ( ) was used by taking the average value between the limits from below and above as
Therefore, the average value at the discontinuity point has a crucial role in deriving the energy loss in this process.
4.3. 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
Figure 1. Cylindrical surface on the surface of a conducting sphere.
Figure 2. Fermi distribution function as function of energy at different temperatures.
where is the chemical potential, 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 , the average population number is 1/2 when the energy is equal to the chemical potential.
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 surface of a conductor, the second concerns the calculation of the energy loss in charging a capacitor using superconducting wires and the third is the behavior of the population function of Fermi gas at zero temperature.