MatheramaMatherama
← Coordinate Geometry Fundamentals
Coordinate Geometry Fundamentals·Section 4·4 min read

Area

Area of Triangle§

The area of a triangle with vertices at A(x1,y1)A(x_1, y_1), B(x2,y2)B(x_2, y_2), and C(x3,y3)C(x_3, y_3) is given by:

Area(△ABC)=12∣∣x1y11x2y21x3y31∣∣\text{Area}(\triangle ABC) = \frac{1}{2} \left| \begin{vmatrix} x_1 & y_1 & 1 \\ x_2 & y_2 & 1 \\ x_3 & y_3 & 1 \end{vmatrix} \right|

Proof:

Calculation of area of a triangle

Consider trapezoids ABMLABML, ACNLACNL, and BCNMBCNM with bases on the xx-axis and vertices AA, BB, and CC having coordinates (x1,y1)(x_1, y_1), (x2,y2)(x_2, y_2), and (x3,y3)(x_3, y_3), respectively. The vertical lines AMAM, BNBN, and CLCL are drawn from vertices AA, BB, and CC perpendicular to the xx-axis, meeting at points MM, NN, and LL on the xx-axis. These perpendiculars define the heights of the respective trapezoids.

The area of trapezoid ABMLABML is given by the average of the lengths of the parallel sides (y1y_1 and y2y_2) multiplied by the distance between them (x2−x1x_2 - x_1):

AreaABML=12(y1+y2)(x2−x1)\text{Area}_{ABML} = \frac{1}{2} (y_1 + y_2)(x_2 - x_1)

Similarly, the area of trapezoid ACNLACNL is:

AreaACNL=12(y1+y3)(x3−x1)\text{Area}_{ACNL} = \frac{1}{2} (y_1 + y_3)(x_3 - x_1)

And the area of trapezoid BCNMBCNM is:

AreaBCNM=12(y2+y3)(x3−x2)\text{Area}_{BCNM} = \frac{1}{2} (y_2 + y_3)(x_3 - x_2)

As can be seen in the figure, the area of triangle ABCABC is the sum of the areas of trapezoids ABMLABML and ACNLACNL minus the area of trapezoid BCNMBCNM:

AreaABC=AreaABML+AreaACNL−AreaBCNM\text{Area}_{ABC} = \text{Area}_{ABML} + \text{Area}_{ACNL} - \text{Area}_{BCNM}

Substituting the area expressions and simplifying, the resulting area of triangle ABCABC is:

AreaABC=12[y1(x2−x3)+y2(x3−x1)+y3(x1−x2)]\text{Area}_{ABC} = \frac{1}{2} [y_1(x_2 - x_3) + y_2(x_3 - x_1) + y_3(x_1 - x_2)]

The absolute value is taken since the area should be positive:

AreaABC=12∣x1(y2−y3)+x2(y3−y1)+x3(y1−y2)∣\text{Area}_{ABC} = \frac{1}{2} |x_1(y_2 - y_3) + x_2(y_3 - y_1) + x_3(y_1 - y_2)|

This can be written in determinant form as:

Area=12∣x1y11x2y21x3y31∣\text{Area} = \frac{1}{2} \begin{vmatrix} x_1 & y_1 & 1 \\ x_2 & y_2 & 1 \\ x_3 & y_3 & 1 \end{vmatrix}

Area of polygon§

Area Determination of Polygons via Triangulation§

Let a polygon PP with vertices V1,V2,…,VnV_1, V_2, \ldots, V_n be given. Then the area A(P)A(P) of polygon PP is equal to the sum of the areas of the triangles formed by connecting a chosen vertex ViV_i to all non-adjacent vertices of PP.

Proof:

Begin with selecting vertex ViV_i from polygon PP. This vertex acts as a common vertex for the triangulation process. Construct segments from ViV_i to all non-adjacent vertices Vi+2,…,Vi−1V_{i+2}, \ldots, V_{i-1} (indices considered modulo nn), thereby dividing PP into n−2n-2 triangles.

Denote the area of a triangle with vertices Vi,Vj,VkV_i, V_j, V_k as A(ViVjVk)A(V_iV_jV_k). The area of PP, which can be represented as the sum of the areas of these triangles, is given by:

A(P)=A(ViVi+1Vi+2)+A(ViVi+2Vi+3)+⋯+A(ViVi−1Vn)A(P) = A(V_iV_{i+1}V_{i+2}) + A(V_iV_{i+2}V_{i+3}) + \cdots + A(V_iV_{i-1}V_n)

By the principle of additivity of areas, the sum of the areas of the triangles equals the area of PP. Since these triangles are non-overlapping and cover PP entirely, no area is counted twice, and no region within PP is omitted. Hence, the area of polygon PP is the sum of the areas of the triangulated sections.

This completes the proof.

Shoelace Formula§

To apply the Shoelace Formula to a polygon with vertices A1,A2,...,AnA_1, A_2, ..., A_n, list the coordinates in a tabular form with two columns, arranging the abscissas (x-coordinates) in the first column and the ordinates (y-coordinates) in the second column. Include an additional row at the bottom with the coordinates of the first vertex A1A_1 repeated to close the loop.

Shoelace Matrix Arrangement

The Shoelace Formula is then executed by cross-multiplying the entries diagonally and summing the products. Specifically, for each row, multiply the x-coordinate by the y-coordinate of the next row and sum these values. Then, subtract the sum of the products obtained by multiplying the y-coordinate of each row by the x-coordinate of the next row.

Formally, for vertices (x1,y1),(x2,y2),...,(xn,yn)(x_1, y_1), (x_2, y_2), ..., (x_n, y_n), the area AA is given by the absolute value of:

A=12∣∑i=1n(xiyi+1−xi+1yi)∣A = \frac{1}{2} \left|\sum_{i=1}^{n} (x_i y_{i+1} - x_{i+1} y_i)\right|

where xn+1=x1x_{n+1} = x_1 and yn+1=y1y_{n+1} = y_1 to ensure the loop is closed.

This expands to:

A=12∣(x1y2+x2y3+...+xny1)−(y1x2+y2x3+...+ynx1)∣A = \frac{1}{2} \left| (x_1 y_2 + x_2 y_3 + ... + x_n y_1) - (y_1 x_2 + y_2 x_3 + ... + y_n x_1) \right|
Section 4 of 6 · Coordinate Geometry Fundamentals

Mark this section complete when you have worked through its proofs.