all problems
solved Nov 17, 2026

Regiomontanus's Problem

problem

A painting hangs on a wall with its bottom edge at height B above eye level and its top edge at height A above eye level (A > B > 0). How far back (x) from the wall should you stand to maximize you viewing angle \theta?

This is more of a geometry problem at first glance, but the word “maximize” made me think about optimization:

Solution

Let \alpha be the angle from eye level to the top of the painting, and \beta be the angle from eye level to the bottom. Then the viewing angle is \theta = \alpha - \beta, where:

α β θ eye x B A painting

\begin{aligned} \tan \alpha = \frac{A}x, \text{ } \tan \beta = \frac{B}x \end{aligned}

Using this formula for tangent where: \tan \theta = \tan(\alpha - \beta):

\frac{\tan\alpha - \tan\beta}{1+\tan\alpha\tan\beta}=\frac{\frac{A}x - \frac{B}x}{1+\frac{AB}{x^2}} = \frac{x(A-B)}{x^2+AB}

We know that \theta is between 0 and \frac{\pi}2 since the painting is on a wall in front of us, so maximizing \theta is the same as maximizing a function f(x) = our result above for x>0, so we differentiate it:

\begin{aligned} g'(x) = (A-B)\cdot \frac{(x^2+AB)(1)-x(2x)}{(x^2+AB)^2}=\frac{(A-B)(AB-x^2)}{(x^2+AB)^2} \\ g'(x) = 0 \rightarrow AB - x^2 = 0 \text{, Since we know that }A-B>0 \end{aligned}

\therefore \boxed{x = \sqrt{AB}}

We can confirm this is a maximum by checking how g'(x) > 0 for x <\sqrt{AB} and g'(x) < 0 for x > \sqrt{AB}.