How Do You Find The Shape of a Hanging Rope? Classic Physics Problem

When a rope is hung up with its two ends pinned down at some pair of points, it makes a shape called a catenary. How can we determine the shape of the rope?

Whenever we have a continuous object like this rope, we can imagine slicing it up into many little pieces. Since the rope is at rest, the total force on each little piece must be zero. Imposing this condition will tell us the shape that the whole rope must take.

The forces on a bit of rope are gravity pulling straight down and two tension forces: one pointing forward along the rope and the other pointing backward. These three forces must add up to zero in order for the bit of rope to be in equilibrium. Note first of all that this means the horizontal component of the tension must be constant, so that the tension pointing to the right at one end cancels the tension pointing to the left at the other end:

$$T_x(x) = C.$$

The difference in the vertical components of the two tension forces must meanwhile cancel out the weight of the segment:

$$T_y(x+\mathrm{d}x) - T_y(x) = g \mathrm{d}m,$$

where the left end of the rope is at the horizontal position $x$ and the right end is at \(x + \mathrm{d}x.\)

The rope is uniform, meaning it has constant mass per unit length $\frac{m}{l}$. Then the mass of the little piece of length $\mathrm{d}s$ is

$$\mathrm{d}m = \frac{m}{l} \mathrm{d}s.$$

In the limit that the width $\mathrm{d}x$ of the piece is very tiny, the length of the segment is just given by the Pythagorean theorem:

$$ \mathrm{d}s = \sqrt{(\mathrm{d}x)^2 +(\mathrm{d}y)^2} = \mathrm{d}x \sqrt{1 + \left( \frac{\mathrm{d}y}{\mathrm{d}x} \right)^2} = \mathrm{d}x \sqrt{1 + y'(x)^2}.$$

$y(x)$ is what we're looking for—the shape of the curve traced out by the hanging rope.

Now we can rewrite the equation for the vertical forces as

$$\frac{T_y(x+\mathrm{d}x) - T_y(x)}{\mathrm{d} x} = \frac{mg}{l} \sqrt{1 + y'(x)^2}.$$

The left-hand-side is just the derivative of $T_y(x)$ with respect to $x$. So thus far we've obtained two equations for the components of the tension:

\begin{align} &T_x(x) = C \notag\\ &T_y'(x) = \frac{mg}{l} \sqrt{1 + y'(x)^2}. \notag \end{align}

The horizontal and vertical components of the tension aren't independent, though. Together they make a vector $\vec{{}T} = (T_x, T_y)$ that has to point along the tangent direction to the rope:

$$\overset{\rightarrow}{\mathrm{d}s} = (\mathrm{d}x, \mathrm{d}y) = \mathrm{d}x (1, y'(x)).$$

In particular, the ratio of the tension components $\frac{T_y}{T_x}$ has to be the same as the ratio of the tangent vector components $\frac{\mathrm{d}y}{\mathrm{d} x} = y'(x)$. So we learn that

$$T_y(x) = y'(x) T_x(x).$$

Combining these equations, we can eliminate $T_x$ and $T_y$ to get an equation for $y(x)$ alone:

$$y''(x) = \kappa\sqrt{1+y'(x)^2},$$

where I've defined $\kappa = \frac{mg}{lC}.$ This is what we've been after: a differential equation whose solution will tell us the shape $y(x)$ of the rope. To solve it, note first of all that this second order equation for $y(x)$ is alternatively a first order equation for $u(x) = y'(x)$:

$$\frac{\mathrm{d}u}{\mathrm{d}x}= \kappa\sqrt{1+ u^2}.$$

We can separate variables here and integrate both sides to get $u(x)$:

$$\int \frac{\mathrm{d}u}{\sqrt{1+u^2}} = \kappa \int\mathrm{d}x.$$

The integral on the left looks like something we might be able to do with a trig substitution. If we'd instead had the integral

$$\int \frac{\mathrm{d}v}{\sqrt{1-v^2}}$$

with a minus sign in the denominator, we could substitute $v = \sin \theta.$ Then $\mathrm{d}v = \mathrm{d}\theta \cos \theta$ in the numerator, and $\sqrt{1-v^2} = \cos \theta$ in the denominator. The cosines cancel out, and we're left with

$$\int \frac{\mathrm{d}v}{\sqrt{1-v^2}} = \int \mathrm{d}\theta = \theta = \sin^{-1}(v).$$

Now what about the integral we actually wanted, with a plus sign in the denominator? By a change of variables $u = i v$, we can write

$$\int \frac{\mathrm{d}u}{\sqrt{1+u^2}} = i\int \frac{\mathrm{d}v}{\sqrt{1-v^2}} = i \sin^{-1}(v) = i \sin^{-1} \left( \frac{u}{i} \right).$$

So the results of our integrals are

$$i \sin^{-1}\left( \frac{u}{i}\right) = \kappa x + A,$$

where $A$ is an integration constant. Solving for $u = y'$, we get

$$y'(x) = i \sin \left( \frac{\kappa x + A}{i} \right).$$

But what's going on with these factors of $i$? Obviously the curve $y(x)$ and its slope $y'(x)$ should be real. In fact the above is a real function. The sine can be written in terms of exponentials as

$$\sin \theta = \frac{e^{i \theta} - e^{-i \theta}}{2i}.$$

This comes from Euler's identity, $e^{i \theta} = \cos(\theta) + i \sin(\theta).$ Therefore,

$$i \sin \left( \frac{\theta}{i} \right) = \frac{e^{\theta} - e^{-\theta}}{2},$$

which is real. This function has a name: it's called the hyperbolic sine, $\sinh(\theta)$. So by integrating our differential equation for $y''(x)$ once, we've obtained

$$y'(x) = \sinh(\kappa x +A) = \frac{e^{\kappa x +A} - e^{-(\kappa x +A)}}{2}.$$

Now we just need to integrate once more to get $y(x)$ itself. The integral of $e^{\kappa x +A}$ gives back the same thing times $1/\kappa$, and the integral of $e^{-(\kappa x +A)}$ is the same times $-1/\kappa$. Then we find

$$y(x) = \frac{1}{\kappa}\left(\frac{e^{\kappa x +A} + e^{-(\kappa x +A)}}{2}\right)+ B,$$

where $B$ is another integration constant. The function in parentheses again has a special name: it's the hyperbolic cosine, or $\cosh.$ Then at last we've learned that

$$y(x) = \frac{1}{\kappa} \cosh(\kappa x + A) + B.$$

So the shape of a hanging rope—aka a catenary—is a hyperbolic cosine function!

The last thing to do is figure out the integration constants $A$ and $B$, as well as the parameter $\kappa = \frac{mg}{lC}$, since we never solved for the horizontal tension $T_x = C$.

We're told where the ends of the rope are fixed, so let's set up our coordinates so that one end is at the origin $(0,0)$ and the other is at some point $(x_0,y_0).$ Then we get two conditions by requiring $y(0) =0$ and $y(x_0) = y_0$:

\begin{align} &\frac{1}{\kappa} \cosh(A) + B = 0 \notag\\ &\frac{1}{\kappa} \cosh(\kappa x_0 +A) + B = y_0.\notag \end{align}

Lastly, we have not yet imposed the fact that the rope is of length $l$:

$$l = \int \mathrm{d}s = \int\limits_0^{x_0} \mathrm{d}x \sqrt{1+y'(x)^2},$$

which implies

$$\frac{1}{\kappa} \left( \sinh(\kappa x_0 + A) - \sinh(A) \right) = l.$$

This gives us three equations in the three unknowns $A, B,$ and $\kappa$, which we can then solve for (numerically, in practice), to get the explicit curve $y(x)$. You can see the results in the simulation below by dragging the red dot around to choose different endpoints $(x_0, y_0)$ for the rope.


↩ Back to all notes

If you encounter any errors on this page, please let me know at feedback@PhysicsWithElliot.com.