Various Forms of Equations of a Straight Line
Depending on the given geometric data (such as slope, intercepts, points through which it passes, or perpendicular distance from the origin), the equation of a straight line can be expressed in several distinct mathematical forms.
1. Horizontal and Vertical Lines
Horizontal Line (Parallel to x-axis)
Every point on a horizontal line at a directed distance k from the x-axis has a constant y-coordinate:
Vertical Line (Parallel to y-axis)
Every point on a vertical line at a directed distance h from the y-axis has a constant x-coordinate:
2. Point-Slope Form
The equation of a non-vertical line having slope m and passing through a given point (x0, y0) is:
3. Two-Point Form
The equation of a line passing through two distinct given points P(x1, y1) and Q(x2, y2) (where x1 ≠ x2) is:
4. Slope-Intercept Form
Case A: When y-intercept (c) is given
If a line with slope m cuts the y-axis at point (0, c), then c is the y-intercept:
Case B: When x-intercept (d) is given
If a line with slope m cuts the x-axis at point (d, 0), then d is the x-intercept:
5. Intercept Form
Suppose a line cuts off non-zero intercepts a and b on the x-axis and y-axis respectively (i.e., it passes through (a, 0) and (0, b)). Its equation is:
x/a + y/b = 1 with the coordinate axes is:
6. Normal Form (Perpendicular Form)
Let p be the length of the perpendicular (normal) drawn from the origin to the line (where p ≥ 0), and let ω be the angle that this normal makes with the positive x-axis (0 ≤ ω < 360°). The equation of the line is:
Note: In the normal form, p is strictly non-negative (p ≥ 0) because it represents a geometric distance.
7. Parametric (or Symmetric) Form
The equation of a straight line passing through a given point A(x1, y1) and making an angle θ with the positive direction of the x-axis is:
where |r| represents the algebraic distance of any variable point P(x, y) on the line from the fixed point A(x1, y1):
(x1 ± r cos θ, y1 ± r sin θ). This eliminates quadratic equations in distance problems!
Practice problems
Try each problem yourself first, then open the solution to check your working.
Problem 1. Find the equation of the line through (2, 3) whose intercepts on the two axes are equal and non-zero.
Show answer
With equal intercepts a the line is x/a + y/a = 1, i.e. x + y = a.
It passes through (2, 3), so a = 5.
Answer: x + y = 5.
Problem 2. A line through (3, 4) makes intercepts on the axes whose sum is 14. Find its equation (two lines are possible).
Show answer
Let the intercepts be a and b with a + b = 14. The line x/a + y/b = 1 passes through (3, 4): 3/a + 4/b = 1, i.e. 3b + 4a = ab.
Put a = 14 − b: 3b + 56 − 4b = 14b − b2, so b2 − 15b + 56 = 0, i.e. (b − 7)(b − 8) = 0.
b = 7 gives a = 7: x + y = 7. b = 8 gives a = 6: x/6 + y/8 = 1, i.e. 4x + 3y = 24.
Check: 3 + 4 = 7 and 4(3) + 3(4) = 24.
Answer: x + y = 7 or 4x + 3y = 24.
Problem 3. Find the equation of the line whose perpendicular distance from the origin is 5 and whose normal makes an angle of 30° with the positive x-axis.
Show answer
Normal form: x cos ω + y sin ω = p with p = 5 and ω = 30°.
x cos 30° + y sin 30° = 5 gives (√3/2)x + (1/2)y = 5, i.e. √3 x + y = 10.
Check: distance from the origin = |−10|/√(3 + 1) = 5.
Answer: √3 x + y = 10.
Saved on this device only — no account, no sign-in.