- Foundation
- About 16 min
- 5 practice questions
Area of a triangle using determinants
Find the area of a triangle from its vertices with a determinant, test whether three points are collinear, write the equation of a line through two points, and find an unknown vertex from a given area.
If something looks wrong, please tell us.
By the end of this lesson you can
- Use Δ = ½|x₁ y₁ 1; x₂ y₂ 1; x₃ y₃ 1| for the area of a triangle, taking the absolute value.
- Show three points are collinear by getting a zero determinant.
- Find the line through two points, and find unknown coordinates when the area is given.
In Class 10 coordinate geometry you met the formula area = ½|x₁(y₂ − y₃) + x₂(y₃ − y₁) + x₃(y₁ − y₂)|. Look closely and it is exactly the expansion of a 3 × 3 determinant along its first column. Writing it as a determinant makes it easy to remember and gives quick tests for collinearity and equations of lines.
Notation: a matrix or determinant is written row by row, with entries separated by spaces and rows by semicolons. So |2 −3; 4 5| is the determinant of the 2 × 2 matrix with rows (2, −3) and (4, 5).
The formula
Area of the triangle with vertices (x₁, y₁), (x₂, y₂), (x₃, y₃) = absolute value of Δ, where Δ = ½|x₁ y₁ 1; x₂ y₂ 1; x₃ y₃ 1|.
Expanding along the third column (all ones) gives ½[x₁(y₂ − y₃) + x₂(y₃ − y₁) + x₃(y₁ − y₂)], the familiar formula. The determinant can come out negative (it depends on the order in which the vertices are listed), so area is the absolute value. When the area is given and a coordinate is unknown, use both + and − values of the determinant.
Worked examples
Worked example 1. Area of the triangle with vertices (1, 2), (4, 6) and (−2, 3). Working: Δ = ½[1(6 − 3) + 4(3 − 2) + (−2)(2 − 6)] = ½[3 + 4 + 8] = ½ × 15 = 15/2 square units.
Worked example 2 (collinearity). Are (1, 1), (3, 5) and (5, 9) collinear? Working: 1(5 − 9) + 3(9 − 1) + 5(1 − 5) = −4 + 24 − 20 = 0. The 'triangle' has zero area, so the three points lie on one line. (Check: the slope from the first to the second is 4/2 = 2, and from the second to the third is 4/2 = 2.)
Worked example 3 (equation of a line). Find the line through A(2, 1) and B(5, 7). Working: a point P(x, y) is on line AB exactly when P, A and B are collinear, i.e. |x y 1; 2 1 1; 5 7 1| = 0. Expanding along row 1: x(1 − 7) − y(2 − 5) + 1(14 − 5) = −6x + 3y + 9 = 0. Dividing by −3: 2x − y − 3 = 0. Check A: 4 − 1 − 3 = 0 ✓; B: 10 − 7 − 3 = 0 ✓.
Worked example 4 (unknown vertex). The triangle with vertices (k, 0), (4, 0) and (0, 2) has area 4 square units. Find k. Working: ½[k(0 − 2) + 4(2 − 0) + 0(0 − 0)] = ½(8 − 2k) = 4 − k. Area 4 means 4 − k = ±4, so k = 0 or k = 8; both work. Check k = 0: vertices (0, 0), (4, 0), (0, 2) give ½ × 4 × 2 = 4 ✓. Check k = 8: the base from x = 4 to x = 8 has length 4 and height 2, area 4 ✓.
What the area determinant tells you
-
Δ ≠ 0
- The three points form a genuine triangle
- Area = |Δ|
- The sign of Δ only reflects the order of the vertices
-
Δ = 0
- The points are collinear
- No triangle is formed
- Setting Δ = 0 with a variable point gives a line's equation
| Vertices | Value of the determinant expression | Conclusion |
|---|---|---|
| (1, 2), (4, 6), (−2, 3) | 15/2 | Area 15/2 |
| (1, 1), (3, 5), (5, 9) | 0 | Collinear |
| (0, 0), (6, 0), (0, 4) | 12 | Area 12 |
| (k, 0), (4, 0), (0, 2) | 4 − k | Area 4 gives k = 0 or 8 |
Why the absolute value? Listing the same three vertices in the opposite order swaps two rows of the determinant, which changes its sign but not the size of the triangle. That is why the formula takes |Δ|, and why both signs must be considered when working backwards from a known area.
Key takeaways: area = |½ det[x y 1 rows]|. Zero determinant means collinear points. The equation of the line through two points is the determinant with a general point (x, y) set to zero. With a given area, solve Δ = + area and Δ = − area.
Check your understanding
-
1. What is the area of the triangle with vertices (0, 0), (6, 0) and (0, 4)?
- 24
- 10
- 12
- 6
Show answer
Answer: C. ½[0(0 − 4) + 6(4 − 0) + 0(0 − 0)] = ½ × 24 = 12 square units, matching ½ × base 6 × height 4.
-
2. For what value of k are (2, 3), (4, k) and (6, 7) collinear?
- 5
- 4
- 6
- 3
Show answer
Answer: A. 2(k − 7) + 4(7 − 3) + 6(3 − k) = 2k − 14 + 16 + 18 − 6k = 20 − 4k. Setting it to 0 gives k = 5. (Check: the midpoint of (2, 3) and (6, 7) is (4, 5).)
-
3. Using determinants, which is the equation of the line through (1, 2) and (3, 6)?
- y = x + 1
- 2x + y = 4
- y = 3x − 1
- y = 2x
Show answer
Answer: D. |x y 1; 1 2 1; 3 6 1| = x(2 − 6) − y(1 − 3) + 1(6 − 6) = −4x + 2y = 0, so y = 2x. Both points satisfy it.
-
4. What is the area of the triangle with vertices (1, −1), (2, 3) and (−1, 2)?
- 11
- 11/2
- 13/2
- 7/2
Show answer
Answer: B. ½[1(3 − 2) + 2(2 − (−1)) + (−1)(−1 − 3)] = ½[1 + 6 + 4] = 11/2 square units.
-
5. Assertion (A): If the area of a triangle with vertices (k, 0), (4, 0), (0, 2) is 4 square units, k can take two values.
Reason (R): When the area is given, both the positive and negative values of the determinant must be used.- Both A and R are true, and R is the correct explanation of A
- Both A and R are true, but R is not the correct explanation of A
- A is true but R is false
- A is false but R is true
Show answer
Answer: A. The determinant gives ½(8 − 2k) = 4 − k. Setting 4 − k = 4 and 4 − k = −4 gives k = 0 and k = 8, the two values in A. They come precisely from using both signs, as R says.
Sign in to keep track of the lessons you finish.