直線方程可以分為 3 種,分別為:1. 水平線(y = k,當中 k 為常數)、2. 鉛垂線(x = k)、3. 斜線(ax + by + c = 0 或 y = mx + c,當中 a、b、c、m 為常數)。
例子(水平線):P 點與水平線 y = 4 及 y = 6 等距。求 P 點的軌跡。答案:P 的軌跡為 y = 5。
例子(鉛垂線):P 點與點 (3, 5) 及 (5, 5) 的距離相等。求 P 點的軌跡。答案:P 的軌跡是 x = 4。
例子 1(斜線):點 P 與直線 4x + y + 3 = 0 及 4x + y + 7 = 0 的距離相等。求 P 點的軌跡。由於兩條直線公式 Ax + By + C 當中的常數 A 及 B 的數值相等,可得知他們是一對平行線,分別穿過 y 軸截距 (0, 3) 及 (0, 7);因此,能與兩條直線等距的軌跡應為穿過中點 (0, 5) 的平行線,其方程為 4x + y + 5 = 0。
例子 2:P 點與點 A(4, 5) 及 B(8, 1) 的距離相等。求 P 點軌跡。PA = PB:(x − 4)² + (y − 5)² = (x − 8)² + (y − 1)²,化簡得 x − y − 3 = 0。或者可以先搵出線段 AB 嘅斜率 m(由於 AB 斜率與軌跡 P 互相垂直,因此兩者相乘等於 −1),以及線段 AB 嘅中點座標:P 點軌跡斜率 = 1,通過中點 (6, 3),方程:x − y − 3 = 0。
There are 3 kinds of straight line: 1. horizontal (y = k), 2. vertical (x = k), 3. slanted (ax + by + c = 0 or y = mx + c).
Example (horizontal): P is equally far from y = 4 and y = 6. The locus is y = 5.
Example (vertical): P is equally far from (3, 5) and (5, 5). The locus is x = 4.
Example 1 (slanted): P is equally far from 4x + y + 3 = 0 and 4x + y + 7 = 0. The two lines have the same A and B, so they are parallel, crossing the y-axis at (0, 3) and (0, 7). The locus passes through the mid-point (0, 5) and is parallel to them: 4x + y + 5 = 0.
Example 2: P is equally far from A(4, 5) and B(8, 1): (x − 4)² + (y − 5)² = (x − 8)² + (y − 1)², which simplifies to x − y − 3 = 0. Or use slopes: mAB = −1, so the locus has slope 1 and passes through the mid-point (6, 3), giving x − y − 3 = 0.