Mathematically, the question of what shape the soap bubble will form
is a minimization problem:
the surface area seeks to be as small as possible under a constraint
(the volume is constant and the boundary spans a given countour).
This is known as Plateau's problem.
https://brilliant.org/wiki/math-of-s...nd-honeycombs/