Bouncing ray inside a square

analytic geometryeuclidean-geometrygeometry

Suppose I have a square with sides $a$, $b$, $c$, $d$. Now I shoot a ray from the vertex of the square formed by the sides, let's say $a$ and $b$ at angle $50^{\circ}$ from $a$. If I let the ray bounce off the sides of the square continuously, how many times would the ray intersect itself through exactly the same point in the square? Could you generalise this result to any angle $\alpha$?

Best Answer

Look at this figure, think about the symmetry of reflections at each wall:

enter image description here

You will get termination whenever $\theta = \tan^{-1} a/b$ where $(a,b) \in \mathbb{Z}$ and the number of reflections is $a+b$.

Conversely, you will never get termination if the $\theta = \tan^{-1} c$ where $c \notin \mathbb{Q}$, and thus the ray will intersect itself an infinite number of times.

Related Question