definition for a parabola is that the distance from a given point (the focus) is always equal to the perpendicular distance to a given line (the directrix). so you use distance formula to a point P(x,y) from S and perpendicular distance to the line y= x-2, and equate them