By formula,
Centroid of triangle = (3x1+x2+x3,3y1+y2+y3)
Substituting values we get :
⇒Centroid of △ ABC=(3−1+3+0,33+(−1)+0)⇒P=(32,32).
By formula,
Slope = x2−x1y2−y1
Substituting values we get :
Slope of AB=3−(−1)−1−3=4−4=−1.
We know that,
Slope of parallel lines are equal.
By point-slope form,
Equation of line : y - y1 = m(x - x1)
Substituting values we get :
Equation of line passing through P and parallel to AB :
⇒y−32=−1(x−32)⇒33y−2=−1×33x−2⇒3y−2=−1(3x−2)⇒3y−2=−3x+2⇒3y+3x=2+2⇒3y+3x=4.
Hence, required equation is 3x + 3y = 4.