# Homework Help: Calculus of Variations

1. Nov 21, 2005

### No Name Required

I have this question,

Express the length of a given curve $$r = r(\theta)$$ in radial co-ordinates. Using the Variational principle derive the shortest path between two points is a line.

Ive drawn a picture with two angles (measured from the x-axis) $$\theta_1$$ and $$\theta_2$$ so that $$r(\theta_1) = r_1$$ and $$r(\theta_2) = r_2$$.

I found the legth of the infinitesimal $$dl$$ to be

$$dl = \sqrt{r'^2 + r^2} \; d\theta$$ so that

$$\displaystyle{L = \int^{\theta_2}_{\theta_1} \sqrt{r'^2 + r^2} \; d\theta}$$

So my functional is $$f = \sqrt{r'^2 + r^2}$$

I have calculated $$\displaystyle{\frac{\partial f}{\partial r} = \frac{r}{\sqrt{r^2 + r'^2}}}$$ and $$\displaystyle{\frac{\partiall f}{\partial r'} = \frac{r'}{\sqrt{r^2 + r'^2}}}$$

Also $$\displaystyle{\frac{\partial f}{\partial \theta} = 0}$$

I have tried setting up

$$\displaystyle{\frac{d}{d\theta} \frac{\partial f}{\partial r'} - \frac{\partial f}{\partial r} = 0}$$ but this is leading to a nasty nonlinear second order differential equation which i presume is not correct.

I know that $$\theta$$ is cyclic so a conservation law exists but im not sure how to go about using this.

If someone could give me a plan of how to do the next couple of steps it would be great.

Thankyou

2. Nov 21, 2005

### Physics Monkey

I think the equation you should obtain from varying the path length is
$$\frac{d}{d\theta}\left(\frac{r'}{f}\right) = \frac{r}{f},$$
where $$f(r,r') = \sqrt{r^2 + r'^2}$$. First, let me note that a circle ($$r$$ constant) does not satisfy this equation. You should expect this since the arc of a circle is not the shortest distance between two points. Second, you should probably write out the equation for a line in polar coordinates. It is kind of messy in general, but you could pick a representative type of line and show that it solves the equation. Once you know this, you can always rotate your coordinates to show that all other lines satisfy the differential equation too.

I worked it out myself so it can be definitely be done. Let me know if you have any more trouble.

Last edited: Nov 22, 2005
3. Nov 22, 2005

### John_Doe

In cartesian coordinates you have:
$$\int{\sqrt{1 + \dot{y}^2}dx}$$
$$\frac{\partial f}{\partial y} - \frac{d}{dx}\displaystyle{(}\frac{\partial f}{\partial \dot{y}}\displaystyle{)} = 0$$
... thus:
$$f = \sqrt{1 + \dot{y}^2}$$
$$\frac{\partial f}{\partial y} = 0; \frac{\partial f}{\partial \dot{y}} = \frac{\dot{y}}{\sqrt{1 + \dot{y}^2}}$$
$$\frac{d}{dx}\displaystyle{[}\frac{\dot{y}}{\sqrt{1 + \dot{y}^2}}\displaystyle{]} = 0$$
$$\frac{\ddot{y}}{\sqrt{1 + \dot{y}^2}^3} = 0$$
... thus:
$$\ddot{y} = 0$$
... and:
$$y = ax + b$$

Last edited: Nov 22, 2005
4. Nov 22, 2005

### No Name Required

Thankyou very much for your time and thoughts. I have solved the problem in polar co ordinates and if anyone is particularly interested i will write it up for them. I will check back tomorrow.