Along an extremal, differentiate . The chain rule gives
When , the Euler-Lagrange equation makes the right side zero. This proves the Beltrami identity, .
Place the wall on with attachments at , and write the fence above it as . Maximize area subject to length . The isoperimetric constraint gives the augmented integrand , where is a constant multiplier. Its Euler-Lagrange equation is , so the fence has constant negative curvature. Equivalently the Beltrami identity is .
The resulting maximum-area circular segment with fixed arc length and chord has
Here is the half-angle subtended by the arc. Its half-length is and half-chord is . The function increases from one to , so the given range determines a unique minor arc. Its enclosed area is .
There is also a global maximality proof for simple fences in the chosen half-plane, without assuming competitors are graphs. Complete the candidate minor arc with the complementary major arc of the same circle, which lies below the wall. Attach this same fixed major arc to any competing fence of length . The completed closed curve always has perimeter , and its area is the competitor's fenced area plus the same fixed area below the wall. The planar isoperimetric inequality bounds that total by , attained by the candidate circle. Hence no competitor encloses more area, and equality requires the circular arc.
Figure 1.
Optimal circular fence and its completion to a circle for the global area bound
. Original normalized example with half-chord and half-angle radians. Left: the arc, wall and radius geometry. Right: completing with the fixed major arc below the wall turns every competing fence into a fixed-perimeter isoperimetric problem. Details.