- Completed: demonstration of using differential calculus to find the equation of the catenary curve.
- Completed: demonstration that identifying the point of minimum potential energy is identical to identifying force equilibrium.
- Still to do: numerical analysis implementation of finding the shape of the catenary curve, using the same implementation structure as applied in diagrams 4, 5 and 6 presented in the article with discussion of Hamilton's stationary action.

This article is part of a set of three; the common factor is Calculus of Variations. In classical physics Calculus of Variations is applied in three areas: Optics, Statics, and Dynamics. Each article in the set is written as a standalone article, resulting in some degree of overlap.
The other two articles:

 Optics: Fermat's stationary time Dynamics: Energy Position Equation

# Calculating the shape of the Catenary

## Statics and dynamics

Statics is a branch of mechanics in the following sense: in many cases the setup is such that it can be shifted away from equilibrium position, and upon release the setup will tend to proceed to an equilibrium state.

Generally a case is referred to as a case in statics when the following applies:
- the setup is such that motion of the system results in dissipation of energy, with a finite amount of (potential) energy available.
- The nature of the setup is such that as it dissipates energy the system proceeds to a point where there is no longer any opportunity to dissipate energy.

Example: a marble rolling around in roughly circular motion in a bowl. The kinetic energy of the rolling motion is drained by friction. As the marble loses kinetic energy the force of gravity pulls the marble down the slope. The conversion of potential energy to kinetic energy partially offsets the loss of kinetic energy to friction. The radius of circular motion keeps shrinking. When the marble arrives at the bottom of the bowl all the available potential energy has been converted. The marble sitting at the bottom of the bowl is the end state of the system because there is no longer any opportunity to dissipate energy.

In many cases the degree of freedom can be represented as opportunity to oscillate with respect to the equilibrium state. Depending on the amount of friction the oscillation can be underdamped or overdamped.

### Force equilibrium

The end state of the system is a state of force equilibrium. It is only when the resultant of the forces that are acting in the system reaches zero that there is no longer opportunity to dissipate energy.

In statics it isn't necessary to examine how the system will proceed to the end state. In statics it is sufficient to probe whether or not there is a state of force equilbrium.

### The diagram

In the diagram the curving part of the dashed line represents the hanging chain. The vertical lines left and right represent additional chain length, the weight of the additional chain length provides tensioning force.

In the diagram the force that the hanging chain exerts at the cusp is decomposed in two components. The magnitude of the vertical component is equal to the weight of the length of chain that is being suspended in between the cusps. The magnitude of the horizontal component follows from the angle of the chain (at the cusp).

The two piles of chain left and right represent that surplus chain just piles up. Only the length of chain from up at the cusp to down at the pile contributes to tensioning, therefore the tension force is for all lengths of the catenary the same. I will refer to this tension as the provided tension.

I will refer to the total tension force exerted by the catenary (at the cusp) as the cusp tension. The cusp tension and the provided tension are acting in opposition to each other; I will refer to the resultant effect as non-equilibrium.

With the checkbox 'Non-equilibrium' checked: a vertical bar next to the left chain pile represents whether or not the cusp tension is in equilibrium with the provided tension. As you move the slider left and right you see the Non-equilibrium indicator change in length and shift between pointing down and pointing up.

The length of the non-equilibrium bar is set to be proportional to the amount of non-equilibrium; for clarity the length of the non-equilibrium vertical bar is doubled.

When the non-equilibrium points upward: that is a state where the provided tension force is not enough, and when released the chain will sag. When the non-equilibrium points downward there is a surplus of provided tension force, and the suspended chain will be pulled upward.

The number displayed above the right side cusp is the length of the chain as a function of the value of the slider.

Picture 1. Graphlet
Catenary

### Shape of the Catenary

The shape of the catenary curve can be found by setting up a differential equation.

Since the shape is symmetric it is sufficient to evaluate from the midpoint to the cusp.

With:

 TH The horizontal component of the tension λ The weight per unit of length L the length of the chain from the midpoint to the x-coordinate.

The weight that has to be supported at coordinate x is given by multiplying the length L with the weight per unit of length: λL

The differential equation setup here uses the following property: since gravity is acting in the vertical direction the horizontal component of the tension is constant from cusp to cusp. It is not a function of the x-coordinate; it can be treated as a constant.

In preparation: from midpoint to cusp the slope of the curve increases; the length of chain per unit of x-coordinate increases accordingly. (1.1) gives an expression for dL/dx, which will later be used. (1.1)

At every point, from the mid point to the cusp, the slope of the curve is the ratio of horizontal tension component and vertical tension component: (1.2)

(1.1) gives an expression in terms of the derivative of L with respect to x, so in order to make use of (1.1) we need to rearrange (1.2) such that we can take the derivative of L with respect to x.

TH and λ are constants, so we can treat λ/TH as a constant. (1.3)

Taking the derivative: (1.4)

Combining (1.4) and (1.1) allows us to eliminate the quantity dL, arriving at a differential equation that is is purely in terms of the cartesian coordinates x and y: (1.5)

Given the form of the right hand side of (1.5) it is clear that if the differential equation has a solution at all it must involve the hyperbolic cosine; the sinh and cosh are related according to the equation: sinh²+1=cosh²

(1.6) incorporates the ratio TH/λ such that it satisfies (1.5) (1.6)

### Coordinate system of the diagram

The coordinate system is chosen such that the two cusps are located at x=-1 and x=1 respectively. The mass of chain is chosen such that the mass per unit of length is one unit of mass. The provided tension is set up such that at the equilibrium position the horizontal component of the tension in the catenary comes out as 1 unit of force. That is why when the slider is in the 1.00 position the line that represents the horizontal component of the tension force is 1 unit long; it represents 1 unit of force.

## Statics, general nature of variational approach

Before discussing the proces of using calculus of variations to find the shape of the catenary I first want to discuss the nature of variational approach in general. To do that I start with the simplest case that admits representation in variational form. Graphlet 2 simplifies from the catenary problem to finding a force equilibrium of three equal weights.

Picture 2. Graphlet
Force equilibrium

I will refer to the weight in the center as 'the center weight'. I will refer to the two outer weights as if they constitute a single counterweight: 'the counterweight'. Each weight is 1 unit of mass.

Moving the slider sweeps out variation. The lower bound of the slider value puts the counterweight at the lowest possible position, given the length of the wire. The position of the counterweight follows the slider value. (For the upper bound of the slider the value of 0.3 was chosen because that is about twice the value of the slider at the equilibrium point.)

The wire, in the graphlet displayed as dashed lines, is treated as having negligable mass, so the force balance is determined by the positions of the weights only. With the checkbox 'force comparison' checked two arcs are displayed. When sweeping out variation: one arc is stationary, the other moves in response to variation. The stationary arc represents the magnitude of the force exerted by the counterweight. The dynamic arc represents the force in the wire as a function of the height of the center weight.

### Potential energy

The variational approach evaluates rate of change of potential energy.

We have that when a mass m, subject to a gravitational force g descends over a height h the amount of gravitational potential energy that is released is mgh

Here the value of m is set to 1 unit of mass. The value of the gravitational acceleration g will drop out of the evaluation anyway, so for simplicity I treat the calculation for the case of g=1. Therefore the value of the potential energy Ep is the same as the value h for the height of the weight.

Picture 3. Graphlet
Left side: force comparison
Right side: potential energy comparison

In graphlet 3: in the right hand side subpanel the line with the long dashes gives the resultant potential energy.

As the counterweight rises the center weight descends. The intersection point of the center weight curve and the vertical slider value line follows the actual height of the center weight.

Picture 4. Diagram

 Ft Total force Fv Vertical component of the force Fh Horizontal component of the force (omitted from the diagram) α The angle of the wire with respect to the horizontal

### Force calculation

To find the equilibrium angle:

Each of the two wires, to the left and to the right, carries half of the weight of the center weight, therefore the magnitude of the vertical force component is half a unit of force. The total force in each single wire is 1 unit of force.

Since the triangle is a right angled triangle we have two calculation strategies available: Pythagoras' theorem and trigonometry. In this case using trigonometr is the quickest; but for the purpose of comparison with the potential energy evaluation I will use Pythagoras' theorem.

The total force as the resultant of the vertical force component and the horizontal force component: (2.1)

Rearranging gives an expression for the value of Fh in terms of Ft and Fv (2.2)

With Ft 1 unit of force and Fv half a unit of force: (2.3)

To obtain the height of the centerweight where there is force equilibrium:
In the diagram the distance from the cusp to the center line is 1 unit of distance, and the horizontal force component is the square root of 3/4. So that is a ratio of √(3/4) The height difference Δh and the value of the vertical force component are in the same ratio to each other: (2.4)

Here is how the value of the height difference is obtained with trigonometry:
The sine of angle α is equal to Fv divided by Ft. That ratio is one half, hence the equilibrium angle is 30 degrees.

We obtain the equilibrium height from the angle: the distance from the center line to the cusp is 1 unit of distance, and the tangent of 30 degrees is 1/√3.

### Potential energy evaluation

In order for a state of equilibrium to have meaning the system must have freedom to move. In the general case we assume there is freedom to move, either by way of parts sliding along each other, or by way of elastic deformation.

In the case depicted in Graphlet 2, the three weights: if the motion of the wire sliding over the cusps is low friction the system will tend to oscillate back and forth over the equilibrium point. Each time the system overshoots the equilibrium the direction of the resultant force reverses. The reversal is a reversal of direction of doing net work.

About doing work and doing negative work:
The concept of doing negative work is useful in situations where more than one force is being exerted, with the forces involved acting in opposite direction.

Example: the case of operating a crane: difference between lifting and lowering a load. When a load is being lifted the crane engine is doing positive work, and the force of gravity is doing negative work. Conversely, when the crane is lowering a load the engine is doing negative work, and gravity is doing positive work.

In the three weights case as represented with graphlet 2: the equilibrium point is the specific point where in both directions of motion each of the opposite forces is doing work at the same rate.

In the graphlet the height above zero of the counterweight is equal to the slider value. The total counterweight mass is two units of mass, therefore the rate of change of potential energy is two units of energy per unit of height.

Next: an expression for the center weight potential energy as a function of the slider value.

To make the expression a bit simpler I define an auxillary variable q. q is the total length of the hypotenuse. (With p for the slider value: q = p + 1)

Pythagoras' theorem then gives the following expression for the height h of the center weight as a function of q: (2.5)

(As stated earlier: m is taken as 1 unit of mass, and g for gravity drops out anyway, so the value h for the height is the value of the Potential energy.)

The variation is variation of height. We obtain the rate of change of potential energy by taking the derivative of (2.5) with respect to the variational parameter. (2.6)

At this point we take advantage of the following: q, the value of the numerator of the right hand side of (2.6), is the length of the hypotenuse, and the value of the denominator is the length of the opposing side of angle α. Therefore we can use trigonometry; the inverse of the right hand side of (2.6) gives the sine of the angle α. (2.7)

In order to do work at the same rate as the counterweights: the point where the center weight descends/ascends twice as fast as the counterweight is the equilibrium point. Therefore: (2.8)

### Integration and differentiation

As we know: integration and differentiation are each the inverse of the other (the integration up to an arbitrary constant.)

The potential energy is defined as the negative of work done, and work done is the integral of force over distance.

To find the point in the variation space where in both directions of motion the same amount of work is done we take the derivative of the potential energy with respect to the displacement.

The point is: taking the derivative of the potential energy with respect to the displacement is the reverse operation of the integration: after taking the derivative the evaluation is force evaluation.

(2.6) is stated in terms of the variational parameter q. This has the effect of scaling the right angled triangle. The outcome of the evaluation is the same either way; the angle α is defined by the ratio of the opposing side and the hypotenuse.

### The catenary, potential energy

The value of the slider is used as variational parameter. I will refer to that value as p. In the graphlet the shape of the chain as a function of parameter p is implemented as follows: (3.1)

More specifically: to make the cusps come out at y=0 the height of the cusps as a function of the variational parameter is subtracted. (3.2)

Graphlet 5: the right side sub-panel displays the rate of change of the potential as a function of the value of the variational parameter. I will abbreviate 'rate of change of potentential as function of p' to: potential-change-rate

The graph for the potential-change-rate of the catenary section is overall below the graph for the potential-change-rate of the tensioning section.

The tensioning section and the catenary section are in counter-motion; when the catenary section descends the tensioning section moves upwards. In this diagram the potential-change-rate of the tensioning section has been mirrored in the x-axis. The mirroring of the graph allows direct comparison.

Picture 5. Graphlet
Catenary, rate of change of potential energy

Graphlet 6 displays the difference between the two change-rates. For clarity: in the right side sub-panel the vertical scaling has been increased by a factor of 10

Picture 6. Graphlet
Catenary, potential energy

The line with long dashes displays the difference between the two change-rates.

The line with the short dashes displays the integral. This integral is the resultant potential as a function of the variational parameter. 