9.1 Equations of Straight Lines and Positional Relationships

Key Takeaways

  • Every straight line in Cartesian coordinates has an angle of inclination $\alpha \in [0, \pi)$ and, when non-vertical ($\alpha \neq \frac{\pi}{2}$), a unique slope $k = \tan \alpha$.
  • The five standard representations of a straight line are Point-Slope, Slope-Intercept, Two-Point, Intercept, and General Form ($Ax + By + C = 0$ with $A^2 + B^2 \neq 0$). General Form is the only form capable of representing every possible line without exception.
  • For two non-vertical lines $l_1: y = k_1 x + b_1$ and $l_2: y = k_2 x + b_2$, $l_1 \parallel l_2 \iff k_1 = k_2$ and $b_1 \neq b_2$; $l_1 \perp l_2 \iff k_1 k_2 = -1$. In General Form, $l_1 \parallel l_2 \iff A_1 B_2 - A_2 B_1 = 0$ and $A_1 C_2 - A_2 C_1 \neq 0$, while $l_1 \perp l_2 \iff A_1 A_2 + B_1 B_2 = 0$.
  • The perpendicular distance from point $P(x_0, y_0)$ to line $Ax + By + C = 0$ is $d = \frac{|Ax_0 + By_0 + C|}{\sqrt{A^2 + B^2}}$, and the distance between parallel lines $Ax + By + C_1 = 0$ and $Ax + By + C_2 = 0$ is $d = \frac{|C_1 - C_2|}{\sqrt{A^2 + B^2}}$.
  • Symmetry problems across a mirror line $l: Ax + By + C = 0$ are solved by setting up a two-equation linear system enforcing that the segment's midpoint lies on $l$ and the segment is perpendicular to $l$.
Last updated: July 2026

9.1 Equations of Straight Lines and Positional Relationships

Analytic geometry bridges algebra and geometry by translating geometric figures into algebraic equations. In the Gaokao Mathematics examination, the straight line serves as the fundamental linear building block. Mastering the analytical properties of straight lines—their inclinations, slopes, structural equation forms, positional relationships, distance metrics, and reflection properties—is essential for solving both standalone coordinate geometry items and complex comprehensive conic section problems.


1. Inclination Angle and Slope of a Line

Definition of Inclination Angle

In a rectangular Cartesian coordinate system $(xOy)$, when a straight line $l$ intersects the $x$-axis, the angle $\alpha$ formed by rotating the positive $x$-axis counterclockwise around the intersection point to coincide with the line $l$ is called the inclination angle (倾斜角) of the line $l$.

  • By convention, when a line $l$ is parallel to or coincides with the $x$-axis, its inclination angle is defined as $\alpha = 0^\circ$ ($0$ radians).
  • The range of the inclination angle $\alpha$ for any line in the coordinate plane is strictly restricted to: α[0,180)orα[0,π)\alpha \in [0^\circ, 180^\circ) \quad \text{or} \quad \alpha \in [0, \pi)

Definition of Slope

When the inclination angle $\alpha \neq 90^\circ$ ($\alpha \neq \frac{\pi}{2}$), the tangent value of the inclination angle is defined as the slope (斜率) of the line $l$, denoted by $k$: k=tanαk = \tan \alpha

  • When $\alpha \in [0^\circ, 90^\circ)$, $k \ge 0$, and $k$ increases monotonically from $0$ to $+\infty$ as $\alpha$ increases from $0^\circ$ toward $90^\circ$.
  • When $\alpha = 90^\circ$, $\tan 90^\circ$ is undefined; hence vertical lines have no defined slope.
  • When $\alpha \in (90^\circ, 180^\circ)$, $k < 0$, and $k$ increases monotonically from $-\infty$ to $0^-$ as $\alpha$ increases from $90^\circ$ toward $180^\circ$.

Two-Point Slope Formula

If a non-vertical line $l$ passes through two distinct points $P_1(x_1, y_1)$ and $P_2(x_2, y_2)$ where $x_1 \neq x_2$, the slope $k$ is given by: k=y2y1x2x1=y1y2x1x2k = \frac{y_2 - y_1}{x_2 - x_1} = \frac{y_1 - y_2}{x_1 - x_2} Proof: Let the directional vector of line $l$ be $\vec{v} = \vec{P_1 P_2} = (x_2 - x_1, y_2 - y_1)$. By definition of vector direction, $\tan \alpha = \frac{\Delta y}{\Delta x} = \frac{y_2 - y_1}{x_2 - x_1}$.


2. The Five Standard Forms of Straight Line Equations

Depending on the given geometric parameters (such as points, slopes, or intercepts), a line can be expressed in five distinct algebraic forms:

FormEquationParametersApplication & Constraints
Point-Slope Form$y - y_0 = k(x - x_0)$Point $(x_0, y_0)$, Slope $k$Cannot represent vertical lines ($x = x_0$).
Slope-Intercept Form$y = kx + b$Slope $k$, $y$-intercept $b$Cannot represent vertical lines. Frequently used in functional analysis.
Two-Point Form$\frac{y - y_1}{y_2 - y_1} = \frac{x - x_1}{x_2 - x_1}$Points $(x_1, y_1), (x_2, y_2)$Requires $x_1 \neq x_2$ and $y_1 \neq y_2$. Cannot represent lines parallel to axes.
Intercept Form$\frac{x}{a} + \frac{y}{b} = 1$$x$-intercept $a$, $y$-intercept $b$Requires $a \neq 0$ and $b \neq 0$. Cannot represent lines through the origin or parallel to axes.
General Form$Ax + By + C = 0$Coefficients $A, B, C$ with $A^2 + B^2 \neq 0$Universal form. Represents every straight line in the 2D Cartesian plane without exception.

Conversion to General Form

In Gaokao final submissions, final line equations should always be simplified into General Form $Ax + By + C = 0$ where $A, B, C$ are simplified coprime integers and $A \ge 0$.

  • Slope of $Ax + By + C = 0$ (when $B \neq 0$): $k = -\frac{A}{B}$.
  • $x$-intercept (when $A \neq 0$): $x = -\frac{C}{A}$; $y$-intercept (when $B \neq 0$): $y = -\frac{C}{B}$.
  • Normal vector of the line: $\vec{n} = (A, B)$; Directional vector: $\vec{v} = (-B, A)$ or $(B, -A)$.

3. Positional Relationships Between Two Lines

Let two lines be given by $l_1: A_1 x + B_1 y + C_1 = 0$ and $l_2: A_2 x + B_2 y + C_2 = 0$.

Parallelism Condition ($l_1 \parallel l_2$)

Two lines are parallel if and only if their directional vectors are collinear while they do not coincide: l1l2    A1B2A2B1=0andA1C2A2C10l_1 \parallel l_2 \iff A_1 B_2 - A_2 B_1 = 0 \quad \text{and} \quad A_1 C_2 - A_2 C_1 \neq 0 If expressed in slope-intercept form $y = k_1 x + b_1$ and $y = k_2 x + b_2$: l1l2    k1=k2andb1b2l_1 \parallel l_2 \iff k_1 = k_2 \quad \text{and} \quad b_1 \neq b_2 Warning: If $A_1 B_2 - A_2 B_1 = 0$ and $A_1 C_2 - A_2 C_1 = 0$, the two lines are coincident (重合), not parallel.

Perpendicularity Condition ($l_1 \perp l_2$)

Two lines are perpendicular if and only if their normal vectors $\vec{n}_1 = (A_1, B_1)$ and $\vec{n}_2 = (A_2, B_2)$ are orthogonal ($\vec{n}_1 \cdot \vec{n}_2 = 0$): l1l2    A1A2+B1B2=0l_1 \perp l_2 \iff A_1 A_2 + B_1 B_2 = 0 If both lines have defined slopes $k_1$ and $k_2$: l1l2    k1k2=1l_1 \perp l_2 \iff k_1 k_2 = -1 (Note: The general form $A_1 A_2 + B_1 B_2 = 0$ handles vertical/horizontal line pairs naturally without encountering division by zero.)

Inclination Angle Between Two Intersecting Lines

Let $\theta$ be the acute or right angle between $l_1$ and $l_2$ ($\theta \in (0^\circ, 90^\circ]$): cosθ=n1n2n1n2=A1A2+B1B2A12+B12A22+B22\cos \theta = \frac{|\vec{n}_1 \cdot \vec{n}_2|}{|\vec{n}_1| |\vec{n}_2|} = \frac{|A_1 A_2 + B_1 B_2|}{\sqrt{A_1^2 + B_1^2} \sqrt{A_2^2 + B_2^2}} If slopes $k_1, k_2$ exist and $k_1 k_2 \neq -1$: tanθ=k2k11+k1k2\tan \theta = \left| \frac{k_2 - k_1}{1 + k_1 k_2} \right|


4. Distance Formulas and Distance Geometry

Point-to-Line Distance Formula

The perpendicular distance $d$ from a point $P(x_0, y_0)$ to a line $l: Ax + By + C = 0$ is: d=Ax0+By0+CA2+B2d = \frac{|Ax_0 + By_0 + C|}{\sqrt{A^2 + B^2}}

Rigorous Proof: Let $Q(x_1, y_1)$ be the projection of $P(x_0, y_0)$ onto $l$. The vector $\vec{QP}$ is parallel to the normal vector $\vec{n} = (A, B)$. Since $Q$ lies on $l$, $A x_1 + B y_1 + C = 0 \implies A x_1 + B y_1 = -C$. The scalar projection of $\vec{P_0 P}$ (where $P_0$ is any point on $l$) onto $\vec{n}$ gives: d=nP0Pn=A(x0x1)+B(y0y1)A2+B2=Ax0+By0(Ax1+By1)A2+B2=Ax0+By0+CA2+B2d = \frac{|\vec{n} \cdot \vec{P_0 P}|}{|\vec{n}|} = \frac{|A(x_0 - x_1) + B(y_0 - y_1)|}{\sqrt{A^2 + B^2}} = \frac{|Ax_0 + By_0 - (Ax_1 + By_1)|}{\sqrt{A^2 + B^2}} = \frac{|Ax_0 + By_0 + C|}{\sqrt{A^2 + B^2}}

Distance Between Parallel Lines

For two parallel lines $l_1: Ax + By + C_1 = 0$ and $l_2: Ax + By + C_2 = 0$ ($C_1 \neq C_2$): d=C1C2A2+B2d = \frac{|C_1 - C_2|}{\sqrt{A^2 + B^2}} Requirement: Both line equations must be normalized to share identical coefficients for $x$ and $y$ ($A$ and $B$) before applying this formula.

Family of Lines Passing Through an Intersection (Line Pencil)

Given two intersecting lines $l_1: A_1 x + B_1 y + C_1 = 0$ and $l_2: A_2 x + B_2 y + C_2 = 0$, the equation: A1x+B1y+C1+λ(A2x+B2y+C2)=0(λR)A_1 x + B_1 y + C_1 + \lambda (A_2 x + B_2 y + C_2) = 0 \quad (\lambda \in \mathbb{R}) represents the family of all straight lines passing through the intersection point of $l_1$ and $l_2$, excluding line $l_2$ itself.


5. Reflection and Symmetry Problems in Cartesian Coordinates

Symmetry is a frequently tested topic in Gaokao analytic geometry. Two core scenarios exist:

Point Reflection Across a Line

To find the reflection point $P'(x', y')$ of $P(x_0, y_0)$ across mirror line $l: Ax + By + C = 0$:

  1. Perpendicularity Condition: Slope of $PP'$ is perpendicular to line $l$, so $\vec{PP'} \parallel \vec{n} = (A, B)$, giving $\frac{y' - y_0}{x' - x_0} = \frac{B}{A}$ (or $(x' - x_0) B - (y' - y_0) A = 0$).
  2. Midpoint Condition: The midpoint $M\left(\frac{x_0 + x'}{2}, \frac{y_0 + y'}{2}\right)$ of segment $PP'$ lies on $l$: A(x0+x2)+B(y0+y2)+C=0A\left(\frac{x_0 + x'}{2}\right) + B\left(\frac{y_0 + y'}{2}\right) + C = 0 Solving this $2 \times 2$ system uniquely yields coordinates $(x', y')$.

Line Reflection Across a Line

To find the reflection of line $l_1$ across mirror line $l$:

  • Find the intersection point $I = l_1 \cap l$ (if $l_1 \nparallel l$).
  • Pick a non-intersection point $P \in l_1$, calculate its point reflection $P'$ across $l$.
  • The reflected line is the unique line passing through $I$ and $P'$.
Loading diagram...
Classification and Geometric Metrics of Straight Lines
Test Your Knowledge

Given two lines $l_1: a x + 2 y + 1 = 0$ and $l_2: x + (a+1) y + 1 = 0$. What is the necessary and sufficient condition for $l_1 \parallel l_2$?

A
B
C
D
Test Your Knowledge

What is the distance between the two parallel straight lines $l_1: 3x - 4y + 5 = 0$ and $l_2: 6x - 8y - 10 = 0$?

A
B
C
D
Test Your Knowledge

Find the coordinates of the reflection point $P'$ when the point $P(3, 1)$ is reflected across the line $l: x - y + 2 = 0$.

A
B
C
D