doc/aux_results.tex

Sat, 07 Dec 2024 14:04:26 -0500

author
Tuomo Valkonen <tuomov@iki.fi>
date
Sat, 07 Dec 2024 14:04:26 -0500
changeset 62
6d9de6d05ef7
parent 59
743984f4664e
permissions
-rw-r--r--

Zenodo packaging hacks

59
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
1 \pdfoutput=1
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
2 \documentclass[a4paper,english]{jnsao}
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
3 \usepackage[utf8]{inputenc}
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
4 \usepackage{enumerate}
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
5 \usepackage[shortlabels]{enumitem}
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
6 %\usepackage{lineno}\linenumbers
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
7 \usepackage{comment}
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
8 \usepackage[nameinlink,capitalize]{cleveref}
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
9 \usepackage{blkarray}
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
10 \usepackage{booktabs}
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
11 \usepackage{float}
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
12 \usepackage[rightcaption]{sidecap}
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
13 \sidecaptionvpos{figure}{m}
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
14
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
15 %\usepackage{changes-simple}
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
16
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
17 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
18 % Symbols
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
19 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
20 \input{symbols}
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
21 \input{symbols-texonly}
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
22 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
23 % Todos
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
24 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
25 \setlength{\marginparwidth}{2cm}
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
26 \usepackage[textsize=footnotesize,colorinlistoftodos]{todonotes}
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
27 \newcommand{\hktodo}[2][]{\todo[color=DarkGreen!40,#1]{#2}}
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
28 \newcommand{\tvtodo}[2][]{\todo[color=DarkRed!40,#1]{#2}}
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
29
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
30 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
31 % Set up cleveref for nicer referencing
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
32 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
33 \usepackage[nameinlink,capitalize]{cleveref}
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
34
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
35 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
36 % New theorem-like environments
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
37 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
38 \theoremstyle{definition}
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
39 \newtheorem{assumption}[theorem]{Assumption}
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
40 \newtheorem{algorithm}[theorem]{Algorithm}
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
41
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
42 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
43 % TikZ
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
44 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
45 % \usetikzlibrary{external}
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
46 \usetikzlibrary{decorations.pathmorphing}
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
47 \usepackage{wrapfig}
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
48 \usepackage{tikz-3dplot}
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
49 % \tikzexternalize[prefix=build/]
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
50 % \tikzexternaldisable
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
51
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
52 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
53 % Manuscript information.
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
54 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
55
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
56 % Manuscript title.
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
57 \title{Geodesics on a cube and a capped cylinder}
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
58
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
59 % Manuscript date.
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
60 % Use ISO-8601 standard yyyy-mm-dd date format.
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
61 %\date{\ISOToday}
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
62
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
63 % Authorship.
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
64 % Give affiliations and contact information using \thanks.
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
65 % \shortauthor is a plain surname-only version for running heads.
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
66 \author{Heikki von Koch}
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
67
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
68 \shortauthor{von Koch}
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
69
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
70 % Acknowledgements: funding, etc.
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
71 % \acknowledgements{}
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
72
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
73 % Licensing information
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
74 \manuscriptcopyright{}
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
75 \manuscriptlicense{}
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
76
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
77 % Fill this information once accepted for publication and the information
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
78 % is provided by the editors
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
79 %\manuscriptsubmitted{2018-12-14}
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
80 %\manuscriptaccepted{2018-12-14}
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
81 %\manuscriptvolume{1}
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
82 %\manuscriptnumber{0}
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
83 %\manuscriptyear{2018}
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
84 %\manuscriptdoi{not_assigned}
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
85 %\manuscriptstatus{}
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
86
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
87 %% You can also set the following information to include the eprint
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
88 %% information in the header
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
89 %\manuscripteprinttype{arXiv}
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
90 %\manuscripteprint{1901.00001}
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
91 %\manuscripteprinttype{HAL}
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
92 %\manuscripteprint{hal--01969102}
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
93
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
94
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
95 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
96 \begin{document}
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
97 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
98
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
99 \maketitle
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
100
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
101 \section{Geodesics on a cube}
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
102
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
103 \tdplotsetmaincoords{50}{25}
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
104 \begin{tikzpicture}
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
105 [tdplot_main_coords,
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
106 cube/.style={very thick,black},
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
107 grid/.style={very thin,gray},
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
108 axis/.style={->,blue,thick}]
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
109
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
110 %grid
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
111 \foreach \x in {-1.5,-1,...,1.5}
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
112 \foreach \y in {-1.5,-1,...,1.5}
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
113 {
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
114 \draw[grid] (\x,-1.5) -- (\x,1.5);
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
115 \draw[grid] (-1.5,\y) -- (1.5,\y);
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
116 }
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
117
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
118 %axes
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
119 \draw[axis] (-1,-1,0) -- (2,-1,0) node[anchor=west]{$x$};
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
120 \draw[axis] (-1,-1,0) -- (-1,2,0) node[anchor=west]{$y$};
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
121 \draw[axis] (-1,-1,0) -- (-1,-1,3) node[anchor=west]{$z$};
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
122
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
123 %top and bottom
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
124 \draw[cube] (-1,-1,0) -- (-1,1,0) -- (1,1,0) -- (1,-1,0) -- cycle;
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
125 \draw[cube] (-1,-1,2) -- (-1,1,2) -- (1,1,2) -- (1,-1,2) -- cycle;
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
126
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
127 %edges
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
128 \draw[cube] (-1,-1,0) -- (-1,-1,2);
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
129 \draw[cube] (-1,1,0) -- (-1,1,2);
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
130 \draw[cube] (1,1,0) -- (1,1,2);
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
131 \draw[cube] (1,-1,0) -- (1,-1,2);
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
132
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
133 %points
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
134 \filldraw[black] (-1,-1) circle (2pt) node[anchor=east]{$O$};
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
135 \filldraw[black] (1,1) circle (2pt) node[anchor=west]{$(1,1,0)$};
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
136 \filldraw[black] (1,1,2) circle (2pt) node[anchor=west]{$(1,1,1)$};
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
137 \filldraw[black] (-1,1,2) circle (2pt) node[anchor=south]{$(0,1,1)$};
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
138 \filldraw[black] (-1,-1,2) circle (2pt) node[anchor=east]{$(0,0,1)$};
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
139
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
140 \end{tikzpicture} \hspace{1em}
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
141 \tdplotsetmaincoords{60}{20}
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
142 \begin{tikzpicture}
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
143 [tdplot_main_coords,
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
144 cube/.style={very thick,black},
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
145 axis/.style={->,blue,thick}]
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
146
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
147 %axes
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
148 \draw[axis] (-1,-1,0) -- (-1,-1,1) node[anchor=east]{$y_4$};
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
149 \draw[axis] (-1,-1,0) -- (0.1,-1,0) node[anchor=north]{$x_4$};
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
150 \draw[axis] (-1,1,0) -- (-1,0.1,0) node[anchor=west]{$x_3$};
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
151 \draw[axis] (-1,1,0) -- (-1,1,1) node[anchor=west]{$y_3$};
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
152 \draw[axis] (1,1,0) -- (1,1,1) node[anchor=west]{$y_5$};
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
153 \draw[axis] (1,1,0) -- (0,1,0) node[anchor=south]{$x_5$};
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
154 \draw[axis] (1,-1,0) -- (1,-1,1) node[anchor=west]{$y_2$};
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
155 \draw[axis] (1,-1,0) -- (1,0,0) node[anchor=west]{$x_2$};
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
156
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
157 %top and bottom
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
158 \draw[cube] (-1,-1,0) -- (-1,1,0) -- (1,1,0) -- (1,-1,0) -- cycle;
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
159 \draw[cube] (-1,-1,2) -- (-1,1,2) -- (1,1,2) -- (1,-1,2) -- cycle;
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
160
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
161 %edges
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
162 \draw[cube] (-1,-1,0) -- (-1,-1,2);
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
163 \draw[cube] (-1,1,0) -- (-1,1,2);
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
164 \draw[cube] (1,1,0) -- (1,1,2);
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
165 \draw[cube] (1,-1,0) -- (1,-1,2);
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
166
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
167 %label faces
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
168 \draw(1,0,1) node{$2$};
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
169 \draw(0,-1,1) node{$4$};
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
170 \draw(0,0,2) node{$6$};
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
171 \draw[gray!100](0,0,0) node{$1$};
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
172 \draw[gray!100](-1,0,1) node{$3$};
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
173 \draw[gray!100](0,1,1) node{$5$};
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
174
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
175 \end{tikzpicture} \hspace{2em}
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
176 \tdplotsetmaincoords{60}{20}
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
177 \begin{tikzpicture}
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
178 [tdplot_main_coords,
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
179 cube/.style={very thick,black},
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
180 axis/.style={->,blue,thick}]
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
181
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
182 %axes
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
183 \draw[axis] (-1,-1,0) -- (0.1,-1,0) node[anchor=north]{$x_1$};
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
184 \draw[axis] (-1,-1,0) -- (-1,0.1,0) node[anchor=west]{$y_1$};
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
185 \draw[axis] (-1,-1,2) -- (0.1,-1,2) node[anchor=north]{$x_6$};
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
186 \draw[axis] (-1,-1,2) -- (-1,0.1,2) node[anchor=east]{$y_6$};
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
187
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
188 %top and bottom
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
189 \draw[cube] (-1,-1,0) -- (-1,1,0) -- (1,1,0) -- (1,-1,0) -- cycle;
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
190 \draw[cube] (-1,-1,2) -- (-1,1,2) -- (1,1,2) -- (1,-1,2) -- cycle;
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
191
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
192 %edges
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
193 \draw[cube] (-1,-1,0) -- (-1,-1,2);
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
194 \draw[cube] (-1,1,0) -- (-1,1,2);
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
195 \draw[cube] (1,1,0) -- (1,1,2);
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
196 \draw[cube] (1,-1,0) -- (1,-1,2);
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
197
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
198 %label faces
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
199 \draw(1,0,1) node{$2$};
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
200 \draw(0,-1,1) node{$4$};
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
201 \draw(0,0,2) node{$6$};
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
202 \draw[gray!100](0,0,0) node{$1$};
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
203 \draw[gray!100](-1,0,1) node{$3$};
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
204 \draw[gray!100](0,1,1) node{$5$};
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
205
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
206 \end{tikzpicture}
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
207
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
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.
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
209
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
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).
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
211
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
212 \subsection{Anatomy of geodesics on a cube}
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
213
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
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:
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
215 \begin{enumerate}
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
216 \item the endpoint is on the same face;
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
217 \item the endpoint is on an adjacent face;
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
218 \item the endpoint is on the opposite face.
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
219 \end{enumerate}
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
220
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
221 Geodesics of the 1. kind are obviously regular straight lines in the plane and need no further analysis.
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
222
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
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.
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
224
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
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.
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
226
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
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:
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
228 \begin{itemize}
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
229 \item Rotation of $(x,y)$ about a point $(a,b)$ for $+90^\circ$: $(x,y) \rightarrow (b+a-y, b-a+x)$;
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
230 \item Rotation of $(x,y)$ about a point $(a,b)$ for $-90^\circ$: $(x,y) \rightarrow (a-b+y, a+b-x)$.
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
231 \end{itemize}
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
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.
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
233
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
234 %\begin{equation*}
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
235 %\begin{array}{|c | c | c | c | c | c|}
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
236 % \hline
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
237 % (x,y)_1 & (x,y)_2 & (x,y)_3 & (x,y)_4 & (x,y)_5 & (x,y)_6\\
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
238 % \hline
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
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\\
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
240 %
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
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\\
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
242 %
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
243 % (x,-y)_4 & (x-1,y)_5 & (x+1,y)_5 & (x+1,y)_3 & (x-1,y)_3 & (x,y+1)_4\\
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
244 %
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
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\\
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
246 %
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
247 % (x,y,0) & (1,x,y) & (0,1-x,y) & (x,0,y) & (1-x,1,y) & (x,y,1)\\
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
248 % \hline
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
249 %\end{array}
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
250 %\end{equation*}
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
251 %\begin{center}
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
252 %Table 1: A local coordinate system, its representation on an adjacent face, and its %standard coordinate.
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
253 %\end{center}
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
254 %\vspace{2pt}
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
255
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
256 \begin{center}
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
257 \[
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
258 \begin{blockarray}{ccccccc}
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
259 \R^3 & (x,y,0) & (1,x,y) & (0,1-x,y) & (x,0,y) & (1-x,1,y) & (x,y,1) \\
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
260 \cmidrule{1-7}
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
261 & 1 & 2 & 3 & 4 & 5 & 6 \\
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
262 \begin{block}{c(cccccc)}
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
263 1 & (x,y)_1 & (y+1,x)_1 & (-y,1-x)_1 & (x,-y)_1 & (1-x,y+1)_1 & \\
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
264 2 & (y,x-1)_2 & (x,y)_2 & & (x-1,y)_2 & (x+1,y)_2 & (y,2-x)_2 \\
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
265 3 & (1-y,-x)_3 & & (x,y)_3 & (x+1,y)_3 & (x-1,y)_3 & (1-y,x+1)_3 \\
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
266 4 & (x,-y)_4 & (x+1,y)_4 & (x-1,y)_4 & (x,y)_4 & & (x,y+1)_4\\
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
267 5 & (1-x,y-1)_5 & (x-1,y)_5 & (x+1,y)_5 & & (x,y)_5 & (1-x,2-y)_5 \\
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
268 6 & & (2-y,x)_6 & (y-1,1-x)_6 & (x,y-1)_6 & (1-x,2-y)_6 & (x,y)_6 \\
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
269 \end{block}
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
270 \end{blockarray}
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
271 \]
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
272 \end{center}
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
273
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
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.
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
275
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
276
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
277 \subsection{Coordinate calculations}
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
278
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
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:
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
280 \begin{enumerate}
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
281 \item Path $1-2$: $(x,y)_2 \to (y+1,x)_1$;
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
282 \item Path $1-5-2$: $(x,y)_2 \to (x-1,y)_5 \to (2-x,y+1)_1$;
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
283 \item Path $1-4-2$: $(x,y)_2 \to (x+1,y)_4 \to (x+1,-y)_1$.
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
284 \end{enumerate}
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
285 This gives us three possible shortest paths between them with the distances
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
286 \begin{enumerate}
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
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}$;
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
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}$;
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
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}$.
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
290 \end{enumerate}
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
291
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
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).
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
293
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
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$.
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
295
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
296 \begin{SCfigure}[1][h]
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
297 \begin{tikzpicture}
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
298 \draw[step=1cm,gray,very thin] (-1,-3) grid (3,3);
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
299 \draw[thick,-] (-1,-1) -- (1,-1);
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
300 \draw[thick,-] (-1,1) -- (1,1);
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
301 \draw[thick,-] (1,3) -- (1,-3);
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
302 \draw[thick,-] (-1,-3) -- (-1,3);
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
303 \draw[thick,-,red] (3,-3) -- (3,-1);
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
304 \draw[thick,-] (3,-1) -- (3,1);
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
305 \draw[thick,-,blue] (3,1) -- (3,3);
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
306 \draw[thick,-,red] (1,-3) -- (1,-1);
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
307 \draw[thick,-] (1,-1) -- (1,1);
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
308 \draw[thick,-,blue] (1,1) -- (1,3);
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
309 \draw[thick,-] (-1,3) -- (1,3);
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
310 \draw[thick,-,blue] (1,3) -- (3,3);
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
311 \draw[thick,-] (-1,-3) -- (1,-3);
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
312 \draw[thick,-,red] (1,-3) -- (3,-3);
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
313 \draw(-0.85,0.8) node{$1$};
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
314 \draw(-0.85,2.8) node{$5$};
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
315 \draw(-0.85,-1.2) node{$4$};
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
316 \draw(1.15,0.8) node{$2$};
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
317 \draw(1.15,2.8) node{$2$};
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
318 \draw(1.15,-1.2) node{$2$};
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
319 \draw[decorate,decoration={zigzag, amplitude = 0.4mm},blue] (1,1) -- (3,1);
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
320 \draw[decorate,decoration={zigzag, amplitude = 0.4mm},red] (1,-1) -- (3,-1);
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
321 \draw[thick,->] (-1,0) -- (3,0) node[anchor=west] {x};
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
322 \draw[thick,->] (0,-3) -- (0,3) node[anchor=south] {y};
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
323 \filldraw[black] (-1,-1) circle (2pt) node[anchor=north east]{$(0,0)$};
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
324 \filldraw[black] (-0.5,0.5) circle (2pt) node[anchor=north east]{$(1/4,3/4)$};
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
325 \filldraw[blue] (1.5,2.5) circle (2pt) node[anchor=west]{$(5/4,7/4)$};
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
326 \filldraw[black] (2.5,0.5) circle (2pt) node[anchor=west]{$(7/4,3/4)$};
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
327 \filldraw[red] (2.5,-2.5) circle (2pt) node[anchor=west]{$(7/4,-3/4)$};
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
328 \draw[thick,-,blue] (-0.5,0.5) -- (1.5,2.5);
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
329 \draw[thick,-] (-0.5,0.5) -- (2.5,0.5);
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
330 \draw[dashed,-,red] (-0.5,0.5) -- (2.5,-2.5);
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
331 \node[fill=blue, fill opacity=0.3, scale=7.8] at (2,2) {};
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
332 \node[fill=red, fill opacity=0.4, scale=7.8] at (2,-2) {};
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
333 \end{tikzpicture}
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
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.}
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
335 \end{SCfigure}
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
336
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
337
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
338 \section{Geodesics on a capped cylinder}
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
339
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
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.
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
341
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
342 \subsection{Geodesics on either the side or the top and bottom discs}
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
343
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
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
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
345 \[
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
346 x(\phi) = r \cos \phi, \quad y(\phi) = r \sin \phi, \quad z(\phi) = c \phi, \quad \text{for} \, \phi \in [0,d],
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
347 \]
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
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
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
349 \[
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
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 )
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
351 \]
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
352 and its arc length $L$ can be calculated with $L = d \sqrt{r^2 + c^2}$.
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
353
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
354 \begin{example}[No vertical separation between loops]
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
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$.
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
356 \end{example}
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
357
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
358 \begin{example}[Zero angle with central axis]
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
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$.
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
360 \end{example}
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
361
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
362 \begin{example}[Existence of a shortest path and arbitrary long paths]
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
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$.
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
364 \end{example}
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
365
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
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?
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
367
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
368 \subsection{Side -> disc geodesics}
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
369
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
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
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
371 \[
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
372 d(p_1,p_2) = \min_x \big \{ d_{\text{cyl}}(p_1,x) + d_{\text{disc}}(x,p_2) \big \}.
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
373 \]
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
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
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
375 \[
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
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},
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
377 \]
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
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
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
379 \[
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
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 \}.
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
381 \]
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
382
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
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
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
384 \[
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
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)}}
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
386 \]
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
387 and
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
388 \[
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
389 D^2_{\alpha_1} f = \frac{r^2z_1^2}{(z_1^2 + r^2\alpha_1^2)^{3/2}}
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
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}}.
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
391 \]
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
392
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
393 \subsection{Disc -> side -> disc geodesics}
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
394
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
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
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
396 \[
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
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 \}.
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
398 \]
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
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
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
400 \[
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
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},
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
402 \]
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
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
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
404 \[
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
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,
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
406 \]
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
407 and since $\phi_{\tilde{x}_2} = \phi_{x_1}$ with $\phi_{\tilde{x}_1} - \phi_{x_1} = \tilde{\alpha}_1$, we get
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
408 \[
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
409 \tilde{\alpha}_2 = \phi_2 - \phi_1 - \alpha_1 - \alpha_2.
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
410 \]
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
411 Putting everything together gives us
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
412 \[
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
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 \}.
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
414 \]
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
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.
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
416
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
417 Finally, let us compute some derivatives. Set
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
418 \[
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
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}.
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
420 \]
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
421
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
422 \[
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
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}}.
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
424 \]
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
425
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
426 \[
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
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}}.
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
428 \]
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
429
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
430 \[
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
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.
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
432 \]
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
433
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
434 \subsection{Side -> disc -> side geodesics}
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
435
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
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.
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
437
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
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
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
439 \[
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
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) \}.
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
441 \]
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
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.
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
443
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
444 \begin{remark}
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
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.
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
446 \end{remark}
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
447
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
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
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
449 \[
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
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 \},
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
451 \]
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
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
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
453 \[
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
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 \}.
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
455 \]
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
456
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
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
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
458 \[
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
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))
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
460 \]
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
461 and
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
462 \[
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
463 \text{Hess}(f) =
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
464 \begin{bmatrix}
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
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))\\
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
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))
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
467 \end{bmatrix}.
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
468 \]
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
469
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
470 \begin{example}
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
471 Take opposite points on the side so that we have $\phi_2=\phi_1+\pi$ and $\alpha_1=\alpha=\alpha_2$ and thus
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
472 \[
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
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 \}.
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
474 \]
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
475 Differentiating this with respect to $\alpha$ and setting the derivative to zero gives us
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
476 \[
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
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.
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
478 \]
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
479 This holds, at least, when $\alpha = 0$. To see whether this is a maximum or a minimum, we take another derivative
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
480 \[
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
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}}}
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
482 \]
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
483 and set $\alpha=0$ to get
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
484 \[
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
485 r(\frac{r(z_1 + z_2)}{z_1 z_2} - 2).
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
486 \]
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
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$.
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
488 \end{example}
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
489
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
490 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
491 \end{document}
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
492 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

mercurial