Skip to content

Mathematics · Ch 6 — Two Dimensional Analytical Geometry

Different Forms of an Equation of a Straight Line

6.3.3

Different Forms of an Equation of a Straight Line

Given any two independent pieces of information about a line from among points, slope, and intercepts, its equation can be written directly. There are four standard combinations, plus two further special forms:

  1. Slope and intercept form. A line through the origin with slope mm is y=mxy=mx. In general, a line with slope mm and yy-intercept bb (b≠0b\ne0) is

    y=mx+b.y=mx+b.

    Special cases: if b=0, m≠0b=0,\ m\ne0, the line is y=mxy=mx (through the origin); if b=0, m=0b=0,\ m=0, the line is the xx-axis, y=0y=0; if b≠0, m=0b\ne0,\ m=0, the line is horizontal, y=by=b (parallel to the xx-axis).
  2. Point-slope form. For a line of slope mm through a known point A(x1,y1)A(x_1,y_1), any other point P(x,y)P(x,y) on the line satisfies m=y−y1x−x1m=\dfrac{y-y_1}{x-x_1}, i.e.

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

    Because the slope of a vertical line is undefined, this form cannot express a line through (x1,y1)(x_1,y_1) parallel to the yy-axis — but that line is simply x=x1x=x_1 (every point on it shares the same xx-coordinate), so no real difficulty arises.
  3. Two-point form. For distinct points (x1,y1),(x2,y2)(x_1,y_1),(x_2,y_2) with x2≠x1, y1≠y2x_2\ne x_1,\ y_1\ne y_2, the slope is m=y2−y1x2−x1m=\dfrac{y_2-y_1}{x_2-x_1}; substituting into the point-slope form and rearranging gives

    y−y1y2−y1=x−x1x2−x1,\frac{y-y_1}{y_2-y_1}=\frac{x-x_1}{x_2-x_1},

    equivalently the determinant form ∣x−x1y−y1x2−x1y2−y1∣=0\begin{vmatrix}x-x_1 & y-y_1\\ x_2-x_1 & y_2-y_1\end{vmatrix}=0.
  4. Intercept form. If the xx-intercept is OA=aOA=a and the yy-intercept is OB=bOB=b (both nonzero), the line passes through A(a,0)A(a,0) and B(0,b)B(0,b); applying the two-point form and simplifying gives

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

    A line through the origin, or a horizontal or vertical line, violates the 'both intercepts nonzero' requirement and so cannot be written in this form — but this form is often the quickest for sketching a line's graph, since both axis crossings are read off immediately.
  5. Normal form. Let pp be the length of the perpendicular OPOP dropped from the origin to the line, making angle α\alpha with the xx-axis, and let the line meet the axes at A,BA,B. In right triangles OPA,OPBOPA,OPB: cos⁡α=OP/OA=p/OA\cos\alpha=OP/OA=p/OA and sin⁡α=cos⁡(π/2−α)=OP/OB=p/OB\sin\alpha=\cos(\pi/2-\alpha)=OP/OB=p/OB, so OA=p/cos⁡αOA=p/\cos\alpha, OB=p/sin⁡αOB=p/\sin\alpha. Substituting these as the intercepts a,ba,b in the intercept form and simplifying gives

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

    valid for every position of the line provided pp is always taken positive and α\alpha is always measured from the positive xx-axis.
  6. Parametric (symmetric) form. For a line through a fixed point Q(x1,y1)Q(x_1,y_1) making angle θ\theta with the xx-axis, let P(x,y)P(x,y) be any point on the line at signed distance rr from QQ (positive on one side of QQ, negative on the other). Dropping perpendiculars from Q,PQ,P to the xx-axis and constructing the right triangle between them gives x−x1=rcos⁡θx-x_1=r\cos\theta and y−y1=rsin⁡θy-y_1=r\sin\theta, i.e.

    x−x1cos⁡θ=y−y1sin⁡θ=r(equivalently x=x1+rcos⁡θ, y=y1+rsin⁡θ).\frac{x-x_1}{\cos\theta}=\frac{y-y_1}{\sin\theta}=r \qquad (\text{equivalently } x=x_1+r\cos\theta,\ y=y_1+r\sin\theta).

    Here rr is called the parameter; every point on the line corresponds to a unique value of rr, positive on one side of QQ and negative on the other, so this form is especially convenient for 'a point on the line at a given distance from a known point' problems, since rr can simply be set equal to that given distance (with either sign). Summary table (with the general equation added as a seventh, all-encompassing form):
#Information givenEquation
1Slope mm, yy-intercept bby=mx+by=mx+b
2Slope mm, point (x1,y1)(x_1,y_1)y−y1=m(x−x1)y-y_1=m(x-x_1)
3Two points (x1,y1),(x2,y2)(x_1,y_1),(x_2,y_2)y−y1y2−y1=x−x1x2−x1\dfrac{y-y_1}{y_2-y_1}=\dfrac{x-x_1}{x_2-x_1}
Figure 6.24Parametric form construction

What this figure shows. Shows a fixed point Q(x1,y1)Q(x_1,y_1), a variable point P(x,y)P(x,y) on the line at signed distance rr from QQ along direction θ\theta, with perpendiculars QNQN, PMPM dropped to the xx-axis and QRQR to PMPM, giving x−x1=rcos⁡θx-x_1=r\cos\theta, $y-y_1=r\sin\thet …