doc/aux_results.tex

changeset 59
743984f4664e
equal deleted inserted replaced
58:2a86c4c98622 59:743984f4664e
1 \pdfoutput=1
2 \documentclass[a4paper,english]{jnsao}
3 \usepackage[utf8]{inputenc}
4 \usepackage{enumerate}
5 \usepackage[shortlabels]{enumitem}
6 %\usepackage{lineno}\linenumbers
7 \usepackage{comment}
8 \usepackage[nameinlink,capitalize]{cleveref}
9 \usepackage{blkarray}
10 \usepackage{booktabs}
11 \usepackage{float}
12 \usepackage[rightcaption]{sidecap}
13 \sidecaptionvpos{figure}{m}
14
15 %\usepackage{changes-simple}
16
17 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
18 % Symbols
19 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
20 \input{symbols}
21 \input{symbols-texonly}
22 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
23 % Todos
24 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
25 \setlength{\marginparwidth}{2cm}
26 \usepackage[textsize=footnotesize,colorinlistoftodos]{todonotes}
27 \newcommand{\hktodo}[2][]{\todo[color=DarkGreen!40,#1]{#2}}
28 \newcommand{\tvtodo}[2][]{\todo[color=DarkRed!40,#1]{#2}}
29
30 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
31 % Set up cleveref for nicer referencing
32 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
33 \usepackage[nameinlink,capitalize]{cleveref}
34
35 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
36 % New theorem-like environments
37 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
38 \theoremstyle{definition}
39 \newtheorem{assumption}[theorem]{Assumption}
40 \newtheorem{algorithm}[theorem]{Algorithm}
41
42 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
43 % TikZ
44 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
45 % \usetikzlibrary{external}
46 \usetikzlibrary{decorations.pathmorphing}
47 \usepackage{wrapfig}
48 \usepackage{tikz-3dplot}
49 % \tikzexternalize[prefix=build/]
50 % \tikzexternaldisable
51
52 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
53 % Manuscript information.
54 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
55
56 % Manuscript title.
57 \title{Geodesics on a cube and a capped cylinder}
58
59 % Manuscript date.
60 % Use ISO-8601 standard yyyy-mm-dd date format.
61 %\date{\ISOToday}
62
63 % Authorship.
64 % Give affiliations and contact information using \thanks.
65 % \shortauthor is a plain surname-only version for running heads.
66 \author{Heikki von Koch}
67
68 \shortauthor{von Koch}
69
70 % Acknowledgements: funding, etc.
71 % \acknowledgements{}
72
73 % Licensing information
74 \manuscriptcopyright{}
75 \manuscriptlicense{}
76
77 % Fill this information once accepted for publication and the information
78 % is provided by the editors
79 %\manuscriptsubmitted{2018-12-14}
80 %\manuscriptaccepted{2018-12-14}
81 %\manuscriptvolume{1}
82 %\manuscriptnumber{0}
83 %\manuscriptyear{2018}
84 %\manuscriptdoi{not_assigned}
85 %\manuscriptstatus{}
86
87 %% You can also set the following information to include the eprint
88 %% information in the header
89 %\manuscripteprinttype{arXiv}
90 %\manuscripteprint{1901.00001}
91 %\manuscripteprinttype{HAL}
92 %\manuscripteprint{hal--01969102}
93
94
95 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
96 \begin{document}
97 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
98
99 \maketitle
100
101 \section{Geodesics on a cube}
102
103 \tdplotsetmaincoords{50}{25}
104 \begin{tikzpicture}
105 [tdplot_main_coords,
106 cube/.style={very thick,black},
107 grid/.style={very thin,gray},
108 axis/.style={->,blue,thick}]
109
110 %grid
111 \foreach \x in {-1.5,-1,...,1.5}
112 \foreach \y in {-1.5,-1,...,1.5}
113 {
114 \draw[grid] (\x,-1.5) -- (\x,1.5);
115 \draw[grid] (-1.5,\y) -- (1.5,\y);
116 }
117
118 %axes
119 \draw[axis] (-1,-1,0) -- (2,-1,0) node[anchor=west]{$x$};
120 \draw[axis] (-1,-1,0) -- (-1,2,0) node[anchor=west]{$y$};
121 \draw[axis] (-1,-1,0) -- (-1,-1,3) node[anchor=west]{$z$};
122
123 %top and bottom
124 \draw[cube] (-1,-1,0) -- (-1,1,0) -- (1,1,0) -- (1,-1,0) -- cycle;
125 \draw[cube] (-1,-1,2) -- (-1,1,2) -- (1,1,2) -- (1,-1,2) -- cycle;
126
127 %edges
128 \draw[cube] (-1,-1,0) -- (-1,-1,2);
129 \draw[cube] (-1,1,0) -- (-1,1,2);
130 \draw[cube] (1,1,0) -- (1,1,2);
131 \draw[cube] (1,-1,0) -- (1,-1,2);
132
133 %points
134 \filldraw[black] (-1,-1) circle (2pt) node[anchor=east]{$O$};
135 \filldraw[black] (1,1) circle (2pt) node[anchor=west]{$(1,1,0)$};
136 \filldraw[black] (1,1,2) circle (2pt) node[anchor=west]{$(1,1,1)$};
137 \filldraw[black] (-1,1,2) circle (2pt) node[anchor=south]{$(0,1,1)$};
138 \filldraw[black] (-1,-1,2) circle (2pt) node[anchor=east]{$(0,0,1)$};
139
140 \end{tikzpicture} \hspace{1em}
141 \tdplotsetmaincoords{60}{20}
142 \begin{tikzpicture}
143 [tdplot_main_coords,
144 cube/.style={very thick,black},
145 axis/.style={->,blue,thick}]
146
147 %axes
148 \draw[axis] (-1,-1,0) -- (-1,-1,1) node[anchor=east]{$y_4$};
149 \draw[axis] (-1,-1,0) -- (0.1,-1,0) node[anchor=north]{$x_4$};
150 \draw[axis] (-1,1,0) -- (-1,0.1,0) node[anchor=west]{$x_3$};
151 \draw[axis] (-1,1,0) -- (-1,1,1) node[anchor=west]{$y_3$};
152 \draw[axis] (1,1,0) -- (1,1,1) node[anchor=west]{$y_5$};
153 \draw[axis] (1,1,0) -- (0,1,0) node[anchor=south]{$x_5$};
154 \draw[axis] (1,-1,0) -- (1,-1,1) node[anchor=west]{$y_2$};
155 \draw[axis] (1,-1,0) -- (1,0,0) node[anchor=west]{$x_2$};
156
157 %top and bottom
158 \draw[cube] (-1,-1,0) -- (-1,1,0) -- (1,1,0) -- (1,-1,0) -- cycle;
159 \draw[cube] (-1,-1,2) -- (-1,1,2) -- (1,1,2) -- (1,-1,2) -- cycle;
160
161 %edges
162 \draw[cube] (-1,-1,0) -- (-1,-1,2);
163 \draw[cube] (-1,1,0) -- (-1,1,2);
164 \draw[cube] (1,1,0) -- (1,1,2);
165 \draw[cube] (1,-1,0) -- (1,-1,2);
166
167 %label faces
168 \draw(1,0,1) node{$2$};
169 \draw(0,-1,1) node{$4$};
170 \draw(0,0,2) node{$6$};
171 \draw[gray!100](0,0,0) node{$1$};
172 \draw[gray!100](-1,0,1) node{$3$};
173 \draw[gray!100](0,1,1) node{$5$};
174
175 \end{tikzpicture} \hspace{2em}
176 \tdplotsetmaincoords{60}{20}
177 \begin{tikzpicture}
178 [tdplot_main_coords,
179 cube/.style={very thick,black},
180 axis/.style={->,blue,thick}]
181
182 %axes
183 \draw[axis] (-1,-1,0) -- (0.1,-1,0) node[anchor=north]{$x_1$};
184 \draw[axis] (-1,-1,0) -- (-1,0.1,0) node[anchor=west]{$y_1$};
185 \draw[axis] (-1,-1,2) -- (0.1,-1,2) node[anchor=north]{$x_6$};
186 \draw[axis] (-1,-1,2) -- (-1,0.1,2) node[anchor=east]{$y_6$};
187
188 %top and bottom
189 \draw[cube] (-1,-1,0) -- (-1,1,0) -- (1,1,0) -- (1,-1,0) -- cycle;
190 \draw[cube] (-1,-1,2) -- (-1,1,2) -- (1,1,2) -- (1,-1,2) -- cycle;
191
192 %edges
193 \draw[cube] (-1,-1,0) -- (-1,-1,2);
194 \draw[cube] (-1,1,0) -- (-1,1,2);
195 \draw[cube] (1,1,0) -- (1,1,2);
196 \draw[cube] (1,-1,0) -- (1,-1,2);
197
198 %label faces
199 \draw(1,0,1) node{$2$};
200 \draw(0,-1,1) node{$4$};
201 \draw(0,0,2) node{$6$};
202 \draw[gray!100](0,0,0) node{$1$};
203 \draw[gray!100](-1,0,1) node{$3$};
204 \draw[gray!100](0,1,1) node{$5$};
205
206 \end{tikzpicture}
207
208 We start our examples with a cube (surface) of side length $1$ with the origin of $\R^3$ and labelling of its faces as indicated by the pictures. For the standard $\R^3$-coordinates, we always use the triple $(\cdot,\cdot,\cdot)$. In addition, each face $F$ has their own fixed local two-dimensional coordinate system denoted by $(x_F,y_F)_F$, where $F \in \{1,2,3,4,5,6\}$ and $x_F,y_F \in [0,1]$ (we shall often just use the shorthand notation $(x,y)_F$). Their orientations are shown above.
209
210 As an example, we have that $(0,0)_1 = (1,0)_3 =(0,0)_4$ and $(1,0)_6 = (0,1)_2 =(1,1)_4$ and, in fact, we always have $(x,y)_1 = (x,y,0)$ and $(x,y)_6 = (x,y,1)$ (permanently fixing the vertices).
211
212 \subsection{Anatomy of geodesics on a cube}
213
214 All geodesics on the cube are straight lines when the cube is unfolded in any manner but not all straight lines in the unfolding are geodesics as, for example, some go through a vertex and some appear to go through a face onto the same face. The important fact is that the globally shortest straight lines are always geodesics. There are effectively three different places where the geodesic might end with respect to the starting point:
215 \begin{enumerate}
216 \item the endpoint is on the same face;
217 \item the endpoint is on an adjacent face;
218 \item the endpoint is on the opposite face.
219 \end{enumerate}
220
221 Geodesics of the 1. kind are obviously regular straight lines in the plane and need no further analysis.
222
223 Geodesics of the 2. kind have three options: going through the shared side or going through either of the faces that also share a side with the face of the endpoint. For example, let the starting point be on face $1$ and the endpoint on face $2$, then we have the three options: $1-2$, $1-5-2$, and $1-4-2$, where $a-b-c$ means that we start from face $a$, move to face $b$, and move to face $c$ where we stop.
224
225 Geodesics of the 3. kind have 12 options: for each adjacent face, there are three options (as can be seen from the 2. kind). Note that not all of these will necessarily be actual geodesics with the same being true for geodesics of the 2. kind. However, at least one of them will be a geodesic as well as realise the globally shortest path between the start and endpoints.
226
227 Now all we need are the face-to-face transformations between local coordinate systems, which can then be composed together to make longer chains between the faces. A coordinate transformation from one face to another is made by rotating (with respect to the common edge) the target face onto the same plane as the starting face (keeping this face fixed) such that there is no overlap. For the unfoldings of the different coordinate grids, we essentially need two transformations of a point $(x,y)$ on the plane:
228 \begin{itemize}
229 \item Rotation of $(x,y)$ about a point $(a,b)$ for $+90^\circ$: $(x,y) \rightarrow (b+a-y, b-a+x)$;
230 \item Rotation of $(x,y)$ about a point $(a,b)$ for $-90^\circ$: $(x,y) \rightarrow (a-b+y, a+b-x)$.
231 \end{itemize}
232 The following matrix contains all of the coordinate transformations between the faces with $x,y \in [0,1]$ and their standard three-dimensional coordinates.
233
234 %\begin{equation*}
235 %\begin{array}{|c | c | c | c | c | c|}
236 % \hline
237 % (x,y)_1 & (x,y)_2 & (x,y)_3 & (x,y)_4 & (x,y)_5 & (x,y)_6\\
238 % \hline
239 % (y,x-1)_2 & (y+1,x)_1 & (-y,1-x)_1 & (x,-y)_1 & (1-x,y+1)_1 & (y,2-x)_2\\
240 %
241 % (1-y,-x)_3 & (x+1,y)_4 & (x-1,y)_4 & (x-1,y)_2 & (x+1,y)_2 & (1-y,x+1)_3\\
242 %
243 % (x,-y)_4 & (x-1,y)_5 & (x+1,y)_5 & (x+1,y)_3 & (x-1,y)_3 & (x,y+1)_4\\
244 %
245 % (1-x,y-1)_5 & (2-y,x)_6 & (y-1,1-x)_6 & (x,y-1)_6 & (1-x,2-y)_6 & (1-x,2-y)_5\\
246 %
247 % (x,y,0) & (1,x,y) & (0,1-x,y) & (x,0,y) & (1-x,1,y) & (x,y,1)\\
248 % \hline
249 %\end{array}
250 %\end{equation*}
251 %\begin{center}
252 %Table 1: A local coordinate system, its representation on an adjacent face, and its %standard coordinate.
253 %\end{center}
254 %\vspace{2pt}
255
256 \begin{center}
257 \[
258 \begin{blockarray}{ccccccc}
259 \R^3 & (x,y,0) & (1,x,y) & (0,1-x,y) & (x,0,y) & (1-x,1,y) & (x,y,1) \\
260 \cmidrule{1-7}
261 & 1 & 2 & 3 & 4 & 5 & 6 \\
262 \begin{block}{c(cccccc)}
263 1 & (x,y)_1 & (y+1,x)_1 & (-y,1-x)_1 & (x,-y)_1 & (1-x,y+1)_1 & \\
264 2 & (y,x-1)_2 & (x,y)_2 & & (x-1,y)_2 & (x+1,y)_2 & (y,2-x)_2 \\
265 3 & (1-y,-x)_3 & & (x,y)_3 & (x+1,y)_3 & (x-1,y)_3 & (1-y,x+1)_3 \\
266 4 & (x,-y)_4 & (x+1,y)_4 & (x-1,y)_4 & (x,y)_4 & & (x,y+1)_4\\
267 5 & (1-x,y-1)_5 & (x-1,y)_5 & (x+1,y)_5 & & (x,y)_5 & (1-x,2-y)_5 \\
268 6 & & (2-y,x)_6 & (y-1,1-x)_6 & (x,y-1)_6 & (1-x,2-y)_6 & (x,y)_6 \\
269 \end{block}
270 \end{blockarray}
271 \]
272 \end{center}
273
274 Note the abundance of regularity in the table because of the way the local coordinate systems were chosen. The side faces all share the $y$-coordinate, and the $x$-coordinate always has the same orientation, that is, the coordinate transformations from one side face to the next when going counterclockwise (or clockwise, for that matter) are the same.
275
276
277 \subsection{Coordinate calculations}
278
279 The distances can now be easily calculated with the Pythagorean theorem. For example, let our starting point $(x_1,y_1)_1$ be on face $1$ and endpoint $(x_2,y_2)_2$ on face $2$. First we need to figure out the three different possible coordinates of $(x_2,y_2)_2$ in the coordinate system of face $1$ by composing the transformations together using Table 1:
280 \begin{enumerate}
281 \item Path $1-2$: $(x,y)_2 \to (y+1,x)_1$;
282 \item Path $1-5-2$: $(x,y)_2 \to (x-1,y)_5 \to (2-x,y+1)_1$;
283 \item Path $1-4-2$: $(x,y)_2 \to (x+1,y)_4 \to (x+1,-y)_1$.
284 \end{enumerate}
285 This gives us three possible shortest paths between them with the distances
286 \begin{enumerate}
287 \item Path $1-2$: $d((x_1,y_1)_1,(x_2,y_2)_2) = \sqrt{(x_1-(y_2+1))^2 + (y_1-x_2)^2}$;
288 \item Path $1-5-2$: $d((x_1,y_1)_1,(x_2,y_2)_2) = \sqrt{(x_1-(2-x_2))^2 + (y_1-(y_2+1))^2}$;
289 \item Path $1-4-2$: $d((x_1,y_1)_1,(x_2,y_2)_2) = \sqrt{(x_1-(x_2+1))^2 + (y_1+y_2)^2}$.
290 \end{enumerate}
291
292 Let $(x_1,y_1)_1=(1/2,1/2)_1$ and the endpoint similarly be the middle point of face $2$, that is, $(1/2,1/2)_2$. Clearly the shortest distance between the start and endpoint is $1$. The distance formulas give us $1,\sqrt{2},\sqrt{2}$, respectively, that is, the shortest path is rather unsurprisingly through the common side (in fact, the other paths aren't geodesics at all since they go through vertices as can be seen from drawing a simple picture).
293
294 Lets change our starting point to $(1/4,3/4)_1$ and our endpoint to $(3/4,3/4)_2$. Now we have the distances $3/2,\sqrt{2},\sqrt{18}/2$, respectively, that is, the shortest path is through face $5$.
295
296 \begin{SCfigure}[1][h]
297 \begin{tikzpicture}
298 \draw[step=1cm,gray,very thin] (-1,-3) grid (3,3);
299 \draw[thick,-] (-1,-1) -- (1,-1);
300 \draw[thick,-] (-1,1) -- (1,1);
301 \draw[thick,-] (1,3) -- (1,-3);
302 \draw[thick,-] (-1,-3) -- (-1,3);
303 \draw[thick,-,red] (3,-3) -- (3,-1);
304 \draw[thick,-] (3,-1) -- (3,1);
305 \draw[thick,-,blue] (3,1) -- (3,3);
306 \draw[thick,-,red] (1,-3) -- (1,-1);
307 \draw[thick,-] (1,-1) -- (1,1);
308 \draw[thick,-,blue] (1,1) -- (1,3);
309 \draw[thick,-] (-1,3) -- (1,3);
310 \draw[thick,-,blue] (1,3) -- (3,3);
311 \draw[thick,-] (-1,-3) -- (1,-3);
312 \draw[thick,-,red] (1,-3) -- (3,-3);
313 \draw(-0.85,0.8) node{$1$};
314 \draw(-0.85,2.8) node{$5$};
315 \draw(-0.85,-1.2) node{$4$};
316 \draw(1.15,0.8) node{$2$};
317 \draw(1.15,2.8) node{$2$};
318 \draw(1.15,-1.2) node{$2$};
319 \draw[decorate,decoration={zigzag, amplitude = 0.4mm},blue] (1,1) -- (3,1);
320 \draw[decorate,decoration={zigzag, amplitude = 0.4mm},red] (1,-1) -- (3,-1);
321 \draw[thick,->] (-1,0) -- (3,0) node[anchor=west] {x};
322 \draw[thick,->] (0,-3) -- (0,3) node[anchor=south] {y};
323 \filldraw[black] (-1,-1) circle (2pt) node[anchor=north east]{$(0,0)$};
324 \filldraw[black] (-0.5,0.5) circle (2pt) node[anchor=north east]{$(1/4,3/4)$};
325 \filldraw[blue] (1.5,2.5) circle (2pt) node[anchor=west]{$(5/4,7/4)$};
326 \filldraw[black] (2.5,0.5) circle (2pt) node[anchor=west]{$(7/4,3/4)$};
327 \filldraw[red] (2.5,-2.5) circle (2pt) node[anchor=west]{$(7/4,-3/4)$};
328 \draw[thick,-,blue] (-0.5,0.5) -- (1.5,2.5);
329 \draw[thick,-] (-0.5,0.5) -- (2.5,0.5);
330 \draw[dashed,-,red] (-0.5,0.5) -- (2.5,-2.5);
331 \node[fill=blue, fill opacity=0.3, scale=7.8] at (2,2) {};
332 \node[fill=red, fill opacity=0.4, scale=7.8] at (2,-2) {};
333 \end{tikzpicture}
334 \caption*{An unfolding of the cube with the labels of the faces marked on their upper left corners. Included are the three colour-coded paths from face $1$ to face $2$ with starting point $(1/4,3/4)_1$ and endpoint $(3/4,3/4)_2$, and their endpoints in the coordinate system of face $1$. The dashed red path is not a geodesic as it goes through the vertex $(1,0)_1$. Note that the two zigzag edges between faces $2$ are not real but merely artifacts of the drawing.}
335 \end{SCfigure}
336
337
338 \section{Geodesics on a capped cylinder}
339
340 A cylinder (more specifically, a right circular cylinder) is a surface defined as the set of points $x,y,z \in \R$ such that $(x,y,z) = (r\cos \theta, r\sin \theta, z) = (\theta,z)$, where $r>0$ is the radius of the circle defined by $x$ and $y$. Furthermore, we will consider the capped cylinder by adding circular discs of the same radius $r$ to the top and bottom of the cylinder.
341
342 \subsection{Geodesics on either the side or the top and bottom discs}
343
344 Geodesics between points on the same discs are clearly straight lines and one can check (using the geodesic equation) that geodesics on the side are helices (in the degenerate cases, these include straight lines and arcs of circles). A helix is a space curve parametrised by
345 \[
346 x(\phi) = r \cos \phi, \quad y(\phi) = r \sin \phi, \quad z(\phi) = c \phi, \quad \text{for} \, \phi \in [0,d],
347 \]
348 where $c$ is a constant such that $2\pi c$ gives the vertical separation of the helix's loops and $d$ a parameter depending on $c$, such that we stay on the side of the cylinder (so not in the interior of top or bottom disc). Instead of vertical separation, one could also say that the helix has a slope of $r/c$. In fact, this is its defining feature: a curve for which the tangent makes a constant angle with a fixed line (center axis for our cylinder). The helix between two points $p_1=(z_1,\phi_1)$ and $p_2=(z_2,\phi_2)$ is given by
349 \[
350 \gamma(\phi) = \bigg (r \cos \phi, r \sin \phi, \frac{z_1-z_2}{\phi_1-\phi_2}\phi + \frac{\phi_1 z_2 - \phi_2 z_1}{\phi_1 - \phi_2} \bigg )
351 \]
352 and its arc length $L$ can be calculated with $L = d \sqrt{r^2 + c^2}$.
353
354 \begin{example}[No vertical separation between loops]
355 Since there is no separation between loops, $2\pi c = 0 \implies c= 0$, meaning that $z(\phi) = 0$ for all $\phi$, i.e., the $z$-coordinate does not change and thus the parametrisation is that of an arc of a circle of radius $r$. The arc length is naturally $L=dr$.
356 \end{example}
357
358 \begin{example}[Zero angle with central axis]
359 Since the angle is zero, we have that $\tan (0) = r/c = 0 \implies r=0$, meaning that $x(\phi) = y(\phi) = 0$ for all $\phi$, i.e., the parametrisation is that of a straight line, where the points only differ by their $z$-coordinates. The arc length is now $L=dc$.
360 \end{example}
361
362 \begin{example}[Existence of a shortest path and arbitrary long paths]
363 Between any two points on the cylinder that, w.l.o.g., only differ in their $z$-coordinate, there exist infinitely many geodesics. Furthermore, there is no upper bound for their length but there does exist at least one shortest one. By controlling the angle $\phi$ (or $c$), we control how many rotations we take around the cylinder. For $n \geq 0$ rotations we have by Pythagoras (by unfolding the cylinder $n$ times and excluding the top and bottom), that $\tan(\phi) = nr/c \iff \phi = \arctan (nr/c)$. The shortest path is now with zero rotations while there is no longest path as we can do as many rotations as we which: $n \to \infty \implies \phi \to \pi/2 \implies L \to \infty$.
364 \end{example}
365
366 For now, we have only discussed geodesics lying strictly on the curved side of the cylinder or on the flat top and bottom discs. What about when we go on two or more of them?
367
368 \subsection{Side -> disc geodesics}
369
370 Let $p_1$ be a point on the side and $p_2$ a point on one of the discs. Denote the point where the geodesic crosses the edge by $x$; we now have a picture where the side of the cylinder is unfolded and the disc is touching this at the point $x$. The point $x$ needs to be chosen such that the line $p_1 x p_2$ is straight (in the unfolded picture), i.e., we have
371 \[
372 d(p_1,p_2) = \min_x \big \{ d_{\text{cyl}}(p_1,x) + d_{\text{disc}}(x,p_2) \big \}.
373 \]
374 Denote $p_1 = (z_1,\phi_1)$, $\angle \tilde{p}_1Ox = \alpha_1$, where $\tilde{p}_1$ is the point on the boundary of the disc corresponding to $p_1$ (same phase), and $p_2 = (r_2,\phi_2)$, $\angle p_2Ox = \alpha_2$, where $d_{\text{disc}}(O,p_2)=r_2$. Assume further that $\phi_2 > \phi_1$ (mod $2\pi$). We have
375 \[
376 d_{\text{cyl}}(p_1,x) = \sqrt{z_1^2 + r^2\alpha_1^2} \quad \text{and} \quad d_{\text{disc}}(x,p_2) = \sqrt{r^2 + r_2^2 - 2rr_2 \cos \alpha_2},
377 \]
378 where the first is by Pythagoras (the non $z$-coordinate side of the triangle is simply the arc length $r\alpha_1$ of the circle) and the second by the cosine rule. Since $\alpha_2 = \phi_2 - \phi_1 - \alpha_1$, we get
379 \[
380 d(p_1,p_2) = \min_{\alpha_1} \bigg \{ \sqrt{z_1^2 + r^2\alpha_1^2} + \sqrt{r^2 + r_2^2 - 2rr_2 \cos (\phi_2 - \phi_1 - \alpha_1)} \bigg \}.
381 \]
382
383 To calculate its minima, set $f(\alpha_1; p_1, p_2, r) = \sqrt{z_1^2 + r^2\alpha_1^2} + \sqrt{r^2 + r_2^2 - 2rr_2 \cos (\phi_2 - \phi_1 - \alpha_1)}$ and calculate its derivatives as
384 \[
385 D_{\alpha_1} f = \frac{r^2\alpha_1}{\sqrt{z_1^2 + r^2\alpha_1^2}} - \frac{rr_2 \sin(\phi_2 - \phi_1 - \alpha_1)}{\sqrt{r^2 + r_2^2 - 2rr_2 \cos (\phi_2 - \phi_1 - \alpha_1)}}
386 \]
387 and
388 \[
389 D^2_{\alpha_1} f = \frac{r^2z_1^2}{(z_1^2 + r^2\alpha_1^2)^{3/2}}
390 + \frac{rr_2(r \cos (\phi_2 - \phi_1 - \alpha_1) - r_2)(r - r_2 \cos (\phi_2 - \phi_1 - \alpha_1))}{(r^2 + r_2^2 - 2rr_2 \cos (\phi_2 - \phi_1 - \alpha_1))^{3/2}}.
391 \]
392
393 \subsection{Disc -> side -> disc geodesics}
394
395 Without loss of generality, let $p_1$ be a point on the bottom disc and $p_2$ on the top disc. Denote the points where the geodesic crosses the edges by $x_1$ and $x_2$, respectively; we now have a picture where the cylinder side is unfolded and the discs are touching the side at the points $x_1$ and $x_2$. These points need to be chosen such that the line $p_1 x_1 x_2 p_2$ is straight (in the unfolded picture), i.e., we have
396 \[
397 d(p_1,p_2) = \min_{(x_1,x_2)} \big \{ d_{\text{disc}}(p_1,x_1) + d_{\text{cyl}}(x_1,x_2) + d_{\text{disc}}(x_2,p_2) \big \}.
398 \]
399 Denote $p_i = (r_i,\phi_i)$, $\angle p_iOx_i = \alpha_i$, for $i = 1,2$, where $d_{\text{disc}}(O_i,p_i)=r_i$. Since the line $p_1 x_1 x_2 p_2$ is straight, we can define a rectangle $x_1\tilde{x}_1x_2\tilde{x}_2$ such that we have the correspondence of phases: $\phi_{\tilde{x}_1} = \phi_{x_2}$ and $\phi_{\tilde{x}_2} = \phi_{x_1}$, i.e., $\angle x_1O_1\tilde{x}_1 \coloneqq \tilde{\alpha}_1 = \tilde{\alpha}_2 \eqqcolon \angle x_2O_2\tilde{x}_2$. Assume further that $\phi_2 > \phi_1$ (mod $2\pi$). We have
400 \[
401 d_{\text{disc}}(p_1,x_1) = \sqrt{r^2 + r_1^2 - 2rr_1 \cos \alpha_1}, \enskip d_{\text{cyl}}(x_1,x_2) = \sqrt{h^2 + (\tilde{\alpha}_1r)^2}, \enskip \text{and} \enskip d_{\text{disc}}(x_2,p_2) = \sqrt{r^2 + r_2^2 - 2rr_2 \cos \alpha_2},
402 \]
403 where the middle is by Pythagoras (the non $z$-coordinate side of the triangle is simply the arc length $r\tilde{\alpha}_i$ of a circle and $h$ is the height of the cylinder) and the others by the cosine rule. We have
404 \[
405 \tilde{\alpha}_1 = \phi_{\tilde{x}_1} - \alpha_1 - \phi_1 \quad \text{and} \quad \tilde{\alpha}_2 = \phi_2 - \alpha_2 - \phi_{\tilde{x}_2} \implies \tilde{\alpha}_1 +\tilde{\alpha}_2 = \phi_{\tilde{x}_1} - \phi_{\tilde{x}_2} + \phi_2 - \phi_1 - \alpha_1 - \alpha_2,
406 \]
407 and since $\phi_{\tilde{x}_2} = \phi_{x_1}$ with $\phi_{\tilde{x}_1} - \phi_{x_1} = \tilde{\alpha}_1$, we get
408 \[
409 \tilde{\alpha}_2 = \phi_2 - \phi_1 - \alpha_1 - \alpha_2.
410 \]
411 Putting everything together gives us
412 \[
413 d(p_1,p_2) = \min_{(\alpha_1,\alpha_2)} \bigg \{ \sqrt{r^2 + r_1^2 - 2rr_1 \cos \alpha_1} + \sqrt{h^2 + ((\phi_2 - \phi_1 - \alpha_1 - \alpha_2)r)^2} + \sqrt{r^2 + r_2^2 - 2rr_2 \cos \alpha_2} \bigg \}.
414 \]
415 Here it becomes clear that the previous disc -> side calculation is simply a special/modified case of this one; the first term is nonexistent, $\alpha_1=0$, and instead of $h$, we have a $z$-coordinate for the point on the side.
416
417 Finally, let us compute some derivatives. Set
418 \[
419 f(\alpha_1, \alpha_2; p_1, p_2, r, h) = \sqrt{r^2 + r_1^2 - 2rr_1 \cos \alpha_1} + \sqrt{h^2 + ((\phi_2 - \phi_1 - \alpha_1 - \alpha_2)r)^2} + \sqrt{r^2 + r_2^2 - 2rr_2 \cos \alpha_2}.
420 \]
421
422 \[
423 D_{\alpha_i} f = \frac{rr_i \sin(\alpha_i)}{\sqrt{r^2 + r_i^2 - 2rr_i \cos \alpha_i}} - \frac{r^2(\phi_2 - \phi_1 - \alpha_1 - \alpha_2)}{\sqrt{h^2+r^2(\phi_2 - \phi_1 - \alpha_1 - \alpha_2)^2}}.
424 \]
425
426 \[
427 D^2_{\alpha_1, \alpha_2} f = \frac{r^2h^2}{(h^2 + r^2(\phi_2 - \phi_1 - \alpha_1 - \alpha_2)^2)^{3/2}}.
428 \]
429
430 \[
431 D^2_{\alpha_i} f = \frac{rr_i(r \cos \alpha_i - r_i)(r - r_i \cos \alpha_i)}{(r^2 + r_i^2 - 2rr_i \cos \alpha_i)^{3/2}} + D^2_{\alpha_1, \alpha_2} f.
432 \]
433
434 \subsection{Side -> disc -> side geodesics}
435
436 Do shortest paths ever cross a disc when both of the points are on the side of the cylinder? A simple drawing shows that the answer is yes: take two points opposite (same $z$-coordinate but phase differing by $\pi$) each other on a cylinder of radius $r$. Now their distance on the side is $r\pi$ while using the disc it is $2(r+h)$, where $h$ is the $z$-coordinate of the points. By controlling $h$ and $r$ we can thus order these lengths as we wish.
437
438 It's clear that whether this happens or not depends on both the radius of the disc and the $z$-coordinates and phases of the points. Let us assume that this happens and calculate the distance. Let $p_1$ and $p_2$ be two points on the side of the cylinder and $x_1$ and $x_2$ be the points where the path crosses the sides of the disc, respectively. The length to minimise is thus
439 \[
440 d(p_1,p_2) = \min_{(x_1,x_2)} \{ d_{\text{cyl}}(p_1,x_1) + d_{\text{disc}}(x_1,x_2) + d_{\text{cyl}}(x_2,p_2) \}.
441 \]
442 To determine whether we stay on the side or the take a shortcut through the disc, one simply compares this distance to the one strictly on the side.
443
444 \begin{remark}
445 This problem is a somewhat generalisation of the first problem where we would've had $p_2=x_2$ without the assumption that the point lies on the boundary of the disc. However, here we will deal with chords, whereas there we most likely did not.
446 \end{remark}
447
448 Denote $p_i = (z_i,\phi_i)$ and $\angle \tilde{p}_iOx_i = \alpha_i$, for $i=1,2$, where $\tilde{p}_i$ is the point on the boundary of the disc corresponding to $p_i$ (same phase) and assume again that $\phi_2 > \phi_1$. We have
449 \[
450 \min_{(x_1,x_2)} \{ d_{\text{cyl}}(p_1,x_1) + d_{\text{disc}}(x_1,x_2) + d_{\text{cyl}}(x_2,p_2) \} = \min_{(\alpha_1,\alpha_2)} \bigg \{ \sqrt{z_1^2 + r^2\alpha_1^2} + 2r \cos \beta + \sqrt{z_2^2 + r^2\alpha_2^2} \bigg \},
451 \]
452 where $\beta = 1/2(\alpha_1 + \alpha_2 + \phi_1 - \phi_2 + \pi)$ and $\phi_2 > \phi_1$. We could equivalently write $\cos \beta = \cos (1/2(\alpha_1 + \alpha_2 + \phi_1 - \phi_2 + \pi)) = -\sin (1/2(\alpha_1 + \alpha_2 + \phi_1 - \phi_2))$ and
453 \[
454 \min_{(x_1,x_2)} \{ d_{\text{cyl}}(p_1,x_1) + d_{\text{disc}}(x_1,x_2) + d_{\text{cyl}}(x_2,p_2) \} = \min_{(\alpha_1,\alpha_2)} \bigg \{ \sqrt{z_1^2 + r^2\alpha_1^2} - 2r \sin (1/2(\alpha_1 + \alpha_2 + \phi_1 - \phi_2)) + \sqrt{z_2^2 + r^2\alpha_2^2} \bigg \}.
455 \]
456
457 Set $f(\alpha_1, \alpha_2; p_1, p_2, r) = \sqrt{z_1^2 + r^2\alpha_1^2} - 2r \sin (1/2(\alpha_1 + \alpha_2 + \phi_1 - \phi_2)) + \sqrt{z_2^2 + r^2\alpha_2^2}$ and calculate its first derivatives and Hessian as
458 \[
459 D_{\alpha_i} f = \frac{r^2\alpha_i}{\sqrt{z_i^2 + r^2 \alpha_i^2 }} - r\cos (\frac{1}{2}(\alpha_1 + \alpha_2 + \phi_1 - \phi_2))
460 \]
461 and
462 \[
463 \text{Hess}(f) =
464 \begin{bmatrix}
465 \frac{r^2 z_1^2}{(z_1^2+\alpha_1^2r^2)^{\frac{3}{2}}} + \frac{r}{2} \sin (\frac{1}{2}(\alpha_1 + \alpha_2 + \phi_1 - \phi_2)) & \frac{r}{2} \sin (\frac{1}{2}(\alpha_1 + \alpha_2 + \phi_1 - \phi_2))\\
466 \frac{r}{2} \sin (\frac{1}{2}(\alpha_1 + \alpha_2 + \phi_1 - \phi_2)) & \frac{r^2 z_2^2}{(z_2^2+\alpha_2^2r^2)^{\frac{3}{2}}} + \frac{r}{2} \sin (\frac{1}{2}(\alpha_1 + \alpha_2 + \phi_1 - \phi_2))
467 \end{bmatrix}.
468 \]
469
470 \begin{example}
471 Take opposite points on the side so that we have $\phi_2=\phi_1+\pi$ and $\alpha_1=\alpha=\alpha_2$ and thus
472 \[
473 \min_{(x_1,x_2)} \{ d_{\text{cyl}}(p_1,x_1) + d_{\text{disc}}(x_1,x_2) + d_{\text{cyl}}(x_2,p_2) \} = \min_{\alpha} \bigg \{ \sqrt{z_1^2 + r^2\alpha^2} + 2r \cos \alpha + \sqrt{z_2^2 + r^2\alpha^2} \bigg \}.
474 \]
475 Differentiating this with respect to $\alpha$ and setting the derivative to zero gives us
476 \[
477 \frac{r^2\alpha}{\sqrt{z_1^2+\alpha^2r^2}} -2r \sin \alpha + \frac{r^2\alpha}{\sqrt{z_2^2+\alpha^2r^2}} = 0.
478 \]
479 This holds, at least, when $\alpha = 0$. To see whether this is a maximum or a minimum, we take another derivative
480 \[
481 \frac{r^2 z_1^2}{(z_1^2+\alpha^2r^2)^{\frac{3}{2}}} - 2r \cos \alpha + \frac{r^2 z_2^2}{(z_2^2+\alpha^2r^2)^{\frac{3}{2}}}
482 \]
483 and set $\alpha=0$ to get
484 \[
485 r(\frac{r(z_1 + z_2)}{z_1 z_2} - 2).
486 \]
487 We thus have a maximum when $(z_1 + z_2)/(z_1 z_2) < 2/r$ and a minimum when $(z_1 + z_2)/(z_1 z_2) > 2/r$. Furthermore, if the heights are equal ($z_1=z=z_2$), then the minimum is only achieved when $z<r$.
488 \end{example}
489
490 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
491 \end{document}
492 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

mercurial