What would be the steps or equation to graph a irregular convex equilateral polygon inscribed in a ellipse. I have not been able to find a example or equation of this online other then unanswered questions.
In my example we are trying to graph a convex equilateral Dodecagon. The ellipse is $$\frac{x^2}{20^2}+ \frac{y^2}{15^2} =1 $$
Is there a way to graph the Dodecagon? If so is there a equation to define this? Sorry if these are not the best tags
The choice of points given in your answer does not result in an equilateral dodecagon. Define a point on the ellipse as a function of the parameter $\theta$ $$f : [0,2\pi) \to \mathbb R^2, \\ f(\theta) = (20 \cos \theta, 15 \sin \theta).$$ Then your choice corresponds to an evenly spaced distribution on the interval $[0,2\pi)$, namely $$\theta \in \left\{ \frac{\pi k}{6} \right\}_{k = 0}^{11}.$$ But this is incorrect because the distance between $f(0)$ and $f(\pi/6)$ is not equal to the distance between $f(2\pi/6)$ and $f(\pi/2)$, which you can calculate explicitly: $$||f(\pi/6) - f(0)||^2 = \frac{3025}{4} - 400 \sqrt{3}, \\ ||f(\pi/2) - f(\pi/3)||^2 = \frac{1975}{4} - 225 \sqrt{3}. $$
The required spacing for a dodecagon with one vertex at $f(0) = (20, 0)$, can be found by numerically solving for $\theta, \psi$ in the system $$||f(\theta) - f(0)||^2 = ||f(\psi) - f(\theta)||^2 = ||f(\pi/2) - f(\psi)||^2$$ under the restriction $0 < \theta < \psi < \pi/2$, and the remaining vertices are simply reflections about the coordinate axes. Unfortunately, an elementary closed form solution for these parameters is not possible. Numerical methods yield (in radians) $$\theta \approx 0.59573630253877764269966203213567413136048611829430\ldots, \\ \psi \approx 1.1065501747316065924388786458228518171561303797842\ldots.$$ It is worth comparing these against $\pi/6$ and $\pi/3$. A plot of the resulting equilateral dodecagon is shown below in red, and the green points are the spacing that is evenly distributed with respect to $[0,2\pi)$:
Note also that this is not the only possible choice for an equilateral dodecagon inscribed in the aforementioned ellipse. Different choices for the "starting" vertex will result in different solutions, but the one illustrated here is the simplest in that it requires only two variables to solve. It is also worth noting that if the major or minor axes change, the whole system needs to be reevaluated, since the equilateral property is not invariant under a non-isometric scaling transformation.