Linear Functions
Equations of a Line
Master the building blocks of algebra: slope, intercepts, and every form of the equation of a line you need for IB Mathematics.
What Is a Linear Function?
A linear function is a function whose graph is a straight line. It has the general form \( f(x) = mx + c \), where every input \( x \) maps to exactly one output. The key property: the rate of change between any two points is always constant.
The Gradient \( m \)
The gradient (slope) of a line passing through two points \( (x_1, y_1) \) and \( (x_2, y_2) \) is defined as:
Intercepts: Where Lines Cross Axes
Slope-Intercept Form
This is the most common form in the IB syllabus. You can read off the gradient and y-intercept directly from the equation. Every linear function can be written in this form (except vertical lines).
Point-Gradient Form
Use this form when you know one point and the gradient, or when you have already calculated \( m \) from two points. It is equivalent to slope-intercept form but often more convenient to write down first.
The General Form
The general form can represent every line, including vertical lines (where \( b = 0 \)). To convert to slope-intercept form, solve for \( y \):
Parallel vs Perpendicular Lines
How to Find the Equation
Example 1: Two Points
Find the equation of the line through \( A(1, 3) \) and \( B(4, 9) \).
Example 2: Perpendicular Line
Find the equation of the line perpendicular to \( y = 3x - 4 \) passing through \( (6, 2) \).
Example 3: General Form
Express the line through \( (-2, 5) \) and \( (3, -1) \) in the form \( ax + by + d = 0 \) where \( a, b, d \in \mathbb{Z} \).
Visualising Different Gradients
Intersection of Two Lines
To find where two lines meet, set their equations equal and solve. If \( y = m_1 x + c_1 \) and \( y = m_2 x + c_2 \), then:
Example: \( y = 2x + 1 \) and \( y = -x + 7 \):
Common Mistakes to Avoid
Forms at a Glance
| Form | Equation | Best Used When |
|---|---|---|
| Slope-Intercept | \( y = mx + c \) | Reading off \( m \) and \( c \) directly |
| Point-Gradient | \( y - y_1 = m(x - x_1) \) | Given a point and gradient |
| General Form | \( ax + by + d = 0 \) | Integer coefficients needed; vertical lines |
| Two-Point | \( \frac{y - y_1}{y_2 - y_1} = \frac{x - x_1}{x_2 - x_1} \) | Given two points, single-step formula |
Question 1 of 5
What is the gradient of the line passing through the points \( (2, -1) \) and \( (5, 8) \)?
Question 2 of 5
A line has the equation \( 3x - 2y + 8 = 0 \). What are the gradient and y-intercept?
Question 3 of 5
The line \( L_1 \) has gradient \( 4 \). What is the gradient of a line perpendicular to \( L_1 \)?
Question 4 of 5
Find the equation of the line passing through \( (3, -2) \) with gradient \( m = -5 \).
Question 5 of 5
Two lines \( y = 2x - 1 \) and \( y = -x + 5 \) intersect. What are the coordinates of the intersection?