Courses
Courses for Kids
Free study material
Offline Centres
More
Store Icon
Store

General Equation of a Line in Coordinate Geometry

Reviewed by:
ffImage
hightlight icon
highlight icon
highlight icon
share icon
copy icon

Formula derivation and solved examples of general equation of a line

The concept of general equation of a line plays a key role in mathematics and is widely applicable to both real-life situations and exam scenarios. It helps in representing all types of straight lines in a plane and is essential for board exams, JEE, and Olympiad preparation. Mastering the general equation of a line allows students to solve geometry, algebra, and coordinate geometry problems quickly and with confidence.


What Is General Equation of a Line?

A general equation of a line is a way to represent any straight line on a coordinate plane using the formula Ax + By + C = 0. Here, A and B cannot both be zero, and A, B, and C are constants. You’ll find this concept applied in areas such as geometry (lines and angles), algebraic linear equations, and coordinate geometry topics like parallel and perpendicular lines.


Key Formula for General Equation of a Line

Here’s the standard formula: \( Ax + By + C = 0 \)

Where:

A, B, C = real constants
x, y = variables representing coordinates (points) on the line.

If you know two points the line passes through, or its slope and a point, you can substitute into Ax + By + C = 0 to find the line’s equation.


Cross-Disciplinary Usage

The general equation of a line is not only useful in Maths but also plays an important role in Physics (motion, optics), Computer Science (graphics, algorithms), and daily logical reasoning. Students preparing for JEE, NEET, and various board exams will see its relevance in multiple questions involving coordinate geometry, graph plotting, and analytical geometry.


Step-by-Step Illustration

  1. Suppose you have two points: (2, 3) and (4, 7). Find the general equation of the line through these points.
    Step 1: Calculate the slope (m):
    \( m = \frac{7 - 3}{4 - 2} = \frac{4}{2} = 2 \)

  2. Step 2: Use point-slope form:
    \( y - y_1 = m(x - x_1) \)
    Pick (2, 3): \( y - 3 = 2(x - 2) \)
    So, \( y - 3 = 2x - 4 \)

  3. Step 3: Rearrange to general form:
    \( y - 3 - 2x + 4 = 0 \)
    So, \( -2x + y + 1 = 0 \)
    Or, \( 2x - y - 1 = 0 \)

Special Cases for General Equation of a Line

Case Equation Description
Vertical Line x = a B = 0, line parallel to y-axis
Horizontal Line y = b A = 0, line parallel to x-axis
Through Origin Ax + By = 0 C = 0
General 3D Line Parametric equations (not Ax + By + C = 0) For 3D, two equations required

Comparison With Other Forms of a Line

Form Equation Conversion to General
Slope-Intercept \( y = mx + c \) Rearrange to \( mx - y + c = 0 \)
Point-Slope \( y - y_1 = m(x - x_1) \) Expand, rearrange terms
Intercept \( x/a + y/b = 1 \) Multiply by denominator, bring all to one side

Speed Trick or Revision Shortcut

When given two points (x₁, y₁) and (x₂, y₂), use this quick method:

  1. Use determinant formula:
    \( (y - y_1)(x_2 - x_1) = (y_2 - y_1)(x - x_1) \)
  2. Expand and rearrange terms to get \( Ax + By + C = 0 \).
  3. This method is fast and avoids direct slope calculation errors during exams.

Vedantu’s teachers often share such tricks in live sessions to boost students’ accuracy and calculation speed.


Try These Yourself

  • Find the general equation of a line passing through (1,2) and (3,6).
  • Convert \( y = -2x + 5 \) to general form.
  • Does \( 4x + 3y - 7 = 0 \) represent a line parallel to the y-axis?
  • Write the general equation for a line with slope 5 that passes through (0,0).

Frequent Errors and Misunderstandings

  • Forgetting to move all terms to one side, leaving the equation in slope-intercept or point-slope form by mistake.
  • Mixing up the sign of coefficients when rearranging.
  • Not checking if A, B, C are integers (as sometimes asked in exams).
  • Setting both A and B to zero, which does not form a valid line.

Relation to Other Concepts

The idea of general equation of a line connects closely with other line forms, cartesian coordinates, and the calculation of distance from a point to a line. Mastering this helps with more advanced topics such as intersection of lines and equations in 3D geometry.


Classroom Tip

A quick way to remember the general equation of a line: Always bring all x and y terms to one side and set the equation to zero (\( Ax + By + C = 0 \)). If you ever get confused, check your units, and signs of coefficients. Vedantu’s tutors use visual aids to help students see how different forms of a line convert to the general form during class explanations.


We explored general equation of a line—from definition, formula, and key properties to tricky mistakes and its links to other key topics. Continue practicing with Vedantu and use their tips to feel confident when solving line equation problems in your exams and competitive tests!


Related Topics on Vedantu:

FAQs on General Equation of a Line in Coordinate Geometry

1. What is the general equation of a line?

The general equation of a line in two variables is Ax + By + C = 0, where A, B, and C are constants and A and B are not both zero.

  • A and B represent the coefficients of x and y.
  • C is the constant term.
  • This form can represent all straight lines, including vertical and horizontal lines.
This equation is widely used in coordinate geometry and analytic geometry.

2. What is the formula for the general form of a linear equation?

The formula for the general form of a linear equation is Ax + By + C = 0.

  • A, B, and C are real numbers.
  • A and B cannot both be zero.
  • If B ≠ 0, the equation can be rewritten in slope-intercept form.
This form is useful for solving systems of linear equations and finding intercepts.

3. How do you convert slope-intercept form to general form?

To convert slope-intercept form to general form, rearrange the equation into Ax + By + C = 0.

  • Start with slope-intercept form: y = mx + b.
  • Move all terms to one side: y − mx − b = 0.
  • Rewrite as: mx − y + b = 0 (or multiply to remove fractions).
Example: If y = 2x + 3, then general form is 2x − y + 3 = 0.

4. How do you find the slope from the general equation of a line?

The slope of a line in general form Ax + By + C = 0 is m = −A/B, provided B ≠ 0.

  • Rearrange to slope-intercept form: By = −Ax − C.
  • Divide by B: y = (−A/B)x − C/B.
Thus, the slope is the coefficient of x, which is −A/B.

5. How do you write the general equation of a line given two points?

To write the general equation from two points, first find the slope and then rearrange into Ax + By + C = 0.

  • Find slope: m = (y₂ − y₁)/(x₂ − x₁).
  • Use point-slope form: y − y₁ = m(x − x₁).
  • Simplify and move all terms to one side.
Example: Through (1,2) and (3,6), slope = 2, so equation becomes 2x − y = 0.

6. What is the difference between general form and slope-intercept form?

The difference is that general form is Ax + By + C = 0, while slope-intercept form is y = mx + b.

  • General form represents all lines, including vertical lines.
  • Slope-intercept form clearly shows slope (m) and y-intercept (b).
  • Vertical lines cannot be written as y = mx + b but can be written as Ax + By + C = 0.
Both forms describe linear equations in coordinate geometry.

7. Can the general equation of a line represent a vertical line?

Yes, the general equation Ax + By + C = 0 can represent a vertical line when B = 0.

  • If B = 0, the equation becomes Ax + C = 0.
  • Solving gives x = −C/A.
This represents a vertical line parallel to the y-axis, which cannot be written in slope-intercept form.

8. How do you find the x-intercept and y-intercept from the general form?

To find intercepts from Ax + By + C = 0, set one variable to zero at a time.

  • x-intercept: Set y = 0, then solve Ax + C = 0.
  • y-intercept: Set x = 0, then solve By + C = 0.
Example: For 2x + 3y − 6 = 0, x-intercept = 3, y-intercept = 2.

9. What are the conditions for two lines to be parallel in general form?

Two lines in general form are parallel if their slopes are equal, meaning A₁/B₁ = A₂/B₂.

  • Compare equations A₁x + B₁y + C₁ = 0 and A₂x + B₂y + C₂ = 0.
  • If A₁/B₁ = A₂/B₂ and C ratios differ, lines are parallel.
This ensures both lines have the same slope but different intercepts.

10. What are common mistakes when writing the general equation of a line?

Common mistakes include incorrect sign handling and not arranging the equation as Ax + By + C = 0.

  • Forgetting to move all terms to one side.
  • Leaving fractions without simplification.
  • Allowing both A and B to be zero (which is invalid).
Always check that the equation is simplified and written in proper general form.