Topic 2 — Functions: Straight Lines and Gradients
Welcome to your study notes on straight lines and gradients! Straight lines are the bedrock of functions in IB Mathematics: Applications and Interpretation (SL 2.1). Whether you are predicting business revenue, calculating speed, or designing perpendicular paths, understanding how linear relationships work is an essential skill. Don't worry if algebra has felt intimidating before — we will break down every concept step-by-step.
Note: Later chapters explore curved functions, modelling skills, and intersections in detail. Here, we focus purely on the geometry and algebra of straight lines.
---1. Understanding Gradient (Slope)
The gradient (often denoted by the letter \(m\)) measures the steepness and direction of a straight line. In real-world applications, the gradient represents a rate of change — such as cost per hour, speed in metres per second, or fuel consumption per kilometre.
The Gradient Formula
If you are given two points on a Cartesian coordinate plane, \(A(x_1, y_1)\) and \(B(x_2, y_2)\), the gradient \(m\) is defined as:
\(m = \frac{\text{vertical change}}{\text{horizontal change}} = \frac{\text{rise}}{\text{run}} = \frac{y_2 - y_1}{x_2 - x_1}\)
Step-by-Step Example:
Find the gradient of the line passing through \(P(2, 5)\) and \(Q(6, 13)\).
1. Identify your coordinates: \(x_1 = 2\), \(y_1 = 5\), \(x_2 = 6\), \(y_2 = 13\).
2. Apply the formula: \(m = \frac{13 - 5}{6 - 2}\).
3. Simplify: \(m = \frac{8}{4} = 2\).
This means for every \(1\) unit you move to the right, the line moves up by \(2\) units.
Interpreting the Sign of the Gradient
• Positive gradient (\(m > 0\)): The line rises from left to right (an increasing relationship).
• Negative gradient (\(m < 0\)): The line falls from left to right (a decreasing relationship).
• Zero gradient (\(m = 0\)): A perfectly flat, horizontal line (e.g., \(y = 4\)). There is no vertical change.
• Undefined gradient: A vertical line (e.g., \(x = 3\)). Here, the horizontal change is zero (\(x_2 - x_1 = 0\)), and division by zero is undefined.
Key Takeaway: Gradient measures "rise over run". Always keep the order of coordinates consistent: \(\frac{y_2 - y_1}{x_2 - x_1}\) or \(\frac{y_1 - y_2}{x_1 - x_2}\). Mixing them up (e.g., \(\frac{y_2 - y_1}{x_1 - x_2}\)) will give the wrong sign!
---2. Equations of Straight Lines
To define any straight line, you need two pieces of information: its steepness (gradient) and at least one fixed point that anchors it on the coordinate grid.
Form 1: Gradient–Intercept Form
\(y = mx + c\)
• \(m\) is the gradient.
• \(c\) is the \(y\)-intercept (the point \((0, c)\) where the line crosses the vertical \(y\)-axis).
When to use it: This form is best when you are already given the gradient and the point where the line crosses the vertical axis, or when you want to quickly read off the rate of change.
Form 2: Point–Gradient Form
\(y - y_1 = m(x - x_1)\)
• \(m\) is the gradient.
• \((x_1, y_1)\) is any known point on the line.
When to use it: This is the most reliable formula when you know the gradient and any general point on the line, or when you are given two points and find \(m\) first.
Step-by-Step Example:
Find the equation of the line passing through \((3, -2)\) with a gradient of \(4\). Write your answer in the form \(y = mx + c\).
1. Substitute the known values into the point–gradient form: \(y - (-2) = 4(x - 3)\).
2. Simplify the signs: \(y + 2 = 4x - 12\).
3. Subtract \(2\) from both sides: \(y = 4x - 14\).
Here, \(m = 4\) and the \(y\)-intercept is \((0, -14)\).
Form 3: General Form
\(ax + by + d = 0\)
Where \(a\), \(b\), and \(d\) are constants (usually written as integers). If an exam question asks for the equation in general form, rearrange your terms so that all terms sit on one side and zero sits on the other.
Key Takeaway: Memorise \(y - y_1 = m(x - x_1)\). It works for almost every question where a gradient and a point are involved!
---3. Finding Intercepts
The points where a line meets the coordinate axes are called the intercepts. They are crucial in contextual modelling because they often represent starting values or break-even thresholds.
Finding the \(y\)-intercept
Every point on the \(y\)-axis has an \(x\)-coordinate of zero. To find the \(y\)-intercept, set \(x = 0\) and solve for \(y\).
The coordinate is \((0, y)\).
Finding the \(x\)-intercept
Every point on the \(x\)-axis has a \(y\)-coordinate of zero. To find the \(x\)-intercept, set \(y = 0\) and solve for \(x\).
The coordinate is \((x, 0)\).
Worked Example:
Find the \(x\)-intercept and \(y\)-intercept of the line \(3x + 2y = 12\).
• For the \(y\)-intercept: Set \(x = 0\):
\(3(0) + 2y = 12 \implies 2y = 12 \implies y = 6\). The point is \((0, 6)\).
• For the \(x\)-intercept: Set \(y = 0\):
\(3x + 2(0) = 12 \implies 3x = 12 \implies x = 4\). The point is \((4, 0)\).
Key Takeaway: Remember the zero rule: \(x = 0\) gives the \(y\)-intercept; \(y = 0\) gives the \(x\)-intercept.
---4. Parallel and Perpendicular Lines
Straight lines can interact in specific geometric ways depending on the relationship between their gradients.
Parallel Lines
Lines that run in the exact same direction and never intersect are parallel. Because they have identical steepness, their gradients are equal:
\(m_1 = m_2\)
Example:
The line \(L_1\) has the equation \(y = 3x - 5\). A second line, \(L_2\), is parallel to \(L_1\) and passes through the point \((1, 7)\). Find the equation of \(L_2\).
1. Since \(L_1\) and \(L_2\) are parallel, \(m_2 = m_1 = 3\).
2. Use point-gradient form: \(y - 7 = 3(x - 1)\).
3. Expand and simplify: \(y - 7 = 3x - 3 \implies y = 3x + 4\).
Perpendicular Lines
Lines that intersect at a right angle (\(90^\circ\)) are perpendicular. The gradient of one is the negative reciprocal of the other:
\(m_1 \times m_2 = -1 \quad \text{or} \quad m_2 = -\frac{1}{m_1}\)
Memory Trick: To find a perpendicular gradient, flip the fraction and change the sign.
• If \(m_1 = 2 = \frac{2}{1}\), flip and negate: \(m_2 = -\frac{1}{2}\).
• If \(m_1 = -\frac{3}{4}\), flip and negate: \(m_2 = \frac{4}{3}\).
• Notice that in both cases, multiplying them together gives \(-1\): \((2) \times \left(-\frac{1}{2}\right) = -1\) and \(\left(-\frac{3}{4}\right) \times \left(\frac{4}{3}\right) = -1\).
Worked Example:
Line \(L_1\) passes through points \(A(1, 2)\) and \(B(4, 8)\). Line \(L_2\) is perpendicular to \(L_1\) and passes through \((5, 1)\). Determine the equation of \(L_2\).
1. Find the gradient of \(L_1\):
\(m_1 = \frac{8 - 2}{4 - 1} = \frac{6}{3} = 2\).
2. Find the perpendicular gradient \(m_2\):
\(m_1 \times m_2 = -1 \implies 2 \times m_2 = -1 \implies m_2 = -\frac{1}{2}\).
3. Form the equation using point \((5, 1)\):
\(y - 1 = -\frac{1}{2}(x - 5)\).
4. Multiply out or rearrange:
\(y - 1 = -0.5x + 2.5 \implies y = -0.5x + 3.5\).
Key Takeaway: Parallel lines share the exact same slope (\(m_1 = m_2\)). Perpendicular lines have negative reciprocal slopes (\(m_1 \times m_2 = -1\)).
---5. Real-World Contexts: Interpreting Gradient and Intercept
In Mathematics: Applications and Interpretation, questions often frame straight lines within real-world contexts. You must be able to translate between algebraic symbols and contextual meanings.
Consider a mobile phone technician whose total charge \(C\) (in dollars) for a repair lasting \(t\) hours is given by:
\(C = 45t + 60\)
• Gradient (\(m = 45\)): The rate of change. It represents the hourly labour rate (\$45 per hour). Every additional hour adds \$45 to the cost.
• \(C\)-intercept (\(c = 60\)): The fixed base value when \(t = 0\). It represents the call-out fee or diagnostic charge (\$60), incurred before any work begins.
Did you know? Whenever you see units like km/h, dollars per item, or litres per second, you are looking at a gradient in everyday life!
---6. Common Pitfalls to Avoid
• Sign errors in gradient calculation: Be extremely careful when subtracting negative coordinates. For example, \(\frac{4 - (-2)}{3 - (-1)} = \frac{4 + 2}{3 + 1} = \frac{6}{4} = 1.5\). Don't accidentally write \(4 - 2\).
• Flipping without negating: For perpendicular lines, remember both parts: invert the fraction and switch the sign. If \(m_1 = 3\), the perpendicular gradient is \(-\frac{1}{3}\), not \(\frac{1}{3}\).
• Confusing the intercepts: The \(y\)-intercept is on the vertical axis (\(x = 0\)). The \(x\)-intercept is on the horizontal axis (\(y = 0\)). Do not mix up the axes when plotting or calculating.
• Unnecessary calculator reliance: While your Graphic Display Calculator (GDC) is permitted, finding linear equations by hand using \(y - y_1 = m(x - x_1)\) is often much faster and prevents rounding errors. Always show clear working to secure method marks.
Quick Review Summary
1. Gradient formula: \(m = \frac{y_2 - y_1}{x_2 - x_1}\)
2. Gradient-intercept form: \(y = mx + c\) (where \(m\) is gradient, \(c\) is \(y\)-intercept)
3. Point-gradient form: \(y - y_1 = m(x - x_1)\)
4. Axes intercepts: Find \(y\)-intercept by substituting \(x = 0\); find \(x\)-intercept by substituting \(y = 0\).
5. Parallel condition: \(m_1 = m_2\)
6. Perpendicular condition: \(m_1 \times m_2 = -1\) or \(m_2 = -\frac{1}{m_1}\)