# Shortest path between two points in polar coordinates

**This content was STOLEN from BrainMass.com - View the original, and get the solution, here!**

Show that the shortest path between two given points in a plane is a straight line, using plane polar coordinates.

© BrainMass Inc. brainmass.com September 23, 2018, 10:45 am ad1c9bdddf - https://brainmass.com/physics/conservation-of-energy/shortest-path-between-two-points-in-polar-coordinates-104661#### Solution Preview

documentclass[a4paper]{article}

usepackage{amsmath,amssymb}

newcommand{haak}[1]{!left(#1right)}

newcommand{rhaak}[1]{!left [#1right]}

newcommand{lhaak}[1]{left | #1right |}

newcommand{ahaak}[1]{!left{#1right}}

newcommand{gem}[1]{leftlangle #1rightrangle}

newcommand{gemc}[2]{leftlangleleftlangleleft. #1right | #2

rightranglerightrangle}

newcommand{geml}[1]{leftlangle #1right.}

newcommand{gemr}[1]{left. #1rightrangle}

newcommand{haakl}[1]{left(#1right.}

newcommand{haakr}[1]{left.#1right)}

newcommand{rhaakl}[1]{left[#1right.}

newcommand{rhaakr}[1]{left.#1right]}

newcommand{lhaakl}[1]{left |#1right.}

newcommand{lhaakr}[1]{left.#1right |}

newcommand{ket}[1]{lhaakl{gemr{#1}}}

newcommand{bra}[1]{lhaakr{geml{#1}}}

newcommand{braket}[3]{gem{#1lhaak{#2}#3}}

newcommand{floor}[1]{leftlfloor #1rightrfloor}

newcommand{half}{frac{1}{2}}

newcommand{kwart}{frac{1}{4}}

newcommand{bfm}[1]{{bf #1}}

renewcommand{imath}{text{i}}

begin{document}

title{Shortest path between two points}

date{}

author{}

maketitle

section{Polar coordinates}

Before we start, let's first derive the formula for the path length of an arbitrary path in polar coordinates. Consider two nearby points on a path at coordinates $(r,theta)$ and $(r + dr, theta + dtheta)$. The distance between these two points is $sqrt{dr^{2} + r^{2}dtheta^{2}}$. If we parametrize the path by specifying $theta$ as a function of $r$, the path length $S$, can then be written as:

begin{equation}label{thetapar}

S = int_{theta_{1}}^{theta_{2}}sqrt{r^{2}+haak{frac{dr}{dtheta}}^{2}}dtheta

end{equation}

Note that when we ask for the minimum path length we need to specify $r$ at $theta_{1}$ and $theta_{2}$ and ask which path which has these fixed end points is the shortest.

If we instead parametrize the path by specifying $r$ as a function of $theta$, then we can write:

begin{equation}label{rpar}

S = int_{r_{1}}^{r_{2}}sqrt{1+r^{2}haak{frac{dtheta}{dr}}^{2}}dr

end{equation}

And when we minimize this, we need to specify $theta$ at the two end points at $r_{1}$ and $r_{2}$.

Since we already know that the solution is a straight line, let's find out how a straight line looks like in polar coordinates. For a given line, there will be a point on that line that is closest to the origin. Let's call this point $P$. So, at the point $P$, $r$ is minimal, say $r=r_{0}$ and $theta$ will have some value $theta_{0}$. Because $r$ is minimal on the line at $P$, the line must be at right angles to the line connecting $P$ to the Origin at $r=0$. For some arbitrary point $Q$ on the line, consider the right triangle formed by the Origin, the point $P$ and the point $Q$. If the point has coordinates $(r,theta)$, then:

begin{equation}label{line}

coshaak{theta-theta_{0}}=frac{r_{0}}{r}

end{equation}

From the equations eqref{thetapar} ...

#### Solution Summary

We show that the shortest path between two given points in a plane is a straight line,

using calculus of variations in polar coordinates. We give two derivations: using the Lagrangian, and the Hamiltonian. In the first case we show that the solution follows from conservation of the conjugate momentum, while in the latter case it follows from conservation of the Hamiltonian (analogous to conservation of energy).