Consider three points A(1,0), B(4,0) and C (6,0). L1 is a line with slope m passing through A. L2 is a line with slope n passing through C. L1 and L2 intersect at P.

(A) find the equations of L1 and L2

ans: y = m(x-1), y = n(x-6)

(B) if B is equidistant from L1 and L2, prove that 9m^2 + 5 m^2 n^2 - 4n^2 =0

(C) As m and n vary, find the equation of the locus of P.

ans: x^2 + y^2 - 20x + 64 = 0 --------------- (*)

i have no problem in (A) and(B) , but in (C), I don't understand why i should substitute the value m = y/(x-1) and n = y/(x-6) back in equation (*). m = y/(x-1) is the equation of L1 while n = y/(x-6) is the equation of L2. The interception of L1 and L2 of course describle the location of P. but is (*) true for all condition (I mean if the relationship between m and n in (*) is true under any condition)? If it is, why is it related to the locus of P?

from my textbook it says:

If a point which moves under certain conditions describes a path, and

(i) all points satisfying the conditions lie on the path,

(ii) every point on the path stisfies the conditions,

then the path is called the locus of the point.

General procedure for finding the equation of a locus:

1. let P(x,y) be a point on the locus

2. write down the given condition as a relation connecting x and y.

3. simplify the above relation to obtain the required equation of the locus.

but in this case how to use the so-called general procedure to find the equation of locus of P? i can't find a similar question or working example in my textbook. really confuse@@@@ would any one please tell me the basic concept of the way to find the equation of locus?