In Taylor, read sections 6.2 to 6.4 for today, and 6.4 to 7.1 for Wednesday.
The function η(x) is constrained to be 0 at the end points, η(x1) = η(x2) = 0, so that Y(x) satisfies the same boundary conditions as y(x), Y(x1) = y1 = y(x1), and Y(x2) = y2 = y(x2). Except for possible smoothness criteria, η(x) is otherwise arbitrary. The variable α is included to make the integral into a function of α, S = S(α), with the property that S is stationary when α = 0, that is (dS/dα)α=0 = 0. Let's evaluate dS/dα.
Now, we're almost there. To put this in usable form, we must get both terms proportional to η (or η'). We can use integration by parts to convert the second term
where the term in square brackets evaluates to zero because η=0 at the endpoints. This gives us the result we want
This result must hold for any η (for instance, η equal to the term in square brackets) and this can be guaranteed only if the term in square brackets is zero.
This is known as the Euler-Lagrange equation. Knowing the form of the function f(y,y',x) this yields a differential equation that, along with the boundary conditions y1 = y(x1), and y2 = y(x2), can be solved for y(x).
Let's return to the two earlier examples and apply the Euler-Lagrange equation to solve them.
On the x-y plane, find the shortest path between two points.
We determined that the length of a path from 1 to 2 is given by the integral
By inspection we see that f = sqrt(1 + y'(x)²). Applying the Euler-Lagrange equation to f we have
Therefore y'/sqrt(1 + y'²) = C = constant or y'(x) = C /sqrt(1 - C²) = constant = m. Finally, integrating y'(x), we find y(x) = mx + b, the equation for a straight line. The endpoints determine m and b.
In principal y(x) = mx + b is the path that makes the length stationary. In this case it is obvious that this is the minimum of the integral, but how do we show that in the general situation?
The variables x and y are placeholders. The can stand for anything. In Lagrangian mechanics, x will become t (time), and y will become q (a "generalized coordinate"). It might be useful to write the Euler-Lagrange equation in terms of u and v, with u the independent variable, and v the dependent variable:
In the next example, we switch the roles of x and y.© 2007 Robert Harr