Every straight line can be writ­ten as ax+by+c=0ax + by + c = 0, the gen­eral form. This les­son shows how to read the slope and inter­cepts from it and how to con­vert it into the other forms. It also intro­duces two more forms: the nor­mal form, which describes a line by its dis­tance from the ori­gin and the direc­tion of the per­pen­dic­u­lar to it, and the sym­met­ric (dis­tance) form, which locates the points on a line at a given dis­tance from a fixed point.

Nor­mal form

Draw the per­pen­dic­u­lar from the ori­gin OO to the line, meet­ing it at NN. Let p=ONp = ON be the length of this per­pen­dic­u­lar (p>0p > 0), and let α\alpha be the angle that ONON makes with the pos­i­tive xx-axis, mea­sured anti­clock­wise (0°≤α<360°0° \leq \alpha < 360°).

Result. The equa­tion of the line is

xcos⁡α+ysin⁡α=px\cos\alpha + y\sin\alpha = p

Why. The point NN is (pcos⁡α,psin⁡α)(p\cos\alpha, p\sin\alpha), and the slope of ONON is tan⁡α\tan\alpha. The line is per­pen­dic­u­lar to ONON, so its slope is −cos⁡αsin⁡α\displaystyle -\frac{\cos\alpha}{\sin\alpha}. Through NN:

y−psin⁡α=−cos⁡αsin⁡α(x−pcos⁡α)\displaystyle y - p\sin\alpha = -\frac{\cos\alpha}{\sin\alpha}(x - p\cos\alpha)

Mul­ti­ply­ing by sin⁡α\sin\alpha and using sin⁡2α+cos⁡2α=1\sin^2\alpha + \cos^2\alpha = 1 gives xcos⁡α+ysin⁡α=px\cos\alpha + y\sin\alpha = p. (The cases sin⁡α=0\sin\alpha = 0 give ver­ti­cal lines and can be checked directly.)

Exam­ple 1

Find the line whose per­pen­dic­u­lar dis­tance from the ori­gin is 44, the per­pen­dic­u­lar mak­ing 30°30° with the pos­i­tive xx-axis.

xcos⁡30°+ysin⁡30°=4  ⟹  32x+12y=4  ⟹  3x+y=8\displaystyle x\cos 30° + y\sin 30° = 4 \implies \frac{\sqrt{3}}{2}x + \frac{1}{2}y = 4 \implies \sqrt{3}x + y = 8

Gen­eral form

Every line has an equa­tion of the form

ax+by+c=0,a and b not both zeroax + by + c = 0, \qquad a \text{ and } b \text{ not both zero}

and every such equa­tion is a straight line. From the gen­eral form:

  • Slope =−ab\displaystyle = -\frac{a}{b} (if b≠0b \neq 0; if b=0b = 0 the line is ver­ti­cal).
  • xx-inter­cept =−ca\displaystyle = -\frac{c}{a} and yy-inter­cept =−cb\displaystyle = -\frac{c}{b} (when aa, bb are non-zero).

Exam­ple 2

For 2x−3y+12=02x - 3y + 12 = 0, find the slope and inter­cepts, and write the line in slope-inter­cept and inter­cept forms.

Slope =−2−3=23\displaystyle = -\frac{2}{-3} = \frac{2}{3}. The xx-inter­cept is −122=−6\displaystyle -\frac{12}{2} = -6, and the yy-inter­cept is −12−3=4\displaystyle -\frac{12}{-3} = 4.

Slope-inter­cept form: 3y=2x+123y = 2x + 12, so y=23x+4\displaystyle y = \frac{2}{3}x + 4.

Inter­cept form: 2x−3y=−122x - 3y = -12; divid­ing by −12-12, x−6+y4=1\displaystyle \frac{x}{-6} + \frac{y}{4} = 1.

Con­vert­ing to nor­mal form

To bring ax+by+c=0ax + by + c = 0 into nor­mal form:

  1. Move the con­stant to the right: ax+by=−cax + by = -c. If −c-c is neg­a­tive, mul­ti­ply through by −1-1 so the right side is pos­i­tive (the right side must be p>0p > 0).
  2. Divide through by a2+b2\sqrt{a^2 + b^2}. The coef­fi­cients of xx and yy are then cos⁡α\cos\alpha and sin⁡α\sin\alpha, and the right side is pp.

Exam­ple 3

Write x+3y−6=0x + \sqrt{3}y - 6 = 0 in nor­mal form, and find pp and α\alpha.

x+3y=6x + \sqrt{3}y = 6, and 1+3=2\sqrt{1 + 3} = 2. Divid­ing by 22:

12x+32y=3\displaystyle \frac{1}{2}x + \frac{\sqrt{3}}{2}y = 3

So cos⁡α=12\displaystyle \cos\alpha = \frac{1}{2}, sin⁡α=32\displaystyle \sin\alpha = \frac{\sqrt{3}}{2}, giv­ing α=60°\alpha = 60°, and p=3p = 3.

Exam­ple 4

Write 3x−y+4=0\sqrt{3}x - y + 4 = 0 in nor­mal form.

3x−y=−4\sqrt{3}x - y = -4. The right side is neg­a­tive, so mul­ti­ply by −1-1: −3x+y=4-\sqrt{3}x + y = 4. Divide by 3+1=2\sqrt{3 + 1} = 2:

−32x+12y=2\displaystyle -\frac{\sqrt{3}}{2}x + \frac{1}{2}y = 2

So cos⁡α=−32\displaystyle \cos\alpha = -\frac{\sqrt{3}}{2} and sin⁡α=12\displaystyle \sin\alpha = \frac{1}{2}: α\alpha is in the sec­ond quad­rant, α=150°\alpha = 150°, and p=2p = 2.

Sym­met­ric (dis­tance) form

Result. The line through (x1,y1)(x_1, y_1) with incli­na­tion θ\theta can be writ­ten

x−x1cos⁡θ=y−y1sin⁡θ=r\displaystyle \frac{x - x_1}{\cos\theta} = \frac{y - y_1}{\sin\theta} = r

where rr is the dis­tance from (x1,y1)(x_1, y_1) to the point (x,y)(x, y), mea­sured along the line (pos­i­tive in the direc­tion of increas­ing xx when θ\theta is acute). So the point at dis­tance rr along the line is

(x1+rcos⁡θ,  y1+rsin⁡θ)(x_1 + r\cos\theta, \; y_1 + r\sin\theta)

Exam­ple 5

Find the point at a dis­tance 22 from (1,2)(1, 2) along the line of incli­na­tion 60°60°, in the direc­tion of increas­ing xx.

(1+2cos⁡60°,  2+2sin⁡60°)=(1+1,  2+3)=(2,2+3)(1 + 2\cos 60°, \; 2 + 2\sin 60°) = (1 + 1, \; 2 + \sqrt{3}) = (2, 2 + \sqrt{3})

The point at dis­tance 22 on the other side is (1−1,2−3)=(0,2−3)(1 - 1, 2 - \sqrt{3}) = (0, 2 - \sqrt{3}).

Prac­tice

  1. Find the line in nor­mal form with p=5p = 5 and α=60°\alpha = 60°, and write it in gen­eral form.
  2. Find the line with p=3p = 3 and α=135°\alpha = 135°, in gen­eral form.
  3. Write x+y−4=0x + y - 4 = 0 in nor­mal form, and find pp and α\alpha.
  4. Write 3x+y+6=0\sqrt{3}x + y + 6 = 0 in nor­mal form, and find pp and α\alpha.
  5. Write 3x+4y−15=03x + 4y - 15 = 0 in nor­mal form, and find pp, cos⁡α\cos\alpha and sin⁡α\sin\alpha.
  6. Find the slope and inter­cepts of 4x+5y−20=04x + 5y - 20 = 0 from the gen­eral-form for­mu­lae.
  7. Write 5x−2y−10=05x - 2y - 10 = 0 in slope-inter­cept form and in inter­cept form.
  8. Find the point at dis­tance 44 from (2,1)(2, 1) along the line of incli­na­tion 30°30°, in the direc­tion of increas­ing xx.
  9. Write the line y=4y = 4 in nor­mal form.
  10. Write the line x=−3x = -3 in nor­mal form.

Answers

Show answers
  1. 12x+32y=5\displaystyle \frac{1}{2}x + \frac{\sqrt{3}}{2}y = 5, that is, x+3y−10=0x + \sqrt{3}y - 10 = 0.
  2. xcos⁡135°+ysin⁡135°=3x\cos 135° + y\sin 135° = 3 gives −x2+y2=3\displaystyle -\frac{x}{\sqrt{2}} + \frac{y}{\sqrt{2}} = 3, that is, x−y+32=0x - y + 3\sqrt{2} = 0.
  3. Divide x+y=4x + y = 4 by 2\sqrt{2}: x2+y2=22\displaystyle \frac{x}{\sqrt{2}} + \frac{y}{\sqrt{2}} = 2\sqrt{2}. So α=45°\alpha = 45° and p=22p = 2\sqrt{2}.
  4. −3x−y=6-\sqrt{3}x - y = 6, divided by 22: −32x−12y=3\displaystyle -\frac{\sqrt{3}}{2}x - \frac{1}{2}y = 3. So α=210°\alpha = 210° (third quad­rant) and p=3p = 3.
  5. 35x+45y=3\displaystyle \frac{3}{5}x + \frac{4}{5}y = 3: p=3p = 3, cos⁡α=35\displaystyle \cos\alpha = \frac{3}{5}, sin⁡α=45\displaystyle \sin\alpha = \frac{4}{5}.
  6. Slope −45\displaystyle -\frac{4}{5}; xx-inter­cept 204=5\displaystyle \frac{20}{4} = 5; yy-inter­cept 205=4\displaystyle \frac{20}{5} = 4.
  7. y=52x−5\displaystyle y = \frac{5}{2}x - 5; and 5x−2y=105x - 2y = 10 divided by 1010 gives x2+y−5=1\displaystyle \frac{x}{2} + \frac{y}{-5} = 1.
  8. (2+4cos⁡30°,1+4sin⁡30°)=(2+23,3)(2 + 4\cos 30°, 1 + 4\sin 30°) = (2 + 2\sqrt{3}, 3).
  9. xcos⁡90°+ysin⁡90°=4x\cos 90° + y\sin 90° = 4: α=90°\alpha = 90°, p=4p = 4.
  10. −x=3-x = 3, that is, xcos⁡180°+ysin⁡180°=3x\cos 180° + y\sin 180° = 3: α=180°\alpha = 180°, p=3p = 3.