Given points A(1,a) and B(5,b)
Midpoint of line segment AB
=(3,a+b2)
This point lies on the line x−3y=0, so
3−3(a+b)2=0⇒a+b=2⋯(1)
Slope of the line segment AB
m=b−a4
Slope of given line is
=13
So,
m=−3⇒b−a4=−3⇒a−b=12
from equation (1)
a=7,b=−5
∴|ab|=35