equationzone

Analytic Geometry

The Straight Line

Complete analytical geometry reference sheet on the straight line: definitions, equations, distances, angles, relative positions, and applications.

A straight line is the locus of all points in the plane that follow a constant direction.

The angle of inclination θ\theta of a line is the angle measured counterclockwise from the positive xx-axis to the line, such that 0θ<1800^\circ \leq \theta < 180^\circ.

Angle of Inclination - equationzone.com

The slope mm of a line is defined as the tangent of its angle of inclination:

m=tanθ\boxed{m = \tan \theta}

Hint

Observations:

  1. If θ<90\theta < 90^\circ, then m>0m > 0 → the line is increasing.
    Positive slope - equationzone.com
  2. If θ>90\theta > 90^\circ, then m<0m < 0 → the line is decreasing.
    Negative slope - equationzone.com
  3. If θ=90\theta = 90^\circ, then mm is undefined → the line is vertical.

Given a point P1(x1,y1)P_1(x_1, y_1) and a slope mm:

yy1=m(xx1)y - y_1 = m(x - x_1)

Point-Slope Form - equationzone.com


Given two distinct points P1(x1,y1)P_1(x_1, y_1) and P2(x2,y2)P_2(x_2, y_2), with x1x2x_1 \ne x_2:

yy1=y2y1x2x1(xx1)y - y_1 = \frac{y_2 - y_1}{x_2 - x_1}(x - x_1)

Two-Point Form - equationzone.com


Given slope mm and yy-intercept bb (the point where the line crosses the yy-axis):

y=mx+by = mx + b

Where:

  • mm: slope
  • bb: yy-intercept

Slope–Intercept Form - equationzone.com


If the line intersects the xx-axis at (a,0)(a, 0) and the yy-axis at (0,b)(0, b), with a0a \ne 0 and b0b \ne 0:

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

Where:

  • aa: xx-intercept
  • bb: yy-intercept

Intercept Form - equationzone.com


General Form of the Equation of a Line

Any straight line can be written as:

Ax+By+C=0\boxed{Ax + By + C = 0}

where A,B,CRA, B, C \in \mathbb{R}, and not all are zero.

Hint

Special Cases:

  1. If A=0A = 0, B0B \ne 0, C0C \ne 0:
    y=CB\Rightarrow y = -\dfrac{C}{B}horizontal line (parallel to the xx-axis).
  2. If B=0B = 0, A0A \ne 0, C0C \ne 0:
    x=CA\Rightarrow x = -\dfrac{C}{A}vertical line (parallel to the yy-axis).
  3. If A0A \ne 0, B0B \ne 0:
    y=ABxCB\Rightarrow y = -\dfrac{A}{B}x - \dfrac{C}{B} → slope–intercept form, with slope m=ABm = -\dfrac{A}{B}.

General Form - equationzone.com


Given two lines with slopes m1m_1 and m2m_2, the acute angle θ\theta between them is:

tanθ=m2m11+m1m2\tan \theta = \left| \frac{m_2 - m_1}{1 + m_1 m_2} \right|

Angle Between Two Lines - equationzone.com

Note:

This formula gives the acute angle between the lines. For the obtuse angle, use 180θ180^\circ - \theta.


Consider the lines:

L1:A1x+B1y+C1=0L2:A2x+B2y+C2=0\begin{aligned} \mathscr{L}_1 &: A_1x + B_1y + C_1 = 0 \\ \mathscr{L}_2 &: A_2x + B_2y + C_2 = 0 \end{aligned}

Two lines are perpendicular if their slopes satisfy m1m2=1m_1 \cdot m_2 = -1. In terms of coefficients:

A1A2+B1B2=0\boxed{A_1 A_2 + B_1 B_2 = 0}

Perpendicular Lines - equationzone.com


Two lines are parallel if they have equal slopes:

m1=m2A1A2=B1B2(provided A2,B20)m_1 = m_2 \quad \Rightarrow \quad \boxed{\frac{A_1}{A_2} = \frac{B_1}{B_2}} \quad \text{(provided } A_2, B_2 \ne 0\text{)}

Parallel Lines - equationzone.com

Note:

If, in addition, C1C2=A1A2\dfrac{C_1}{C_2} = \dfrac{A_1}{A_2}, then the lines are coincident.


Two lines are coincident if all their coefficients are proportional:

A1A2=B1B2=C1C2\boxed{\frac{A_1}{A_2} = \frac{B_1}{B_2} = \frac{C_1}{C_2}}


Two lines intersect at exactly one point if they are not parallel:

A1B2A2B10\boxed{A_1 B_2 - A_2 B_1 \ne 0}


Normal Form of the Equation of a Line

The normal form of a line is:

xcosω+ysinωp=0x \cos \omega + y \sin \omega - p = 0

Where:

  • ω\omega: angle between the normal vector and the positive xx-axis (0ω<3600^\circ \leq \omega < 360^\circ)
  • pp: perpendicular distance from the origin to the line (always p0p \geq 0)

Normal Form - equationzone.com


Converting General Form to Normal Form

Given Ax+By+C=0Ax + By + C = 0, divide by A2+B2\sqrt{A^2 + B^2}, choosing the sign opposite to that of CC to ensure p0p \geq 0:

A±A2+B2x+B±A2+B2y+C±A2+B2=0\frac{A}{\pm \sqrt{A^2 + B^2}}x + \frac{B}{\pm \sqrt{A^2 + B^2}}y + \frac{C}{\pm \sqrt{A^2 + B^2}} = 0

The sign is chosen so that C±A2+B20\dfrac{C}{\pm \sqrt{A^2 + B^2}} \leq 0, which guarantees p=C±A2+B20p = -\dfrac{C}{\pm \sqrt{A^2 + B^2}} \geq 0.


Distance from a Point to a Line (Absolute Distance)

Given a point P1(x1,y1)P_1(x_1, y_1) and a line Ax+By+C=0Ax + By + C = 0, the (always non-negative) perpendicular distance is:

d(P1,L)=Ax1+By1+CA2+B2d(P_1, \mathscr{L}) = \frac{|Ax_1 + By_1 + C|}{\sqrt{A^2 + B^2}}

Distance from Point to Line - equationzone.com


Directed Distance from a Point to a Line

The directed distance dd carries a sign that depends on the orientation of the normal vector (A,B)(A, B):

d=Ax1+By1+CA2+B2d = \frac{Ax_1 + By_1 + C}{\sqrt{A^2 + B^2}}

Directed Distance - equationzone.com

Important

The denominator is always positive. The sign of dd depends on the numerator and reflects the point’s position relative to the normal vector (A,B)(A, B):

  • If d>0d > 0: the point lies in the direction of the normal vector.
  • If d<0d < 0: the point lies in the opposite direction.
  1. Line not passing through the origin (C0C \ne 0):

    • d>0d > 0 if P1P_1 and the origin lie on opposite sides of the line.
    • d<0d < 0 if they lie on the same side.

    Directed distance – general case - equationzone.com

  2. Line passing through the origin (C=0C = 0):

    • d>0d > 0 if P1P_1 is "above" the line (in the direction of (A,B)(A, B)).
    • d<0d < 0 if it is "below".

    Directed distance – origin case - equationzone.com

Note:

The sign of the directed distance is determined only by the numerator. Do not include ±\pm in the denominator—modern convention fixes the denominator as positive.


Angle Bisectors of Two Intersecting Lines

Given two lines L1:A1x+B1y+C1=0\mathscr{L}_1: A_1x + B_1y + C_1 = 0 and L2:A2x+B2y+C2=0\mathscr{L}_2: A_2x + B_2y + C_2 = 0, the angle bisectors are the loci of points equidistant to both lines:

A1x+B1y+C1A12+B12=A2x+B2y+C2A22+B22\frac{|A_1x + B_1y + C_1|}{\sqrt{A_1^2 + B_1^2}} = \frac{|A_2x + B_2y + C_2|}{\sqrt{A_2^2 + B_2^2}}

Removing absolute values gives the two bisectors:

A1x+B1y+C1A12+B12=±A2x+B2y+C2A22+B22\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}}

Hint
  • Use + for the bisector of the angle containing the direction of the sum of unit normals (often the acute angle).
  • Use for the obtuse angle bisector.

Angle Bisectors - equationzone.com


Distance Between Two Parallel Lines

Given two parallel lines L1:Ax+By+C1=0\mathscr{L}_1: Ax + By + C_1 = 0 and L2:Ax+By+C2=0\mathscr{L}_2: Ax + By + C_2 = 0 (same AA and BB), the distance between them is:

d=C1C2A2+B2d = \frac{|C_1 - C_2|}{\sqrt{A^2 + B^2}}

Distance Between Parallel Lines - equationzone.com

Note:

The formulas assume both equations use identical coefficients AA and BB.


Given three vertices P1(x1,y1)P_1(x_1, y_1), P2(x2,y2)P_2(x_2, y_2), P3(x3,y3)P_3(x_3, y_3), the area of the triangle is:

Area=12x1(y2y3)+x2(y3y1)+x3(y1y2)\text{Area} = \frac{1}{2} \left| x_1(y_2 - y_3) + x_2(y_3 - y_1) + x_3(y_1 - y_2) \right|

Or using a determinant:

Area=12x1y11x2y21x3y31\text{Area} = \frac{1}{2} \left| \begin{vmatrix} x_1 & y_1 & 1 \\ x_2 & y_2 & 1 \\ x_3 & y_3 & 1 \\ \end{vmatrix} \right|

Area of a Triangle - equationzone.com


Determinant Form of the Line Through Two Points

Given P1(x1,y1)P_1(x_1, y_1) and P2(x2,y2)P_2(x_2, y_2), the equation of the line is:

xy1x1y11x2y21=0\begin{vmatrix} x & y & 1 \\ x_1 & y_1 & 1 \\ x_2 & y_2 & 1 \\ \end{vmatrix} = 0


Family of Lines Parallel to a Given Line

Given Ax+By+C=0Ax + By + C = 0, the family of parallel lines is:

Ax+By+k=0for kRAx + By + k = 0 \quad \text{for } k \in \mathbb{R}

Family of Parallel Lines - equationzone.com


Family of Lines Perpendicular to a Given Line

If a given line has slope mm, all perpendicular lines have slope 1m-\dfrac{1}{m}. If they pass through a fixed point (x0,y0)(x_0, y_0):

yy0=1m(xx0)y - y_0 = -\frac{1}{m}(x - x_0)

Hint

In general form: if the original line is Ax+By+C=0Ax + By + C = 0, then all perpendicular lines have the form BxAy+k=0Bx - Ay + k = 0.

Family of Perpendicular Lines - equationzone.com


Family of Lines Concurrent at a Point

Given two intersecting lines L1:A1x+B1y+C1=0\mathscr{L}_1: A_1x + B_1y + C_1 = 0 and L2:A2x+B2y+C2=0\mathscr{L}_2: A_2x + B_2y + C_2 = 0, the family of all lines passing through their intersection point is:

A1x+B1y+C1+λ(A2x+B2y+C2)=0for λRA_1x + B_1y + C_1 + \lambda(A_2x + B_2y + C_2) = 0 \quad \text{for } \lambda \in \mathbb{R}

Note:

The value λ=1\lambda = -1 may correspond to a line at infinity or a degenerate case, depending on the context.

Concurrent Lines Family - equationzone.com