Given vertices: A(1,2), B(2,3), C(3,1).
To find the orthocenter, we need the intersection of any two altitudes.
Altitude from C perpendicular to AB:
Slope of AB = 2−13−2=1. So slope of altitude from C = −1.
Equation: y−1=−1(x−3)⇒y=−x+4 ... (i)
Altitude from A perpendicular to BC:
Slope of BC = 3−21−3=−2. So slope of altitude from A = 21.
Equation: y−2=21(x−1)⇒y=2x+23 ... (ii)
Solving (i) and (ii):
−x+4=2x+23
−23x=−25
x=35,y=−35+4=37
So the orthocenter is (α,β)=(35,37).
Now finding the roots of the quadratic:
α+4β=35+328=333=11
4α+β=320+37=327=9
Sum of roots = 11+9=20
Product of roots = 11×9=99
The quadratic equation is:
x2−20x+99=0