The area of a triangle in the coordinate plane
The area of a triangle with known coordinates can be computed by a formula. Consider the triangle with vertices A(1,1), B(5,1), C(2,4).
When a base and height are easy to read off, you can use them directly. The side AB lies on y=1 with length 5−1=4. The height from C is its distance from this base, the difference between C's y-coordinate 4 and the base's y=1, namely 4−1=3. So the area is 21×4×3=6.
For a general triangle whose base is not parallel to an axis, use this formula. The area of the triangle A(x1,y1), B(x2,y2), C(x3,y3) is
21∣x1(y2−y3)+x2(y3−y1)+x3(y1−y2)∣ Substituting gives 21∣1(1−4)+5(4−1)+2(1−1)∣=21∣−3+15+0∣=21×12=6, matching the value above. The absolute value keeps the area positive, and the result is the same in whatever order the vertices are listed. The three lines on the graph are the sides AB, BC, CA, and the large dots are the vertices A(1,1), B(5,1), C(2,4).