Shoelace formula
From Wikipedia, the free encyclopedia
The shoelace formula, or shoelace algorithm, is a mathematical algorithm to determine the area of a polygon whose vertices are described by ordered pairs in the plane[1]. The user cross-multiplies corresponding coordinates to find the area encompassing the polygon, and subtracts it from the surrounding polygon to find the area of the polygon within. It is called the shoelace formula because of the constant cross-multiplying for the coordinates making up the polygon, like tying shoelaces[2]. It is also sometimes called the shoelace method. The formula can be represented by the expression
where n is the number of sides of the polygon.[3]
[edit] Examples
The user must know the points of the polygon in a Cartesian plane. For example, take a triangle with coordinates {(2, 1), (4, 5), (7, 8)}. Take the first x-coordinate and multiply it by the second y-value, and repeat, and keep repeating this process. This can be defined by this formula:
for xn and yn representing each respective coordinate. Note that this works only for triangles. Using this forumla, one finds that the area of the triangle equals one half of the absolute value of 10 + 32 + 7 - 4 - 35 - 16, which equals 3. The number of sides of the polygon will alternate with the number of variables. For example, a pentagon (five sides) will be defined up to x5 and y5 points, up to
and a quadrilateral is
One must take the absolute value of the answer before dividing by two.
[edit] Why "shoelace"
The reason this formula is called the shoelace formula is because of the method used to find it. This method uses matrices. If you were to find the area of a triangle with vertices (2,4), (3,−8), and (1,2), you would construct the following matrix by “walking around” your triangle and ending with the point you started with.
First, you draw diagonal down and to the right slashes (as shown below),
and multiply the two numbers connected by each slash, then add all the products: (2 × −8) + (3 × 2) + (1 × 4) = −6. Do the same with slashes diagonal down and to the left (shown below with former slashes):
(4 × 3) + (−8 × 1) + (2 × 2) = 8. Then, subtract these two numbers and take the absolute value of the difference: |−6 − 8| = 14. If you halve this, you have the area of the triangle: 7. If you consider which numbers you multiply and add, you will see how the formula relates to the matrix method. If you drew the slashes, you should see the shoelaces the formula is named for (above).
[edit] References
- ^ http://staff.imsa.edu/math/journal/volume2/articles/Shoelace.pdf
- ^ Shoelace Formula
- ^ Geometry for Enjoyment and Challenge section 16.2
- ^ IMSA JHMC Guide, Page. 10 "Shoelace" by Cindy Xi




