[Math] Why area of a triangle is negative based on naming order

areatriangles

According to the Shoelace formula :

If the points are labeled sequentially in the counterclockwise direction, then the area is positive, if they are labeled in the clockwise direction, the area will be negative.

Can anyone please explain why the area is negative, with the change in the order of the points? How does this work? I want to know the logic behind this.

Best Answer

The shoelace formula is a sum of signed triangle areas.

The area of a triangle is (half) a $3 \times 3$ determinant.

Exchanging two rows or columns of a matrix changes the sign of its determinant.