Distance formula, section formula, area of triangle using coordinates
The distance between two points P(x₁, y₁) and Q(x₂, y₂) is:
PQ = √[(x₂ – x₁)² + (y₂ – y₁)²]
This is derived from the Pythagorean theorem where PQ is the hypotenuse.
The distance of a point P(x, y) from the origin O(0, 0):
OP = √(x² + y²)
AB = √[(7–3)² + (1–4)²] = √[4² + (–3)²] = √[16 + 9] = √25 = 5 units
Let A(3,0), B(6,4), C(–1,3)
AB = √[(6–3)² + (4–0)²] = √[9+16] = √25 = 5
BC = √[(–1–6)² + (3–4)²] = √[49+1] = √50 = 5√2
CA = √[(3–(–1))² + (0–3)²] = √[16+9] = √25 = 5
AB² + CA² = 25 + 25 = 50 = BC² ✓
Answer: Triangle ABC is right-angled at A (AB = CA → also isosceles right triangle)
AP = AQ (given)
√[(6–3)² + (5–y)²] = √[(0–3)² + (–3–y)²]
Squaring: 9 + (5–y)² = 9 + (–3–y)²
(5–y)² = (–3–y)² → 25 – 10y + y² = 9 + 6y + y²
16 = 16y → y = 1
If point P divides the line segment joining A(x₁, y₁) and B(x₂, y₂) internally in ratio m:n, then:
P = [(mx₂ + nx₁)/(m+n), (my₂ + ny₁)/(m+n)]
Midpoint M of line segment joining A(x₁, y₁) and B(x₂, y₂):
M = [(x₁ + x₂)/2, (y₁ + y₂)/2]
(This is just section formula with m = n = 1)
Q: Find the point which divides the line segment joining A(2, –3) and B(5, 6) in ratio 1:2 internally.
m = 1, n = 2, x₁ = 2, y₁ = –3, x₂ = 5, y₂ = 6
x = (1×5 + 2×2)/(1+2) = (5+4)/3 = 9/3 = 3
y = (1×6 + 2×(–3))/(1+2) = (6–6)/3 = 0/3 = 0
Answer: Point P = (3, 0)
Q: Find midpoint of A(–2, 3) and B(4, –1).
M = [(–2+4)/2, (3–1)/2] = [2/2, 2/2] = (1, 1)
Q: In what ratio does point P(4, 5) divide the line joining A(1, 2) and B(7, 8)?
Let ratio = k:1
x-coordinate: (7k + 1)/(k+1) = 4 → 7k+1 = 4k+4 → 3k = 3 → k = 1
Answer: P divides AB in ratio 1:1 (midpoint!)
Area of triangle with vertices A(x₁, y₁), B(x₂, y₂), C(x₃, y₃):
Area = ½ |x₁(y₂ – y₃) + x₂(y₃ – y₁) + x₃(y₁ – y₂)|
The modulus | | ensures area is always positive.
Three points A, B, C are collinear (lie on a straight line) if and only if the area of △ABC = 0.
i.e., x₁(y₂–y₃) + x₂(y₃–y₁) + x₃(y₁–y₂) = 0
Q: Find area of triangle with vertices A(5, 2), B(4, 7), C(7, –4).
Area = ½ |5(7–(–4)) + 4(–4–2) + 7(2–7)|
= ½ |5(11) + 4(–6) + 7(–5)|
= ½ |55 – 24 – 35|
= ½ |–4| = ½ × 4 = 2 sq. units
Q: Are A(2, 3), B(4, 5), C(6, 7) collinear?
Area = ½ |2(5–7) + 4(7–3) + 6(3–5)|
= ½ |2(–2) + 4(4) + 6(–2)| = ½ |–4 + 16 – 12| = ½ |0| = 0
Yes, the points are collinear.
d = √[(x₂–x₁)² + (y₂–y₁)²]
x = (mx₂+nx₁)/(m+n)
y = (my₂+ny₁)/(m+n)
M = ((x₁+x₂)/2, (y₁+y₂)/2)
½|x₁(y₂–y₃)+x₂(y₃–y₁)+x₃(y₁–y₂)|