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 (directed segments) 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, A≠0, B≠0C=0,\ A\neq0,\ B\neq0: the line Ax+By=0Ax+By=0 passes through the origin.
  • A=0, B≠0, C≠0A=0,\ B\neq0,\ C\neq0: the line By+C=0By+C=0 is parallel to the OxOx axis (the xx-axis).
  • B=0, A≠0, C≠0B=0,\ A\neq0,\ C\neq0: the line Ax+C=0Ax+C=0 is parallel to the OyOy axis (the yy-axis).
  • B=C=0, A≠0B=C=0,\ A\neq0: the line Ax=0Ax=0 coincides with the OyOy axis.
  • A=C=0, B≠0A=C=0,\ B\neq0: the line By=0By=0 coincides with the OxOx axis.
III (a) Slope-Intercept Form

When B≠0B\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
y−y1=k(x−x1)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

∣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,

i.e. (x−x1)(y2−y1)−(y−y1)(x2−x1)=0(x-x_1)(y_2-y_1)-(y-y_1)(x_2-x_1)=0. When x1≠x2x_1\neq x_2 and y1≠y2y_1\neq y_2 this is the same as

y−y1y2−y1=x−x1x2−x1,k=y2−y1x2−x1.\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 μC≤0\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 angle φ\varphi between the lines y=k1x+b1y=k_1x+b_1 and y=k2x+b2y=k_2x+b_2 (0∘≤φ≤90∘)(0^\circ\le\varphi\le90^\circ) is found by the formula

tan⁡φ=∣k2−k11+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 k1k2=−1k_1k_2=-1.

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 angle φ\varphi (0∘≤φ≤90∘)(0^\circ\le\varphi\le90^\circ) between them satisfies

tan⁡φ=∣A1B2−A2B1A1A2+B1B2∣.\tan\varphi=\left|\frac{A_1B_2-A_2B_1}{A_1A_2+B_1B_2}\right|.

The lines are parallel when A1B2−A2B1=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=∣−C1B1−C2B2∣∣A1B1A2B2∣,y=∣A1−C1A2−C2∣∣A1B1A2B2∣,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 Δ=A1B2−A2B1≠0\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 A1C2−A2C1, B1C2−B2C1A_1C_2-A_2C_1,\ B_1C_2-B_2C_1 not both zero: the lines are parallel.
  • Δ=0\Delta=0 and A1C2−A2C1=B1C2−B2C1=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 μC≤0\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

The bisectors of the angles between the lines ℓ1: A1x+B1y+C1=0\ell_1:\ A_1x+B_1y+C_1=0 and ℓ2: A2x+B2y+C2=0\ell_2:\ A_2x+B_2y+C_2=0 are given by the equations

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|, where d1d_1 and d2d_2 are its signed distances (VIII (a)) from ℓ1\ell_1 and ℓ2\ell_2.

Two lines ℓ₁ and ℓ₂ with their two angle bisectors δ_I and δ_II; points M₁–M₄ show the signed deviations d₁, d₂ with |d₁|=|d₂|.
Bisectors of the angles between lines ℓ1\ell_1 and ℓ2\ell_2 (∣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.