This lesson gives the remaining standard forms of a line: slope-intercept, intercept, normal (perpendicular), symmetric and parametric forms, together with the formulas for the distance of a point from a line.

Intercepts

If a line cuts the x-axis at A(a,0)A(a, 0) and the y-axis at B(0,b)B(0, b), then aa is its x-intercept and bb its y-intercept. Intercepts carry sign: a line cutting the y-axis at (0,−5)(0, -5) has y-intercept −5-5.

Slope-intercept form

The line with slope mm and y-intercept cc is

y=mx+c.y = mx + c.

  1. The line with slope mm and x-intercept aa is y=m(x−a)y = m(x - a).
  2. A line through the origin has the form y=mxy = mx.
  3. The lines bisecting the angles between the coordinate axes are y=xy = x (inclination 45∘45^\circ) and y=−xy = -x (inclination 135∘135^\circ).

Intercept form

The line with x-intercept aa and y-intercept bb is

xa+yb=1.\displaystyle \frac{x}{a} + \frac{y}{b} = 1.

  1. The intercepts of ax+by+c=0ax + by + c = 0 are −ca\displaystyle -\dfrac{c}{a} and −cb\displaystyle -\dfrac{c}{b}.
  2. The triangle cut off by xa+yb=1\displaystyle \dfrac{x}{a} + \dfrac{y}{b} = 1 from the axes has area 12∣ab∣\displaystyle \dfrac{1}{2}|ab|, half the product of the intercepts.
  3. The triangle cut off by ax+by+c=0ax + by + c = 0 from the axes has area c22∣ab∣\displaystyle \dfrac{c^2}{2|ab|}.

Normal form

If pp is the length of the perpendicular from the origin to a line, and this perpendicular (the normal) makes an angle α\alpha with the positive x-axis measured anticlockwise, then the line is

xcos⁡α+ysin⁡α=p,0≤α<2π, p≥0.x\cos\alpha + y\sin\alpha = p, \quad 0 \le \alpha < 2\pi,\ p \ge 0.

The foot of the perpendicular is M(pcos⁡α,psin⁡α)M(p\cos\alpha, p\sin\alpha). Since α\alpha is the direction of the normal, it can point into any quadrant, which is why its range is [0,2π)[0, 2\pi). To bring ax+by+c=0ax + by + c = 0 to normal form, move the constant to the right so it is positive, then divide by a2+b2\sqrt{a^2 + b^2}.

Symmetric form

The line through (x1,y1)(x_1, y_1) with inclination θ\theta is

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

Parametric form

Let P(x,y)P(x, y) be any point on the line through the fixed point A(x1,y1)A(x_1, y_1) with inclination θ\theta. Then

x=x1+rcos⁡θ,y=y1+rsin⁡θ,x = x_1 + r\cos\theta, \qquad y = y_1 + r\sin\theta,

where ∣r∣=PA|r| = PA and rr is a parameter. These are the parametric equations of the line.

  1. The points on the line at distance rr from AA are (x1,y1)±r(cos⁡θ,sin⁡θ)(x_1, y_1) \pm r(\cos\theta, \sin\theta): the fixed point plus or minus the distance times the direction (cos⁡θ,sin⁡θ)(\cos\theta, \sin\theta).
  2. The distance of A(x1,y1)A(x_1, y_1) from the line ax+by+c=0ax + by + c = 0, measured along a line of inclination θ\theta, is

∣ax1+by1+cacos⁡θ+bsin⁡θ∣.\displaystyle \left|\frac{ax_1 + by_1 + c}{a\cos\theta + b\sin\theta}\right|.

This comes from substituting the parametric point into ax+by+c=0ax + by + c = 0 and solving for rr.

Perpendicular distances

  1. The perpendicular distance from P(x1,y1)P(x_1, y_1) to ax+by+c=0ax + by + c = 0 is ∣ax1+by1+c∣a2+b2\displaystyle \dfrac{|ax_1 + by_1 + c|}{\sqrt{a^2 + b^2}}.
  2. The perpendicular distance from the origin to ax+by+c=0ax + by + c = 0 is ∣c∣a2+b2\displaystyle \dfrac{|c|}{\sqrt{a^2 + b^2}}.
  3. The distance between the parallel lines ax+by+c1=0ax + by + c_1 = 0 and ax+by+c2=0ax + by + c_2 = 0 is ∣c1−c2∣a2+b2\displaystyle \dfrac{|c_1 - c_2|}{\sqrt{a^2 + b^2}}.

Before using the third formula, make sure the coefficients of xx and yy are the same in both lines.

Example 1

Find the intercepts of 3x+4y−12=03x + 4y - 12 = 0 and the area it cuts off from the axes.

The intercepts are 123=4\displaystyle \dfrac{12}{3} = 4 and 124=3\displaystyle \dfrac{12}{4} = 3. The area is 12⋅4⋅3=6\displaystyle \dfrac{1}{2}\cdot 4\cdot 3 = 6, agreeing with c22∣ab∣=14424=6\displaystyle \dfrac{c^2}{2|ab|} = \dfrac{144}{24} = 6.

Example 2

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

Move the constant: x+3y=4x + \sqrt{3}y = 4. Divide by 1+3=2\sqrt{1 + 3} = 2:

12x+32y=2,that isxcos⁡60∘+ysin⁡60∘=2.\displaystyle \frac{1}{2}x + \frac{\sqrt{3}}{2}y = 2, \quad\text{that is}\quad x\cos 60^\circ + y\sin 60^\circ = 2.

So p=2p = 2 and α=60∘\alpha = 60^\circ.

Example 3

Write x−y+2=0x - y + 2 = 0 in normal form.

Move the constant so it is positive: −x+y=2-x + y = 2. Divide by 2\sqrt{2}: −12x+12y=2\displaystyle -\dfrac{1}{\sqrt{2}}x + \dfrac{1}{\sqrt{2}}y = \sqrt{2}. Here cos⁡α=−12\displaystyle \cos\alpha = -\dfrac{1}{\sqrt{2}} and sin⁡α=12\displaystyle \sin\alpha = \dfrac{1}{\sqrt{2}}, so α=135∘\alpha = 135^\circ and p=2p = \sqrt{2}.

Example 4

A line through (1,2)(1, 2) has inclination θ\theta with tan⁡θ=34\displaystyle \tan\theta = \dfrac{3}{4}. Find the points on it at distance 55 from (1,2)(1, 2).

cos⁡θ=45\displaystyle \cos\theta = \dfrac{4}{5}, sin⁡θ=35\displaystyle \sin\theta = \dfrac{3}{5}, so the points are (1,2)±5(45,35)\displaystyle (1, 2) \pm 5\left(\dfrac{4}{5}, \dfrac{3}{5}\right), that is (5,5)(5, 5) and (−3,−1)(-3, -1).

Example 5

Find the distance of (2,3)(2, 3) from 3x+4y−8=03x + 4y - 8 = 0, and the distance between 3x+4y−8=03x + 4y - 8 = 0 and 3x+4y+7=03x + 4y + 7 = 0.

∣6+12−8∣5=2,∣−8−7∣5=3\displaystyle \frac{|6 + 12 - 8|}{5} = 2, \qquad \frac{|-8 - 7|}{5} = 3

Practice

  1. Find the line with slope 22 and y-intercept −3-3.
  2. Find the line with x-intercept 33 and y-intercept −2-2.
  3. Find the intercepts of 2x−5y+10=02x - 5y + 10 = 0.
  4. Find the area cut off from the axes by 2x−5y+10=02x - 5y + 10 = 0.
  5. Write 3x+y=8\sqrt{3}x + y = 8 in normal form and state pp and α\alpha.
  6. Write x+y+2=0x + y + 2 = 0 in normal form and state pp and α\alpha.
  7. Find the distance of (1,−2)(1, -2) from 5x−12y+3=05x - 12y + 3 = 0.
  8. Find the distance between 6x+8y−5=06x + 8y - 5 = 0 and 3x+4y+5=03x + 4y + 5 = 0.
  9. Find the points on the line through (2,1)(2, 1) with inclination 45∘45^\circ at distance 2\sqrt{2} from (2,1)(2, 1).

Answers

Show answers
  1. y=2x−3y = 2x - 3
  2. x3−y2=1\displaystyle \dfrac{x}{3} - \dfrac{y}{2} = 1, that is 2x−3y=62x - 3y = 6
  3. x-intercept −5-5, y-intercept 22
  4. 1002⋅10=5\displaystyle \dfrac{100}{2\cdot 10} = 5
  5. Dividing by 22: xcos⁡30∘+ysin⁡30∘=4x\cos 30^\circ + y\sin 30^\circ = 4, so p=4p = 4 and α=30∘\alpha = 30^\circ
  6. −x−y=2-x - y = 2; dividing by 2\sqrt{2}: xcos⁡225∘+ysin⁡225∘=2x\cos 225^\circ + y\sin 225^\circ = \sqrt{2}, so p=2p = \sqrt{2} and α=225∘\alpha = 225^\circ
  7. ∣5+24+3∣13=3213\displaystyle \dfrac{|5 + 24 + 3|}{13} = \dfrac{32}{13}
  8. Write the second as 6x+8y+10=06x + 8y + 10 = 0: ∣−5−10∣10=32\displaystyle \dfrac{|-5 - 10|}{10} = \dfrac{3}{2}
  9. (2,1)±2(12,12)\displaystyle (2, 1) \pm \sqrt{2}\left(\dfrac{1}{\sqrt{2}}, \dfrac{1}{\sqrt{2}}\right), that is (3,2)(3, 2) and (1,0)(1, 0)