Sub topic 13
Drawing Polygons and Measuring Them on the Plane
Prerequisites and the basic process
Assume you can read ordered pairs, plot points in all four quadrants, subtract coordinates, and use the Pythagorean theorem. An ordered pair is written \((x, y)\), where \(x\) gives the horizontal position and \(y\) gives the vertical position.
A polygon is a closed shape made from straight line segments. To draw a polygon on a coordinate plane:
- Plot each vertex, or corner, at its ordered pair.
- Connect the vertices in their boundary order.
- Connect the last vertex back to the first.
- Use coordinate differences to measure sides and diagonals.
The order matters. If the vertices of a rectangle are \((1,1)\), \((5,1)\), \((5,4)\), and \((1,4)\), connect them in that order. Connecting them in a different order could create crossing segments.
Measuring horizontal and vertical sides
For a horizontal segment, the \(y\)-coordinates are equal. Subtract the \(x\)-coordinates and use the absolute value:
\[ \text{length}=|x2-x1| \]
For a vertical segment, the \(x\)-coordinates are equal:
\[ \text{length}=|y2-y1| \]
For the rectangle above:
- From \((1,1)\) to \((5,1)\), the length is \(|5-1|=4\).
- From \((5,1)\) to \((5,4)\), the length is \(|4-1|=3\).
The opposite sides have the same lengths, so the perimeter is
\[ 4+3+4+3=14\text{ units}. \]
The area of a rectangle is length times width:
\[ 4\cdot3=12\text{ square units}. \]
| Segment | Type | Length |
|---|---|---|
| \((1,1)\) to \((5,1)\) | Horizontal | 4 |
| \((5,1)\) to \((5,4)\) | Vertical | 3 |
| \((5,4)\) to \((1,4)\) | Horizontal | 4 |
| \((1,4)\) to \((1,1)\) | Vertical | 3 |
Slanted sides and the distance formula
When two endpoints differ in both coordinates, the segment is slanted. Find the horizontal change \(\Delta x\) and vertical change \(\Delta y\). These changes form the legs of a right triangle. The segment is the hypotenuse.
\[ d=\sqrt{(\Delta x)^2+(\Delta y)^2} \]
For endpoints \((1,2)\) and \((4,6)\):
\[ \Delta x=4-1=3,\qquad \Delta y=6-2=4 \]
Therefore,
\[ d=\sqrt{3^2+4^2}=\sqrt{25}=5. \]
Add all side lengths to find the perimeter. For an irregular polygon, calculate each side separately.
Finding polygon area
For simple shapes, divide the polygon into familiar figures. A triangle has area
\[ A=\frac12 bh, \]
where \(b\) is the base and \(h\) is the perpendicular height. A polygon can often be split into triangles and rectangles, then the smaller areas can be added.
For a polygon with vertices listed in boundary order, the shoelace formula is another method:
\[ A=\frac12\left|\sum xi y{i+1}-yi x{i+1}\right|. \]
The final vertex is followed by the first vertex in the sums. This method is useful for shapes that are awkward to divide.
import math
points = [(1, 1), (5, 1), (5, 4), (1, 4)]
perimeter = 0
for i in range(len(points)):
start = points[i]
end = points[(i + 1) % len(points)]
perimeter += math.dist(start, end)
cross_sum = 0
for i in range(len(points)):
x1, y1 = points[i]
x2, y2 = points[(i + 1) % len(points)]
cross_sum += x1 * y2 - y1 * x2
area = abs(cross_sum) / 2
print("Perimeter:", perimeter)
print("Area:", area)Exercise
The vertices of a triangle are \((0,0)\), \((6,0)\), and \((3,4)\). Find its perimeter and area.
Show answer
The base is 6 and the height is 4, so the area is \(\frac12(6)(4)=12\) square units. Each slanted side has length \(\sqrt{3^2+4^2}=5\), so the perimeter is \(6+5+5=16\) units.