This les­son intro­duces the idea of a locus and then the first ways of writ­ing the equa­tion of a straight line: hor­i­zon­tal and ver­ti­cal lines, the slope-point form, the two-point form and the gen­eral form.

Locus

The set of points sat­is­fy­ing given geo­met­ri­cal con­di­tions is called a locus. For exam­ple, the set of points at a con­stant dis­tance from a fixed point AA is a cir­cle with cen­tre AA.

To find the equa­tion of a locus:

  1. Let P(x1,y1)P(x_1, y_1) be any point on the locus.
  2. Write down the given geo­met­ri­cal con­di­tion.
  3. Con­vert the con­di­tion into an alge­braic equa­tion in x1x_1 and y1y_1.
  4. Replace (x1,y1)(x_1, y_1) by (x,y)(x, y). The equa­tion obtained is the equa­tion of the locus.

Hor­i­zon­tal and ver­ti­cal lines

  1. The hor­i­zon­tal line through (x1,y1)(x_1, y_1) is y=y1y = y_1. The x-axis is y=0y = 0, and any line par­al­lel to it is y=ky = k.
  2. The ver­ti­cal line through (x1,y1)(x_1, y_1) is x=x1x = x_1. The y-axis is x=0x = 0, and any line par­al­lel to it is x=kx = k.

Slope-point form

The line through (x1,y1)(x_1, y_1) with slope mm is

y−y1=m(x−x1).y - y_1 = m(x - x_1).

When the slope is a frac­tion it is con­ve­nient to clear denom­i­na­tors at once:

Slope Point Equa­tion of the line
m=ab\displaystyle m = \frac{a}{b} (x1,y1)(x_1, y_1) ax−by=ax1−by1ax - by = ax_1 - by_1
m=−ab\displaystyle m = -\frac{a}{b} (x1,y1)(x_1, y_1) ax+by=ax1+by1ax + by = ax_1 + by_1
m=0m = 0 (x1,y1)(x_1, y_1) y=y1y = y_1
unde­fined (x1,y1)(x_1, y_1) x=x1x = x_1

For the point (1,2)(1, 2): slope 23\displaystyle \dfrac{2}{3} gives 2x−3y=−42x - 3y = -4; slope −23\displaystyle -\dfrac{2}{3} gives 2x+3y=82x + 3y = 8; slope 00 gives y=2y = 2; unde­fined slope gives x=1x = 1; slope 22 gives 2x−y=02x - y = 0; slope −2-2 gives 2x+y=42x + y = 4.

Two-point form

The line through (x1,y1)(x_1, y_1) and (x2,y2)(x_2, y_2) is

y−y1=y2−y1x2−x1(x−x1)or∣xy1x1y11x2y21∣=0.\displaystyle y - y_1 = \frac{y_2 - y_1}{x_2 - x_1}(x - x_1) \quad\text{or}\quad \begin{vmatrix} x & y & 1 \\ x_1 & y_1 & 1 \\ x_2 & y_2 & 1 \end{vmatrix} = 0.

The deter­mi­nant form says that (x,y)(x, y), (x1,y1)(x_1, y_1), (x2,y2)(x_2, y_2) make a tri­an­gle of zero area.

Some lines through two points:

Points Line
(1,2)(1, 2), (1,3)(1, 3) x=1x = 1
(1,2)(1, 2), (3,2)(3, 2) y=2y = 2
(1,0)(1, 0), (2,0)(2, 0) y=0y = 0
(1,1)(1, 1), (2,2)(2, 2) x=yx = y
(3,4)(3, 4), (6,1)(6, 1) x+y=7x + y = 7
(1,2)(1, 2), (2,1)(2, 1) x+y=3x + y = 3
(2,4)(2, 4), (4,8)(4, 8) y=2xy = 2x
(5,4)(5, 4), (100,99)(100, 99) x−y=1x - y = 1
(8,10)(8, 10), (−3,7)(-3, 7) 3x−11y=−863x - 11y = -86

Gen­eral form

Every line can be writ­ten as ax+by+c=0ax + by + c = 0, where aa, bb, cc are real and aa, bb are not both zero.

  1. The slope of ax+by+c=0ax + by + c = 0 is −ab=−coefficient of xcoefficient of y\displaystyle -\dfrac{a}{b} = -\dfrac{\text{coefficient of } x}{\text{coefficient of } y}. For exam­ple, the slope of 3x−4y+7=03x - 4y + 7 = 0 is 34\displaystyle \dfrac{3}{4}.
  2. The line par­al­lel to ax+by+c=0ax + by + c = 0 through (x1,y1)(x_1, y_1) is ax+by=ax1+by1ax + by = ax_1 + by_1; any line par­al­lel to it is ax+by=kax + by = k (or ax+by+k=0ax + by + k = 0).
  3. The line per­pen­dic­u­lar to ax+by+c=0ax + by + c = 0 through (x1,y1)(x_1, y_1) is bx−ay=bx1−ay1bx - ay = bx_1 - ay_1; any line per­pen­dic­u­lar to it is bx−ay=kbx - ay = k (or bx−ay+k=0bx - ay + k = 0).
  4. A line per­pen­dic­u­lar to the seg­ment join­ing (x1,y1)(x_1, y_1) and (x2,y2)(x_2, y_2) has the form (x1−x2)x+(y1−y2)y=k(x_1 - x_2)x + (y_1 - y_2)y = k.

Exam­ple 1

Find the locus of a point equidis­tant from (1,2)(1, 2) and (3,4)(3, 4).

Let P(x1,y1)P(x_1, y_1) be on the locus. Then

(x1−1)2+(y1−2)2=(x1−3)2+(y1−4)2−2x1+1−4y1+4=−6x1+9−8y1+164x1+4y1=20\begin{aligned} (x_1 - 1)^2 + (y_1 - 2)^2 &= (x_1 - 3)^2 + (y_1 - 4)^2 \\ -2x_1 + 1 - 4y_1 + 4 &= -6x_1 + 9 - 8y_1 + 16 \\ 4x_1 + 4y_1 &= 20 \end{aligned}

so the locus is x+y=5x + y = 5.

Exam­ple 2

Find the line through (8,10)(8, 10) and (−3,7)(-3, 7).

The slope is 7−10−3−8=311\displaystyle \dfrac{7 - 10}{-3 - 8} = \dfrac{3}{11}, so 11(y−10)=3(x−8)11(y - 10) = 3(x - 8), that is 3x−11y=−863x - 11y = -86.

Exam­ple 3

Find the lines through (2,−1)(2, -1) par­al­lel and per­pen­dic­u­lar to 3x+4y−5=03x + 4y - 5 = 0.

Par­al­lel: 3x+4y=3(2)+4(−1)=23x + 4y = 3(2) + 4(-1) = 2. Per­pen­dic­u­lar: 4x−3y=4(2)−3(−1)=114x - 3y = 4(2) - 3(-1) = 11.

Prac­tice

  1. Find the locus of a point at dis­tance 33 from the ori­gin.
  2. Find the locus of a point equidis­tant from (2,0)(2, 0) and (0,4)(0, 4).
  3. Find the line through (2,3)(2, 3) with slope −12\displaystyle -\dfrac{1}{2}.
  4. Find the line through (1,−1)(1, -1) and (3,5)(3, 5).
  5. Find the slope of 5x−2y+7=05x - 2y + 7 = 0.
  6. Find the line through (1,2)(1, 2) par­al­lel to 2x−5y+1=02x - 5y + 1 = 0.
  7. Find the line through (1,2)(1, 2) per­pen­dic­u­lar to 2x−5y+1=02x - 5y + 1 = 0.
  8. Find the hor­i­zon­tal and ver­ti­cal lines through (−3,4)(-3, 4).

Answers

Show answers
  1. x2+y2=9x^2 + y^2 = 9
  2. (x−2)2+y2=x2+(y−4)2(x - 2)^2 + y^2 = x^2 + (y - 4)^2 sim­pli­fies to x−2y+3=0x - 2y + 3 = 0
  3. x+2y=2+6x + 2y = 2 + 6, that is x+2y=8x + 2y = 8
  4. Slope 33: y+1=3(x−1)y + 1 = 3(x - 1), that is 3x−y=43x - y = 4
  5. 52\displaystyle \dfrac{5}{2}
  6. 2x−5y=2−10=−82x - 5y = 2 - 10 = -8
  7. 5x+2y=5+4=95x + 2y = 5 + 4 = 9
  8. y=4y = 4 and x=−3x = -3