Straight Lines & Gradients
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
Understand the geometric and algebraic meaning of gradient, construct equations of straight lines in various forms, and explore the relationships of parallel and perpendicular lines in the Cartesian coordinate plane.
Interactive Gradient & Line Explorer
Drag points A and B on the coordinate grid to observe how the vertical rise \(\Delta y\), horizontal run \(\Delta x\), gradient \(m\), and perpendicular slope change in real time.
(a) Concrete Scenario: The Great Rift Valley Escarpment
Imagine driving along the highway climbing from the floor of the Great Rift Valley towards Nairobi. For every \(1000\text{ m}\) you travel forward horizontally (the run), your vehicle ascends \(80\text{ m}\) vertically (the rise). The steepness of this climb is a constant rate: \(\frac{80}{1000} = 0.08\) or \(8\%\). In mathematics, this rate of steepness is called the gradient (or slope).
Intuition: Gradient measures the sensitivity of the vertical variable \(y\) relative to a unit change in the horizontal variable \(x\): \[ \text{Gradient } m = \frac{\text{Vertical Change (Rise)}}{\text{Horizontal Change (Run)}} = \frac{\Delta y}{\Delta x} \]
(b) Geometric Insight
Because any straight line has an unvarying direction, the ratio \(\frac{\Delta y}{\Delta x}\) calculated between any two distinct points on the line will always yield the exact same value \(m\). The sign and magnitude of \(m\) tell a direct geometric story:
- Positive gradient (\(m > 0\)): The line rises from bottom-left to top-right.
- Negative gradient (\(m < 0\)): The line falls from top-left to bottom-right.
- Zero gradient (\(m = 0\)): The line is perfectly horizontal (e.g., \(y = c\)).
- Undefined gradient: The line is perfectly vertical because \(\Delta x = 0\), causing division by zero (e.g., \(x = k\)).
(c) Parallel and Perpendicular Orientations
When comparing two lines with gradients \(m_1\) and \(m_2\):
- Parallel Lines (\(m_1 = m_2\)): They climb or descend at identical rates and never intersect.
- Perpendicular Lines (\(m_1 \times m_2 = -1 \implies m_2 = -\frac{1}{m_1}\)): Meeting at right angles (\(90^\circ\)), one line climbs while the other drops at an inverted rate.
Key Formulas
Gradient Formula: Finds the slope \(m\) between two coordinate points \((x_{1}, y_{1})\) and \((x_{2}, y_{2})\).
Slope-Intercept Form: Expresses a line where \(m\) is the gradient and \((0, c)\) is the \(y\)-intercept.
Point-Slope Form: Constructs the equation of a line passing through \((x_{1}, y_{1})\) with gradient \(m\).
General Linear Form: Standard integer form where \(A, B, C \in \mathbb{Z}\), with gradient given by \(m = -\frac{A}{B}\) (when \(B \neq 0\)).
Distance Formula: Finds the length of a line segment connecting two points (derived from Pythagoras' theorem).
Midpoint Formula: Determines the exact center coordinates of the segment between \((x_{1}, y_{1})\) and \((x_{2}, y_{2})\).
Parallel & Perpendicular Conditions: Parallel lines share gradients; perpendicular non-vertical lines have negative reciprocal gradients.
Worked Examples
Example 1 (Easy): Gradient between Two Points
Problem: A pipeline connects a borehole at \(A(2, 3)\) to a storage tank at \(B(5, 11)\). Find the gradient of the pipeline.
- Identify the coordinate values: \(x_{1} = 2, y_{1} = 3\) and \(x_{2} = 5, y_{2} = 11\).
- Substitute into the gradient formula:\[ m = \frac{y_{2} - y_{1}}{x_{2} - x_{1}} = \frac{11 - 3}{5 - 2} = \frac{8}{3} \]
- Conclusion: The gradient is \(\frac{8}{3}\) (or \(2\frac{2}{3}\)), meaning the pipeline rises \(8\text{ m}\) vertically for every \(3\text{ m}\) of horizontal distance.
Example 2 (Medium): Equation of a Parallel Line
Problem: Find the equation of the line passing through \(P(1, 4)\) that is parallel to the line \(L_1: y = 2x - 3\). Give your answer in the form \(y = mx + c\).
- Identify the gradient of the reference line: Comparing \(y = 2x - 3\) with \(y = mx + c\), we have \(m_{1} = 2\).
- Apply parallel condition: Parallel lines have identical slopes, so \(m = 2\).
- Use point-slope form with \((x_1, y_1) = (1, 4)\):\[ y - y_{1} = m(x - x_{1}) \implies y - 4 = 2(x - 1) \]
- Expand and simplify:\[ y - 4 = 2x - 2 \implies y = 2x + 2 \]
Example 3 (Hard): Perpendicular Line & Intersection
Problem: Line \(L_1\) has the equation \(3x - 4y + 12 = 0\). Line \(L_2\) passes through the origin \((0,0)\) and is perpendicular to \(L_1\). Find the coordinates of their point of intersection.
- Convert \(L_1\) to slope-intercept form to find its gradient:\[ 3x + 12 = 4y \implies y = \frac{3}{4}x + 3 \implies m_{1} = \frac{3}{4} \]
- Find the perpendicular gradient \(m_{2}\):\[ m_{2} = -\frac{1}{m_{1}} = -\frac{4}{3} \]
- Write the equation of \(L_2\) (passing through origin \((0,0)\)):\[ y = -\frac{4}{3}x \]
- Equate the two equations to find the \(x\)-coordinate:\[ \frac{3}{4}x + 3 = -\frac{4}{3}x \]
- Eliminate fractions by multiplying by 12:\[ 12\left(\frac{3}{4}x + 3\right) = 12\left(-\frac{4}{3}x\right) \implies 9x + 36 = -16x \]
- Solve for \(x\):\[ 25x = -36 \implies x = -\frac{36}{25} = -1.44 \]
- Calculate \(y\):\[ y = -\frac{4}{3}\left(-\frac{36}{25}\right) = \frac{48}{25} = 1.92 \]
- State the intersection point: \(\left(-\frac{36}{25}, \frac{48}{25}\right)\) or \((-1.44, 1.92)\).
Common Mistakes
Real World
Practice