I know the function defining an n-ellipse and I know the set theory definition of all points on that n-ellipse but I haven't seen discussions of generalizing the formula of a 2-ellipse anywhere online. Is it impossible to find this integral with a finite number of functions? Is it just way too complicated and not very useful? Regardless, even if you can't figure out the exact formula, I'm very curious to know if it even exists, because I'm just taking Linear Algebra and Calc 2 and I do not have the solution to this problem.
Clarifying edit: This is for a 2-dimensional shape in which the sum of the distances from n loci to all points on the function defining that shape is all the same.