TExcelTAD
Home › Coordinate Geometry: 2D & 3D Cartesian Systems › Line Equations in R²: Slope-Intercept, Point-Slope, Two-Point, and General Form

Line Equations in R2\mathbb{R}^2: Slope-Intercept, Point-Slope, Two-Point, and General Form

A line in the Cartesian plane represents the geometric locus of all points (x,y)(x, y) that satisfy a first-degree (linear) algebraic equation. Depending on the given geometric information—such as a slope, a known point, two points, or intercepts—different algebraic forms offer the fastest route to the solution.


1. The Five Standard Forms of a Line

Name of Form Standard Equation Given Information Key Characteristics
Slope-Intercept y=mx+cy = mx + c Slope mm, yy-intercept (0,c)(0, c) Direct function form
Point-Slope y−y1=m(x−x1)y - y_1 = m(x - x_1) Slope mm, known point (x1,y1)(x_1, y_1) Fastest for point + slope
Two-Point y−y1y2−y1=x−x1x2−x1\frac{y - y_1}{y_2 - y_1} = \frac{x - x_1}{x_2 - x_1} Two points (x1,y1)(x_1, y_1), (x2,y2)(x_2, y_2) No separate slope step required
Intercept xa+yb=1\frac{x}{a} + \frac{y}{b} = 1 xx-intercept (a,0)(a, 0), yy-intercept (0,b)(0, b) Requires a,b≠0a, b \neq 0
General Linear Ax+By+C=0Ax + By + C = 0 Coefficients A,B,CA, B, C (A2+B2≠0A^2+B^2 \neq 0) Handles vertical lines (B=0B=0)
x y (a, 0) (0, b) = (0, c) P(x_1, y_1) O

2. Derivations of the Forms

1. Point-Slope Form

Let P(x,y)P(x, y) be any arbitrary point on the line other than the given fixed point P1(x1,y1)P_1(x_1, y_1). By the definition of slope:

y−y1x−x1=m  ⟹  y−y1=m(x−x1)\frac{y - y_1}{x - x_1} = m \implies y - y_1 = m(x - x_1)

2. Slope-Intercept Form

If the known point is chosen specifically as the yy-intercept (0,c)(0, c), substitute x1=0x_1 = 0 and y1=cy_1 = c into point-slope form:

y−c=m(x−0)  ⟹  y=mx+cy - c = m(x - 0) \implies y = mx + c

3. Two-Point Form

Given two points P1(x1,y1)P_1(x_1, y_1) and P2(x2,y2)P_2(x_2, y_2) with x1≠x2x_1 \neq x_2, the slope is m=y2−y1x2−x1m = \frac{y_2 - y_1}{x_2 - x_1}. Substituting this into the point-slope form yields:

y−y1=y2−y1x2−x1(x−x1)  ⟺  y−y1y2−y1=x−x1x2−x1y - y_1 = \frac{y_2 - y_1}{x_2 - x_1}(x - x_1) \iff \frac{y - y_1}{y_2 - y_1} = \frac{x - x_1}{x_2 - x_1}

4. Intercept Form

Given the xx-intercept (a,0)(a, 0) and yy-intercept (0,b)(0, b) with a,b≠0a, b \neq 0: The slope is m=b−00−a=−bam = \frac{b - 0}{0 - a} = -\frac{b}{a}. Using the slope-intercept form:

y=−bax+b  ⟹  bax+y=by = -\frac{b}{a}x + b \implies \frac{b}{a}x + y = b

Dividing every term by bb:

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

5. General Linear Form (Ax+By+C=0Ax + By + C = 0)

Every straight line in R2\mathbb{R}^2 can be expressed in general form. From Ax+By+C=0Ax + By + C = 0:

  • If B≠0B \neq 0, solve for yy:
    By=−Ax−C  ⟹  y=(−AB)x+(−CB)By = -Ax - C \implies y = \left(-\frac{A}{B}\right)x + \left(-\frac{C}{B}\right)
    Thus, slope m=−ABm = -\frac{A}{B} and yy-intercept c=−CBc = -\frac{C}{B}.
  • If B=0B = 0 and A≠0A \neq 0:
    Ax+C=0  ⟹  x=−CAAx + C = 0 \implies x = -\frac{C}{A}
    This is a vertical line parallel to the yy-axis with undefined slope.

3. Horizontal and Vertical Lines

Horizontal Line:y=k(slope m=0, parallel to x-axis)Vertical Line:x=h(slope undefined, parallel to y-axis)\begin{aligned} \text{\bf Horizontal Line:} &\quad y = k \quad (\text{slope } m = 0, \text{ parallel to } x\text{-axis}) \\ \text{\bf Vertical Line:} &\quad x = h \quad (\text{slope undefined}, \text{ parallel to } y\text{-axis}) \end{aligned}

4. Step-by-Step Paper Notebook Method

Strategy 1 (Given Point and Slope):Write y−y1=m(x−x1). Distribute and rearrange to Ax+By+C=0.Strategy 2 (Given Two Points):Compute m=y2−y1x2−x1. Then use Point-Slope with either point.Strategy 3 (Given General Form):To find slope: m=−A/B.To find x-int: set y=0  ⟹  x=−C/A.To find y-int: set x=0  ⟹  y=−C/B.\begin{aligned} \text{\bf Strategy 1 (Given Point and Slope):} &\quad \text{Write } y - y_1 = m(x - x_1). \text{ Distribute and rearrange to } Ax + By + C = 0. \\ \text{\bf Strategy 2 (Given Two Points):} &\quad \text{Compute } m = \frac{y_2 - y_1}{x_2 - x_1}. \text{ Then use Point-Slope with either point.} \\ \text{\bf Strategy 3 (Given General Form):} &\quad \text{To find slope: } m = -A/B. \\ &\quad \text{To find } x\text{-int: set } y = 0 \implies x = -C/A. \\ &\quad \text{To find } y\text{-int: set } x = 0 \implies y = -C/B. \end{aligned}

5. Comprehensive Worked Examples

Example 1: Line Through Two Points

Problem Statement: Find the equation of the line passing through A(2,−3)A(2, -3) and B(−4,1)B(-4, 1). Express the result in:

  1. Point-Slope form
  2. Slope-Intercept form (y=mx+cy = mx + c)
  3. General linear form (Ax+By+C=0Ax + By + C = 0 with integer coefficients and A>0A > 0)

Step-by-Step Solution:

  • Step 1: Compute slope mm

    m=1−(−3)−4−2=1+3−6=4−6=−23m = \frac{1 - (-3)}{-4 - 2} = \frac{1 + 3}{-6} = \frac{4}{-6} = -\frac{2}{3}
  • Step 2: Point-Slope Form Using point A(2,−3)A(2, -3):

    y−(−3)=−23(x−2)  ⟹  y+3=−23(x−2)y - (-3) = -\frac{2}{3}(x - 2) \implies y + 3 = -\frac{2}{3}(x - 2)
  • Step 3: Slope-Intercept Form Distribute and isolate yy:

    y+3=−23x+43y=−23x+43−3y=−23x+4−93=−23x−53\begin{aligned} y + 3 &= -\frac{2}{3}x + \frac{4}{3} \\ y &= -\frac{2}{3}x + \frac{4}{3} - 3 \\ y &= -\frac{2}{3}x + \frac{4 - 9}{3} = -\frac{2}{3}x - \frac{5}{3} \end{aligned}
  • Step 4: General Linear Form (Ax+By+C=0Ax + By + C = 0) Clear fractions by multiplying by 33:

    3y=−2x−52x+3y+5=0\begin{aligned} 3y &= -2x - 5 \\ 2x + 3y + 5 &= 0 \end{aligned}

The general form is 2x+3y+5=02x + 3y + 5 = 0.


Example 2: Perpendicular Bisector of a Line Segment

Problem Statement: Find the equation of the perpendicular bisector of the line segment joining P(−1,4)P(-1, 4) and Q(5,2)Q(5, 2).

Step-by-Step Solution:

  • Step 1: Find the midpoint MM of PQPQ

    M=(−1+52,  4+22)=(2,3)M = \left( \frac{-1 + 5}{2}, \; \frac{4 + 2}{2} \right) = (2, 3)
  • Step 2: Find the slope of PQPQ

    mPQ=2−45−(−1)=−26=−13m_{PQ} = \frac{2 - 4}{5 - (-1)} = \frac{-2}{6} = -\frac{1}{3}
  • Step 3: Determine the perpendicular slope m⊥m_{\perp}

    m⊥=−1mPQ=−1−1/3=3m_{\perp} = -\frac{1}{m_{PQ}} = -\frac{1}{-1/3} = 3
  • Step 4: Write line equation through M(2,3)M(2, 3) with slope 33

    y−3=3(x−2)y−3=3x−63x−y−3=0\begin{aligned} y - 3 &= 3(x - 2) \\ y - 3 &= 3x - 6 \\ 3x - y - 3 &= 0 \end{aligned}

The equation of the perpendicular bisector is 3x−y−3=03x - y - 3 = 0 (or y=3x−3y = 3x - 3).


Example 3: Converting Intercept Form to General Form

Problem Statement: A line has an xx-intercept of −4-4 and a yy-intercept of 33. Write its equation in intercept form and convert it to general form Ax+By+C=0Ax + By + C = 0.

Step-by-Step Solution:

  • Step 1: Write intercept form With a=−4a = -4 and b=3b = 3:

    x−4+y3=1\frac{x}{-4} + \frac{y}{3} = 1
  • Step 2: Clear denominators Multiply the entire equation by −12-12:

    −12(x−4)+−12(y3)=−12(1)3x−4y=−123x−4y+12=0\begin{aligned} -12\left(\frac{x}{-4}\right) + -12\left(\frac{y}{3}\right) &= -12(1) \\ 3x - 4y &= -12 \\ 3x - 4y + 12 &= 0 \end{aligned}

The general form is 3x−4y+12=03x - 4y + 12 = 0.


6. Common Mistakes & Paper Traps

  1. Sign Reversal in Point-Slope: Writing y−3y - 3 when y1=−3y_1 = -3. It should be y−(−3)=y+3y - (-3) = y + 3.
  2. Formula Sign for Slope from General Form: Forgetting the negative sign in m=−ABm = -\frac{A}{B}. For 4x−2y+7=04x - 2y + 7 = 0, A=4A = 4 and B=−2B = -2, so m=−4−2=+2m = -\frac{4}{-2} = +2.
  3. Division by Zero on Vertical Lines: Attempting to write y=mx+cy = mx + c for a vertical line x=5x = 5. Vertical lines cannot be written in slope-intercept form because mm is undefined.
  4. Non-Standard General Form: Leaving fractions or a negative leading coefficient, such as −12x+y−3=0-\frac{1}{2}x + y - 3 = 0. Multiply by −2-2 to write x−2y+6=0x - 2y + 6 = 0.

7. Pencil & Paper Practice

  1. Problem 1: Write the equation of the line passing through (3,−5)(3, -5) parallel to the line 4x−2y+9=04x - 2y + 9 = 0.
  2. Problem 2: Find the slope, xx-intercept, and yy-intercept of the line 5x+3y−30=05x + 3y - 30 = 0.
  3. Problem 3: Write the equation of the horizontal line and the vertical line passing through (−7,4)(-7, 4).

Worked Solutions

  • Solution 1: First, find the slope of the given line 4x−2y+9=04x - 2y + 9 = 0:

    m=−AB=−4−2=2m = -\frac{A}{B} = -\frac{4}{-2} = 2

    Since the required line is parallel, its slope is also m∥=2m_{\parallel} = 2. Using point-slope form with (3,−5)(3, -5):

    y−(−5)=2(x−3)y+5=2x−62x−y−11=0\begin{aligned} y - (-5) &= 2(x - 3) \\ y + 5 &= 2x - 6 \\ 2x - y - 11 &= 0 \end{aligned}
  • Solution 2: Given 5x+3y−30=05x + 3y - 30 = 0:

    • Slope: m=−AB=−53m = -\frac{A}{B} = -\frac{5}{3}.
    • xx-intercept (set y=0y = 0): 5x−30=0  ⟹  5x=30  ⟹  x=65x - 30 = 0 \implies 5x = 30 \implies x = 6. Point is (6,0)(6, 0).
    • yy-intercept (set x=0x = 0): 3y−30=0  ⟹  3y=30  ⟹  y=103y - 30 = 0 \implies 3y = 30 \implies y = 10. Point is (0,10)(0, 10).
  • Solution 3: For the point (−7,4)(-7, 4):

    • Horizontal line (constant yy): y=4y = 4.
    • Vertical line (constant xx): x=−7x = -7.

Test yourself

What is the slope of the line given by the equation 6x+2y−11=06x + 2y - 11 = 0?

  1. 3
  2. -3
  3. 13\frac{1}{3}
  4. −13-\frac{1}{3}

Which equation represents a line passing through (0,−4)(0, -4) with a slope of 25\frac{2}{5}?

  1. 2x−5y−20=02x - 5y - 20 = 0
  2. 2x+5y+20=02x + 5y + 20 = 0
  3. 5x−2y−20=05x - 2y - 20 = 0
  4. 2x−5y+4=02x - 5y + 4 = 0

What is the xx-intercept of the line 3x−4y+24=03x - 4y + 24 = 0?

  1. (8,0)(8, 0)
  2. (−8,0)(-8, 0)
  3. (0,6)(0, 6)
  4. (0,−6)(0, -6)