Sub topic 3
Centroid, Incenter, Circumcenter, and Orthocenter
This chapter assumes you can use the distance formula, compute slopes, write line equations in point-slope form, and apply the Pythagorean theorem.
Four special points of a triangle
- Centroid: the intersection of the medians. Average the three vertices: G = ((x1+x2+x3)/3, (y1+y2+y3)/3).
- Incenter: the centre of the inscribed circle. Weight each vertex by the length of the opposite side: I = (a·A + b·B + c·C)/(a+b+c).
- Circumcenter: the intersection of the perpendicular bisectors. It is equidistant from all three vertices.
- Orthocenter: the intersection of the altitudes.
| Point | Method | Value for A(0,0), B(4,0), C(0,3) |
|---|---|---|
| Centroid | Average of vertices | (4/3, 1) |
| Incenter | Side-weighted average | (1, 1) |
| Circumcenter | Midpoint of hypotenuse BC | (2, 1.5) |
| Orthocenter | Right-angle vertex A | (0, 0) |
import math
def centroid(a, b, c):
return ((a[0] + b[0] + c[0]) / 3, (a[1] + b[1] + c[1]) / 3)
def incenter(a, b, c):
def dist(p, q):
return ((p[0] - q[0]) ** 2 + (p[1] - q[1]) ** 2) ** 0.5
sa, sb, sc = dist(b, c), dist(c, a), dist(a, b)
s = sa + sb + sc
return ((sa * a[0] + sb * b[0] + sc * c[0]) / s,
(sa * a[1] + sb * b[1] + sc * c[1]) / s)
def angle_between(m1, m2):
# undefined when 1 + m1*m2 = 0, which means the lines are perpendicular
return math.degrees(math.atan(abs((m1 - m2) / (1 + m1 * m2))))
def reflect(x0, y0, a, b, c):
# reflection of (x0, y0) in the line ax + by + c = 0
d = (a * x0 + b * y0 + c) / (a ** 2 + b ** 2)
return (x0 - 2 * a * d, y0 - 2 * b * d)
print(centroid((0, 0), (4, 0), (0, 3)))
print(incenter((0, 0), (4, 0), (0, 3)))
print(round(angle_between(1, 2), 2))
print(reflect(1, 2, 1, -1, 0))The angle between two lines
If two lines have slopes m1 and m2, the angle θ between them satisfies tan θ = |(m1 − m2)/(1 + m1·m2)|. Take the absolute value, then apply arctan. For slopes 1 and 2, the angle is about 18.43°.
Foot of the perpendicular and reflections
The foot of the perpendicular from P(x0, y0) to the line ax + by + c = 0 is the point where the perpendicular from P meets the line. Let d = (a·x0 + b·y0 + c)/(a² + b²). The foot is (x0 − a·d, y0 − b·d). The reflection of P in the line is twice the foot minus P, which gives (x0 − 2a·d, y0 − 2b·d). The code above returns (2.0, 1.0) for the reflection of (1, 2) in the line x − y = 0.
The circle in coordinates
A circle with centre (h, k) and radius r has the equation (x − h)² + (y − k)² = r². Substitute a point into the left side. A smaller value than r² means the point is inside, an equal value means it is on the circle, and a larger value means it is outside. For a line, compare the distance from the centre to the line with r. A smaller distance means the line cuts the circle.
Modulus equations and regions
The region |x| + |y| ≤ 2 is a square with vertices (±2, 0) and (0, ±2). Its diagonals each measure 4, so its area is ½ · 4 · 4 = 8. To sketch a modulus region, split it into cases by sign, sketch each case, and keep only the parts that satisfy that case's condition.
Strategies for CAT coordinate geometry questions
- Place the figure so the axes simplify the work. Put a vertex at the origin or a side on an axis.
- Test for perpendicularity with slopes: lines are perpendicular when m1·m2 = −1.
- Match the wording to the point. "Equidistant from the vertices" points to the circumcenter, "equal medians" points to the centroid, and "altitudes" points to the orthocenter.
- Check the answer by substituting it back into the original conditions.
Exercise
Is the point (1, 1) inside, on, or outside the circle x² + y² = 4?
Show answer
Inside. Substituting gives 1² + 1² = 2, which is less than 4.