General Equation of a Line: Forms and Conversions Explained
The general equation of a line is ax + by + c = 0, where a, b and c are constants and a and b are not both zero. Every straight line on the plane — vertical, horizontal or slanted — can be written in this single form.
It matters because it is the universal container: all the special forms (slope-intercept, intercept, normal, two-point) are just rearrangements of ax + by + c = 0. Computer programs, geometry proofs and exam solutions all prefer it because one set of rules then handles every line, with no special cases for vertical or horizontal lines.
Key Concepts
- Coefficients a, b, c: fixed numbers that define the line. Multiplying all three by the same non-zero number gives the same line (e.g. 2x + 4y − 6 = 0 is x + 2y − 3 = 0).
- Not both zero: if a = b = 0, the equation collapses to c = 0, which is either nothing or the whole plane — not a line.
- Reading slope and intercepts: slope m = −a/b (when b ≠ 0), x-intercept = −c/a, y-intercept = −c/b.
- Vertical and horizontal: x = k is the general form with b = 0; y = k has a = 0.
- Units: a and b scale the coordinates; c shifts the line. Their units depend on the axes.
Formulas
- General form: ax + by + c = 0, with (a, b) ≠ (0, 0).
- To slope-intercept: y = (−a/b)x + (−c/b), valid when b ≠ 0.
- To intercept form: x/(−c/a) + y/(−c/b) = 1, valid when a, b, c are all non-zero.
- To normal form: divide by ±√(a² + b²), choosing the sign to make the constant term negative.
Assumptions: a and b not both zero. Limits: the general form does not directly show the slope or intercepts — you must convert to read them off, and each conversion has its own non-zero conditions.
Worked Example
Convert 2x − 5y + 10 = 0 into slope-intercept and intercept forms, and read off the slope.
- Slope-intercept: move terms to get −5y = −2x − 10, then divide by −5: y = (2/5)x + 2.
- So the slope is m = 2/5 (check: −a/b = −2/(−5) = 2/5) and the y-intercept is 2.
- Intercept form: rewrite as 2x − 5y = −10, then divide by −10: x/(−5) + y/2 = 1, i.e. −x/5 + y/2 = 1.
- So the x-intercept is −5 and the y-intercept is 2.
- Verify: does (−5, 0) satisfy the original? 2(−5) − 0 + 10 = 0. Yes. And (0, 2): 0 − 10 + 10 = 0. Yes.
Common Misconceptions
- "2x + 4y − 6 = 0 and x + 2y − 3 = 0 are different lines." They are the same line — a common non-zero factor changes nothing.
- "The slope is a/b." The slope is −a/b; forgetting the minus sign is one of the most common errors.
- "General form can't handle vertical lines." It handles them best of all: x = 5 is just 1·x + 0·y − 5 = 0.
Real-World Applications
- Graphics libraries store every line as (a, b, c) because one code path then draws all orientations.
- Linear programming expresses every constraint as ax + by + c ≤ 0 or ≥ 0.
- Machine-learning classifiers (like the perceptron) separate data with lines in general form.
- Navigation systems test which side of a boundary line a position lies on using the sign of ax + by + c.
The general equation ax + by + c = 0 is the one form that fits every line, and every other form converts out of it mechanically. Remember slope = −a/b, intercepts = −c/a and −c/b, and you can move between forms without memorising each one separately.
Related blogs
- Cartesian Coordinate System: Explained with Examples
- Distance Formula: Explained with Examples, Notes and FAQs
- Section Formula: Internal and External Division Explained
- Midpoint Formula Explained: Find Any Middle Point Easily
- Centroid Incentre and Orthocentre: Explained with Examples
- Area of Triangle and Quadrilateral: Formulas