Skip to content
Skip to page content
soylai.com

Equation of a Straight Line — chapter notes

7 sections 6 min readBeta

1. Inclination and slope

  • The inclination θ\theta of a line is the angle from the positive xx-axis to the line, measured anticlockwise, with 0∘≤θ<180∘0^\circ \le \theta < 180^\circ.
  • The slope (gradient) is m=tan⁡θm = \tan \theta.
  • m>0m > 0: the line rises from left to right; m<0m < 0: it falls (obtuse θ\theta); m=0m = 0: horizontal; a vertical line (θ=90∘\theta = 90^\circ) has no slope.

Example: a line inclined at 60∘60^\circ has slope 3\sqrt{3}; a line of slope −1-1 has inclination 135∘135^\circ.

The slope is the tangent of the inclination.
Inclination θ\thetaSlope m=tan⁡θm = \tan \thetaThe line is
0∘0^\circ00horizontal
30∘30^\circ13\dfrac{1}{\sqrt{3}}rising gently
45∘45^\circ11rising, at equal steps
60∘60^\circ3\sqrt{3}rising steeply
90∘90^\circnot definedvertical
135∘135^\circ−1-1falling
  • y=2xy = 2x: m=2m = 2
  • y=−x+3y = -x + 3: m=−1m = -1
  • y=2y = 2: m=0m = 0
Rising: $m > 0$. Falling: $m < 0$. Horizontal: $m = 0$. Vertical: not defined.

Formulas

  • Slope from inclination
    m=tan⁡θm = \tan \theta

Key terms

Inclination

The angle θ\theta a line makes with the positive direction of the xx-axis, measured anticlockwise.

Slope (gradient)

The tangent of the inclination, m=tan⁡θm = \tan \theta; it measures steepness.

2. Slope from two points; collinear points

  • For (x1,y1)(x_1, y_1) and (x2,y2)(x_2, y_2) with x1≠x2x_1 \ne x_2: m=y2−y1x2−x1m = \dfrac{y_2 - y_1}{x_2 - x_1}, the rise divided by the run. Keep the same order on top and bottom.
  • If x1=x2x_1 = x_2 the line is vertical and has no slope.
  • AA, BB, CC are collinear when slope ABAB = slope BCBC.

Example: P(−2,5)P(-2, 5) and Q(4,−1)Q(4, -1): m=−1−54−(−2)=−1m = \dfrac{-1 - 5}{4 - (-2)} = -1. For A(1,−1)A(1, -1), B(3,3)B(3, 3), C(k,7)C(k, 7) to be collinear, 7−3k−3=2\dfrac{7 - 3}{k - 3} = 2, so k=5k = 5.

  • y=34x+74y = \dfrac{3}{4}x + \dfrac{7}{4}
  • run = 4
  • rise = 3
Slope $=$ rise $\div$ run $= \dfrac{3}{4}$.
  • y=−x+3y = -x + 3
A negative slope: the line falls from left to right.
  • y=23x+1y = \dfrac{2}{3}x + 1
Equal slopes $UV$ and $VW$, with $V$ shared: one straight line.
  • y=2x−3y = 2x - 3
With $k = 5$, $C(5, 7)$ is on line $AB$.

Formulas

  • Slope through two points
    m=y2−y1x2−x1m = \dfrac{y_2 - y_1}{x_2 - x_1}

Key terms

Rise and run

The change in yy and the change in xx between two points of a line.

Collinear

Lying on one straight line.

3. Slope-intercept form and intercepts

  • y=mx+cy = mx + c: slope mm, yy-intercept cc (the line meets the yy-axis at (0,c)(0, c)). A line through the origin is y=mxy = mx.
  • From ax+by+c=0ax + by + c = 0 (b≠0b \ne 0): y=−abx−cby = -\dfrac{a}{b}x - \dfrac{c}{b}, so the slope is −ab-\dfrac{a}{b} and the yy-intercept is −cb-\dfrac{c}{b}.
  • Intercepts: put y=0y = 0 for the xx-intercept and x=0x = 0 for the yy-intercept.
  • A point lies on a line exactly when its coordinates satisfy the equation.

Example: 3x−4y+8=03x - 4y + 8 = 0 gives y=34x+2y = \dfrac{3}{4}x + 2: slope 34\dfrac{3}{4}, yy-intercept 22. The line 4x+3y=124x + 3y = 12 meets the axes at (3,0)(3, 0) and (0,4)(0, 4).

  • y=23x−2y = \dfrac{2}{3}x - 2
In $y = mx + c$: slope $m = \dfrac{2}{3}$, $y$-intercept $c = -2$.
  • y=−23x+4y = -\dfrac{2}{3}x + 4
  • y=34x+2y = \dfrac{3}{4}x + 2
The constant in $y = mx + c$ is where the line meets the $y$-axis.
  • y=−43x+4y = -\dfrac{4}{3}x + 4
Put $y = 0$ for the $x$-intercept and $x = 0$ for the $y$-intercept.

Formulas

  • Slope-intercept form
    y=mx+cy = mx + c
  • Slope of ax + by + c = 0
    m=−abm = -\dfrac{a}{b}

Key terms

yy-intercept

The yy-coordinate cc of the point where a line meets the yy-axis.

xx-intercept

The xx-coordinate of the point where a line meets the xx-axis.

4. Point-slope and two-point forms

  • Point-slope form: the line through (x1,y1)(x_1, y_1) with slope mm is y−y1=m(x−x1)y - y_1 = m(x - x_1).
  • Two-point form: find m=y2−y1x2−x1m = \dfrac{y_2 - y_1}{x_2 - x_1}, then use the point-slope form with either point.
  • Clear fractions and write the answer as ax+by+c=0ax + by + c = 0 (or y=mx+cy = mx + c); check it with the given points.
  • Special cases: a line through (x1,y1)(x_1, y_1) parallel to the xx-axis is y=y1y = y_1; parallel to the yy-axis, x=x1x = x_1.

Example: through (2,−3)(2, -3) with slope 32\dfrac{3}{2}: 2y+6=3x−62y + 6 = 3x - 6, so 3x−2y−12=03x - 2y - 12 = 0. Through (−1,4)(-1, 4) and (3,−2)(3, -2): m=−32m = -\dfrac{3}{2} and 3x+2y−5=03x + 2y - 5 = 0.

  • y=3x−5y = 3x - 5
Every point $(x, y)$ of the line gives slope $3$ with $A$.
  • y=32x−6y = \dfrac{3}{2}x - 6
Point-slope form, then clear the fraction.
Two points fix the slope; either point then fixes the line.
  • y=−32x+52y = -\dfrac{3}{2}x + \dfrac{5}{2}
Both given points satisfy $3x + 2y - 5 = 0$.

Formulas

  • Point-slope form
    y−y1=m(x−x1)y - y_1 = m(x - x_1)
  • Two-point form
    y−y1=y2−y1x2−x1(x−x1)y - y_1 = \dfrac{y_2 - y_1}{x_2 - x_1}(x - x_1)

Key terms

Point-slope form

y−y1=m(x−x1)y - y_1 = m(x - x_1), the line through (x1,y1)(x_1, y_1) with slope mm.

5. Parallel and perpendicular lines

  • Parallel: m1=m2m_1 = m_2 (and different intercepts). Two vertical lines are parallel.
  • Perpendicular: m1m2=−1m_1 m_2 = -1, so the perpendicular slope is −1m-\dfrac{1}{m}. A horizontal and a vertical line are perpendicular.
  • A line parallel to ax+by+c=0ax + by + c = 0 can be written ax+by+k=0ax + by + k = 0; find kk from the point it passes through.
  • Unknown coefficients: set the slopes equal (parallel) or their product equal to −1-1 (perpendicular).

Example: through (3,−2)(3, -2) parallel to 4x−y+7=04x - y + 7 = 0: 4x−y−14=04x - y - 14 = 0. Through (−2,1)(-2, 1) perpendicular to x+3y−6=0x + 3y - 6 = 0: slope 33, so 3x−y+7=03x - y + 7 = 0.

  • y=32x+1y = \dfrac{3}{2}x + 1
  • y=−23x+163y = -\dfrac{2}{3}x + \dfrac{16}{3}
$\dfrac{3}{2} \times \left(-\dfrac{2}{3}\right) = -1$: the lines are perpendicular.
  • y=13x+2y = \dfrac{1}{3}x + 2
  • y=13x−1y = \dfrac{1}{3}x - 1
Same slope, different intercepts: parallel lines.
Compare slopes: equal, product $-1$, or neither.
LinesSlopesTestResult
3x−2y+5=03x - 2y + 5 = 0 and 6x−4y−7=06x - 4y - 7 = 032\dfrac{3}{2} and 32\dfrac{3}{2}equal slopesparallel
2x+5y−7=02x + 5y - 7 = 0 and 5x−2y+3=05x - 2y + 3 = 0−25-\dfrac{2}{5} and 52\dfrac{5}{2}product −1-1perpendicular
x+2y−4=0x + 2y - 4 = 0 and 2x+y+1=02x + y + 1 = 0−12-\dfrac{1}{2} and −2-2product 11neither
  • y=4x+7y = 4x + 7
  • y=4x−14y = 4x - 14
Parallel: copy the slope, change the point.
  • y=−13x+2y = -\dfrac{1}{3}x + 2
  • y=3x+7y = 3x + 7
Slopes $-\dfrac{1}{3}$ and $3$ multiply to $-1$.
  • y=3x+1y = 3x + 1
  • y=3x+52y = 3x + \dfrac{5}{2}
  • y=−13x+52y = -\dfrac{1}{3}x + \dfrac{5}{2}
Parallel when $k = -6$; perpendicular when $k = \dfrac{2}{3}$.

Formulas

  • Parallel lines
    m1=m2m_1 = m_2
  • Perpendicular lines
    m1×m2=−1m_1 \times m_2 = -1

Key terms

Parallel lines

Lines with equal slopes (or both vertical); they never meet.

Negative reciprocal

For slope m≠0m \ne 0, the slope −1m-\dfrac{1}{m} of a perpendicular line.

6. The meeting point of two lines

  • The point where two lines meet satisfies both equations: solve them simultaneously by substitution or elimination.
  • To find a line through the meeting point with a given condition, find the point first, then the slope, then use the point-slope form.
  • The foot of the perpendicular from a point to a line is where the perpendicular through the point meets the line.

Example: 2x+y−7=02x + y - 7 = 0 and x−y+1=0x - y + 1 = 0 meet at (2,3)(2, 3); the line through (2,3)(2, 3) perpendicular to 3x−4y+2=03x - 4y + 2 = 0 is 4x+3y−17=04x + 3y - 17 = 0.

  • y=−x+5y = -x + 5
  • y=12x+12y = \dfrac{1}{2}x + \dfrac{1}{2}
The meeting point satisfies both equations.
  • y=−2x+7y = -2x + 7
  • y=x+1y = x + 1
  • y=−43x+173y = -\dfrac{4}{3}x + \dfrac{17}{3}
First the meeting point, then the slope.

Key terms

Simultaneous solution

The pair (x,y)(x, y) satisfying both equations: the meeting point of the two lines.

Foot of the perpendicular

The point where a perpendicular from a point meets the given line.

7. Applications: perpendicular bisector, median and altitude

  • Perpendicular bisector of ABAB: through the mid-point of ABAB, slope −1mAB-\dfrac{1}{m_{AB}}. Every point on it is equidistant from AA and BB.
  • Median from AA: the line through AA and the mid-point of BCBC. The three medians meet at the centroid.
  • Altitude from AA: through AA, perpendicular to BCBC (slope −1mBC-\dfrac{1}{m_{BC}}).
  • With the section formula, a point dividing ABAB in m:nm : n is (mx2+nx1m+n,my2+ny1m+n)\left(\dfrac{mx_2 + nx_1}{m + n}, \dfrac{my_2 + ny_1}{m + n}\right).

Example: for A(−1,3)A(-1, 3) and B(5,−1)B(5, -1) the perpendicular bisector is 3x−2y−4=03x - 2y - 4 = 0; for P(−2,−1)P(-2, -1), Q(4,1)Q(4, 1), R(2,5)R(2, 5) the median from RR is 5x−y−5=05x - y - 5 = 0 and the altitude from PP is x−2y=0x - 2y = 0.

Find the point, find the slope, then use the point-slope form.
ToolFormula or rule
Mid-point of ABAB(x1+x22,y1+y22)\left(\dfrac{x_1 + x_2}{2}, \dfrac{y_1 + y_2}{2}\right)
Point dividing ABAB in m:nm : n(mx2+nx1m+n,my2+ny1m+n)\left(\dfrac{mx_2 + nx_1}{m + n}, \dfrac{my_2 + ny_1}{m + n}\right)
Centroid of a triangle(x1+x2+x33,y1+y2+y33)\left(\dfrac{x_1 + x_2 + x_3}{3}, \dfrac{y_1 + y_2 + y_3}{3}\right)
Perpendicular bisector of ABABthrough the mid-point, slope −1mAB-\dfrac{1}{m_{AB}}
Median from AAthrough AA and the mid-point of BCBC
Altitude from AAthrough AA, slope −1mBC-\dfrac{1}{m_{BC}}
  • segment ABAB
  • y=32x−2y = \dfrac{3}{2}x - 2
Every point of the bisector is equally far from $A$ and $B$.
  • side PQPQ
  • side QRQR
  • side RPRP
  • median from RR
  • altitude from PP
Median: to the mid-point. Altitude: at right angles.
  • y=−12x+3y = -\dfrac{1}{2}x + 3
  • y=2x−2y = 2x - 2
Section formula for the point, negative reciprocal for the slope.

Formulas

  • Mid-point
    (x1+x22,y1+y22)\left(\dfrac{x_1 + x_2}{2}, \dfrac{y_1 + y_2}{2}\right)
  • Section formula (internal)
    (mx2+nx1m+n,my2+ny1m+n)\left(\dfrac{mx_2 + nx_1}{m + n}, \dfrac{my_2 + ny_1}{m + n}\right)

Key terms

Perpendicular bisector

The line through the mid-point of a segment, at right angles to it.

Median

The line from a vertex of a triangle to the mid-point of the opposite side.

Altitude

The line from a vertex of a triangle perpendicular to the opposite side.

Exam tips

How marks are awarded

  • Slope or inclination (1–2 marks): formula with the values substituted 1; value (and angle) 1.
  • Equation of a line (2–3 marks): slope 1; point-slope form 1; simplified equation 1.
  • Parallel or perpendicular line (3 marks): given slope, new slope, equation.
  • Median, altitude or perpendicular bisector (3–4 marks): the point (mid-point, section point) 1–2; the slope 1; the equation 1.
  • 10-mark structured question: parts (a), (b), (c), usually 3 + 3 + 4; show every slope, point and substitution.

Common mistakes

  1. Mixing the order in the slope formula: y2−y1x1−x2\dfrac{y_2 - y_1}{x_1 - x_2} has the wrong sign.
  2. Reading the slope of ax+by+c=0ax + by + c = 0 as aa or ab\dfrac{a}{b}; it is −ab-\dfrac{a}{b}.
  3. Using −m-m or 1m\dfrac{1}{m} for a perpendicular slope instead of −1m-\dfrac{1}{m}.
  4. Confusing a median (to the mid-point) with an altitude (at right angles).
  5. Writing a vertical line as y=ky = k or giving it a slope.
  6. Not checking the final equation with the given points.