The equation of line passing through two points (x1,y1) and (x2,y2) is:
y−y1=x2−x1y2−y1(x−x1)
Here two points are (3,−2) and (5,2).
Let (x1,y1)=(3,−2),(x2,y2)=(5,2)
Thus, equation of line is
y+2=5−32+2(x−3)y+2=2x−6y=2x−8f(x)=2x−8
Comments