A fly sits on the outside surface of a cylindrical drinking glass . It must crawl to another point situated on inside of the glass . Find the shortest path possible(neglecting the thickness of the glass).
I am not quite getting wont it be equal to $2a$ where $a$ is the distance of the fly from the upper circular boundary of the cylinder.However, if that point is not situated exactly to its initial position, in that case i think the shortest path will be from the point of position to the upper corcular boundary($a$) of the cylinder and then from that upper circular boundary to the desired point i.e those two are connected by a straight line , so that it is $x$(say), so the total shortest path is $a+x$....
Using cylindrical coordinates $(r, \phi, z)$, let coordinates of $A$ be
$A = (R , \phi_1, z_1) $
and let the cylindrical coordinates of $B$ be
$B = (R, \phi_2, z_2) $
And let the height of the cylindrical glass be $H$. What you need to do is reflect point $B$ about the plane $z = H$, then its image would becomes
$B' = (R , \phi_2 , 2 H - z_2 ) $
Now the shortest distance between $A$ and $B'$ is by Pythagorean theorem equal to
$ D = \sqrt{ R^2 (\phi_2 - \phi_1)^2 + (2 H - z_1 - z_2)^2 } $