We establish small-set edge isoperimetry in a square grid directly by counting row and column transitions. Regard the vertices of the grid graph as . Put , so . Start with the corner square and add the vertices . In this shape every occupied row and column is a proper initial interval. There are occupied rows and occupied columns, each contributing exactly one edge to the edge boundary in a graph in its direction. This gives .
For the reverse bound take an arbitrary -vertex set , and let be its numbers of occupied rows and columns. A row or column that is occupied but not full has at least one transition between and its complement, hence at least one corresponding boundary edge.
Suppose first that no row and no column is full. Then and . If , the arithmetic-geometric mean inequality would give
contrary to the stipulated size. Thus .
If there is a full row but no full column, all columns are occupied and proper, giving at least vertical boundary edges. The case of a full column but no full row is identical with the directions exchanged.
It remains to consider a set with both a full row and a full column. All rows and columns are now occupied. If rows and columns are full, then and . The remaining rows and columns each contribute a boundary edge, so
Since , this exceeds , which is larger than . These cases exhaust all sets and prove
As usual, and are integers; the specified interval is nonempty only for .