# Areas of Polygons

In this article we're going to talk about a technique that can be used to program a computer to find the area of any polygon you like. The polygon can be regular (all sides and angles equal) or irregular. It really doesn't matter. We'll work through the technique using this polygon: ## Step 1: Turn the Vertices into Coordinates

Essentially, we're going to plot the polygon in the $xy$-plane. Find $xy$-coordinates for each vertex: ## Step 2: Find the Areas Under Each Line Segment

For each line segment (edge), we're going to work out the area between the edge and the $x$-axis. Here's a picture of one of them: Do you see that the shape we need to find the area of is a trapezium? The lengths of the two parallel sides are the heights (or $y$-coordinates) of the vertices that form the end points of the line segment, and the height of the trapezium is the difference between the two $x$-coordinates of these points. The lengths of the two parallel sides are the $y$-coordinates of the vertices at the end points of the line segment, so we have $a = 1.3$ and $b = 2.5$.

The height of the trapezium is the difference between the $x$-coordinates of these vertices. So, $h = 1.98 - 0.22 = 1.76$.

The area of the trapezium is equal to $\dfrac{h}{2} (a + b) = \dfrac{1.76}{2}(1.3 + 2.5) = 3.344.$

So that's the area of the first one. Next, we need to calculate all the others.

We always move clockwise around the polygon, and subtract the first vertex we come across as the end-point of a line segment away from the second vertex of the line segment. This will mean that some of the areas we calculate will be negative, but that's OK. I'll explain why in a little while. Here are the calculations:

End Point 1 End Point 2 a b h Area
$(0.22,1.3)$ $(1.98,2.5)$ 1.3 2.5 $1.98 - 0.22 = 1.76$ 3.344
$(1.98,2.5)$ $(4,3.1)$ 2.5 3.1 $4 - 1.98 = 2.02$ 5.656
$4,3.1)$ $(5.2,2.1)$ 3.1 2.1 $5.2 - 4 = 1.2$ 3.12
$5.2,2.1)$ $(4.5,0.22)$ 2.1 0.22 $4.5 - 5.2 = -0.7$ -0.812
$4.5,0.22)$ $(2.3,1.56)$ 0.22 1.56 $2.3 - 4.5 = -2.2$ -3.916
$2.3,1.56)$ $(0.22,1.3)$ 1.56 1.3 $1.3 - 1.56 = -0.26$ -0.7436

Next we add up the areas under the line segments that we just found (make sure you keep track of the signs from the table, or you'll end up with an area that's too big.)

The area of the polygon is:

$\text{Area} = 3.344 + 5.656 + 3.12 + (-0.812) + (-3.916) + (-0.7436) = 6.6484 \text{ units}^2.$

### Why Do We Need Some of the Areas to be Negative?

If we add up the areas under the line segments at the top of the polygon (the ones we got positive areas for), we end up with the area shown below: This is bigger than the area of the polygon. How much bigger? The area under the bottom line segments bigger! So, we need to take the areas under the bottom line segments away: The area of our polygon is equal to the green area in the picture directly above, which is the same as the area shaded green on the first picture in this section minus the area shaded pink in the picture directly above. That's why some of our areas have to be negative.

This automatically happens when we walk around the shape clockwise, because the sides we walk along backwards are exactly the ones on the bottom of the polygon. That is, the ones that we need to take the areas away for.

### Conclusion

So, that's it. You can use this technique to find the area of any polygon you like. The hardest part is finding the coordinates of the vertices. However, it is rather tedious, so if you know how, it's probably a good idea to program a computer to do all the calculations for you. Have fun!

### Description

In these chapters you will learn about plane geometry topics such as

• Area (Irregular polygons, plane shapes etc)
• Perimeter
• Conic sections (Circle, Ellipse, Hyperbola etc)
• Polygons (Congruent, polygons, similar, triangles etc)
• Transformations and symmetry (Reflection, symmetry, transformations etc)

etc

Even though these chapters are marked for Year 10 or higher students, several topics are for students in Year 8 or higher

### Audience

Year 10 or higher, suitable for Year 8 + students as well.

### Learning Objectives

You must be logged in as Student to ask a Question.
{"ft_lang_label":"__label__en","ft_lang_prob":0.90327096,"math_prob":0.99749345,"size":4271,"snap":"2023-40-2023-50","text_gpt3_token_len":1268,"char_repetition_ratio":0.1385048,"word_repetition_ratio":0.07549669,"special_character_ratio":0.31866074,"punctuation_ratio":0.15313463,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":0.99939525,"pos_list":[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14],"im_url_duplicate_count":[null,3,null,3,null,3,null,3,null,3,null,3,null,3,null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2023-12-08T12:19:10Z\",\"WARC-Record-ID\":\"<urn:uuid:d92cb704-72e1-4d8b-adad-1248bb2c68f5>\",\"Content-Length\":\"121744\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:35fd91fe-76f5-4333-84b1-0078194c55a8>\",\"WARC-Concurrent-To\":\"<urn:uuid:c867aa59-a7a0-4529-9dec-e1d9fa960cc9>\",\"WARC-IP-Address\":\"139.99.131.157\",\"WARC-Target-URI\":\"https://subjectcoach.com/tutorials/math/topic/year-10-plane-geometry\",\"WARC-Payload-Digest\":\"sha1:ODCO7QPZZWJJGLZBQNX5PVF4O5NTZGEE\",\"WARC-Block-Digest\":\"sha1:FTUGECVVEBA2NNASATCXTDOUOH2UU3WY\",\"WARC-Identified-Payload-Type\":\"text/html\",\"warc_filename\":\"/cc_download/warc_2023/CC-MAIN-2023-50/CC-MAIN-2023-50_segments_1700679100745.32_warc_CC-MAIN-20231208112926-20231208142926-00192.warc.gz\"}"}