TExcelTAD
Home › School Analytical Trigonometry & Conic Sections › General Equation of a Line and Normal Vectors

General Equation of a Line and Normal Vectors

While the slope-intercept form y=mx+by = mx + b is intuitive, it suffers from a major mathematical limitation: it cannot represent vertical lines (where slope mm is undefined).

To overcome this, mathematicians use the general linear equation:

Ax+By+C=0(A2+B2≠0)Ax + By + C = 0 \quad (A^2 + B^2 \neq 0)

This single algebraic equation can describe every straight line in the two-dimensional Cartesian plane R2\mathbb{R}^2. More importantly, the coefficients AA and BB carry direct geometric meaning: they form the components of a vector perpendicular (orthogonal) to the line, called the normal vector n⃗=(A,B)\vec{n} = (A, B).


1. Concepts & Geometric Vectors

The Normal Vector n⃗=(A,B)\vec{n} = (A, B)

Let Δ\Delta be a line on the plane, and let M0(x0,y0)M_0(x_0, y_0) be a known fixed point on Δ\Delta. Let n⃗=(A,B)≠0⃗\vec{n} = (A, B) \neq \vec{0} be a vector perpendicular to Δ\Delta.

For any arbitrary point M(x,y)M(x, y) on the plane, MM belongs to line Δ\Delta if and only if the displacement vector M0M⃗\vec{M_0 M} is orthogonal to n⃗\vec{n}:

M(x,y)∈Δ  ⟺  n⃗⊥M0M⃗  ⟺  n⃗⋅M0M⃗=0M(x, y) \in \Delta \iff \vec{n} \perp \vec{M_0 M} \iff \vec{n} \cdot \vec{M_0 M} = 0
Line d: Ax + By + C = 0 Normal n = (A, B) M0(x0, y0)

Computing this dot product using Cartesian coordinates:

M0M⃗=(x−x0, y−y0)n⃗⋅M0M⃗=A(x−x0)+B(y−y0)=0Ax+By−(Ax0+By0)=0\begin{aligned} \vec{M_0 M} &= (x - x_0, \, y - y_0) \\ \vec{n} \cdot \vec{M_0 M} &= A(x - x_0) + B(y - y_0) = 0 \\ Ax + By - (Ax_0 + By_0) &= 0 \end{aligned}

Setting the constant term C=−(Ax0+By0)C = -(Ax_0 + By_0), we obtain the universal general equation:

Ax+By+C=0Ax + By + C = 0

Direction Vector u⃗\vec{u} and Its Relation to n⃗\vec{n}

A direction vector u⃗\vec{u} is any non-zero vector parallel to the line Δ\Delta.

Since n⃗⊥Δ\vec{n} \perp \Delta and u⃗∥Δ\vec{u} \parallel \Delta, the normal vector and direction vector are orthogonal:

n⃗⋅u⃗=0\vec{n} \cdot \vec{u} = 0

Given n⃗=(A,B)\vec{n} = (A, B), we can easily construct an orthogonal direction vector on paper by swapping coordinates and negating one:

u⃗=(−B,A)oru⃗=(B,−A)\vec{u} = (-B, A) \quad \text{or} \quad \vec{u} = (B, -A)

Verify:

n⃗⋅u⃗=A(−B)+B(A)=−AB+AB=0\vec{n} \cdot \vec{u} = A(-B) + B(A) = -AB + AB = 0

Formula Box

The General Equation Toolkit

  1. General Equation:
    Ax+By+C=0(A2+B2≠0)Ax + By + C = 0 \quad (A^2 + B^2 \neq 0)
  2. Normal Vector:
    n⃗=(A,B)⊥Δ\vec{n} = (A, B) \perp \Delta
  3. Direction Vector:
    u⃗=(−B,A)∥Δ\vec{u} = (-B, A) \parallel \Delta
  4. Slope from General Form (when B≠0B \neq 0):
    By=−Ax−C  ⟹  y=−ABx−CB  ⟹  m=−ABBy = -Ax - C \implies y = -\frac{A}{B}x - \frac{C}{B} \implies m = -\frac{A}{B}
  5. Special Cases:
    • B=0  ⟹  Ax+C=0  ⟹  x=−CAB = 0 \implies Ax + C = 0 \implies x = -\frac{C}{A} (Vertical line, n⃗=(A,0)\vec{n} = (A, 0)).
    • A=0  ⟹  By+C=0  ⟹  y=−CBA = 0 \implies By + C = 0 \implies y = -\frac{C}{B} (Horizontal line, n⃗=(0,B)\vec{n} = (0, B)).
    • C=0  ⟹  Ax+By=0C = 0 \implies Ax + By = 0 (Line passes through the origin (0,0)(0, 0)).

2. Step-by-Step Paper Notebook Method

Method: Constructing General Form from a Point and Normal Vector

Line d: Ax + By + C = 0 Normal n = (A, B) M0(x0, y0)

3. Worked Notebook Examples

Example 1: Point and Normal Vector Given

Problem: Find the general equation of the line Δ\Delta that passes through M0(3,−4)M_0(3, -4) with normal vector n⃗=(5,2)\vec{n} = (5, 2).

Step 1: Apply point-normal formula Here x0=3x_0 = 3, y0=−4y_0 = -4, A=5A = 5, and B=2B = 2.

A(x−x0)+B(y−y0)=0A(x - x_0) + B(y - y_0) = 0

Step 2: Substitute values with care

5(x−3)+2(y−(−4))=05(x−3)+2(y+4)=05(x - 3) + 2(y - (-4)) = 0 5(x - 3) + 2(y + 4) = 0

Step 3: Expand and combine constant terms

5x−15+2y+8=05x+2y−7=0\begin{aligned} 5x - 15 + 2y + 8 &= 0 \\ 5x + 2y - 7 &= 0 \end{aligned}

(Check: 5(3)+2(−4)−7=15−8−7=05(3) + 2(-4) - 7 = 15 - 8 - 7 = 0. Correct!)

Final Answer:

5x+2y−7=05x + 2y - 7 = 0

Example 2: Converting Slope-Intercept to Standard General Form

Problem: Convert the equation y=−35x+23y = -\frac{3}{5}x + \frac{2}{3} into the standard general form Ax+By+C=0Ax + By + C = 0 with coprime integer coefficients and A>0A > 0.

Step 1: Bring all terms to one side

35x+y−23=0\frac{3}{5}x + y - \frac{2}{3} = 0

Step 2: Clear fractional denominators The least common multiple of denominators 55 and 33 is lcm(5,3)=15\text{lcm}(5, 3) = 15. Multiply the entire equation by 1515:

15⋅(35x+y−23)=15⋅015 \cdot \left(\frac{3}{5}x + y - \frac{2}{3}\right) = 15 \cdot 0

Step 3: Distribute multiplication

15⋅35x+15⋅y−15⋅23=03⋅3x+15y−5⋅2=09x+15y−10=0\begin{aligned} 15 \cdot \frac{3}{5}x + 15 \cdot y - 15 \cdot \frac{2}{3} &= 0 \\ 3 \cdot 3x + 15y - 5 \cdot 2 &= 0 \\ 9x + 15y - 10 &= 0 \end{aligned}

Coefficients are A=9A = 9, B=15B = 15, C=−10C = -10. Since gcd⁡(9,15,10)=1\gcd(9, 15, 10) = 1 and A>0A > 0, this is in simplest integer form.

Final Answer:

9x+15y−10=09x + 15y - 10 = 0

Example 3: General Equation from Two Points

Problem: Find the general equation of the line passing through points A(2,5)A(2, 5) and B(−1,1)B(-1, 1).

Step 1: Determine the displacement vector AB⃗\vec{AB} (direction vector u⃗\vec{u})

u⃗=AB⃗=(xB−xA, yB−yA)=(−1−2, 1−5)=(−3,−4)\vec{u} = \vec{AB} = (x_B - x_A, \, y_B - y_A) = (-1 - 2, \, 1 - 5) = (-3, -4)

We can scale u⃗\vec{u} by dividing by −1-1 to get a simpler direction vector:

u⃗=(3,4)\vec{u} = (3, 4)

Step 2: Find a normal vector n⃗=(A,B)\vec{n} = (A, B) Since n⃗⋅u⃗=0\vec{n} \cdot \vec{u} = 0: If u⃗=(u1,u2)=(3,4)\vec{u} = (u_1, u_2) = (3, 4), we can choose n⃗=(−u2,u1)=(−4,3)\vec{n} = (-u_2, u_1) = (-4, 3) or n⃗=(4,−3)\vec{n} = (4, -3). Choosing n⃗=(4,−3)\vec{n} = (4, -3) ensures A>0A > 0.

Step 3: Write the equation using point A(2,5)A(2, 5)

A(x−xA)+B(y−yA)=04(x−2)−3(y−5)=04x−8−3y+15=04x−3y+7=0\begin{aligned} A(x - x_A) + B(y - y_A) &= 0 \\ 4(x - 2) - 3(y - 5) &= 0 \\ 4x - 8 - 3y + 15 &= 0 \\ 4x - 3y + 7 &= 0 \end{aligned}

(Self-check with B(−1,1)B(-1, 1): 4(−1)−3(1)+7=−4−3+7=04(-1) - 3(1) + 7 = -4 - 3 + 7 = 0. Perfect!)

Final Answer:

4x−3y+7=04x - 3y + 7 = 0

4. Common Mistakes & Paper Traps

[!WARNING]

  1. Confusing Normal and Direction Vectors: Reading 3x−4y+5=03x - 4y + 5 = 0 and asserting that the direction of the line is (3,−4)(3, -4). That is the normal vector n⃗=(3,−4)\vec{n} = (3, -4)! The direction vector is u⃗=(4,3)\vec{u} = (4, 3).
  2. Sign Error in Slope: Converting Ax+By+C=0Ax + By + C = 0 to slope and writing m=ABm = \frac{A}{B} instead of m=−ABm = -\frac{A}{B}.
    • Example: For 2x+5y−1=02x + 5y - 1 = 0, 5y=−2x+1  ⟹  m=−255y = -2x + 1 \implies m = -\frac{2}{5}.
  3. Non-unique Representations: The equations 2x−3y+4=02x - 3y + 4 = 0 and 4x−6y+8=04x - 6y + 8 = 0 represent the exact same geometric line. To compare lines reliably, always reduce coefficients by dividing by their greatest common divisor.

5. Pencil & Paper Practice

Try these problems in your notebook:

Practice 1

Find the general equation of the line passing through K(−2,3)K(-2, 3) with normal vector n⃗=(3,−7)\vec{n} = (3, -7).

Practice 2

Find a normal vector n⃗\vec{n}, a direction vector u⃗\vec{u}, and the slope mm of the line 6x−2y+9=06x - 2y + 9 = 0.

Practice 3

Write the general equation of the line passing through E(−3,2)E(-3, 2) and F(−3,−8)F(-3, -8). What kind of line is this?


Worked Solutions

Solution to Practice 1:

3(x−(−2))−7(y−3)=03(x+2)−7(y−3)=03x+6−7y+21=03x−7y+27=0\begin{aligned} 3(x - (-2)) - 7(y - 3) &= 0 \\ 3(x + 2) - 7(y - 3) &= 0 \\ 3x + 6 - 7y + 21 &= 0 \\ 3x - 7y + 27 &= 0 \end{aligned}

Answer: 3x−7y+27=03x - 7y + 27 = 0.


Solution to Practice 2: From 6x−2y+9=06x - 2y + 9 = 0:

  • Normal vector: n⃗=(6,−2)\vec{n} = (6, -2), which simplifies to n⃗=(3,−1)\vec{n} = (3, -1).
  • Direction vector: u⃗=(2,6)\vec{u} = (2, 6) or simplified u⃗=(1,3)\vec{u} = (1, 3).
  • Slope:
−2y=−6x−9  ⟹  y=3x+92  ⟹  m=3-2y = -6x - 9 \implies y = 3x + \frac{9}{2} \implies m = 3

(Notice m=−AB=−6−2=3m = -\frac{A}{B} = -\frac{6}{-2} = 3.)

Answer: n⃗=(3,−1)\vec{n} = (3, -1), u⃗=(1,3)\vec{u} = (1, 3), m=3m = 3.


Solution to Practice 3: Points E(−3,2)E(-3, 2) and F(−3,−8)F(-3, -8) both share the exact same xx-coordinate: xE=xF=−3x_E = x_F = -3. The line is vertical:

x=−3  ⟹  x+3=0x = -3 \implies x + 3 = 0

In general form Ax+By+C=0Ax + By + C = 0, this is 1x+0y+3=01x + 0y + 3 = 0. Answer: x+3=0x + 3 = 0 (vertical line).


Test yourself

What is the normal vector n⃗\vec{n} to the line 4x−7y+11=04x - 7y + 11 = 0?

  1. n⃗=(4,−7)\vec{n} = (4, -7)
  2. n⃗=(7,4)\vec{n} = (7, 4)
  3. n⃗=(−7,4)\vec{n} = (-7, 4)
  4. n⃗=(4,7)\vec{n} = (4, 7)

What is the slope mm of the line with general equation 3x+5y−12=03x + 5y - 12 = 0?

  1. m=35m = \frac{3}{5}
  2. m=−35m = -\frac{3}{5}
  3. m=−53m = -\frac{5}{3}
  4. m=125m = \frac{12}{5}

Which direction vector u⃗\vec{u} is parallel to the line 2x−3y+8=02x - 3y + 8 = 0?

  1. u⃗=(2,−3)\vec{u} = (2, -3)
  2. u⃗=(−2,3)\vec{u} = (-2, 3)
  3. u⃗=(3,2)\vec{u} = (3, 2)
  4. u⃗=(3,−2)\vec{u} = (3, -2)