Slope of AC =m=3−0−1−0=−3
Draw BD perpendicular to AC and its slope be m′
mm′=−1−3m′=−1⇒m′=13
Equation of BD is
y+1=13(x−2)3y+3=x−2x−3y=5.........(i)
Now slope of AB =mAB=−1−02−0=−12
Draw CE perpemdicular AB
=mAB=−1−02−0=−12mABmCE=−1−12mCE=−1⇒mCE=2
Equation of CE is
y−3=2(x+1)2x−y+5=0......(ii)
Orthocentre is the point of intersection of perpendiculars drawn from opposite vertices . So it is the point of intersection of BD and CE
Solving (i) and (ii) by substituting x from (i) in (ii)
y−3=2(x+1)2(3y+5)−y+5=06y+10−y+5=05y+15=0⇒y=−3x=3(−3)+5⇒x=−4
So the orthocentre of the triangle is (−4,−3)