In short

The general equation of a straight line is Ax + By + C = 0, where A, B, C are real numbers with A and B not both zero. Every other form of the line equation — slope-intercept, point-slope, intercept, normal — is a special case of this one. The parametric (distance) form rewrites the same line using a running parameter r that measures signed distance from a fixed point along the line.

A railway track runs dead straight from one town to the next. You stand at the station and look along the track. Two things define that track completely: where it starts and which direction it goes. But there are many different ways to describe the same track — you could give its slope and where it crosses a river, or two points it passes through, or its angle with the horizon and how far it sits from a landmark.

In the previous article on forms of a line, you met several of these descriptions: slope-intercept (y = mx + c), point-slope, two-point, intercept, and normal form. Each is useful in its own situation. But each also has a blind spot. Slope-intercept breaks for vertical lines (slope is undefined). Intercept form fails when the line passes through the origin (both intercepts are zero). Normal form needs you to know the perpendicular distance from the origin.

There is one form that handles every line — vertical, horizontal, through the origin, at any angle — with no exceptions. It is the general equation.

The general equation

General equation of a line

A straight line in the Cartesian plane is any set of points (x, y) satisfying

Ax + By + C = 0

where A, B, C are real constants and A, B are not both zero.

That last condition — A and B not both zero — is doing real work. If A = B = 0, the equation becomes C = 0, which is either always true (every point in the plane) or always false (no point). Neither of those is a line.

When B \neq 0, you can solve for y:

y = -\frac{A}{B}\,x - \frac{C}{B}

This is the slope-intercept form y = mx + c with m = -A/B and c = -C/B. The slope is hiding inside the ratio of the two coefficients.

When B = 0 (and A \neq 0), the equation becomes Ax + C = 0, which gives x = -C/A — a vertical line. The general form handles vertical lines with no special syntax, no "undefined slope" exception. That is the whole point.

Angle of inclination

Before converting between forms, there is a more primitive quantity that controls a line's direction: its angle of inclination.

Angle of inclination

The angle of inclination \theta of a line is the angle it makes with the positive direction of the x-axis, measured counter-clockwise. By convention, 0° \leq \theta < 180°.

A horizontal line has \theta = 0°. A line tilted upward to the right at 45° has \theta = 45°. A vertical line has \theta = 90°. A line tilted downward to the right has \theta between 90° and 180°.

The slope m and the inclination \theta are related by

m = \tan\theta

For a vertical line, \theta = 90° and \tan 90° is undefined — which is exactly why slope-intercept form breaks for vertical lines. The angle of inclination is the deeper quantity; slope is its tangent.

Indian railways are a good way to visualise this. A track running due east has inclination . A track heading northeast at 45° rises one unit for every unit it moves to the right — slope 1. A track running due north has inclination 90° — it is a vertical line on the map, and no finite slope can describe it. The inclination captures all of these cases in a single, well-defined angle.

Two lines with different angles of inclination. The black line has $\theta = 45°$ (slope $= \tan 45° = 1$). The red line slopes downward: $\theta \approx 153.4°$ (slope $= \tan 153.4° = -0.5$). The inclination is always measured from the positive x-axis, counter-clockwise.

Given the general equation Ax + By + C = 0 (with B \neq 0), the inclination is

\theta = \begin{cases} \arctan\!\left(-\dfrac{A}{B}\right) & \text{if } -A/B \geq 0 \\[6pt] 180° + \arctan\!\left(-\dfrac{A}{B}\right) & \text{if } -A/B < 0 \end{cases}

The two cases ensure \theta lands in the range [0°, 180°). If B = 0, the line is vertical and \theta = 90°.

Converting between forms

Every named form of the line equation is a rearrangement of Ax + By + C = 0 with specific choices of A, B, C. Here is a reference table.

Form Equation A B C
Slope-intercept y = mx + c m -1 c
Point-slope y - y_1 = m(x - x_1) m -1 y_1 - mx_1
Intercept \dfrac{x}{a} + \dfrac{y}{b} = 1 1/a 1/b -1
Normal x\cos\alpha + y\sin\alpha = p \cos\alpha \sin\alpha -p
Vertical x = k 1 0 -k

The conversion is always mechanical: rearrange everything to one side so that the equation reads (\ldots) = 0, and read off the coefficients.

From general to slope-intercept. Given 3x + 4y - 12 = 0, solve for y:

4y = -3x + 12 \quad\Longrightarrow\quad y = -\frac{3}{4}\,x + 3

The slope is -3/4 and the y-intercept is 3.

From general to intercept form. The same equation 3x + 4y - 12 = 0 can be rewritten as 3x + 4y = 12. Divide both sides by 12:

\frac{x}{4} + \frac{y}{3} = 1

The x-intercept is 4 and the y-intercept is 3.

From general to normal form. Start with Ax + By + C = 0, rewrite as Ax + By = -C. Divide both sides by \sqrt{A^2 + B^2} (choosing sign so the right side is non-negative):

\frac{A}{\sqrt{A^2 + B^2}}\,x + \frac{B}{\sqrt{A^2 + B^2}}\,y = \frac{-C}{\sqrt{A^2 + B^2}}

The coefficients of x and y are now \cos\alpha and \sin\alpha for some angle \alpha, and the right side is the perpendicular distance p from the origin. Why \cos\alpha and \sin\alpha? Because \left(\frac{A}{\sqrt{A^2+B^2}}\right)^2 + \left(\frac{B}{\sqrt{A^2+B^2}}\right)^2 = 1, so the pair lies on the unit circle and can be written as (\cos\alpha, \sin\alpha).

For the line 3x + 4y - 12 = 0: rewrite as 3x + 4y = 12, divide by \sqrt{9 + 16} = 5:

\frac{3}{5}\,x + \frac{4}{5}\,y = \frac{12}{5}

Here \cos\alpha = 3/5, \sin\alpha = 4/5 (so \alpha \approx 53.13°), and p = 12/5 = 2.4. The perpendicular from the origin to the line has length 2.4 and makes an angle of about 53° with the x-axis.

The line $3x + 4y - 12 = 0$ shown in three ways at once. It cuts the x-axis at $4$ (intercept form), cuts the y-axis at $3$ (slope-intercept form), and sits at perpendicular distance $p = 12/\sqrt{9+16} = 12/5 = 2.4$ from the origin (normal form). The red dashed segment is the perpendicular from the origin to the line, landing at the foot $(1.92, 1.56)$.

Why the general form matters

You might ask: if slope-intercept is simpler, why bother with Ax + By + C = 0?

Three reasons. First, universality — it handles vertical lines, lines through the origin, and every other case uniformly. Second, the distance formula — the formula for the distance from a point to a line uses A, B, C directly (you will see this in Distance Formulas). Third, systems of equations — when you solve two simultaneous linear equations, the algebra is cleanest in general form, because you can add and subtract the equations without rearranging.

The parametric form (distance form)

All the forms above describe a line as a condition that a point (x, y) must satisfy. The parametric form takes a different approach: it describes a line as a path — a recipe for generating every point on the line by walking along it from a starting position.

Parametric form (distance form)

If a line passes through a fixed point (x_1, y_1) and has inclination \theta, then any point (x, y) on the line can be written as

\frac{x - x_1}{\cos\theta} = \frac{y - y_1}{\sin\theta} = r

where r is the signed distance from (x_1, y_1) to (x, y).

Equivalently, you can write this as two separate equations:

x = x_1 + r\cos\theta, \qquad y = y_1 + r\sin\theta

The parameter r runs from -\infty to +\infty. When r > 0, you are walking in the direction of inclination \theta. When r < 0, you are walking in the opposite direction. When r = 0, you are standing at the starting point (x_1, y_1).

Why "distance form"? Because |r| is literally the distance from (x_1, y_1) to (x, y). You can verify this: the distance between those two points is

\sqrt{(x - x_1)^2 + (y - y_1)^2} = \sqrt{(r\cos\theta)^2 + (r\sin\theta)^2} = |r|\sqrt{\cos^2\theta + \sin^2\theta} = |r|

Why: \cos^2\theta + \sin^2\theta = 1 is the Pythagorean identity, so the square root collapses to |r|.

This form is powerful when a problem says something like "find the point on the line that is a distance d from a given point." In slope-intercept form, you would need to set up a distance equation and solve a quadratic. In parametric form, you just set r = \pm d and read off the coordinates.

A line through $P(1, 0.58)$ with inclination $\theta = 30°$. The parameter $r$ measures distance along the line from $P$. At $r \approx 2.31$, you reach the point $(3, 1.73)$; at $r \approx 4.62$, you reach $(5, 2.89)$. Each step of $r$ takes you further along the track by exactly that many units of length.

Deriving the parametric form

Start with a point P = (x_1, y_1) on the line and another point Q = (x, y) on the same line, at distance |r| from P. The direction from P to Q is along the line, which has inclination \theta.

The horizontal displacement from P to Q is the distance times \cos\theta:

x - x_1 = r\cos\theta

Why: if you walk a distance r at angle \theta to the horizontal, the horizontal component is r\cos\theta. The sign of r handles direction automatically.

The vertical displacement is the distance times \sin\theta:

y - y_1 = r\sin\theta

Why: similarly, the vertical component of walking distance r at angle \theta is r\sin\theta.

Dividing one by the other:

\frac{x - x_1}{\cos\theta} = \frac{y - y_1}{\sin\theta} = r

This is the parametric form. The derivation is nothing more than resolving a displacement vector into its horizontal and vertical components — the same triangle you have been drawing since you first met trigonometry.

Worked examples

Example 1: Converting a general equation to all other forms

The line 2x - 3y + 6 = 0. Find its slope, intercepts, inclination, normal form, and parametric form through the point where it crosses the y-axis.

Step 1. Slope-intercept form. Solve for y:

3y = 2x + 6 \quad\Longrightarrow\quad y = \frac{2}{3}\,x + 2

Slope m = 2/3, y-intercept c = 2.

Why: divide through by the coefficient of y to isolate y on the left.

Step 2. Intercept form. Rewrite as 2x - 3y = -6, then divide by -6:

\frac{x}{-3} + \frac{y}{2} = 1

The x-intercept is a = -3 (the line crosses the x-axis at (-3, 0)) and the y-intercept is b = 2.

Why: the intercept form x/a + y/b = 1 requires the right side to be 1, so divide by the constant on the right.

Step 3. Inclination. Since m = 2/3 > 0, the inclination is \theta = \arctan(2/3) \approx 33.69°.

Why: the slope is positive, so \theta is in the first quadrant — no correction needed.

Step 4. Normal form. Divide 2x - 3y + 6 = 0 by \sqrt{2^2 + (-3)^2} = \sqrt{13}. Since C = 6 > 0, flip signs first: -2x + 3y - 6 = 0, so -2x + 3y = 6. Now divide by \sqrt{13}:

\frac{-2}{\sqrt{13}}\,x + \frac{3}{\sqrt{13}}\,y = \frac{6}{\sqrt{13}}

The perpendicular distance from the origin is p = 6/\sqrt{13} \approx 1.664.

Why: in normal form, the right side p must be non-negative, so we choose the sign of the divisor accordingly.

Step 5. Parametric form through (0, 2). With \theta \approx 33.69°, \cos\theta = 3/\sqrt{13}, \sin\theta = 2/\sqrt{13}:

\frac{x - 0}{3/\sqrt{13}} = \frac{y - 2}{2/\sqrt{13}} = r

So x = \dfrac{3r}{\sqrt{13}} and y = 2 + \dfrac{2r}{\sqrt{13}}.

Result: The line has slope 2/3, intercepts (-3, 0) and (0, 2), inclination \approx 33.69°, and sits at perpendicular distance 6/\sqrt{13} from the origin.

The line $2x - 3y + 6 = 0$ with its x-intercept at $(-3, 0)$, y-intercept at $(0, 2)$, and the perpendicular from the origin shown in red. Every form of the equation describes this same line — each just highlights a different feature of it.

The picture confirms everything: the line crosses the axes where the intercepts say it should, the perpendicular from the origin lands on the line at the expected distance, and the upward tilt matches the positive slope 2/3.

Example 2: Using the parametric form to find a point at a given distance

A line passes through P(2, 3) and has inclination \theta = 60°. Find the coordinates of the two points on this line that are at distance 4 from P.

Step 1. Write the parametric form. With \cos 60° = 1/2 and \sin 60° = \sqrt{3}/2:

x = 2 + r \cdot \frac{1}{2}, \qquad y = 3 + r \cdot \frac{\sqrt{3}}{2}

Why: the parametric equations give every point on the line as a function of the distance parameter r from the anchor point P.

Step 2. Set r = 4 (walking forward from P):

x = 2 + 4 \cdot \frac{1}{2} = 4, \qquad y = 3 + 4 \cdot \frac{\sqrt{3}}{2} = 3 + 2\sqrt{3} \approx 6.464

Why: r = +4 means moving 4 units in the direction of increasing \theta, which is up and to the right for \theta = 60°.

Step 3. Set r = -4 (walking backward from P):

x = 2 + (-4) \cdot \frac{1}{2} = 0, \qquad y = 3 + (-4) \cdot \frac{\sqrt{3}}{2} = 3 - 2\sqrt{3} \approx -0.464

Why: r = -4 means moving 4 units in the opposite direction — down and to the left.

Step 4. Verify distances. From P(2, 3) to (4, 6.464):

\sqrt{(4-2)^2 + (6.464 - 3)^2} = \sqrt{4 + 12} = \sqrt{16} = 4 \quad\checkmark

Why: (2\sqrt{3})^2 = 12, so 4 + 12 = 16, and the distance is exactly 4.

Result: The two points are (4, \, 3 + 2\sqrt{3}) and (0, \, 3 - 2\sqrt{3}), each at distance 4 from P along the line.

A line through $P(2, 3)$ at $60°$ to the x-axis. The two points $Q_1$ and $Q_2$ are each exactly $4$ units from $P$ along the line — one in each direction. The parametric form gives both points instantly by plugging in $r = \pm 4$.

In slope-intercept form, finding these same points would require setting up \sqrt{(x-2)^2 + (y-3)^2} = 4, substituting y = \sqrt{3}\,(x - 2) + 3, and solving a quadratic in x. The parametric form skips all of that — the distance is already baked into the parameter r.

Common confusions

Going deeper

If you came here to understand the general equation and the parametric form, you have both. The rest of this section is for readers who want to see the geometry behind the coefficients and the connection to direction vectors.

The direction vector and normal vector

The general equation Ax + By + C = 0 hides two important vectors.

The normal vector to the line is \vec{n} = (A, B). This is a vector perpendicular to the line. To see why, take any two points (x_1, y_1) and (x_2, y_2) on the line. Both satisfy the equation, so

Ax_1 + By_1 + C = 0 \qquad\text{and}\qquad Ax_2 + By_2 + C = 0

Subtracting: A(x_2 - x_1) + B(y_2 - y_1) = 0. This says the dot product of (A, B) and (x_2 - x_1, \, y_2 - y_1) is zero. The second vector points along the line (from one point to another); the first vector is perpendicular to it.

The direction vector of the line is \vec{d} = (-B, A) — or equivalently (B, -A). This is a vector parallel to the line. You can verify: A \cdot (-B) + B \cdot A = 0, so \vec{d} is indeed perpendicular to the normal \vec{n}, which means it lies along the line.

The parametric form is the same thing expressed differently: \vec{d} = (\cos\theta, \sin\theta) is the unit direction vector of the line. The parametric equations x = x_1 + r\cos\theta, y = y_1 + r\sin\theta say "start at (x_1, y_1) and walk r units in the direction \vec{d}."

The line $2x - 3y + 3 = 0$. Its normal vector $(2, -3)$ points perpendicular to the line (red arrow). Its direction vector $(-(-3), 2) = (3, 2)$ runs parallel to the line (grey arrow). These two vectors encode the line's orientation completely.

Families of lines

Since Ax + By + C = 0 is determined only up to a scalar multiple, the "true" data of a line is the ratio A : B : C. This is a point in the projective plane — a concept from projective geometry. In JEE Advanced problems, you sometimes encounter families of lines: for instance, \lambda(2x + 3y - 1) + \mu(x - y + 5) = 0 describes every line passing through the intersection of 2x + 3y - 1 = 0 and x - y + 5 = 0, as \lambda and \mu vary. This is the one-parameter family of lines through a fixed point, and it is easiest to express using the general form.

Historical note

The idea of describing geometric objects by algebraic equations goes back to Descartes (1637) and Fermat (working independently around the same time). But the coordinate approach to geometry was also anticipated by Indian mathematicians — Bhaskara II, in the Lilavati (12th century), worked extensively with problems about distances, areas, and positions that are today solved using coordinate geometry. The general equation Ax + By + C = 0 is the algebraic distillation of a line's geometry, and it is the starting point for the entire study of analytic geometry.

Where this leads next

The general equation is the foundation for everything that follows in straight-line geometry. The next set of articles builds directly on it.