Forms of a line equation

A straight line looks like one simple object, yet its equation can be written in half a dozen different-looking ways — depending on whether you were handed a point and a slope, two points, a pair of intercepts, or a perpendicular distance from the origin. ISC Class 11 Coordinate Geometry expects you to move fluently between these packagings: point-slope, slope-intercept, two-point, intercept, normal, and the fully expanded general form. None of them is more "correct" than another — they all describe the same line — but picking the right one for the data in front of you turns a messy problem into a two-line solution. This article collects all six forms, shows how each follows from the last, and derives the trickiest conversion — general form to normal form — in full.

The core insight

Every straight line satisfies Ax+By+C=0Ax + By + C = 0, and the point-slope, slope-intercept, two-point, intercept, and normal forms are all just this same relationship re-packaged for whatever information — a point and slope, two points, intercepts, or a perpendicular distance — a problem happens to hand you.

The core idea

Lines parallel to the axes. These are the simplest cases and are worth stating separately. A line parallel to the xx-axis at height kk has equation y=ky = k; a line parallel to the yy-axis at horizontal position kk has equation x=kx = k. Neither of these can be forced into slope-intercept form: y=ky=k has slope 00, while x=kx=k has no defined slope at all.

Point-slope form. The most fundamental form: given one point (x1,y1)(x_1, y_1) on the line and its slope mm, the equation is

y−y1=m(x−x1)y - y_1 = m(x - x_1)

where: mm is the slope (rise over run) and (x1,y1)(x_1,y_1) is any known point on the line. Every other form below is really this one equation rearranged, once mm and a point are known some other way.

Slope-intercept form. Take the point in point-slope form to be the yy-intercept, (0,c)(0,c), and simplify:

y=mx+cy = mx + c

where: mm is the slope and cc is the yy-intercept — the height at which the line crosses the yy-axis. This is the most common form for graphing, since both mm and cc can be read off directly.

Two-point form. When two points (x1,y1)(x_1,y_1) and (x2,y2)(x_2,y_2) are given instead of a point and a slope, first compute m=y2−y1x2−x1m = \dfrac{y_2-y_1}{x_2-x_1} (requiring x1≠x2x_1 \ne x_2), then substitute into point-slope form to get

y−y1x−x1=y2−y1x2−x1\frac{y - y_1}{x - x_1} = \frac{y_2 - y_1}{x_2 - x_1}

where: the right-hand side is the slope computed from the two given points, and (x1,y1)(x_1,y_1) is either of them.

Intercept form. When a line's xx-intercept (a,0)(a,0) and yy-intercept (0,b)(0,b) are given directly (with a,b≠0a,b \ne 0),

xa+yb=1\frac{x}{a} + \frac{y}{b} = 1

This form is convenient exactly when both intercepts are known and nothing else — no slope computation is needed.

Normal form. A line at perpendicular distance pp (p≥0p \ge 0) from the origin, where the perpendicular from the origin to the line makes angle α\alpha with the positive xx-axis, has equation

xcos⁡α+ysin⁡α=px\cos\alpha + y\sin\alpha = p

where: pp is always taken non-negative, and α\alpha (measured 0≤α<360°0 \le \alpha < 360°) fixes the direction of the shortest path from the origin to the line. This form is the natural one whenever a problem is phrased in terms of a line's distance and orientation relative to the origin, and it is the one that needs the most care to construct — see the derivation below.

General form. Every line whatsoever, including vertical ones, can be written as

Ax+By+C=0Ax + By + C = 0

where: AA and BB are not both zero. From this single form the slope is m=−A/Bm = -A/B (when B≠0B \ne 0), the yy-intercept is −C/B-C/B, and the xx-intercept is −C/A-C/A. It is the form every other equation collapses into once fully expanded, and the one exam answers are usually asked to end in.

Figure
A line crossing the axes at intercepts a and b with a marked point x1 y1 and a slope triangle showing rise over run
One line, many labels: intercepts, a point, and a slope triangle x y a, 0 (x-intercept) x1, y1 0, b run rise slope m = rise divided by run; y-intercept b; x-intercept a

The relationship between the forms

Converting between forms is not a fresh calculation each time — it is algebraic rearrangement of the very same line. Point-slope form is the parent form: slope-intercept and two-point form are both special cases of it, and intercept form is a relabelling of the general form's intercepts. The one genuinely new idea is the normal form, because it is built from a perpendicular distance and an angle rather than from a point directly on the line, which is why it deserves its own derivation.

Derivation AConverting general form to normal form

The goal is to take a line already known in general form Ax+By+C=0Ax + By + C = 0 and rewrite it as xcos⁡α+ysin⁡α=px\cos\alpha + y\sin\alpha = p with p≥0p \ge 0, extracting a genuine perpendicular distance and angle from three plain coefficients, using only the requirement that cos⁡2α+sin⁡2α=1\cos^2\alpha + \sin^2\alpha = 1 and the convention that pp is never negative — no trigonometric identities beyond that one are needed. We illustrate with the line 2x−y−1=02x - y - 1 = 0 from the worked example below, where A=2A = 2, B=−1B = -1, C=−1C = -1.

Step 1. Divide the general form through by A2+B2\sqrt{A^2+B^2}, choosing the sign of the square root so the resulting constant term is negative (equivalently, so the sign is opposite to that of CC). Here C=−1C = -1 is already negative, so divide by +A2+B2=4+1=5+\sqrt{A^2+B^2} = \sqrt{4+1} = \sqrt5: 25x−15y−15=0\dfrac{2}{\sqrt5}x - \dfrac{1}{\sqrt5}y - \dfrac{1}{\sqrt5} = 0.

Step 2. Move the constant to the right-hand side: 25x−15y=15\dfrac{2}{\sqrt5}x - \dfrac{1}{\sqrt5}y = \dfrac{1}{\sqrt5}. This now has the shape xcos⁡α+ysin⁡α=px\cos\alpha + y\sin\alpha = p, provided the left-hand coefficients really do behave like a cosine and a sine.

Step 3. Check that they do: (25)2+(−15)2=45+15=1\left(\dfrac{2}{\sqrt5}\right)^2 + \left(\dfrac{-1}{\sqrt5}\right)^2 = \dfrac{4}{5} + \dfrac{1}{5} = 1, exactly the identity cos⁡2α+sin⁡2α=1\cos^2\alpha + \sin^2\alpha = 1. Dividing by A2+B2\sqrt{A^2+B^2} is precisely what forces this sum to equal 11, so any A,BA,B produce a genuine (cos⁡α,sin⁡α)(\cos\alpha,\sin\alpha) pair this way — that is the reason A2+B2\sqrt{A^2+B^2} is the right normalising factor and not some other number.

Step 4. Read off the answer: cos⁡α=25\cos\alpha = \dfrac{2}{\sqrt5}, sin⁡α=−15\sin\alpha = -\dfrac{1}{\sqrt5} (so α\alpha lies in the fourth quadrant), and p=15p = \dfrac{1}{\sqrt5}, which is positive as required. The perpendicular distance from the origin to the line 2x−y−1=02x-y-1=0 is 15≈0.447\dfrac{1}{\sqrt5} \approx 0.447 units. Verified: cos⁡2α+sin⁡2α=4/5+1/5=1\cos^2\alpha+\sin^2\alpha = 4/5+1/5=1, and substituting back, 25(x)−15(y)=15  ⟺  2x−y=1  ⟺  2x−y−1=0\frac{2}{\sqrt5}(x)-\frac{1}{\sqrt5}(y)=\frac{1}{\sqrt5} \iff 2x-y=1 \iff 2x-y-1=0, matching the original line exactly.

Worked example

A line cuts the xx-axis at 44 and the yy-axis at −3-3. Write it in intercept form, convert it to general form, and find its distance from the origin (normal form).

Step 1. With a=4a = 4 and b=−3b = -3, the intercept form is x4+y−3=1\dfrac{x}{4} + \dfrac{y}{-3} = 1, i.e. x4−y3=1\dfrac{x}{4} - \dfrac{y}{3} = 1.

Step 2. Clear denominators by multiplying through by 1212 (the LCM of 44 and 33): 3x−4y=123x - 4y = 12, so the general form is 3x−4y−12=03x - 4y - 12 = 0, with A=3A=3, B=−4B=-4, C=−12C=-12. As a check, the slope-intercept form is y=34x−3y = \dfrac34 x - 3, and indeed −A/B=−3/(−4)=3/4-A/B = -3/(-4) = 3/4 matches, while −C/B=−(−12)/(−4)=−3-C/B = -(-12)/(-4) = -3 matches the given yy-intercept.

Step 3. Convert to normal form using the same method as the derivation: A2+B2=9+16=5\sqrt{A^2+B^2} = \sqrt{9+16} = 5. Since C=−12C = -12 is negative, divide by the positive root: 35x−45y=125\dfrac{3}{5}x - \dfrac{4}{5}y = \dfrac{12}{5}.

Step 4. Read off cos⁡α=3/5\cos\alpha = 3/5, sin⁡α=−4/5\sin\alpha = -4/5, and p=12/5=2.4p = 12/5 = 2.4. The line's perpendicular distance from the origin is p=2.4p = 2.4 units, with the foot of that perpendicular in the direction cos⁡α=3/5,sin⁡α=−4/5\cos\alpha = 3/5, \sin\alpha=-4/5 from the origin.

Competitive stretch

The same shortcut works even without first finding the general form: for any line xa+yb=1\frac{x}{a}+\frac{y}{b}=1, clearing denominators gives bx+ay−ab=0bx+ay-ab=0, so A=bA=b, B=aB=a, C=−abC=-ab, and the distance from the origin is directly p=∣aba2+b2∣p = \left|\dfrac{ab}{\sqrt{a^2+b^2}}\right|. Substituting a=4,b=−3a=4,b=-3 gives p=∣−1216+9∣=125=2.4p = \left|\dfrac{-12}{\sqrt{16+9}}\right| = \dfrac{12}{5} = 2.4, confirming Step 4 in one line without ever writing the general form explicitly.

Common traps

  • Using point-slope form when the slope isn't known directly. If two points are given instead of a point and a slope, compute the slope first — don't guess or skip the step.
  • Sign confusion in intercept form. A negative intercept, like b=−3b=-3 above, must be substituted as a negative number into xa+yb=1\frac{x}{a}+\frac{y}{b}=1; simplifying carelessly is a common source of sign errors.
  • Forgetting vertical lines have no slope. A line x=kx=k cannot be written as y=mx+cy=mx+c — it must be handled with the "parallel to an axis" form or left in general form.
  • Dividing by A2+B2\sqrt{A^2+B^2} with the wrong sign in normal form. The sign must always be chosen to make pp non-negative — dividing by the "obvious" positive root regardless of the sign of CC is the single most common error in this conversion.

Ask the tutor: If you want to see a normal-form conversion worked through starting from a different angle quadrant, or want a walkthrough of choosing the fastest form for a specific problem, ask the AI tutor to guide you through it.

Why do we even need six different forms for the same line?

Because the information you are handed in a problem rarely arrives as "a point and a slope" directly. If you are given two points, the two-point form saves you an extra step of computing the slope separately. If you are given intercepts, the intercept form lets you write the equation immediately. If you are given a distance and direction from the origin, only the normal form fits. All six describe the same line and all reduce to the general form Ax+By+C=0Ax+By+C=0 once expanded — the choice of form is about efficiency, not correctness.

How do I know which sign to use when converting to normal form?

The rule is: divide the general form Ax+By+C=0Ax+By+C=0 by A2+B2\sqrt{A^2+B^2} with a sign chosen so that the constant term left on the right-hand side, pp, comes out non-negative. Concretely, if CC is negative, divide by +A2+B2+\sqrt{A^2+B^2}; if CC is positive, divide by −A2+B2-\sqrt{A^2+B^2}. This guarantees p≥0p \ge 0, matching the definition of normal form as a genuine, non-negative distance from the origin.

Can a line have both an undefined slope and still be written in some standard form?

Yes — a vertical line x=kx=k has no defined slope, so it cannot appear in point-slope, slope-intercept, or two-point form (all of which require a numeric mm). But it is perfectly fine in general form, 1⋅x+0⋅y−k=01\cdot x + 0\cdot y - k = 0, and in normal form too, since cos⁡α=1,sin⁡α=0,p=∣k∣\cos\alpha = 1, \sin\alpha=0, p=|k| works whenever k≠0k \ne 0. The lesson is that general form is the only one of the six guaranteed to handle every line without exception.

Before this

Where this leads