<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE article  PUBLIC "-//NLM//DTD Journal Publishing DTD v3.0 20080202//EN" "http://dtd.nlm.nih.gov/publishing/3.0/journalpublishing3.dtd"><article xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:xlink="http://www.w3.org/1999/xlink" dtd-version="3.0" xml:lang="en" article-type="research article"><front><journal-meta><journal-id journal-id-type="publisher-id">AM</journal-id><journal-title-group><journal-title>Applied Mathematics</journal-title></journal-title-group><issn pub-type="epub">2152-7385</issn><publisher><publisher-name>Scientific Research Publishing</publisher-name></publisher></journal-meta><article-meta><article-id pub-id-type="doi">10.4236/am.2022.139044</article-id><article-id pub-id-type="publisher-id">AM-119635</article-id><article-categories><subj-group subj-group-type="heading"><subject>Articles</subject></subj-group><subj-group subj-group-type="Discipline-v2"><subject>Physics&amp;Mathematics</subject></subj-group></article-categories><title-group><article-title>
 
 
  Collisions, or Reflections and Rotations, Leading to the Digits of π
 
</article-title></title-group><contrib-group><contrib contrib-type="author" xlink:type="simple"><name name-style="western"><surname>Fran&amp;#231;ois</surname><given-names>Dubeau</given-names></name><xref ref-type="aff" rid="aff1"><sub>1</sub></xref><xref ref-type="corresp" rid="cor1"><sup>*</sup></xref></contrib></contrib-group><aff id="aff1"><label>1</label><addr-line>Département de Mathématiques, Université de Sherbrooke, Sherbrooke (QC), Canada</addr-line></aff><pub-date pub-type="epub"><day>01</day><month>09</month><year>2022</year></pub-date><volume>13</volume><issue>09</issue><fpage>705</fpage><lpage>732</lpage><history><date date-type="received"><day>1,</day>	<month>June</month>	<year>2022</year></date><date date-type="rev-recd"><day>30,</day>	<month>August</month>	<year>2022</year>	</date><date date-type="accepted"><day>2,</day>	<month>September</month>	<year>2022</year></date></history><permissions><copyright-statement>&#169; Copyright  2014 by authors and Scientific Research Publishing Inc. </copyright-statement><copyright-year>2014</copyright-year><license><license-p>This work is licensed under the Creative Commons Attribution International License (CC BY). http://creativecommons.org/licenses/by/4.0/</license-p></license></permissions><abstract><p>
 
 
  We analyze a problem of elastic collisions between elements of a system composed of two balls and a wall. Thanks to a change of variables, the problem is reduced to a sequence of reflections and rotations. Moreover, the total number of collisions is easily found. For specific ratios of ball weights, the number of collisions is related to the first successive digits of π.
 
</p></abstract><kwd-group><kwd>Dynamical System</kwd><kwd> Elastic Collisions</kwd><kwd> Reflection</kwd><kwd> Rotation</kwd><kwd> Digits of π</kwd></kwd-group></article-meta></front><body><sec id="s1"><title>1. Introduction</title><p>The computation of the digits of πhas interested several scientists in history [<xref ref-type="bibr" rid="scirp.119635-ref1">1</xref>]. There are several methods for computing them [<xref ref-type="bibr" rid="scirp.119635-ref2">2</xref>]. Some methods are fast and efficient in computing millions of digits in a short time, and others are ineffective but are remarkably creative. One of these latter methods was introduced by Galperin in 2003 [<xref ref-type="bibr" rid="scirp.119635-ref3">3</xref>]. The author proposes the computation of the first digits of πby counting the number of collisions of a system consisting of two balls and a wall under a condition on the ratio of the masses of the two balls. Since then, several articles have been published on the subject [<xref ref-type="bibr" rid="scirp.119635-ref4">4</xref>] [<xref ref-type="bibr" rid="scirp.119635-ref5">5</xref>] [<xref ref-type="bibr" rid="scirp.119635-ref6">6</xref>].</p><p>In this article, we present a simple and in-depth analysis of the problem of elastic collisions between two balls and a wall which include Galperin’s analysis. Our analysis is based on a new and original decomposition of the velocity for given values of kinetic energy and momentum. Thanks to a useful transformation, the basic geometry of the problem is reduced to reflections and rotations on a circle. It follows that a sequence of collisions becomes a sequence of reflections. Then, for the two possible sequences of collisions, it is easy to determine the end of the process and the total number of collisions. We revisit Galperin’s geometric method which is extended to find the time and the position of each collision. Finally, for particular ratios of the masses of the two balls, it is possible to link the number of collisions to the first successive digits of π.</p></sec><sec id="s2"><title>2. Ideal Physical System</title><p>The system consists of two balls of point masses respectively M and m ( M ≥ m ), noted ball<sub>M</sub> and ball<sub>m</sub>, in position X and x placed to the right of the wall (positive coordinates), with X &gt; x &gt; 0 . Ball<sub>m</sub> is between ball<sub>M</sub> and the wall, see <xref ref-type="fig" rid="fig1">Figure 1</xref>. Let V and v be the speeds of the ball<sub>M</sub> and ball<sub>m</sub>.</p><p>Two quantities are important for this system: the momentum</p><p>Q = M V + m v ,</p><p>and the kinetic energy</p><p>E c = E 2 = 1 2 ( M V 2 + m v 2 ) .</p><p>We introduce average velocities as follows</p><p>V &#175; = M V + m v M + m = Q M + m ,</p><p>and</p><p>V 2 &#175; = M V 2 + m v 2 M + m = E M + m .</p><p>Let the matrix G be defined by</p><p>G = ( M 0 0 m ) .</p><p>we can write the momentum of the two balls as</p><p>Q = ( V v ) G ( 1 1 ) = ( V , v ) • G ( 1,1 ) ,</p><p>and velocities ( V , v ) having the same momentum are on a straight line with direction ( − m , M ) . Also the kinetic energy E c of the two balls is</p><p>E = ( V , v ) • G ( V , v ) = ‖ ( V , v ) ‖ G 2 ,</p><p>and velocities ( V , v ) having the same kinetic energy are on an ellipse. Finally, using the Cauchy-Bunyakovski-Schwarz inequality, we get</p><p>| Q | = | ( V , v ) • G ( 1,1 ) | ≤ ‖ ( V , v ) ‖ G ‖ ( 1,1 ) ‖ G = E ( M + m ) ,</p><p>which is equivalent to</p><p>V &#175; 2 ≤ V 2 &#175; .</p><p>In the sequel, if G is the identity matrix I, G will be omitted and we will have the standard expressions</p><p>( Z 1 , z 1 ) • ( Z 2 , z 2 ) = Z 1 Z 2 + z 1 z 2 ,   and   ‖ ( Z , z ) ‖ = Z 2 + z 2 ,</p><p>for ( Z 1 , z 1 ) , ( Z 2 , z 2 ) , and ( Z , z ) ∈ ℝ 2 .</p><p>For our problem, all collisions will be assumed to be elastic. Collisions between a ball and the wall produce sign changes of the velocity of the ball, so the momentum of the system changes while keeping constant its kinetic energy. On the other hand, for collisions between the two balls both momentum and kinetic energy remain constant. By following the dynamics of the two balls, we will look at the total number of collisions, counting collisions between the two balls and collisions between a ball and the wall. We will see that under certain conditions, the number of collisions corresponds to the first digits of π.</p></sec><sec id="s3"><title>3. Direct Analysis: The Natural Coordinate System</title><p>In this section we analyze the system with respect to its natural coordinate systems, XOx for the position and VOv for the velocity.</p><sec id="s3_1"><title>3.1. Observations</title><p>In the XOx coordinate system, see <xref ref-type="fig" rid="fig2">Figure 2</xref>, the ball<sub>m</sub>-wall collisions determine points on the line x = 0 , the horizontal OX axis, while ball<sub>M</sub>-ball<sub>m</sub> collisions are points on the line X = x . The direction of this line is ( 1,1 ) and makes a π/4 angle with the OX axis. At any time, positions ( X , x ) are in the set</p><p>{ ( X , x ) ∈ ℝ 2 | X ≥ x ≥ 0 } .</p><p>Given ( X , x ) and ( V , v ) , we can easily find the next collision point on x = 0 or on X = x if there is a collision. Since the velocity is piecewise constant, it changes only at collisions, the trajectory is not only continuous but also piecewise linear. The next result follows from <xref ref-type="fig" rid="fig2">Figure 2</xref>.</p><p>Theorem 1. Let the position ( X , x ) ∈ { ( X , x ) ∈ ℝ 2 | X &gt; x &gt; 0   } , and let the velocity be given by</p><p>( V , v ) = ‖ ( V , v ) ‖ ( cos ( ϕ ) , sin ( ϕ ) )</p><p>with ‖ ( V , v ) ‖ = V 2 + v 2 and ϕ ∈ [ 0,2 π ) . Hence for</p><p>(a) ϕ ∈ [ 0, π / 4 ] , there will be no collision;</p><p>(b) ϕ ∈ ( π / 4 , π ] , there will be a ball<sub>M</sub>-ball<sub>m</sub> collision;</p><p>(c) ϕ ∈ ( π , π + π / 4 ) there will be either a ball<sub>M</sub>-ball<sub>m</sub> or a ball<sub>m</sub>-wall collision;</p><p>(d) ϕ ∈ [ π + π / 4 ,2 π ) there will be a ball<sub>m</sub>-wall collision.</p></sec><sec id="s3_2"><title>3.2. Ball-Ball System</title><p>The velocity ( V , v ) of constant kinetic energy and constant momentum lends itself well to a decomposition foreseen in [<xref ref-type="bibr" rid="scirp.119635-ref7">7</xref>]. The possible velocities in this case are given by the intersection points of an ellipse (kinetic energy) and a line (momentum). There are no more than two intersection points. This decomposition will be helpful to explain the transformation of the velocity during a collision.</p><sec id="s3_2_1"><title>3.2.1. Decomposition of the Velocity</title><p>In the next theorems, we will break down the velocity ( V , v ) using an orthogonal basis.</p><p>Theorem 2. The set { ( 1,1 ) , ( − m , M ) } is an orthogonal basis with respect to the positive defined quadratic form used to define the ellipse of constant kinetic energy.</p><p>Proof. Indeed we have</p><p>( 1,1 ) • G ( − m , M ) = 0.</p><p>Moreover</p><p>‖ ( 1,1 ) ‖ G 2 = ( 1,1 ) • G ( 1,1 ) = M + m ,</p><p>and</p><p>‖ ( − m , M ) ‖ G 2 = ( − m , M ) • G ( − m , M ) = M m ( M + m ) . □</p><p>The decomposition now follows.</p><p>Theorem 3. The velocity ( V , v ) can be decomposed as</p><p>( V v ) = R ( 1 1 ) + S ( − m M ) = ( 1 − m 1 M ) ( R S ) ,</p><p>where</p><p>R = ( 1,1 ) • G ( V , v ) ( 1,1 ) • G ( 1,1 ) = M V + m v M + m = Q M + m = V &#175; ,</p><p>and</p><p>S = ( − m , M ) • G ( V , v ) ( − m , M ) • G ( − m , M ) = v − V M + m .</p><p>Corollary 1. We have</p><p>V − v = − 1 M m ( − m , M ) • G ( V , v ) ,</p><p>so</p><p>V { &gt; = &lt; } v   ifandonlyif   ( − m , M ) • G ( V , v ) { &lt; = &gt; } 0.</p></sec><sec id="s3_2_2"><title>3.2.2. Compatibility Condition</title><p>A compatibility condition on E and Q is given in the next theorem.</p><p>Theorem 4. The kinetic energy and the momentum of the ball<sub>M</sub>-ball<sub>m</sub> system are related by the relation</p><p>E ( M + m ) = Q 2 + M m ( v − V ) 2 ,</p><p>so</p><p>(i) | Q | is upper bounded, and | Q | ≤ Q max = E ( M + m ) ;</p><p>(ii) E is lower bounded, and E ≥ E min = Q 2 M + m .</p><p>Proof. Using the decomposition of Theorem 3, to be on the ellipse ( V , v ) must satisfy</p><p>E = ( V , v ) • G ( V , v ) = ( M V + m v ) 2 M + m + M m ( v − V ) 2 M + m ,</p><p>so the result follows.</p><p>Corollary 2. The velocities are related by the relation</p><p>V 2 &#175; = V &#175; 2 + M m ( M + m ) 2 ( v − V ) 2 .</p><p>For given compatible E and Q, possible values of the velocity are given in the next theorem.</p><p>Theorem 5. Under the compatibility condition</p><p>| Q | ≤ E ( M + m )   or   V &#175; 2 ≤ V 2 &#175; ,</p><p>if</p><p>(j) | Q | &lt; E ( M + m ) , we have two possible velocities</p><p>( V v ) = Q M + m ( 1 1 ) &#177; 1 M + m ( E ( M + m ) − Q 2 M m ) 1 / 2 ( − m M ) = V &#175; ( 1 1 ) &#177; ( V 2 &#175; − V &#175; 2 M m ) 1 / 2 ( − m M ) ,</p><p>(jj) | Q | = E ( M + m ) , we have only one possible velocity</p><p>( V v ) = Q M + m ( 1 1 ) = V &#175; ( 1 1 ) .</p><p>We can also obtain a decomposition of the kinetic energy and the velocity of the system.</p><p>Theorem 6. The kinetic energy and the velocity of the system are decomposable as follows</p><p>E = ( M + m ) V &#175; 2 + M ( V − V &#175; ) 2 + m ( v − V &#175; ) 2 ,</p><p>and</p><p>V 2 &#175; = V &#175; 2 + M M + m ( V − V &#175; ) 2 + m M + m ( v − V &#175; ) 2 .</p></sec><sec id="s3_2_3"><title>3.2.3. Elastic Collision</title><p>In elastic collisions, momentum and kinetic energy remain constant. The velocity ( V , v ) is therefore one of the two points on the ellipse described in the preceding section.</p><p>Theorem 7. Let ( V − , v − ) be the velocity before the collision such that V − &lt; v − to eventually have a collision between the two balls (regardless the position of the wall). Let ( V + , v + ) be the velocity after the collision, then</p><p>( V + v + ) = T ( V − v − )   where   T = ( M − m M + m 2 m M + m 2 M M + m − M − m M + m ) ,</p><p>and</p><p>( R + S + ) = ( 1 0 0 − 1 ) ( R − S − ) .</p><p>Also V + &gt; v + , so the two balls move away from each other.</p><p>Proof. From Theorem 5, ( V + , v + ) is the second point on the ellipse obtained by changing the sign of the coefficient S, so we have</p><p>Using Theorem 3, we have</p><p>( V + v + ) = ( 1 − m 1 M ) ( 1 0 0 − 1 ) ( 1 − m 1 M ) − 1 ( V − v − ) = T ( V − v − ) .</p><p>Moreover</p><p>( V + v + ) = ( V − v − ) − 2 S − ( − m M )</p><p>so</p><p>( − m , M ) • G ( V + , v + ) = − ( − m , M ) • G ( V − , v − ) .</p><p>It follows that</p><p>V + − v + = − ( V − − v − ) &gt; 0 ,</p><p>so V + &gt; v + . □</p><p>Corollary 3. T 2 = I .</p><p>Corollary 4. The eigenvalues of T are 1 and −1 and their corresponding eigenvectors are ( 1,1 ) and ( − m , M ) .</p><p>On <xref ref-type="fig" rid="fig3">Figure 3</xref>, with the ellipse centered on the line X = x , the velocity moves from a point P − = ( V − , v − ) on the ellipse above the line X = x , or V = v , to a point P + = ( V + , v + ) on the ellipse below the line X = x , or V = v , along the direction opposite to ( − m , M ) .</p><p>In the VOv coordinate system, incident angle, the angle between ( V − , v − ) and the line of direction ( 1,1 ) , and the reflection angle, the angle between the</p><p>line of direction ( 1,1 ) and ( V + , v + ) , are not equal except for m = M . Looking at <xref ref-type="fig" rid="fig3">Figure 3</xref> (where Q &lt; 0 ), we show that the incident angle ∠ P O P − is greater than the reflection angle ∠ P O P + . Indeed, the two rectangular triangles Δ P Q O P − and Δ P Q O P + allow us to obtain ∠ O P − P Q &gt; ∠ O P + P Q because the side P Q P − is shorter than the side P Q P + . Since P P − and P P + are of equal length, and the side OP is common to both triangles Δ P O P − and Δ P O P + , we get the result from the sine law. A similar analysis can be done for Q &gt; 0 , and it is obvious for Q = 0 .</p></sec></sec><sec id="s3_3"><title>3.3. Ball-Wall System</title><p>The ball<sub>m</sub>-wall collisions are easier to analyze.</p><p>Theorem 8. Let ( V − , v − ) be the velocity before the collision of ball<sub>m</sub> with the wall and ( V + , v + ) be the velocity after the collision. Let v − &lt; 0 to have a collision with the wall, so we have</p><p>( V + v + ) = ( 1 0 0 − 1 ) ( V − v − ) ,</p><p>and</p><p>( R + S + ) = T ˜ ( R − S − )     where     T ˜ = ( M − m M + m − 2 M m M + m − 2 M + m − M − m M + m ) .</p><p>Moreover the momentum increases at each collision with the wall, and we have</p><p>Q + = Q − − 2 m v − &gt; Q − .</p><p>Proof. When the ball<sub>m</sub> hits the wall, it bounces with opposite velocity of the same magnitude, i.e. v + = − v − . Since the ball<sub>M</sub> doesn’t hit the wall, so V + = V − , so we get first result. For the coefficients R and S, using Theorem 3, we have</p><p>( R + S + ) = ( 1 − m 1 M ) − 1 ( 1 0 0 − 1 ) ( 1 − m 1 M ) ( R − S − ) = T ˜ ( R − S − ) .</p><p>For the momentum we have</p><p>Q + = M V + + m v + = M V − − m v − = M V − + m v − − 2 m v − = Q − − 2 m v − ,</p><p>and since v − &lt; 0 for a collision, the momentum increases at each collision of the ball<sub>m</sub> with the wall.</p><p>Corollary 5. T ˜ 2 = I .</p><p>For the ellipse centered on the OX axis, see <xref ref-type="fig" rid="fig3">Figure 3</xref>, the velocity moves upward from P − to P + . Let us observe that for this kind of collisions, incident and reflection angles of the velocity with respect to the OX axis are equal.</p></sec><sec id="s3_4"><title>3.4. Stopping Criterion and Trajectory on the Ellipse</title><p>Looking at <xref ref-type="fig" rid="fig2">Figure 2</xref>, we get conditions under which there will be no more collisions.</p><p>Theorem 9. Suppose that the velocity ( V , v ) in polar form is</p><p>( V , v ) = ‖ ( V , v ) ‖ ( cos ( ϕ ) , sin ( ϕ ) ) ,</p><p>with ϕ ∈ [ 0,2 π ) . There will be no new collisions, if ( V , v )</p><p>(i) is the initial condition and ϕ ∈ [ 0, π / 4 ] ;</p><p>(ii) is the velocity after a ball<sub>m</sub>-wall collision (after moving up vertically) and ϕ ∈ ( 0, π / 4 ] ;</p><p>(iii) is the velocity after a ball<sub>M</sub>-ball<sub>m</sub> collision (after moving down right) and ϕ ∈ [ 0, π / 4 ) .</p><p>These conditions say that the two balls are going away from the wall with velocity 0 &lt; v ≤ V .</p><p>On <xref ref-type="fig" rid="fig4">Figure 4</xref>, the trajectory of the velocity ( V , v ) on the ellipse is given for the two possible ends of the process after at least one collision. We see that it moves successively to P 1 , to P 2 , to P 3 , to P 4 , and finally to ( V , v ) the final point.</p></sec></sec><sec id="s4"><title>4. A Useful Transformation</title><p>The standard parametrization of the ellipse suggests a way to transform the graph of the kinetic energy from its elliptic form to a circular form. The transform is defined by</p><p>( Y y ) = ( M X m x )   and   ( W w ) = ( M V m v ) .</p><p>We will agree to call ( Y , y ) the position and ( W , w ) the velocity.</p><p>The direction ( M , m ) will play a special role in the sequel. Let us note α the angle of this direction with a horizontal axis (OY or OW), so we have</p><p>{ cos ( α ) = M M + m , sin ( α ) = m M + m .</p><p>Introducing the matrix Σ defined by</p><p>Σ = ( M 0 0 m ) = M + m ( cos ( α ) 0 0 sin ( α ) ) ,</p><p>we can rewrite the transformation as</p><p>( Y y ) = Σ ( X x )   and   ( W w ) = Σ ( V v ) .</p><p>Consequences of this change of variables are</p><p>1) to move the line X = x of the ball<sub>M</sub>-ball<sub>m</sub> collisions to</p><p>( − sin ( α ) , cos ( α ) ) • ( Y , y ) = 0,</p><p>a line with direction ( cos ( α ) , sin ( α ) ) ;</p><p>2) to leave fixed the line x = 0 , the OX axis, for ball<sub>m</sub>-wall collisions which becomes y = 0 , the OY axis.</p><p>The expression for the kinetic energy becomes</p><p>E = W 2 + w 2 = ( W , w ) • ( W , w ) ,</p><p>which is such that this quadratic form coincides now with the standard inner product in ℝ 2 , the matrix G is now the identity matrix I. The momentum is now</p><p>Q = M W + m w = M + m ( cos ( α ) , sin ( α ) ) • ( W , w ) ,</p><p>and the lines of constant momentum are of direction ( − sin ( α ) , cos ( α ) ) . They share the same normal vector ( cos ( α ) , sin ( α ) ) which coincides with the direction of the line of ball<sub>M</sub>-ball<sub>m</sub> collisions. As a consequence we will have the reflection property for ( W , w ) not only for the ball<sub>m</sub>-wall collisions but also for the ball<sub>M</sub>-ball<sub>m</sub> collisions.</p><p>Let us observe that</p><p>V − v = − 1 M m ( − m , M ) • G ( V , v ) = − M + m M m ( − sin ( α ) , cos ( α ) ) • ( W , w ) ,</p><p>so</p><p>a) if V &gt; v the balls move away of each other and no ball<sub>M</sub>-ball<sub>m</sub> collision will occur, this is equivalent to ( − sin ( α ) , cos ( α ) ) • ( W , w ) &lt; 0 ;</p><p>b) if V &lt; v there will be eventually a ball<sub>M</sub>-ball<sub>m</sub> collision, this is equivalent to ( − sin ( α ) , cos ( α ) ) • ( W , w ) &gt; 0 .</p></sec><sec id="s5"><title>5. On Reflections and Rotations</title><p>Some useful results about rotations and reflections are now given. Let us consider any angle δ . For the rotation matrix rot ( β ) of an angle β , we have</p><p>rot ( β ) ( cos ( δ ) sin ( δ ) ) = ( cos ( β ) − sin ( β ) sin ( β ) cos ( β ) ) ( cos ( δ ) sin ( δ ) ) = ( cos ( δ + β ) sin ( δ + β ) ) .</p><p>For the reflection matrix ref ( γ ) which represents a reflection with respect to a line which makes an angle γ with the OY axis, we have</p><p>ref ( γ ) = ( cos ( 2 γ ) sin ( 2 γ ) sin ( 2 γ ) − cos ( 2 γ ) )</p><p>and</p><p>ref ( γ ) ( cos ( γ + δ ) sin ( γ + δ ) ) = ( cos ( γ − δ ) sin ( γ − δ ) ) .</p><p>To complete this subsection let us present some identities whose proofs are simple and omitted.</p><p>Lemma 10. For any angle β</p><p>ref ( β ) = { rot ( β ) ref ( 0 ) rot ( − β ) , rot ( 2 β ) ref ( 0 ) , ref ( 0 ) rot ( − 2 β ) .</p><p>Lemma 11. For any two angles β and γ , we have</p><p>a) rot ( β ) rot ( γ ) = rot ( β + γ ) ;</p><p>b) rot ( β ) ref ( γ ) = rot ( 2 γ + β ) ref ( 0 ) ;</p><p>c) ref ( γ ) rot ( β ) = rot ( 2 γ − β ) ref ( 0 ) ;</p><p>d) ref ( β ) ref ( γ ) = rot ( 2 ( β − γ ) ) .</p></sec><sec id="s6"><title>6. Indirect Analysis: The Transformed Coordinate System</title><p>In this section we analyze the system with respect to the transformed coordinate systems, YOy for the position and WOw for the velocity.</p><sec id="s6_1"><title>6.1. Observations</title><p>The observations made in Theorem 1 in Section 2 can be transposed directly to the YOy coordinate system of <xref ref-type="fig" rid="fig5">Figure 5</xref>. Ball<sub>m</sub>-wall collisions are points on the line y = 0 while ball<sub>M</sub>-ball<sub>m</sub> collisions are points on the line ( − sin ( α ) , cos ( α ) ) • ( Y , y ) = 0 . At any time the position ( Y , y ) is in the set</p><p>{ ( Y , y ) ∈ ℝ 2 | y ≥ 0   and   ( − sin ( α ) , cos ( α ) ) • ( Y , y ) ≤ 0 } .</p><p>Theorem 12. Let the position</p><p>( Y , y ) ∈ { ( Y , y ) ∈ ℝ 2 | y &gt; 0   and   ( − sin ( α ) , cos ( α ) ) • ( Y , y ) &lt; 0 } ,</p><p>and let the velocity be given by</p><p>( W , w ) = ‖ ( W , w ) ‖ ( cos ( ϕ ) , sin ( ϕ ) )</p><p>where ‖ ( W , w ) ‖ = W 2 + w 2 and ϕ ∈ [ 0,2 π ) . Hence for</p><p>(a) ϕ ∈ [ 0, α ] there will be no collision;</p><p>(b) ϕ ∈ ( α , π ] there will be a ball<sub>M</sub>-ball<sub>m</sub> collision;</p><p>(c) ϕ ∈ ( − π , − π + α ) there will be either a ball<sub>M</sub>-ball<sub>m</sub> or a ball<sub>m</sub>-wall collision;</p><p>(d) ϕ ∈ [ − π + α ,0 ) there will be a ball<sub>m</sub>-wall collision.</p></sec><sec id="s6_2"><title>6.2. Ball-Ball System</title><p>The velocity ( W , w ) can also be decomposed, and the possible velocities are given by the intersection points of a circle (kinetic energy) and a line (momentum). There are no more than two intersection points.</p><sec id="s6_2_1"><title>6.2.1. Decomposition of the Velocity</title><p>Let us express the velocity in terms of the new variables and an appropriate orthonormal basis.</p><p>Theorem 13. The expression of the velocity ( W , w ) with respect to the orthonormal basis { ( cos ( α ) , sin ( α ) ) , ( − sin ( α ) , cos ( α ) ) } is</p><p>( W w ) = r ( cos ( α ) sin ( α ) ) + s ( − sin ( α ) cos ( α ) ) = rot ( α ) ( r s ) ,</p><p>where</p><p>r = ( cos ( α ) , sin ( α ) ) • ( W , w ) = Q M + m ,</p><p>and</p><p>s = ( − sin ( α ) , cos ( α ) ) • ( W , w ) = − m W + M w M + m = M m M + m ( v − V ) .</p><p>Moreover</p><p>E = W 2 + w 2 = r 2 + s 2 .</p></sec><sec id="s6_2_2"><title>6.2.2. Compatibility Condition</title><p>The condition remains the same, but we can rewrite the expressions for the velocity.</p><p>Theorem 14. Under the condition</p><p>| Q | ≤ E ( M + m ) ,</p><p>(i) if | Q | &lt; E ( M + m ) , there are two possible velocities</p><p>( W w ) = Q M + m ( cos ( α ) sin ( α ) ) &#177; ( E ( M + m ) − Q 2 M + m ) 1 / 2 ( − sin ( α ) cos ( α ) ) ;</p><p>(ii) if | Q | = E ( M + m ) , there is only one possible velocity</p><p>( W w ) = Q M + m ( cos ( α ) sin ( α ) ) .</p></sec><sec id="s6_2_3"><title>6.2.3. Elastic Collision</title><p>In elastic collisions, momentum and kinetic energy remain constant. The velocity ( W , w ) is therefore one of the two points on the circle as described above.</p><p>Theorem 15. Let ( W − , w − ) be the velocity before the collision. Suppose</p><p>( − sin ( α ) , cos ( α ) ) • ( W − , w − ) &gt; 0</p><p>to eventually have a collision between the two balls (regardless the position of the wall). Let ( W + , w + ) be the velocity after the collision. The velocities are related by the relation</p><p>( W + w + ) = ref ( α ) ( W − w − ) ,</p><p>and the coefficients by the relation</p><p>( r + s + ) = ref ( 0 ) ( r − s − ) .</p><p>Moreover</p><p>( − sin ( α ) , cos ( α ) ) • ( W + , w + ) &lt; 0,</p><p>so the two balls move away from each other.</p><p>Proof. From Theorem 14 we have directly the relation for the coefficients r and s. From Theorem 13 we get</p><p>( W + w + ) = rot ( α ) ref ( 0 ) rot ( − α ) ( W − w − ) = ref ( α ) ( W − w − ) .</p><p>Moreover, since</p><p>( W + w + ) = ( W − w − ) − 2 s − ( − sin ( α ) cos ( α ) ) ,</p><p>it follows that</p><p>( − sin ( α ) , cos ( α ) ) • ( W + , w + ) = ( − sin ( α ) , cos ( α ) ) • ( W − , w − ) − 2 s − = − ( − sin ( α ) , cos ( α ) ) • ( W − , w − ) &lt; 0.</p><p>We can now observe the reflection from the circle centered on the line of equation ( − sin ( α ) , cos ( α ) ) • ( Y , y ) = 0 of <xref ref-type="fig" rid="fig6">Figure 6</xref>.</p><p>Remark. We have the following decomposition for the matrix of the linear system of Theorem 7</p><p>T = ( M − m M + m 2 m M + m 2 M M + m − M − m M + m ) = Σ − 1 ( M − m M + m 2 M m M + m 2 M m M + m − M − m M + m ) Σ = Σ − 1   ref ( α ) Σ .</p><p>Since the eigenvectors of ref ( α ) are ( cos ( α ) , sin ( α ) ) and ( − sin ( α ) , cos ( α ) ) associated to their corresponding eigenvalues 1 and −1, we obtain directly the eigenvectors and eigenvalues of T of Corollary 4.</p></sec></sec><sec id="s6_3"><title>6.3. Ball-Wall System</title><p>In the new coordinate system, for a ball<sub>m</sub>-wall collision we have w + = − w − and W + = W − .</p><p>Theorem 16. Let ( W − , w − ) be the velocity before the collision with the wall with w − &lt; 0 . Then</p><p>( W + w + ) = ref ( 0 ) ( W − w − ) ,</p><p>and</p><p>( r + s + ) = ref ( − α ) ( r − s − ) .</p><p>The momentum increases at each collision with the wall, and we have</p><p>Q + = Q − − 2 M + m sin ( α ) w − &gt; Q − .</p><p>Proof. The first relation is obvious. For the coefficients r and s, using Theorem 13, we get</p><p>( r + s + ) = rot ( − α ) ref ( 0 ) rot ( α ) ( r − s − ) = ref ( − α ) ( r − s − ) .</p><p>For the momentum</p><p>Q + = M W + + m w + = M W − − m w − = Q − − 2 m w − ,</p><p>with w − &lt; 0 . □</p><p>We also note that incidence and reflection angles are equal. See the circle centered on the line y = 0 of <xref ref-type="fig" rid="fig6">Figure 6</xref>.</p></sec><sec id="s6_4"><title>6.4. Stopping Criterion and Trajectory on the Circle</title><p>Looking at <xref ref-type="fig" rid="fig5">Figure 5</xref>, we get directly result which gives conditions to have no more collision.</p><p>Theorem 17. Suppose the velocity ( W , w ) in polar form is</p><p>( W , w ) = ‖ ( W , w ) ‖ ( cos ( ϕ ) , sin ( ϕ ) )</p><p>where ϕ ∈ [ 0,2 π ) . There will be no new collision if ( W , w )</p><p>(i) is the initial velocity and ϕ ∈ [ 0, α ] ;</p><p>(ii) is the velocity after a ball<sub>m</sub>-wall collision (moving up vertically) and ϕ ∈ ( 0, α ] ;</p><p>(iii) is the velocity after a ball<sub>M</sub>-ball<sub>m</sub> (moving down right) and ϕ ∈ [ 0, α ) .</p><p>These conditions say that the two balls are going away from the wall with velocity 0 &lt; v ≤ V .</p><p>On <xref ref-type="fig" rid="fig7">Figure 7</xref>, the trajectory of the velocity ( W , w ) on the circle is given for the two possible ends of the process after at least one collision. We see that it moves successively to P 1 , to P 2 , to P 3 , to P 4 , and finally to ( W , w ) the final point.</p></sec></sec><sec id="s7"><title>7. Sequence of Collisions</title><p>Two sequences of collisions are analyzed here depending on the first collision. These sequences of collisions correspond to two alternating sequences of the two</p><p>reflections: ref ( α ) (collision ball<sub>M</sub>-ball<sub>m</sub>) and ref ( 0 ) (collision ball<sub>m</sub>-wall). In this section we will use the notation ( W k , w k ) for the velocity after the k-th collision.</p><sec id="s7_1"><title>7.1. Ball-Ball Collision First</title><p>For the sequence of collisions starting with a ball<sub>M</sub>-ball<sub>m</sub> collision followed by a ball<sub>m</sub>-wall collision, we must have W / M = V &lt; v = w / m , or ( − sin ( α ) , cos ( α ) ) • ( W , w ) &gt; 0 , to eventually have a ball<sub>M</sub>-ball<sub>m</sub> collision, without considering the wall.</p><p>Theorem 18. A sequence of two collisions, a ball<sub>M</sub>-ball<sub>m</sub> collision followed by a ball<sub>m</sub>-wall collision, is a rotation of angle − 2 α .</p><p>Proof. For the first ball<sub>M</sub>-ball<sub>m</sub> collision, we get from Lemma 10</p><p>( W 1 w 1 ) = ref ( α ) ( W w ) = ref ( 0 ) rot ( − 2 α ) ( W w ) ,</p><p>and for the second ball<sub>m</sub>-wall collision, using part (d) of Lemma 11, we have</p><p>( W 2 w 2 ) = ref ( 0 ) ( W 1 w 1 ) = ref ( 0 ) ref ( 0 ) rot ( − 2 α ) ( W w ) = rot ( − 2 α ) ( W w ) .</p><p>So the result follows. □</p><p>Thereafter there is alternation of collisions: ball<sub>M</sub>-ball<sub>m</sub>, ball<sub>m</sub>-wall, etc. Let us set</p><p>( W w ) = E 1 / 2 ( cos ( ϕ ) sin ( ϕ ) ) ,</p><p>where ϕ ∈ ( α , π + α ) .</p><p>Theorem 19. The velocity after</p><p>(A) 2n collisions (with a last ball<sub>m</sub>-wall collision) is</p><p>( W 2 n w 2 n ) = E 1 / 2 ( cos ( ϕ − 2 n α ) sin ( ϕ − 2 n α ) ) ;</p><p>(B) 2n+ 1 collisions (with a last ball<sub>M</sub>-ball<sub>m</sub> collision) is</p><p>( W 2 n + 1 w 2 n + 1 ) = E 1 / 2 ( cos ( 2 ( n + 1 ) α − ϕ ) sin ( 2 ( n + 1 ) α − ϕ ) ) .</p><p>Proof. The process ends after 2n or 2n+ 1 collisions.</p><p>(A) For 2n collisions, we use part (a) of Lemma 11 to get</p><p>( W 2 n w 2 n ) = rot ( − 2 α ) ⋯ rot ( − 2 α ) ︸ n -times ( W w ) = rot ( − 2 n α ) ( W w ) .</p><p>(B) For 2n+ 1 collisions, one more ball<sub>M</sub>-ball<sub>m</sub> collision is needed, so</p><p>( W 2 n + 1 w 2 n + 1 ) = ref ( α ) ( W 2 n w 2 n ) .</p><p>Then from part (c) of Lemma 11, we get</p><p>( W 2 n + 1 w 2 n + 1 ) = ref ( α ) rot ( − 2 n α ) ( W w ) = rot ( 2 ( n + 1 ) α ) ref ( 0 ) ( W w ) . □</p><p>Starting with a ball<sub>M</sub>-ball<sub>m</sub> collision, considering the preceding expressions for the velocity, and applying the stopping criterion, we conclude that the process will end after</p><p>(i) 2n collisions if the last collision is a ball<sub>m</sub>-wall collision, so ( W 2 n , w 2 n ) , of angle ϕ − 2 n α , is on the circular arc of angle in ( 0, α ] ;</p><p>(ii) 2n+ 1 collisions if the last collision is a ball<sub>M</sub>-ball<sub>m</sub> collision, so ( W 2 n + 1 , w 2 n + 1 ) , of angle 2 ( n + 1 ) α − ϕ , is on the circular arc of angle in [ 0, α ) .</p><p>In both cases, if K is the number of collisions we obtain</p><p>ϕ α − 1 ≤ K &lt; ϕ α ,</p><p>or</p><p>K = { ϕ α − 1       if   ϕ α   isaninteger , ⌊ ϕ α ⌋         if   ϕ α   isnotaninteger .</p><p>For example, taking ( V , v ) = ( − 1,0 ) , so ( W , w ) = ( − M ,0 ) , E = M , ϕ = π , and it follows that</p><p>π α − 1 ≤ K &lt; π α .</p></sec><sec id="s7_2"><title>7.2. Ball-Wall Collision First</title><p>For the sequence of collisions starting with a ball<sub>m</sub>-wall collision followed by a ball<sub>M</sub>-ball<sub>m</sub> collision, we must have ( V , v ) with v &lt; 0 , say ( W , w ) and w &lt; 0 to eventually have a first ball<sub>m</sub>-wall collision, without considering the ball<sub>M</sub>.</p><p>Theorem 20. A sequence of two collisions, a ball<sub>m</sub>-wall collision followed by a ball<sub>M</sub>-ball<sub>m</sub> collision, is a rotation of angle 2 α .</p><p>Proof. For the first collision, ball<sub>m</sub>-wall, we have</p><p>( W 1 w 1 ) = ref ( 0 ) ( W w )</p><p>and for the second collision, a ball<sub>M</sub>-ball<sub>m</sub> collision, using part (d) of Lemma 11, we get</p><p>( W 2 w 2 ) = ref ( α ) ( W 1 w 1 ) = ref ( α ) ref ( 0 ) ( W w ) = rot ( 2 α ) ( W w ) .</p><p>So the result follows. □</p><p>Thereafter there is alternation of collisions: ball<sub>m</sub>-wall, ball<sub>M</sub>-ball<sub>m</sub>, etc. Let us set</p><p>( W w ) = E 1 / 2 ( cos ( ϕ ) sin ( ϕ ) ) ,</p><p>where ϕ ∈ ( − π ,0 ) .</p><p>Theorem 21. The velocity after</p><p>(A) 2n collisions (with a last ball<sub>M</sub>-ball<sub>m</sub> collision) is</p><p>( W 2 n w 2 n ) = E 1 / 2 ( cos ( ϕ + 2 n α ) sin ( ϕ + 2 n α ) ) .</p><p>(B) 2n + 1 collisions (with a last ball<sub>m</sub>-wall collision) is</p><p>( W 2 n + 1 w 2 n + 1 ) = E 1 / 2 ( cos ( − 2 n α − ϕ ) sin ( − 2 n α − ϕ ) ) .</p><p>Proof. The process ends after 2n or 2n + 1 collisions.</p><p>(A) For 2n collisions, we use part (a) of Lemma 11 to get</p><p>( W 2 n w 2 n ) = rot ( 2 α ) ⋯ rot ( 2 α ) ︸ n -times ( W w ) = rot ( 2 n α ) ( W w ) .</p><p>(B) For 2n + 1 collisions, one more ball<sub>m</sub>-wall collision is needed, so</p><p>( W 2 n + 1 w 2 n + 1 ) = ref ( 0 ) ( W 2 n w 2 n ) .</p><p>Then from part (c) of Lemma 11, we get</p><p>( W 2 n + 1 w 2 n + 1 ) = ref ( 0 ) rot ( 2 n α ) ( W w ) = rot ( − 2 n α ) ref ( 0 ) ( W w ) .</p><p>Starting with a ball<sub>m</sub>-wall collision, considering the preceding expressions for the velocity, and applying the stopping criterion, we conclude that the process will end after</p><p>(i) 2n + 1 collisions if the last collision is a ball<sub>m</sub>-wall collision, so ( W 2 n + 1 , w 2 n + 1 ) , of angle − 2 n α − ϕ , is on the circular arc of angle in ( 0, α ] ;</p><p>(ii) 2n collisions if the last collision is a ball<sub>M</sub>-ball<sub>m</sub> collision, so ( W 2 n , w 2 n ) , of angle 2 n α + ϕ , is on the circular arc of angle in [ 0, α ) .</p><p>In both case, if K is the number of collisions, we have</p><p>− ϕ α ≤ K &lt; − ϕ α + 1 ,</p><p>or</p><p>K = { − ϕ α                       if   − ϕ α   isaninteger , ⌊ − ϕ α ⌋ + 1         if   − ϕ α   isnotaninteger .</p><p>For example, taking ( V , v ) = ( − 1 , − 1 ) , so ( W , w ) = ( − M , − m ) , E = M + m , ϕ = − π + α , and it follows that</p><p>π α − 1 ≤ K &lt; π α .</p></sec><sec id="s7_3"><title>7.3. The Result</title><p>From the preceding analysis we obtain the following results.</p><p>Theorem 22. The maximal number K max of collisions (reflections) of the trajectory ( X ( ⋅ ) , x ( ⋅ ) ) obtained from ( X , x ) in the region D = { ( X , x ) | 0 &lt; x &lt; X } in the initial direction ( V , v ) is finite and</p><p>K max = { π α                       if   π α   isaninteger , ⌊ π α ⌋ + 1         if   π α   isnotaninteger .</p><p>The next result describes the special situation for which the initial velocity is parallel to one of the collision lines.</p><p>Theorem 23. If the initial trajectory is parallel to one of the collision lines, that is to say</p><p>{ Firstcase : ( V , v ) = ( − 1,0 )   so   ( W , w ) = ( − M ,0 ) , or Secondcase : ( V , v ) = ( − 1, − 1 )   so   ( W , w ) = ( − M , − m ) ,</p><p>then the number of collisions K is</p><p>K = { π α − 1         if   π α   isaninteger , ⌊ π α ⌋           if   π α   isnotaninteger .</p></sec></sec><sec id="s8"><title>8. Back to Galperin’s Geometric Method: Position and Time of Collisions</title><p>Based on the transformation described in Section 4, and the resulting reflection properties, Galperin proposed a simple geometric method to find the number of collisions [<xref ref-type="bibr" rid="scirp.119635-ref3">3</xref>]. It happens that his geometric method can also be used to easily find position and time of collisions, and this observation extends the presentation done in [<xref ref-type="bibr" rid="scirp.119635-ref4">4</xref>] and [<xref ref-type="bibr" rid="scirp.119635-ref5">5</xref>].</p><sec id="s8_1"><title>8.1. Galperin’s Method: Number of Collisions</title><p>We consider the plane YOy, and in the two situations, unfold using the symmetry with respect to the lines</p><p>{ ( − sin ( α ) , cos ( α ) ) • ( Y , y ) = 0 , y = 0,</p><p>sequentially following the collisions on the lines. Hence, since the incident and reflection angles are equal, the trajectory ( Y ( ⋅ ) , y ( ⋅ ) ) of the balls is now a line</p><p>( Y ( λ ) , y ( λ ) ) = ( Y 0 , y 0 ) + λ ( W 0 , w 0 ) .</p><p>This unfolding of the collision line creates centered rays with a spacing of angle α . Then the number of collisions K is the number of times the trajectory crosses the rays, see <xref ref-type="fig" rid="fig8">Figure 8</xref>. This is the way Galperin gets the results in Theorem 22 and Theorem 23 [<xref ref-type="bibr" rid="scirp.119635-ref3">3</xref>]. We can now use this geometric representation to compute time and position of all collisions.</p></sec><sec id="s8_2"><title>8.2. Time and Position: Ball-Ball Collision First (<xref ref-type="fig" rid="fig9">Figure 9</xref>)</title><p>In systems YOy and WOw, let us consider given</p><p>(i) a position ( Y , y ) = ‖ ( Y , y ) ‖ ( cos ( ψ ) , sin ( ψ ) ) where ψ ∈ ( 0, α ) , and</p><p>(ii) a velocity ( W , w ) = ‖ ( W , w ) ‖ ( cos ( ϕ ) , sin ( ϕ ) ) with ϕ ∈ ( α , π + ψ ) ,</p><p>such that we have a first ball<sub>M</sub>-ball<sub>m</sub> collision on the line of direction ( cos ( α ) , sin ( α ) ) .</p><p>Let us rotate the system of an angle θ in such a way that</p><p>( W ^ , w ^ ) = rot ( θ ) ( W , w ) = ‖ ( W , w ) ‖ ( cos ( ϕ + θ ) , sin ( ϕ + θ ) ) = ‖ ( W , w ) ‖ ( − 1,0 ) ,</p><p>so ϕ + θ = π , and θ = π − ϕ ∈ ( − ψ , π − α ) . Then the position becomes</p><p>( Y ^ , y ^ ) = rot ( θ ) ( Y , y ) = ‖ ( Y , y ) ‖ ( cos ( ψ + θ ) , sin ( ψ + θ ) ) ,</p><p>and ψ + θ ∈ ( 0, π − ( α − ψ ) ) ⊂ ( 0, π ) . The line of the ball<sub>M</sub>-ball<sub>m</sub> collisions of direction ( cos ( α ) , sin ( α ) ) is now of direction ( cos ( α + θ ) , sin ( α + θ ) ) . The other rays are of direction ( cos ( n α + θ ) , sin ( n α + θ ) ) for n = 1,2,3, ⋯ , K , where the number of collisions K is such that</p><p>{ K α + θ &lt; π     or     K α &lt; ϕ , ( K + 1 ) α + θ ≥ π     or     ( K + 1 ) α ≥ ϕ ,</p><p>so</p><p>ϕ α − 1 ≤ K &lt; ϕ α ,</p><p>as observed in Section 7. We also observe that</p><p>0 &lt; ψ + θ &lt; α + θ ≤ n α + θ ≤ K α + θ &lt; π ,</p><p>for any n = 1 , ⋯ , K .</p><p>The position of the n-th collision point is</p><p>( Y ^ n , y ^ n ) = y ^ ( cot ( n α + θ ) ,1 ) = ‖ ( Y , y ) ‖ sin ( ψ + θ ) sin ( n α + θ ) ( cos ( n α + θ ) , sin ( n α + θ ) ) .</p><p>The corresponding position in the unfolded plane is</p><p>( Y n , y n ) = rot ( θ n ) rot ( − θ ) ( Y ^ n , y ^ n )</p><p>where</p><p>θ n = { − ( n − 1 ) α if n isodd ; − n α if n iseven .</p><p>So we obtain for n = 1 , ⋯ , K</p><p>( Y n , y n ) = ‖ ( Y , y ) ‖ sin ( ψ + θ ) sin ( n α + θ ) { ( cos ( α ) , sin ( α ) ) if n isodd ; ( 1,0 ) if n iseven .</p><p>and</p><p>( X n , x n ) = ‖ ( Y , y ) ‖ sin ( ψ + θ ) sin ( n α + θ ) { 1 M + m ( 1,1 ) if n isodd ; 1 M ( 1,0 ) if n iseven .</p><p>Moreover the time of the n-th collision is</p><p>t 0, n = Y ^ − Y ^ n ‖ ( W , w ) ‖ = ‖ ( Y , y ) ‖ ‖ ( W , w ) ‖ [ cos ( ψ + θ ) − sin ( ψ + θ ) cot ( n α + θ ) ] = ‖ ( Y , y ) ‖ ‖ ( W , w ) ‖ sin ( n α − ψ ) sin ( n α + θ ) ,</p><p>where n α − ψ = ( n α + θ ) − ( ψ + θ ) ∈ ( 0, π ) . The time between the n<sub>1</sub>-th and n<sub>2</sub>-th collisions, 1 ≤ n 1 &lt; n 2 ≤ K , is</p><p>t n 1 , n 2 = t 0 , n 2 − t 0 , n 1 = ‖ ( Y , y ) ‖ ‖ ( W , w ) ‖ [ sin ( n 2 α − ψ ) sin ( n 2 α + θ ) − sin ( n 1 α − ψ ) sin ( n 1 α + θ ) ] = ‖ ( Y , y ) ‖ ‖ ( W , w ) ‖ sin ( ψ + θ ) sin ( ( n 2 − n 1 ) α ) sin ( n 1 α + θ ) sin ( n 2 α + θ ) .</p></sec><sec id="s8_3"><title>8.3. Time and Position: Ball-Wall Collision First (<xref ref-type="fig" rid="fig1">Figure 1</xref>0)</title><p>In systems YOy and WOw, let us consider given</p><p>(i) a position ( Y , y ) = ‖ ( Y , y ) ‖ ( cos ( ψ ) , sin ( ψ ) ) where ψ ∈ ( 0, α ) , and</p><p>(ii) a velocity ( W , w ) = ‖ ( W , w ) ‖ ( cos ( ϕ ) , sin ( ϕ ) ) with ϕ ∈ ( − π + ψ ,0 ) ,</p><p>such that we have a first ball<sub>m</sub>-wall collision on the OY axis. The first step is to rotate the system of an angle θ in such a way that</p><p>( W ^ , w ^ ) = rot ( θ ) ( W , w ) = ‖ ( W , w ) ‖ ( cos ( ϕ + θ ) , sin ( ϕ + θ ) ) = ‖ ( W , w ) ‖ ( − 1,0 )</p><p>so ϕ + θ = − π , and θ = − ( π + ϕ ) ∈ ( − π , − ψ ) . The position becomes</p><p>( Y ^ , y ^ ) = rot ( θ ) ( Y , y ) = ‖ ( Y , y ) ‖ ( cos ( ψ + θ ) , sin ( ψ + θ ) ) ,</p><p>and ψ + θ ∈ ( − π + ψ ,0 ) ⊂ ( − π ,0 ) . The line of the ball<sub>m</sub>-wall collisions of direction ( 1,0 ) = ( cos ( 0 ) , sin ( 0 ) ) (in fact of the first collision) is now of direction ( cos ( θ ) , sin ( θ ) ) . The direction of the ray of the n-th collision is ( cos ( − ( n − 1 ) α + θ ) , sin ( − ( n − 1 ) α + θ ) ) for n = 1 , 2 , 3 , ⋯ , K , where K is such that</p><p>{ − ( K − 1 ) α + θ &gt; − π     or     ( K − 1 ) α &lt; − ϕ , − K α + θ ≤ − π     or     K α ≥ − ϕ ,</p><p>so</p><p>− ϕ α ≤ K &lt; − ϕ α + 1 ,</p><p>as observed in Section 7. We also observe that</p><p>− π &lt; − ( K − 1 ) α + θ ≤ − ( n − 1 ) α + θ ≤ θ &lt; 0 ,</p><p>for any n = 1 , 2 , ⋯ , K .</p><p>The position of the n-th collision point is</p><p>( Y ^ n , y ^ n ) = y ^ ( cot ( − ( n − 1 ) α + θ ) ,1 ) = ‖ ( Y , y ) ‖ sin ( ψ + θ ) sin ( − ( n − 1 ) α + θ ) ( cos ( − ( n − 1 ) α + θ ) , sin ( − ( n − 1 ) α + θ ) ) ,</p><p>for n = 1 , ⋯ , K . The corresponding position in the unfolded plane is</p><p>( Y n , y n ) = rot ( θ n ) rot ( − θ ) ( Y ^ n , y ^ n )</p><p>where</p><p>θ n = { ( n − 1 ) α if n isodd ; n α if n iseven .</p><p>So we obtain</p><p>( Y n , y n ) = ‖ ( Y , y ) ‖ sin ( ψ + θ ) sin ( − ( n − 1 ) α + θ ) { ( 1,0 ) if n isodd ; ( cos ( α ) , sin ( α ) ) if n iseven .</p><p>and</p><p>( X n , x n ) = ‖ ( Y , y ) ‖ sin ( ψ + θ ) sin ( − ( n − 1 ) α + θ ) { 1 M ( 1,0 ) if n isodd ; 1 M + m ( 1,1 ) if n iseven .</p><p>Moreover the time of the n-th collision is</p><p>t 0 , n = Y ^ − Y ^ n ‖ ( W , w ) ‖ = ‖ ( Y , y ) ‖ ‖ ( W , w ) ‖ [ cos ( ψ + θ ) − sin ( ψ + θ ) cot ( − ( n − 1 ) α + θ ) ] = ‖ ( Y , y ) ‖ ‖ ( W , w ) ‖ sin ( − ( n − 1 ) α − ψ ) sin ( − ( n − 1 ) α + θ ) = ‖ ( Y , y ) ‖ ‖ ( W , w ) ‖ sin ( ( n − 1 ) α + ψ ) sin ( ( n − 1 ) α − θ ) ,</p><p>where − ( n − 1 ) α − ψ = ( − ( n − 1 ) α + θ ) − ( ψ + θ ) ∈ ( − π , 0 ) or ( n − 1 ) α + ψ = ( ( n − 1 ) α − θ ) + ( ψ + θ ) ∈ ( 0 , π ) . The time between the n<sub>1</sub>-th and n<sub>2</sub>-th collisions, 1 ≤ n 1 &lt; n 2 ≤ K , is</p><p>t n 1 , n 2 = t 0 , n 2 − t 0 , n 1 = ‖ ( Y , y ) ‖ ‖ ( W , w ) ‖ [ sin ( ( n 2 − 1 ) α + ψ ) sin ( ( n 2 − 1 ) α − θ ) − sin ( ( n 1 − 1 ) α + ψ ) sin ( ( n 1 − 1 ) α − θ ) ] = ‖ ( Y , y ) ‖ ‖ ( W , w ) ‖ sin ( ψ + θ ) sin ( ( n 1 − n 2 ) α ) sin ( ( n 1 − 1 ) α − θ ) sin ( ( n 2 − 1 ) α − θ ) = ‖ ( Y , y ) ‖ ‖ ( W , w ) ‖ sin ( π − ( ψ + θ ) ) sin ( ( n 2 − n 1 ) α ) sin ( ( n 1 − 1 ) α − θ ) sin ( ( n 2 − 1 ) α − θ ) .</p></sec></sec><sec id="s9"><title>9. Digits of π</title><sec id="s9_1"><title>9.1. Observations</title><p>Theorem 23 suggests a way to compute the digits of π, in fact in any integer base b ≥ 2 of a number system. For example taking M = m , α = arctan ( 1 ) = π / 4 , or α = arcsin ( 1 / 2 ) = π / 4 , and K = 3 is the value of the first figures of π. Since the integer part of π ⋅ b N , noted ⌊ π ⋅ b N ⌋ b in base b, add the first N digits of the fractional part of π in base b, for an angle α ≈ b − N we will be near the goal.</p><p>To get α ≈ b − N , we can consider the following two cases:</p><p>(A) tan ( α ) = b − N , so α = arctan ( b − N ) ≈ b − N , which means m / M = b − N and M = b 2 N m ;</p><p>(B) sin ( α ) = b − N , so α = arcsin ( b − N ) ≈ b − N , which means m / ( M + m ) = b − N and M = ( b 2 N − 1 ) m . It remains to verify that, if K b is the number of collisions, the following conjecture is true.</p><p>Conjecture. For (A) M = b 2 N m (i.e. α = arctan ( b − N ) ), or (B) M = ( b 2 N − 1 ) m (i.e. α = arcsin ( b − N ) ), if the trajectory ( Y , y ) is parallel to the straight line of collisions, the total number K b of collisions which is given by its representation in base b by</p><p>K b = { [ π α ] b − 1 if   π α   isaninteger , ⌊ π α ⌋ b if   π α   isnotaninteger ,</p><p>consistsof the digits of the integer part of π and the first N digits of the fractional part of π in base b, so K b = ⌊ π ⋅ b N ⌋ b .</p><p>In the sequel we will use the following representations in base b</p><p>{ π b = 3 b . a 1 a 2 ⋯ a N a N + 1 ⋯ a 2 N − 1 a 2 N a 2 N + 1 ⋯ [ π 3 ] b = 1. ⋯</p><p>and</p><p>{ [ π ⋅ b N ] b = 3 b a 1 a 2 ⋯ a N . a N + 1 ⋯ a 2 N − 1 a 2 N a 2 N + 1 a 2 N + 2 ⋯ [ π 3 ⋅ b − N ] b = 0. 0 ⋯ 0 ︸ ( N − 1 ) -times 1 ⋯</p></sec><sec id="s9_2"><title>9.2. Case (A)</title><p>The Taylor expansion of arctan ( x ) is</p><p>arctan ( x ) = ∑ i = 0 n ( − 1 ) i x 2 i + 1 2 i + 1 + ( − 1 ) n + 1 B n ( x )</p><p>for | x | &lt; 1 . Also 0 &lt; B n ( x ) ≤ x 2 n + 3 2 n + 3 for x &gt; 0 . So we obtain</p><p>1 x &lt; 1 arctan ( x ) &lt; 1 x + x 3</p><p>for 0 &lt; x &lt; 2 / 3 . Multiplying by π and take x = b − N , then</p><p>π ⋅ b N &lt; π arctan ( b − N ) &lt; π ⋅ b N + π 3 ⋅ b − N .</p><p>We first observe that π ⋅ b N is not an integer, so</p><p>⌊ π ⋅ b N ⌋ b &lt; [ π ⋅ b N ] b &lt; [ π arctan ( b − N ) ] b .</p><p>Using the representation in base b, since</p><p>[ π ⋅ b N ] b + [ π 3 ⋅ b − N ] b = [ π ⋅ b N + π 3 ⋅ b − N ] b ,</p><p>under the condition that there exists n ∈ [ N + 1,2 N − 1 ] such that 0 ≤ a n &lt; b − 1 , we get</p><p>[ π arctan ( b − N ) ] b &lt; [ π ⋅ b N + π 3 ⋅ b − N ] b &lt; ⌊ π ⋅ b N ⌋ b + 1.</p><p>Hence</p><p>⌊ π ⋅ b N ⌋ b &lt; [ π arctan ( b − N ) ] b &lt; ⌊ π ⋅ b N ⌋ b + 1 ,</p><p>consequently, [ π arctan ( b − N ) ] b is not an integer and</p><p>⌊ π ⋅ b N ⌋ b = ⌊ π arctan ( b − N ) ⌋ b .</p></sec><sec id="s9_3"><title>9.3. Case (B)</title><p>The Taylor expansion of arcsin ( x ) is</p><p>arcsin ( x ) = ∑ i = 0 n ( 2 i ) ! 4 i ( i ! ) 2 x 2 i + 1 2 i + 1 + B n ( x )</p><p>for | x | &lt; 1 . Also 0 &lt; B n ( x ) ≤ x 2 n + 3 2 n + 3 for x &gt; 0 . We obtain</p><p>1 x − x 3 &lt; 1 arcsin ( x ) &lt; 1 x ,</p><p>for 0 &lt; x &lt; 1 / 2 . Multiplying by π and take x = b − N , we have</p><p>π ⋅ b N − π 3 ⋅ b − N &lt; π arcsin ( b − N ) &lt; π ⋅ b N .</p><p>Since π ⋅ b N is not an integer</p><p>[ π arcsin ( b − N ) ] b &lt; [ π ⋅ b N ] b &lt; ⌈ π ⋅ b N ⌉ b = ⌊ π ⋅ b N ⌋ b + 1.</p><p>Using the representation in base b, since</p><p>[ π ⋅ b N ] b − [ π 3 ⋅ b − N ] b = [ π ⋅ b N − π 3 ⋅ b − N ] b ,</p><p>under the condition that there exists n ∈ [ N + 1,2 N − 1 ] such that 0 &lt; a n ≤ b − 1 , we get</p><p>⌊ π ⋅ b N ⌋ b &lt; [ π ⋅ b N − π 3 ⋅ b − N ] b &lt; [ π arcsin ( b − N ) ] b .</p><p>So</p><p>⌊ π ⋅ b N ⌋ b &lt; [ π arcsin ( b − N ) ] b &lt; ⌊ π ⋅ b N ⌋ b + 1 ,</p><p>consequently [ π arcsin ( b − N ) ] b is not an integer and</p><p>⌊ π ⋅ b N ⌋ b = ⌊ π arcsin ( b − N ) ⌋ b .</p></sec><sec id="s9_4"><title>9.4. Consequences</title><p>There are some consequences of the preceding results. For</p><p>Case (A): if a N + 1 &lt; b − 1 , then</p><p>⌊ π ⋅ b N − k ⌋ b = ⌊ π ⋅ b N − k + π 3 ⋅ b − ( N − k ) ⌋ b ,</p><p>Case (B): if a N + 1 &gt; 0 , then</p><p>⌊ π ⋅ b N − k − π 3 ⋅ b − ( N − k ) ⌋ b = ⌊ π ⋅ b N − k ⌋ b ,</p><p>both for k = 0 , ⋯ , ⌊ N − 2 2 ⌋ = ⌊ N 2 ⌋ − 1 . So the result holds for the powers of b from N + 1 − ⌊ N 2 ⌋ up to N.</p><p>This last observation suggests a Cauchy induction like method [<xref ref-type="bibr" rid="scirp.119635-ref8">8</xref>]. With an algorithm which can find a digit of π at a precise position N without calculating all digits in positions less than N, see for example [<xref ref-type="bibr" rid="scirp.119635-ref9">9</xref>] [<xref ref-type="bibr" rid="scirp.119635-ref10">10</xref>] [<xref ref-type="bibr" rid="scirp.119635-ref11">11</xref>], we could deduce the result for a number of lower positions. We proceed in the following way. Suppose the property true for n = 1 , ⋯ , N . Then look for the smallest l ∈ { 0,1, ⋯ , N } such that in case (A) a 2 N − l + 1 &lt; b − 1 or in case (B) a 2 N − l + 1 &gt; 0 , then the result holds for n = 1 , ⋯ , 2 N − l .</p></sec><sec id="s9_5"><title>9.5. Conjecture Almost Proved</title><p>Up to now, with modern computational facilities, and up to very large values of N, it has not been observed sequences such that</p><p>Case (A) a n = b − 1 for n ∈ [ N + 1,2 N − 1 ] ,</p><p>Case (B) a n = 0 for n ∈ [ N + 1,2 N − 1 ] ,</p><p>in the expansion of π. So the claim is verified for up to very large values of N.</p></sec><sec id="s9_6"><title>9.6. Final Remark</title><p>There exists in fact infinitely many angles α for which we get the result K b = ⌊ π ⋅ b N ⌋ b . Indeed, if we use α λ with</p><p>tan 2 ( α λ ) = m M λ = b − 2 N 1 − λ b − 2 N</p><p>for λ ∈ [ 0,1 ] , we also get the result. In fact we use the masses m and M λ where</p><p>M λ = ( 1 − λ ) M A + λ M B = ( b 2 N − λ ) m ,</p><p>where M 0 = M A = b 2 N m and M 1 = M B = ( b 2 N − 1 ) m are the masses for case (A) and case (B). Also α A = α 0 ≤ α λ ≤ α 1 = α B , and</p><p>π α B ≤ π α λ ≤ π α A .</p><p>Since the result holds for π α A and π α B , it also holds for π α λ for any λ ∈ [ 0,1 ] .</p></sec></sec><sec id="s10"><title>Acknowledgements</title><p>This work has been financially supported by an individual discovery grant from the Natural Sciences and Engineering Research Council of Canada.</p></sec><sec id="s11"><title>Conflicts of Interest</title><p>Author declares no competing interests.</p></sec><sec id="s12"><title>Cite this paper</title><p>Dubeau, F. (2022) Collisions, or Reflections and Rotations, Leading to the Digits of π. Applied Mathematics, 13, 705-732. https://doi.org/10.4236/am.2022.139044</p></sec></body><back><ref-list><title>References</title><ref id="scirp.119635-ref1"><label>1</label><mixed-citation publication-type="other" xlink:type="simple">https://en.wikipedia.org/wiki/Chronology_of_computation_of_pi</mixed-citation></ref><ref id="scirp.119635-ref2"><label>2</label><mixed-citation publication-type="other" xlink:type="simple">Goyanes, J.G. (2007) History of the Formulas and Algorithms for π. La Gaceta de la Real Sociedad Matemática Espa&amp;#241;ola, 10, 159-178. https://doi.org/10.1090/conm/517/10140</mixed-citation></ref><ref id="scirp.119635-ref3"><label>3</label><mixed-citation publication-type="other" xlink:type="simple">Galperin, G. (2003) Playing Pool with π (the Number π from the Billiard Point of View). Regular and Chaotic Dynamics, 8, 375-394. https://doi.org/10.1070/RD2003v008n04ABEH000252</mixed-citation></ref><ref id="scirp.119635-ref4"><label>4</label><mixed-citation publication-type="other" xlink:type="simple">Wiedman, P.D. (2013) On the Digits of π. The Mathematical Intelligencer, 35, 43-50. https://doi.org/10.1007/s00283-013-9393-5</mixed-citation></ref><ref id="scirp.119635-ref5"><label>5</label><mixed-citation publication-type="other" xlink:type="simple">Davis, A.M.J. (2015) On the Digits of π. The Mathematical Intelligencer, 37, 1-3. https://doi.org/10.1007/s00283-014-9502-0</mixed-citation></ref><ref id="scirp.119635-ref6"><label>6</label><mixed-citation publication-type="other" xlink:type="simple">Aretxabaleta, X.M., Gonchenko, M., Harshman, N.L., Jackson, S.G., Olshanii, M. and Astrakharchik, G.E. (2020) The Dynamics of Digits: Calculating π with Galperin’s Billiards. Σ Mathematics, 8, 32 p. https://doi.org/10.3390/math8040509</mixed-citation></ref><ref id="scirp.119635-ref7"><label>7</label><mixed-citation publication-type="other" xlink:type="simple">Kocik, J. (1999) The Geometry of Elastic Collision and Heron’s Law. American Journal of Physics, 67, 516-519. https://doi.org/10.1119/1.19315</mixed-citation></ref><ref id="scirp.119635-ref8"><label>8</label><mixed-citation publication-type="other" xlink:type="simple">Dubeau, F. (1991) Cauchy and Mathematical Induction, International Journal of Mathematical Education in Science and Technology, 22, 965-969. https://doi.org/10.1080/0020739910220614</mixed-citation></ref><ref id="scirp.119635-ref9"><label>9</label><mixed-citation publication-type="other" xlink:type="simple">Bailey, D.H. and Borwein, P.B. and Plouffe, S. (1997) On the Rapid Computation of Various Polylogarithmic Constants. Mathematics of Computation, 66, 903-913. https://doi.org/10.1090/S0025-5718-97-00856-9</mixed-citation></ref><ref id="scirp.119635-ref10"><label>10</label><mixed-citation publication-type="other" xlink:type="simple">https://www.dcode.fr/decimales-pi</mixed-citation></ref><ref id="scirp.119635-ref11"><label>11</label><mixed-citation publication-type="other" xlink:type="simple">https://pi2e.ch/blog/2016/10/31/hexadecimal-digits-of-pi/</mixed-citation></ref></ref-list></back></article>