Classical and quantum billiard inside the square with gravitational field
Abstract
In this work the classical motion and quantum behavior of a particle inside a square of length under the influence of a gravitational field is considered. This includes a study for the conditions on classical periodic orbits as well as classical probability densities and associated position expectation values and standard deviations. In the quantum world the appropriate wave functions and energy eigenvalues are derived concluding a comparison to the classical obtained probability densities and expectation values.
Keywords— s quare billiard; gravity; periodic orbits; probability densities
1 Introduction
During the last decades dynamical systems, especially billiard systems, have widely been studied in various context such as the theory of classical periodic orbits [8, 10] in polygonal systems, quantum versions and visualizations [6] or applications to number theory [3]. Due to simplicity those billiard systems are often studied in a force free scenario where the particles motion is determined by its initial conditions as well as the law of reflection at the boundary. The next interesting systems are those involving a constant force along one direction which e.g. can be induced by a gravitational field. Recent research on this topic has e.g. classically been performed for the case of a parabolic boundary in [4] or in the quantum version either analytically in the simplest case [2] or numerically in [1].
In this research we investigate the classical and quantum behavior of a particle inside a square box which is known to be integrable.
The structure of the paper is as follows: In section 2 we consider the classical motion of a particle inside a square with gravitational field along the direction and derive the conditions for periodic orbits. In the following section we study the classical probability density for this setup and derive the expected position as well as the standard deviation of the particle including a study of limiting cases for small and large vertical energies. Section 4 will be focusing on the quantum mechanical description resulting in a derivation of the associated wave functions and quantized energy eigenvalues. The paper concludes in the quantum mechanical study of the probability density and the associated expectation values for the position, including a comparison to the classical results.
2 Classical Square Study
In this section we focus on particle trajectories subjected to a linear increasing potential (in our case gravity). By a suitable substitution of variables this problem can also be interpreted as a charged particle in a constant electric field along one direction.

It turns out that periodic orbits are completely determined by the trajectory behavior along the boundaries. For a particle moving inside a square of side length under the influence of gravity along the axis the potential is given by
(1) |
The motion of the particle is totally characterized by the initial starting position , the absolute value of the velocity (or equivalently its total energy ) at and the angle under which the particle ejects into the domain (see Figure 1).
The equations of motion for time before the first scattering along the boundary are given by
(2) | ||||
(3) |
It turns out that rewriting in terms of and replacing the velocity dependence by the associated total energy of the system is an advantage. As a result, one obtains the particle height in terms of its distance along the direction via
(4) |
Trajectories thus correspond to parabolas. Hitting the left or right boundary simply corresponds to inverting the direction of the trajectory. The particle motion can thus be alternatively described by unfolding the square [3, 8, 10] and consider the alternating parabola trajectories in the unfolded picture (see Figure 2).

For energies , which simply means that the particle energy in the direction is not enough to encounter the upper boundary and thus only propagating in domains , periodic orbits thus arise if the difference between two consecutive zeros of , i.e. , satisfies
(5) |
The factor 2 represents the fact that the domain has to be unfolded twice to return to its initial orientation (see Figure 2).
If the particles energy along the direction is large enough to obtain (in theory) heights , the particle bounces at the upper boundary. Since in this case the component of the velocity is inverted () the effective distance covered by two consecutive bounces at with one intermediate bounce at (see Figure 3) is given by , where
(6) |

Applying the unfolding procedure we can see that the particle describes periodic orbits iff the difference satisfies
(7) |
i.e. periodic orbits in the square geometry with gravity are completely determined by the behavior of the particle along the boundaries at and . Note that (7) also covers the first case displayed in Eq. (5) with energies along the direction below . In that scenario, it is implicitly understood that if . For the particle trajectories not hitting a corner of the square, in which case the law of reflection is not defined, there are two further conditions - namely
(8) |
with and for hitting the corners or and for corners or .
3 Classical Probability Density and Expected Positions
In this section we are first considering the probability density of a particle moving inside the square including gravity along the direction. The maximal theoretical height (neglecting the boundary) a particle might reach is given in terms of the total energy , its mass and the initial angle by
(9) |
Note that in the following simply abbreviate . From here we start off by considering the classical probability density which has been discussed [5, 7] in various other physical systems e.g. free particles or the harmonic oscillator. Due to the fact that the motion in the direction is homogeneous, there is no dependence on in the probability density, i.e. . Classically, the probability of finding the particle in the vicinity is proportional to the differential time of the particle in this vicinity, i.e.
(10) |
The last equation is equivalent to
(11) |
By conservation of energy, it is easy to verify that the velocity in direction depending on the energy and potential energy of the particle at a height is proportional to
(12) |
A direct calculation shows that the classical probability density of the particle written in terms of the maximal theoretical height is given by
(13) |
where the Heaviside Theta-function is defined by
(14) |
and insures that the integration runs from zero to the maximal allowed height but not further than the boundary of the domain . The correct normalization constant can, as usual, be obtained by the condition
(15) |
and takes the form
(16) |
Figure 4 displays some cases for the obtained probability density along the direction for
and various vertical energies. Obviously, the probability density approaches for large energies (green curve) due to the reflection along the upper boundary and displays an asymptotic behavior (orange curve) in the low energy limit since in this regime .

Applying Eq. (13) with associated normalization Eq. (16) it is now straight forward to calculate the classical expected particle positions inside the box as a function of (i.e. corresponding energy) via
(17) |
Note that the same expression can later on be applied for the quantum case study where the probability density is given by the absolute square of the wave function. Similarly, one can calculate the expectation values and which are needed for the calculation of the particles uncertainty (or standard deviation and analogous for .
We will begin with a short discussion of the direction. Since in this direction there is no force acting on the particle, the probability density and associated expectation value calculations can easily be carried out, yielding
(18) |
and
(19) |
As a direct result, the classical uncertainty of the particle along the direction is given by
(20) |
The results for the direction can also be performed, resulting in the expressions (again in terms the Heaviside function)
(21) |
and
(22) |
Remarkably, the result for demonstrates that the maximal expected height of the particle is given by and is accomplished if , i.e. if the vertical energy of the particle matches the potential energy at the upper boundary. For energies above the expectation value approaches which is the same as and is clear from the fact that in this limit the gravitational force is merely neglectable resulting basically in the movement of a free particle inside a square box. For the classical standard deviation this results in
(23) |
where, in order to write the formula in a compact form, we defined the new function corresponding to the correction terms for the standard deviation induced by the upper boundary compared to the system without the boundary by
(24) |
Again, as for the expected particle position in direction in the large vertical energy limit, the standard deviation approaches the same value as in direction, i.e.
(25) |
A graphical representation for (blue curve) and the associated uncertainty (orange domain) as a function of and the special case of a unit square with is displayed in Figure 5.

4 Quantum Square Study
The Schrödinger equation for a quantum particle of mass inside a square of length and potential given by Eq. (1) reads
(26) |
where is the two dimensional Laplace-operator. Referring to the classical system, where the and motion are independent from each other the wave function can be represented by the product of two separate functions for each variable, i.e. . With this ansatz the Schrödinger equation basically falls apart into two independent equations for and separately, namely
(27) | ||||
(28) |
where and are the corresponding energy values in and direction adding up to the total particle energy .
It is obvious that allowed wave functions for the direction correspond to those of the infinite potential well
(29) |
with . The quantization in direction arises from the boundary conditions . The associated quantized energy eigenvalues read
In order to find solutions to the direction wave function in Eq. (28) we first define new variables, namely
(30) |
as well as
(31) |
In this new variables Eq. (28) becomes
(32) |
The last equation is the well-known Airy-equation. The solutions are the Airy-functions of first and second kind . General properties and applications of the Airy-functions can e.g. be found in [11]. The general solution for the wave function in direction is thus given by
(33) |
The boundary conditions at and on imply that
(34) | ||||
(35) |
Since the Airy-functions are transcendental functions there is no closed form solution in general. Because of this, we are now considering two different limiting cases, namely the first where and the second, where .
Considering the first case, where , simply corresponds to the system, where the energy of the particle in direction is far beyond the potential energy at the upper boundary. Due to that, one can apply the asymptotic properties of the Airy-function of second kind, namely
(36) |
This means for Eq. (35) in order for the total wave function to behave well a the boundary that . The associated boundary condition yields the quantized values for and therefore energy eigenvalues in this limit. These energy values can e.g. be determined using a WKB approximation as shown in [9]. The result reads
(37) |
and therefore
(38) |
In order to distinguish the low energy from the high energy regime, we will use the quantum number for the first, and later on the quantum number , for the other case.
In this limit the appropriate normalisation constant of the associated wave function can approximately be determined by the assumption . For the interested reader the integrals involved in the integration are stated in the appendix 7. The total wave function in the low energy limit thus reads
(39) |
As a second (and far more interesting case) we consider the situation which is equivalent to the statement that the energy of the particle is larger than the potential energy at the upper boundary. Classically those cases correspond to bounces at and . Note that the restriction is chosen in order to keep the errors in the following approximations of Ai and Bi below . Solutions to this set of boundary equations (34) & (35) are obtained if
(40) |
is satisfied. To solve the last equation we can approximate the Airy-functions in the considered energy regime via
(41) | ||||
(42) |
After some straightforward calculations, including trigonometric identities, the condition (40) can be written compact as
(43) |
Clearly it is satisfied if
(44) |
The solutions for the reduced energy eigenvalues depending on can not be written down in a closed form but due to our restriction one can Taylor expand the equation up to second order in the variable :
(45) |
Solving this equation and inserting the expression for results in the approximate quantized values for
(46) |
or in terms of the quantized energy eigenvalues
(47) |
Here is the ground state energy of a free particle of mass inside an infinite potential well of length . In the large limit the asymptotic behavior of the energy equals that of a free particle in the infinite potential well with energy eigenvalues . This is the analogous quantum behavior as seen in the classical limit. Note that due to the restriction the allowed values for depend on the chosen parameters and of our system. The complete wave function in direction thus reads
(48) |
The correct normalization constant in terms of derivatives of Ariy-functions has been determined using the integral representations for the Airy-functions displayed in the appendix 7. In order to write the wave function in a compact form we introduced the short hand notation in the last equation, where the index minus refers to the value in the argument of the function and similarly the index plus for .
5 Quantum Probability Density and Expected Positions
In this final section we are considering the total probability densities for the quantum particle which by our separational ansatz is given by
(49) |
where is understood to be either or depending on which energy regime we are considering in the direction. Note that the density separates in a and depending part . The depending part, as mentioned before, simply corresponds to a particle in the infinite potential well whose properties we already reviewed before. The interesting part, as in the classical study, again appears in the direction. In Figure 6 the qualitative probability density for as well as is displayed corresponding to the low energy limit where the particle (also classically) can not reach the upper boundary at .

An analogous qualitative plot for the probability density in direction in the high energy case (approaching the same behavior as a free particle in the infinite potential well) is shown in Figure 7. Note that the fact that the wave function, and therefore the probability density, is not exactly zero at results from the minimal error related to the Taylor expansion for the energy eigenvalues.

Note that both graphs show qualitatively the same behavior as in the classical regime shown in Figure 4. For a three-dimensional representation of the total probability density, consult the graphics displayed in appendix 7.
We close this section with a calculation of the position expectation values and related uncertainties. The direction quantities can easily be derived (see e.g. [2]) and read in terms of the classical results Eqs. (18) & (20)
(50) | ||||
(51) |
depending on the quantum number .
For the component quantities we consider the low and high energy limit separately again. The results for the low energy (see Eq. (38)) limit, basically corresponding to a particle without upper boundary, have e.g. been calculated in [2] and read
(52) | ||||
(53) |
As in the classical case, we see the identical linear dependence if we associate the quantity with the theoretical reachable maximal height .
We now turn to the high energy limit where the wave function is given by (48). The expectation value can be calculated in terms of the variable introduced in Eq. (31) via
(54) |
Performing the calculation, including the integral identities stated in the appendix 7 and using the boundary conditions for the wave function, it turns out that many terms appearing in the calculation cancel each other out, resulting in the simple expression for the position expectation value
(55) |
In the last equation, we defined the new function analogous to the classical caseby the expression
(56) |
in order to write the formula for the expectation value in a compact form. Note that basically is . As in the classical result (see Eq. (21)), we also see that the expected position in the quantum world is bounded from above by and approaches, for large enough energies, the classical limit.
Let us finally consider the uncertainty in direction. Due to the translational invariance of the mathematical definition of the uncertainty, it follows that it can be calculated in terms of the variable as
(57) |
Using the integral identities involving Ariy-functions displayed in appendix 7 the calculations fo can be carried out analytically. Remarkably, due to the boundary conditions, many terms in the lengthy calculation cancel out each other. The quantum uncertainty in terms of defined in Eq. (56) for the large energy limit thus takes the form
(58) |
Again, as for the expectation value, the similarity to the classical result Eq. (23) is evident.
6 Conclusion
The classical and quantum study of a particle inside a box subjected to a gravitational field provided interesting results. The conditions on classical periodic orbits, including the interesting geometric phenomena happening at the boundary, have been worked out. A detailed discussion on the probability densities in both classical and quantum regime were derived and considered in specific limiting cases. In particular, the structural similarity of the subsequently obtained formulas for position expectation values, as well as uncertainties, yield a deeper insight into the connection between classical obtained results compared to the quantum ones. For future work, it would be interesting to consider the (quantum) dynamics of systems under the influence of a gravitational field, where either the box is tilted by an angle or the boundary domain is not a square but e.g. a triangle or a parabola (referring to some of the classical study already performed e.g. in [4]).
7 Appendix
In this first part of the appendix, some integral identities involving Airy-functions in terms of the variables defined in Eq. (31), which are used to calculate the normalization constant as well as expectation values, are stated. All of these identities have been obtained using Wolfram Alpha.
(59) |
(60) |
(61) |
(62) |
(63) |
(64) |
(65) |
(66) |
(67) |
Find next some three-dimensional plots for the quantum probability density in the low and high energy limit.




References
- [1] D. R. da Costa, C. Dettmann & E. D. Leonel, Circular, elliptic and oval billiards in a gravitational field, Communications in Nonlinear Science and Numerical Simulation, Volume 22, Issues 1–3, May 2015, Pages 731-746
- [2] A. Gupta, Classical and Quantum Probabilities
- [3] D. Jaud, Playing a game of billiard with Fibonacci , arXiv:1906.01911v1 [math.DS], DOI:10.13140/RG.2.2.33902.46405/1,(2019)
- [4] S. Masalovich, Billiards in a gravitational field: A particle bouncing on a parabolic and right angle mirror, arXiv:2007.04730 [physics.optics], (2020)
- [5] D. A. B. Miller, Quantum Mechanics for Scientists and Engineers, Cambridge: Cambridge University Press, (2007).
- [6] R. W. Robinett, Visualizing the solutions for the circular infinite well in quantum and classical mechanics, American Journal of Physics 64, 440 (1996)
- [7] R. W. Robinett, Quantum and classical probability distributions for position and momentum, American Journal of Physics 63, 823 (1995)
- [8] U. A. Rozikov, An Introduction to Mathematical Billiards, World Scientific Publishing, (2019)
- [9] J. J. Sakurai, Mordern Quantum Mechanics, Addison-Wesley Publishing Company, (1994)
- [10] S. Tabachnikov, Geometry and Billiards, American Mathematical Society, (2005)
- [11] O. Vallée & M. Soares ,Airy Functions and Applications to Physics, World Scientific Publishing, 2nd Edition, (2010)