An eigenlength problem arising from a model of patch formation