Equation of a Straight Line
Interactive curriculum lessons, worked examples, and geometric problem-solving techniques designed to help Kenyan students master CBC, KPSEA, KCSE, and IGCSE mathematics.
First Principles
Objective: Find and interpret the gradient and equation of a straight line.
Imagine driving up the Nairobi–Naivasha escarpment on the Great Rift Valley road. The road climbs steadily: for every few metres you travel forward, you gain a certain height. That ratio of rise (vertical change) to run (horizontal change) is the gradient — the fundamental rate of change of every straight line.
(a) Concrete Scenario: Coordinates on a Map
Two landmarks on a grid — such as your starting town and destination — define a unique straight path. Label them \((x_1, y_1)\) and \((x_2, y_2)\). The change in height / vertical position is \(y_2 - y_1\) (the rise); the change in horizontal position is \(x_2 - x_1\) (the run).
(b) Geometric Insight: Rate of Steepness
The gradient \(m\) measures steepness and direction:
- Positive gradient (\(m > 0\)): Slopes upwards from left to right.
- Negative gradient (\(m < 0\)): Slopes downwards from left to right.
- Zero gradient (\(m = 0\)): Completely horizontal line (flat terrain).
- Undefined gradient: Perfectly vertical line (where run \(= x_2 - x_1 = 0\), dividing by zero is impossible).
(c) Algebraic Rule: Constructing the Line
Once the gradient \(m\) is known, any single point \((x_1, y_1)\) pins down the whole line. Using the point-slope form \(y - y_1 = m(x - x_1)\) and rearranging gives the slope-intercept form: \[ y = mx + c \] where \(m\) is the gradient and \(c\) is the \(y\)-intercept (the value of \(y\) when \(x = 0\)).
Key Formulas
Worked Examples
Problem: A straight line has a gradient of \(3\) and crosses the \(y\)-axis at \((0, -4)\). Find the equation of the line.
- Identify Given Values: Gradient \(m = 3\) and \(y\)-intercept \(c = -4\).
- Substitute into Slope-Intercept Form: \[ y = mx + c \implies y = 3x + (-4) \]
- Simplify: \[ y = 3x - 4 \]
Answer: \( y = 3x - 4 \)
Problem: Find the equation of the line passing through \(A(2, 5)\) and \(B(6, 13)\) in the form \(y = mx + c\).
- Step 1: Calculate the gradient (\(m\)): \[ m = \frac{y_2 - y_1}{x_2 - x_1} = \frac{13 - 5}{6 - 2} = \frac{8}{4} = 2 \]
- Step 2: Use point-slope form with point \(A(2, 5)\): \[ y - y_1 = m(x - x_1) \implies y - 5 = 2(x - 2) \]
- Step 3: Expand and solve for \(y\): \[ y - 5 = 2x - 4 \implies y = 2x - 4 + 5 \implies y = 2x + 1 \]
- Check with Point B: If \(x = 6\), \(y = 2(6) + 1 = 13\). Correct!
Answer: \( y = 2x + 1 \)
Problem: Find the equation of the straight line that passes through the point \((3, -2)\) and is parallel to the line \(4x - 2y + 5 = 0\). Write your final answer in the form \(Ax + By + C = 0\).
- Step 1: Find the gradient of the given line: Rearrange \(4x - 2y + 5 = 0\) to slope-intercept form: \[ -2y = -4x - 5 \implies y = \frac{-4}{-2}x + \frac{-5}{-2} \implies y = 2x + 2.5 \] Thus, the gradient \(m = 2\).
- Step 2: Use gradient \(m = 2\) for the parallel line: Parallel lines share the exact same gradient, so \(m_{\text{new}} = 2\).
- Step 3: Substitute \((3, -2)\) into point-slope form: \[ y - (-2) = 2(x - 3) \implies y + 2 = 2x - 6 \]
- Step 4: Rearrange into general form (\(Ax + By + C = 0\)): \[ 0 = 2x - y - 6 - 2 \implies 2x - y - 8 = 0 \]
Answer: \( 2x - y - 8 = 0 \)
Common Mistakes
Real World
Practice