The given vertices represent a right angled triangle with right angle at C(a,b) and the hypotenuse AB, as AB2=AC2+BC2
So that orthocentre of the triangle is at C(a,b).
Circumcentre of the triangle is the middle point of the hypotenuse AB i.e. (a/2,b/2)
And centroid of the triangle is
(a+a+03,0+b+b3)=(2a3,2b3)
Let P(x,y) be the foot of the altitude from C.
Then P lies on AB whose equation is xa+yb=1 ( 1 )
Also CP is perpendicular to AB and its equation
⇒y−b=(a/b)(x−a) ( 2 )
Solving (1) & (2) we get
x=a3a2+b2,y=b3a2+b2