Maximize Polygon Area Given Perimeter

Author:
user17128
For any given perimeter of a regular polygon, how does the area vary with the number of sides? Given the number of sides, how does the area vary with the perimeter? Adapted from "Maximize Area of Polygon Given Fixed Perimeter” by Terry Lindenmuth.