This post is inspired by Question 19 of this year’s University Maths Olympics (at the University of Melbourne):

Dana is moving into a mansion, and she needs a huge whiteboard. This whiteboard is to be

so heavy that it cannot be lifted; only wheeled. A certain corridor is 2.7 metres wide, and

is perpendicular to a 6.4 metre wide corridor. What is the length (in metres) of the longest

whiteboard that she can manoeuvre around the corner?

I had never seen this type of problem and was intrigued by it. If you like have a go at it yourself before reading further. I will first show my initial approach and then a nice solution that I looked up.

The first observation is that the longest ladder would touch the two walls and the corner of the inside of the corridor as illustrated above. I will define x and y as in the diagram below:

By similar triangles,

from which

This can be viewed as one branch of a hyperbola, illustrated in green here (using Graph v4.3):

I have also plotted in red a circular arc of radius 12, corresponding to the possible (x,y) locations of a whiteboard of length 12. The longest such whiteboard should be tangential to the hyperbola, so we have the following maximisation problem:

Then we write

We wish to minimise the right side viewed as a function of x. Denoting this quantity by z and setting gives

Dividing both sides by and rearranging, we obtain

Hence , from which and the maximum whiteboard length is

.

[This value of x indeed corresponds to the minimum as against a maximum, since dz/dx is increasing for x > 6.4: it increases from and behaves like 2x for large x.]

So what is the relationship between the answer 12.5 and the corridor widths 6.4 and 2.7? Redoing the above calculation with 6.4 and 2.7 replaced by a and b gives us and the following remarkable formula for the maximum whiteboard length:

Looking it up, this is seen as a “ladder around a corner” problem often used in calculus text books (e.g. see [1], [2]). The above form suggests a proof using non-calculus means. The similar triangle relationship in (*) can be rewritten as

We wish to find the shortest distance between the origin and the hyperbola . This reminds me of the better known problem of finding the distance between a point and the straight line . This is found to be via the Cauchy-Schwarz inequality as follows. This inequality can be remembered as the dot product of two vectors being less than or equal to the product of their lengths:

Rearranging gives Another easy way to see this is by calculating the area of a right triangle with legs having length a and b in two ways (), giving us the formula for h, the distance from the origin to the hypotenuse).

The generalisation of the Cauchy-Schwarz inequality is Hölder’s inequality, which replaces the 2-norm with p- and q-norms where (or ):

(This in turn can be proved via the AM-GM inequality, which I may elaborate on in a future post. Equality holds if and only if for all i, for some constant . The inequality reduces to the Cauchy-Schwarz inequality in the case p = q = 2.)

We use this inequality in our case with as follows:

The idea used above is to manipulate the right side so that the and terms are able to cancel upon application of the inequality. Equality holds if and only if and , or in other words, , which when combined with the condition implies as found earlier.

**Generalisation**

The above method can be readily generalised. Suppose we wish to minimise given (where and ). If we redo the calculation above, for the cancellation in x and y to occur we need to choose p and q such that

.

Since this means , or . We then are able to write

The minimum value is attained when and , or . This implies

**Lagrange multipliers**

A useful technique in calculus to attack such problems is via Lagrange multipliers. The principle there is that at the optimum, the gradients of the objective and constraint function are parallel. In the above graph, imagine where tangents of the green and red curve match. This gives us the condition

leading to as before.

**Final Notes**

1. There is also a useful physical interpretation of the original problem mentioned in [3]. Consider the forces applied to the ladder by the corner and two walls. In equilibrium the sum of these forces and torques applied to the ladder is zero. This gives a set of equations that leads to the above solution.

2. If instead of a one-dimensional segment (whiteboard/ladder) we considered a two dimensional rectangle (e.g. a couch) the problem apparently becomes far more involved, requiring the solution of a sixth degree polynomial. See [4] for more details.

**References**

[1] Atsina, C. & Nelson, R., When Less is More: Visualising Basic Inequalities, 2009, p132.

[2] Wrede, R. and Siegel, M., Advanced Calculus, 2002, p85.

[3] Levi, M., The Mathematical Mechanic, 2009, p65.

[4] Ladders, Couches and Envelopes, presentation available at http://www1.math.american.edu/People/kalman/pdffiles/ladderslides2post.ppt

It’s interesting that you haven’t seen this before — one of those rare occasions when I have seen something and you haven’t. I am pretty sure it was something I came across in (highschool?) calculus. Somehow the ladder around a corner formulation makes it the kind of problem that one does not forget easily.

Comment by Radhika — November 23, 2010 @ 11:31 pm |

[...] line segment through the point (8,1) lying in the first quadrant? This is equivalent to the “ladder around a corner” problem that I discussed in an earlier post. The shortest line segment through (8,1) is also [...]

Pingback by Philo’s line: the shortest line segment through a given point in a given angle « Chaitanya's Random Pages — September 13, 2011 @ 10:02 pm |

[...] line segment through the point (8,1) lying in the first quadrant? This is equivalent to the “ladder around a corner” problem that I discussed in an earlier post. The shortest line segment through (8,1) is also [...]

Pingback by Philo’s line: the shortest line segment through a given point in a given angle « Chaitanya's Random Pages — September 13, 2011 @ 10:02 pm |