Basic Definitions

Points and Segments
I Division of a Segment in a Given Ratio

If two points A(x1,y1)A(x_1,y_1) and B(x2,y2)B(x_2,y_2) are given, the point C(x,y)C(x,y) that divides AB\overline{AB} so that AC:CB=λ:1AC:CB=\lambda:1 has coordinates

x=x1+λx21+λ,y=y1+λy21+λ(λ1).x=\frac{x_1+\lambda x_2}{1+\lambda},\qquad y=\frac{y_1+\lambda y_2}{1+\lambda}\qquad(\lambda\neq-1).

Here λ>0\lambda>0 gives a point of the segment (internal division; λ=1\lambda=1 is the midpoint), and λ<0, λ1\lambda<0,\ \lambda\neq-1 gives a point on the line outside the segment (external division).

Equations of a Line
II General Equation of a Line

Every linear equation Ax+By+C=0Ax+By+C=0, with AA and BB not both zero, represents a line in the coordinate plane. This is called the general equation of a line. Particular cases:

  • C=0, A0, B0C=0,\ A\neq0,\ B\neq0: the line Ax+By=0Ax+By=0 passes through the origin.
  • A=0, B0, C0A=0,\ B\neq0,\ C\neq0: the line By+C=0By+C=0 is parallel to the OxOx axis (the xx-axis).
  • B=0, A0, C0B=0,\ A\neq0,\ C\neq0: the line Ax+C=0Ax+C=0 is parallel to the OyOy axis (the yy-axis).
  • B=C=0, A0B=C=0,\ A\neq0: the line Ax=0Ax=0 coincides with the OyOy axis.
  • A=C=0, B0A=C=0,\ B\neq0: the line By=0By=0 coincides with the OxOx axis.
III (a) Slope-Intercept Form

When B0B\neq0 (the line is not vertical) the equation can be written y=kx+by=kx+b, where b=CBb=-\dfrac{C}{B} and k=AB=tanαk=-\dfrac{A}{B}=\tan\alpha. Here A,B,CA,\,B,\,C are the coefficients of the general equation of the line, and α\alpha is the angle formed by the line with the positive xx-axis. The constant bb is the yy-coordinate of the yy-intercept. A vertical line x=x1x=x_1 (B=0B=0) has no slope-intercept form.

III (b) Point-Slope Form
yy1=k(xx1)y-y_1=k(x-x_1)
III (c) Two-Point Form of a Line

For two distinct points M1(x1,y1)M_1(x_1,y_1), M2(x2,y2)M_2(x_2,y_2) the line is

xx1yy1x2x1y2y1=0,\begin{vmatrix} x-x_1 & y-y_1 \\ x_2-x_1 & y_2-y_1 \end{vmatrix}=0,

i.e. (xx1)(y2y1)(yy1)(x2x1)=0(x-x_1)(y_2-y_1)-(y-y_1)(x_2-x_1)=0. When x1x2x_1\neq x_2 and y1y2y_1\neq y_2 this is the same as

yy1y2y1=xx1x2x1,k=y2y1x2x1.\frac{y-y_1}{y_2-y_1}=\frac{x-x_1}{x_2-x_1},\qquad k=\frac{y_2-y_1}{x_2-x_1}.

If x1=x2x_1=x_2 the line is vertical, x=x1x=x_1; if y1=y2y_1=y_2 it is horizontal, y=y1y=y_1 — both are covered by the determinant form above.

IV Intercept Form

An equation of the form

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

where a=CAa=-\dfrac{C}{A} and b=CBb=-\dfrac{C}{B} (with A,B,CA,\,B,\,C the coefficients of the general equation of the line), is called the equation of a line in intercept form. Here aa is the xx-intercept — where the line meets the xx-axis — and bb is the yy-intercept — where the line meets the yy-axis. This form requires A,B,CA,\,B,\,C all nonzero; a line through the origin or parallel to an axis has no such form.

V Normal Equation of a Line

An equation of the form

xcosφ+ysinφp=0x\cos\varphi+y\sin\varphi-p=0

is called the normal equation of a line. Here pp is the length of the perpendicular dropped from the origin onto the line, and φ\varphi is the angle formed by this perpendicular with the positive direction of the OxOx axis.

To obtain the normal equation from the general equation Ax+By+C=0Ax+By+C=0, both sides are multiplied by the normalising factor

μ=±1A2+B2.\mu=\pm\frac{1}{\sqrt{A^2+B^2}}.

The sign before the radical is chosen so that μC0\mu C\le 0. When C=0C=0 (a line through the origin) p=0p=0 and either sign gives a valid normal equation.

Angles, Intersections, and Distances
VI (a) Angle Between Two Lines — Slope Form

The acute angle φ\varphi between the lines y=k1x+b1y=k_1x+b_1 and y=k2x+b2y=k_2x+b_2 is found by the formula

tanφ=k2k11+k2k1.\tan\varphi=\left|\frac{k_2-k_1}{1+k_2k_1}\right|.

The lines are parallel when k2=k1k_2=k_1, and perpendicular when k1=1k2k_1=-\dfrac{1}{k_2}.

VI (b) Angle Between Two Lines — General Form

If the lines are given by the equations A1x+B1y+C1=0A_1x+B_1y+C_1=0 and A2x+B2y+C2=0A_2x+B_2y+C_2=0, the acute angle φ\varphi between them satisfies

tanφ=A1B2A2B1A1A2+B1B2.\tan\varphi=\left|\frac{A_1B_2-A_2B_1}{A_1A_2+B_1B_2}\right|.

The lines are parallel when A1B2A2B1=0A_1B_2-A_2B_1=0, and perpendicular when A1A2+B1B2=0A_1A_2+B_1B_2=0 — in the latter case the denominator vanishes and φ=90\varphi=90^\circ.

VII Intersection of Two Lines

The coordinates of the intersection point of A1x+B1y+C1=0A_1x+B_1y+C_1=0 and A2x+B2y+C2=0A_2x+B_2y+C_2=0 are found by solving the system

{A1x+B1y+C1=0,A2x+B2y+C2=0,\begin{cases}A_1x+B_1y+C_1=0,\\ A_2x+B_2y+C_2=0,\end{cases}

which gives

x=C1B1C2B2A1B1A2B2,y=A1C1A2C2A1B1A2B2.x=\frac{\begin{vmatrix}-C_1&B_1\\-C_2&B_2\end{vmatrix}}{\begin{vmatrix}A_1&B_1\\A_2&B_2\end{vmatrix}},\qquad y=\frac{\begin{vmatrix}A_1&-C_1\\A_2&-C_2\end{vmatrix}}{\begin{vmatrix}A_1&B_1\\A_2&B_2\end{vmatrix}}.

the solution being unique exactly when Δ=A1B2A2B10\Delta=A_1B_2-A_2B_1\neq0. Classifying by the 2×22\times2 minors of (A1B1C1A2B2C2)\begin{pmatrix}A_1&B_1&C_1\\A_2&B_2&C_2\end{pmatrix}:

  • Δ0\Delta\neq0: the lines intersect at one point.
  • Δ=0\Delta=0 and A1C2A2C1, B1C2B2C1A_1C_2-A_2C_1,\ B_1C_2-B_2C_1 not both zero: the lines are parallel.
  • Δ=0\Delta=0 and A1C2A2C1=B1C2B2C1=0A_1C_2-A_2C_1=B_1C_2-B_2C_1=0: the lines coincide.
VIII (a) Signed Distance and Distance

The signed distance (deviation) δ\delta of a point M(x0,y0)M(x_0,y_0) from the line Ax+By+C=0Ax+By+C=0 is found by the formula

δ=Ax0+By0+C±A2+B2,\delta=\frac{Ax_0+By_0+C}{\pm\sqrt{A^2+B^2}},

where the sign before the radical is chosen as in the normal equation (§V) — so that μC0\mu C\le 0; when C=0C=0, either choice is admissible and simply fixes which side of the line counts as positive. The (ordinary, nonnegative) distance dd from the point MM to the line then equals d=δd=|\delta|.

VIII (b) Bisectors of the Angles Between Two Lines
A1x+B1y+C1A12+B12±A2x+B2y+C2A22+B22=0\frac{A_1x+B_1y+C_1}{\sqrt{A_1^2+B_1^2}}\pm\frac{A_2x+B_2y+C_2}{\sqrt{A_2^2+B_2^2}}=0

The choice of sign is made according to the figure: a point on a bisector is equidistant from both lines, d1=d2|d_1|=|d_2|.

Two lines I and II with their two angle bisectors; points M₁–M₄ show the signed deviations d₁, d₂ with |d₁|=|d₂|.
Bisectors of the angles between lines I and II (d1=d2|d_1|=|d_2|).
Families of Lines
IX Pencil of Lines

If two intersecting lines are given by the equations A1x+B1y+C1=0A_1x+B_1y+C_1=0 and A2x+B2y+C2=0A_2x+B_2y+C_2=0, then the equation

A1x+B1y+C1+λ(A2x+B2y+C2)=0A_1x+B_1y+C_1+\lambda(A_2x+B_2y+C_2)=0

defines a line passing through the point of intersection of the given lines. Here λ\lambda is a numerical parameter. As λ\lambda runs over all real numbers this gives every line of the pencil except the second line A2x+B2y+C2=0A_2x+B_2y+C_2=0 itself (its λ\lambda\to\infty limit); to include it, use the homogeneous form λ1(A1x+B1y+C1)+λ2(A2x+B2y+C2)=0\lambda_1(A_1x+B_1y+C_1)+\lambda_2(A_2x+B_2y+C_2)=0 with (λ1,λ2)(0,0)(\lambda_1,\lambda_2)\neq(0,0). The pencil's centre is the point of intersection of the given lines.