Every straight line can be written as a x + b y + c = 0 ax + by + c = 0 a x + b y + c = 0 , the general form . This lesson shows how to read the slope and intercepts from it and how to convert it into the other forms. It also introduces two more forms: the normal form , which describes a line by its distance from the origin and the direction of the perpendicular to it, and the symmetric (distance) form , which locates the points on a line at a given distance from a fixed point.
Draw the perpendicular from the origin O O O to the line, meeting it at N N N . Let p = O N p = ON p = O N be the length of this perpendicular (p > 0 p > 0 p > 0 ), and let α \alpha α be the angle that O N ON O N makes with the positive x x x -axis, measured anticlockwise (0 ° ≤ α < 360 ° 0° \leq \alpha < 360° 0° ≤ α < 360° ).
Result. The equation of the line is
x cos α + y sin α = p x\cos\alpha + y\sin\alpha = p x cos α + y sin α = p
Why. The point N N N is ( p cos α , p sin α ) (p\cos\alpha, p\sin\alpha) ( p cos α , p sin α ) , and the slope of O N ON O N is tan α \tan\alpha tan α . The line is perpendicular to O N ON O N , so its slope is − cos α sin α \displaystyle -\frac{\cos\alpha}{\sin\alpha} − sin α cos α . Through N N N :
y − p sin α = − cos α sin α ( x − p cos α ) \displaystyle y - p\sin\alpha = -\frac{\cos\alpha}{\sin\alpha}(x - p\cos\alpha) y − p sin α = − sin α cos α ( x − p cos α )
Multiplying by sin α \sin\alpha sin α and using sin 2 α + cos 2 α = 1 \sin^2\alpha + \cos^2\alpha = 1 sin 2 α + cos 2 α = 1 gives x cos α + y sin α = p x\cos\alpha + y\sin\alpha = p x cos α + y sin α = p . (The cases sin α = 0 \sin\alpha = 0 sin α = 0 give vertical lines and can be checked directly.)
Example 1#
Find the line whose perpendicular distance from the origin is 4 4 4 , the perpendicular making 30 ° 30° 30° with the positive x x x -axis.
x cos 30 ° + y sin 30 ° = 4 ⟹ 3 2 x + 1 2 y = 4 ⟹ 3 x + 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 x cos 30° + y sin 30° = 4 ⟹ 2 3 x + 2 1 y = 4 ⟹ 3 x + y = 8
Every line has an equation of the form
a x + b y + c = 0 , a and b not both zero ax + by + c = 0, \qquad a \text{ and } b \text{ not both zero} a x + b y + c = 0 , a and b not both zero
and every such equation is a straight line. From the general form:
Slope = − a b \displaystyle = -\frac{a}{b} = − b a (if b ≠ 0 b \neq 0 b = 0 ; if b = 0 b = 0 b = 0 the line is vertical).
x x x -intercept = − c a \displaystyle = -\frac{c}{a} = − a c and y y y -intercept = − c b \displaystyle = -\frac{c}{b} = − b c (when a a a , b b b are non-zero).
Example 2#
For 2 x − 3 y + 12 = 0 2x - 3y + 12 = 0 2 x − 3 y + 12 = 0 , find the slope and intercepts, and write the line in slope-intercept and intercept forms.
Slope = − 2 − 3 = 2 3 \displaystyle = -\frac{2}{-3} = \frac{2}{3} = − − 3 2 = 3 2 . The x x x -intercept is − 12 2 = − 6 \displaystyle -\frac{12}{2} = -6 − 2 12 = − 6 , and the y y y -intercept is − 12 − 3 = 4 \displaystyle -\frac{12}{-3} = 4 − − 3 12 = 4 .
Slope-intercept form: 3 y = 2 x + 12 3y = 2x + 12 3 y = 2 x + 12 , so y = 2 3 x + 4 \displaystyle y = \frac{2}{3}x + 4 y = 3 2 x + 4 .
Intercept form: 2 x − 3 y = − 12 2x - 3y = -12 2 x − 3 y = − 12 ; dividing by − 12 -12 − 12 , x − 6 + y 4 = 1 \displaystyle \frac{x}{-6} + \frac{y}{4} = 1 − 6 x + 4 y = 1 .
To bring a x + b y + c = 0 ax + by + c = 0 a x + b y + c = 0 into normal form:
Move the constant to the right: a x + b y = − c ax + by = -c a x + b y = − c . If − c -c − c is negative, multiply through by − 1 -1 − 1 so the right side is positive (the right side must be p > 0 p > 0 p > 0 ).
Divide through by a 2 + b 2 \sqrt{a^2 + b^2} a 2 + b 2 . The coefficients of x x x and y y y are then cos α \cos\alpha cos α and sin α \sin\alpha sin α , and the right side is p p p .
Example 3#
Write x + 3 y − 6 = 0 x + \sqrt{3}y - 6 = 0 x + 3 y − 6 = 0 in normal form, and find p p p and α \alpha α .
x + 3 y = 6 x + \sqrt{3}y = 6 x + 3 y = 6 , and 1 + 3 = 2 \sqrt{1 + 3} = 2 1 + 3 = 2 . Dividing by 2 2 2 :
1 2 x + 3 2 y = 3 \displaystyle \frac{1}{2}x + \frac{\sqrt{3}}{2}y = 3 2 1 x + 2 3 y = 3
So cos α = 1 2 \displaystyle \cos\alpha = \frac{1}{2} cos α = 2 1 , sin α = 3 2 \displaystyle \sin\alpha = \frac{\sqrt{3}}{2} sin α = 2 3 , giving α = 60 ° \alpha = 60° α = 60° , and p = 3 p = 3 p = 3 .
Example 4#
Write 3 x − y + 4 = 0 \sqrt{3}x - y + 4 = 0 3 x − y + 4 = 0 in normal form.
3 x − y = − 4 \sqrt{3}x - y = -4 3 x − y = − 4 . The right side is negative, so multiply by − 1 -1 − 1 : − 3 x + y = 4 -\sqrt{3}x + y = 4 − 3 x + y = 4 . Divide by 3 + 1 = 2 \sqrt{3 + 1} = 2 3 + 1 = 2 :
− 3 2 x + 1 2 y = 2 \displaystyle -\frac{\sqrt{3}}{2}x + \frac{1}{2}y = 2 − 2 3 x + 2 1 y = 2
So cos α = − 3 2 \displaystyle \cos\alpha = -\frac{\sqrt{3}}{2} cos α = − 2 3 and sin α = 1 2 \displaystyle \sin\alpha = \frac{1}{2} sin α = 2 1 : α \alpha α is in the second quadrant, α = 150 ° \alpha = 150° α = 150° , and p = 2 p = 2 p = 2 .
Result. The line through ( x 1 , y 1 ) (x_1, y_1) ( x 1 , y 1 ) with inclination θ \theta θ can be written
x − x 1 cos θ = y − y 1 sin θ = r \displaystyle \frac{x - x_1}{\cos\theta} = \frac{y - y_1}{\sin\theta} = r cos θ x − x 1 = sin θ y − y 1 = r
where r r r is the distance from ( x 1 , y 1 ) (x_1, y_1) ( x 1 , y 1 ) to the point ( x , y ) (x, y) ( x , y ) , measured along the line (positive in the direction of increasing x x x when θ \theta θ is acute). So the point at distance r r r along the line is
( x 1 + r cos θ , y 1 + r sin θ ) (x_1 + r\cos\theta, \; y_1 + r\sin\theta) ( x 1 + r cos θ , y 1 + r sin θ )
Example 5#
Find the point at a distance 2 2 2 from ( 1 , 2 ) (1, 2) ( 1 , 2 ) along the line of inclination 60 ° 60° 60° , in the direction of increasing x x x .
( 1 + 2 cos 60 ° , 2 + 2 sin 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}) ( 1 + 2 cos 60° , 2 + 2 sin 60° ) = ( 1 + 1 , 2 + 3 ) = ( 2 , 2 + 3 )
The point at distance 2 2 2 on the other side is ( 1 − 1 , 2 − 3 ) = ( 0 , 2 − 3 ) (1 - 1, 2 - \sqrt{3}) = (0, 2 - \sqrt{3}) ( 1 − 1 , 2 − 3 ) = ( 0 , 2 − 3 ) .
Practice#
Find the line in normal form with p = 5 p = 5 p = 5 and α = 60 ° \alpha = 60° α = 60° , and write it in general form.
Find the line with p = 3 p = 3 p = 3 and α = 135 ° \alpha = 135° α = 135° , in general form.
Write x + y − 4 = 0 x + y - 4 = 0 x + y − 4 = 0 in normal form, and find p p p and α \alpha α .
Write 3 x + y + 6 = 0 \sqrt{3}x + y + 6 = 0 3 x + y + 6 = 0 in normal form, and find p p p and α \alpha α .
Write 3 x + 4 y − 15 = 0 3x + 4y - 15 = 0 3 x + 4 y − 15 = 0 in normal form, and find p p p , cos α \cos\alpha cos α and sin α \sin\alpha sin α .
Find the slope and intercepts of 4 x + 5 y − 20 = 0 4x + 5y - 20 = 0 4 x + 5 y − 20 = 0 from the general-form formulae.
Write 5 x − 2 y − 10 = 0 5x - 2y - 10 = 0 5 x − 2 y − 10 = 0 in slope-intercept form and in intercept form.
Find the point at distance 4 4 4 from ( 2 , 1 ) (2, 1) ( 2 , 1 ) along the line of inclination 30 ° 30° 30° , in the direction of increasing x x x .
Write the line y = 4 y = 4 y = 4 in normal form.
Write the line x = − 3 x = -3 x = − 3 in normal form.
Answers#
Show answers
1 2 x + 3 2 y = 5 \displaystyle \frac{1}{2}x + \frac{\sqrt{3}}{2}y = 5 2 1 x + 2 3 y = 5 , that is, x + 3 y − 10 = 0 x + \sqrt{3}y - 10 = 0 x + 3 y − 10 = 0 .
x cos 135 ° + y sin 135 ° = 3 x\cos 135° + y\sin 135° = 3 x cos 135° + y sin 135° = 3 gives − x 2 + y 2 = 3 \displaystyle -\frac{x}{\sqrt{2}} + \frac{y}{\sqrt{2}} = 3 − 2 x + 2 y = 3 , that is, x − y + 3 2 = 0 x - y + 3\sqrt{2} = 0 x − y + 3 2 = 0 .
Divide x + y = 4 x + y = 4 x + y = 4 by 2 \sqrt{2} 2 : x 2 + y 2 = 2 2 \displaystyle \frac{x}{\sqrt{2}} + \frac{y}{\sqrt{2}} = 2\sqrt{2} 2 x + 2 y = 2 2 . So α = 45 ° \alpha = 45° α = 45° and p = 2 2 p = 2\sqrt{2} p = 2 2 .
− 3 x − y = 6 -\sqrt{3}x - y = 6 − 3 x − y = 6 , divided by 2 2 2 : − 3 2 x − 1 2 y = 3 \displaystyle -\frac{\sqrt{3}}{2}x - \frac{1}{2}y = 3 − 2 3 x − 2 1 y = 3 . So α = 210 ° \alpha = 210° α = 210° (third quadrant) and p = 3 p = 3 p = 3 .
3 5 x + 4 5 y = 3 \displaystyle \frac{3}{5}x + \frac{4}{5}y = 3 5 3 x + 5 4 y = 3 : p = 3 p = 3 p = 3 , cos α = 3 5 \displaystyle \cos\alpha = \frac{3}{5} cos α = 5 3 , sin α = 4 5 \displaystyle \sin\alpha = \frac{4}{5} sin α = 5 4 .
Slope − 4 5 \displaystyle -\frac{4}{5} − 5 4 ; x x x -intercept 20 4 = 5 \displaystyle \frac{20}{4} = 5 4 20 = 5 ; y y y -intercept 20 5 = 4 \displaystyle \frac{20}{5} = 4 5 20 = 4 .
y = 5 2 x − 5 \displaystyle y = \frac{5}{2}x - 5 y = 2 5 x − 5 ; and 5 x − 2 y = 10 5x - 2y = 10 5 x − 2 y = 10 divided by 10 10 10 gives x 2 + y − 5 = 1 \displaystyle \frac{x}{2} + \frac{y}{-5} = 1 2 x + − 5 y = 1 .
( 2 + 4 cos 30 ° , 1 + 4 sin 30 ° ) = ( 2 + 2 3 , 3 ) (2 + 4\cos 30°, 1 + 4\sin 30°) = (2 + 2\sqrt{3}, 3) ( 2 + 4 cos 30° , 1 + 4 sin 30° ) = ( 2 + 2 3 , 3 ) .
x cos 90 ° + y sin 90 ° = 4 x\cos 90° + y\sin 90° = 4 x cos 90° + y sin 90° = 4 : α = 90 ° \alpha = 90° α = 90° , p = 4 p = 4 p = 4 .
− x = 3 -x = 3 − x = 3 , that is, x cos 180 ° + y sin 180 ° = 3 x\cos 180° + y\sin 180° = 3 x cos 180° + y sin 180° = 3 : α = 180 ° \alpha = 180° α = 180° , p = 3 p = 3 p = 3 .