Triangle centres and pairs of lines · Mathematics Class… | StemPy Lab
Course 6.3·Lesson 3 of 3
Triangle centres and pairs of lines
The centroid G is the average of the corners. The orthocentre H is where the altitudes meet, and the circumcentre O
Lesson 3 of 3Show all lessonsHide
Try the code and the simulations beside the lesson.
Area, and three families of lines
A triangle with corners (x1,y1), (x2,y2) and (x3,y3) has area 21∣D∣. Here D is the sum of three products: x1(y2−y3), x2(y3−y1) and x3(y1−y2).
Three families of lines inside a triangle give its centres.
A median joins a corner to the middle point of the opposite side.
An altitude goes from a corner at right angles to the opposite side. Its slope is the negative reciprocal of the slope of that side.
A perpendicular bisector goes through the middle point of a side at right angles to it.
The four centres
Centroid G. Where the medians meet. It is the average of the corners, (3x1+x2+x3,3y1+y2+y3).
Circumcentre O. Where the perpendicular bisectors meet. It is equally far, the distance R, from all three corners.
Orthocentre H. Where the altitudes meet.
Incentre I. Where the angle bisectors meet. If the sides opposite A, B and C have lengths a, b and c, then I=a+b+caA+bB+cC. The inradius is r=sarea, where s is half the perimeter.
Example 1. Take A(4,6), B(−3,5) and C(6,2).
Area. The three products in the corner formula are 4×3=12, (−3)(−4)=12 and 6×1=6. They add up to 30, so the area is 230=15.
Centroid.G=(34−3+6,36+5+2)=(37,313).
Circumcentre. The perpendicular bisector of AB is 7x+y=9, and that of AC is x−2y=−3. They meet at O(1,2), and R=OA=5.
Orthocentre.BC has slope −31, so the altitude from A has slope 3: y=3x−6. AC has slope −2, so the altitude from B is 2y=x+13. They meet at H(5,9).
A blue triangle with corners A(4, 6), B(-3, 5) and C(6, 2), inside a dashed grey circle of radius 5 whose centre is O(1, 2) in violet. The centroid G (7/3, 13/3) is in green, inside the triangle. The orthocentre H(5, 9), in red, lies outside the triangle above A. A red line, 7x - 4y + 1 = 0, passes through O, G and H in that order. The title says that O, G and H lie on one line and that GH is twice OG.
The Euler line
Look at the three points O(1,2), G(37,313) and H(5,9). They lie on one line, the Euler line, and G is one third of the way from O to H:
G=32O+H,soH=3G−2O.
Here 3G−2O=(7−2,13−4)=(5,9). This is the quickest way to find H, because G and O are easy. The Euler line is 7x−4y+1=0, through O and H.
Three special cases are worth knowing. In an equilateral triangle all four centres coincide. In a right-angled triangle H is the corner with the right angle, and O is the middle point of the hypotenuse. In an obtuse triangle H and O lie outside the triangle.
Example 2 (the incentre). Take A(0,0), B(14,0) and C(5,12). The sides are a=BC=15, b=CA=13 and c=AB=14.
The weighted corners add up to 15(0,0)+13(14,0)+14(5,12)=(252,168). Divide by a+b+c=42:
I=(42252,42168)=(6,4).
The area is 21×14×12=84 and s=21, so r=2184=4. This agrees with the y-coordinate of I, since AB lies along the x-axis.
Pairs of lines through the origin
An equation in which every term has degree 2, ax2+2hxy+by2=0, gives two lines through the origin. Divide by x2 and put m=xy:
bm2+2hm+a=0.
The two roots m1 and m2 are the slopes of the lines.
m1+m2=−b2h and m1m2=ba.
The lines are real and different when h2>ab, they coincide when h2=ab, and there is no real line when h2<ab.
The acute angle between them has tanθ=∣a+b∣2h2−ab.
The lines are perpendicular when a+b=0.
The bisectors of the pair satisfy a−bx2−y2=hxy.
Example 3. For 2x2−7xy+3y2=0 we have a=2, h=−27 and b=3. It factorises as (2x−y)(x−3y)=0, so the lines are y=2x and y=3x. The formula gives tanθ=5249/4−6=1, an angle of 45 degrees. Check with the slopes: 1+2/32−1/3=1.
A general equation ax2+2hxy+by2+2gx+2fy+c=0 is a pair of lines when
abc+2fgh−af2−bg2−ch2=0.
Example 4. For which k is 2x2+5xy+2y2+3x+3y+k=0 a pair of lines?
Here a=b=2, h=25, g=f=23 and c=k. The condition becomes 4k+445−29−29−425k=0, so 49−9k=0 and k=1. Then the equation is (2x+y+1)(x+2y+1)=0, and the two lines cross at (−31,−31).
Practise with new numbers
Try it in Python
The program finds the four centres of a triangle, checks that the altitudes are perpendicular to the sides, and shows that GH is twice OG for random triangles.
Common mistakes
Using the slope of the side. An altitude has the negative reciprocal of that slope.
Weighting the incentre by the wrong sides. The weight of corner A is a, the side opposite it.
Expecting H inside every triangle. In an obtuse triangle the orthocentre lies outside.
Reading 2h as h. In ax2+2hxy+by2, an xy term of 5xy means h=2.5.
Remember these
G is the average of the corners, and H=3G−2O, so O, G, H lie on one line with GH=2OG.
O is equally far from the corners, H is where the altitudes meet, and I=a+b+caA+bB+cC.
For ax2+2hxy+by2=0, tanθ=∣a+b∣2h2−ab, and the lines are perpendicular when a+b=0.
Check yourself
Try each one on your own first. If you are stuck, open a hint. Then check with Show the answer.
Find the orthocentre and the circumcentre of the triangle with corners (0,0), (8,0) and (0,6).
For the same triangle, find the incentre and the inradius.
Find the two lines given by x2−5xy+6y2=0, and the tangent of the angle between them.
For which k are the lines of kx2+6xy−y2=0 at right angles?
Enroll free in Straight Lines: Loci, Bisectors and Triangle Centres
Every lesson is open to read. Enrolling also lets you:
Mark lessons done and carry on where you stopped.
Take the tests of this lesson and its course.
Count the course towards the certificate for its chapter.