Linear functions and their graphs
IB Mathematics: Analysis and Approaches SLΒ· 5 min read
1. Core definitions and standard formsβ βββββ± 10 min
Linear function
A first-order polynomial function that graphs to a straight line, where the highest power of the independent variable is 1.
Example:
is linear; is non-linear
Linear functions can be written in three common standard forms, each suited to different use cases:
Gradient-intercept form: , used when you know gradient and y-intercept
Point-gradient form: , used when you know one point and gradient
General form: , where are integer constants
Write in gradient-intercept form
- 1
Isolate the term on the left side by adding to both sides:
- 2
- 3
Divide all terms by the coefficient of (which is 3):
- 4
- 5
This is gradient-intercept form, with gradient and y-intercept .
2. Gradient, intercepts and graph sketchingβ β ββββ± 15 min
The gradient of a line measures how much changes for every 1 unit change in . It is calculated from any two points on the line.
Gradient formula
For two points and on a line, gradient is the ratio of vertical change to horizontal change.
Find the gradient of the line through and , then find its x-intercept.
- 1
Label the points and substitute into the gradient formula:
- 2
- 3
Use point-gradient form to find the full line equation:
- 4
- 5
Find x-intercept by setting and solving for :
- 6
- 7
The x-intercept is at .
3. Parallel and perpendicular linesβ β ββββ± 12 min
There are simple rules relating the gradients of parallel and perpendicular lines, which are commonly tested in IB exams.
Gradient rules for parallel/perpendicular lines
If two lines have gradients and : (1) Parallel lines: , (2) Perpendicular lines:
Example:
A line with gradient 4 is perpendicular to a line with gradient
Find the equation of the line through that is perpendicular to .
- 1
The original line has gradient . For a perpendicular line:
- 2
- 3
Substitute the point into point-gradient form:
- 4
- 5
Rearrange to gradient-intercept form:
- 6
4. Real-world applications of linear functionsβ β ββββ± 15 min
Many real-world relationships with constant rates of change can be modeled with linear functions. In these problems, the gradient is the constant rate, and the intercept is the initial value when the input is zero.
A coffee shop charges a fixed monthly subscription fee plus \38 in a month, find the cost of 25 coffees.
- 1
Define variables: Let = total monthly cost, = number of coffees. The linear model is , where = fixed fee, = cost per coffee.
- 2
We know , substitute the given values to find :
- 3
- 4
The full model is . Calculate cost for 25 coffees:
- 5
- 6
The total cost for 25 coffees is \$58.
5. Common Pitfalls
Wrong move:
Calculating gradient as
Why:
Swapping numerator and denominator gives the reciprocal of the correct gradient
Correct move:
Always remember gradient is change in y over change in x:
Wrong move:
Reading gradient and intercept directly from general form without rearranging
Why:
The coefficients of and in general form are not the same as and
Correct move:
Always rearrange general form to before reading off gradient and intercept
Wrong move:
Stating perpendicular lines have gradient instead of
Why:
Confusing the negative sign with the requirement to take the reciprocal
Correct move:
Perpendicular gradients multiply to , so always take the negative reciprocal of the original gradient
Wrong move:
Writing gradient 0 for a vertical line
Why:
Confusing the properties of horizontal and vertical lines
Correct move:
Horizontal lines have gradient 0; vertical lines have undefined gradient
Wrong move:
Mixing up input and output variables when calculating gradient for real-world problems
Why:
Swapping variables reverses the rate of change, leading to an incorrect gradient
Correct move:
Always explicitly define your variables at the start of the problem to avoid this mistake
6. Quick Reference Cheatsheet
Property | Rule/Formula | Note |
|---|---|---|
Gradient between two points | Rise over run | |
Gradient-intercept form | = gradient, = y-intercept | |
Point-gradient form | For known point + gradient | |
Parallel lines | Equal gradients | |
Perpendicular lines | Negative reciprocal gradients | |
Horizontal line | , | Parallel to x-axis |
Vertical line | , undefined | Parallel to y-axis |
General form | Rearrange to to read values |
When this came up on past exams
AI-estimated based on syllabus patterns β cross-check with official past papers for accuracy. Use only as revision-focus signals.
- 2022 Β· 1
Find perpendicular line equation
- 2023 Β· 1
Real-world linear cost problem
- 2021 Β· 2
Gradient between two points
What's Next
Linear functions are the foundational building block for nearly all further topics in IB AA SL. The concept of constant rate of change for linear functions directly prepares you to study instantaneous rate of change for non-linear functions, which is the core idea of differential calculus. You will also apply linear functions to solve systems of linear equations, model bivariate data with linear regression in statistics, and solve kinematics problems involving constant speed or acceleration. Mastery of linear graphs and their properties is essential for interpreting and working with all other function types you will encounter, including quadratics, exponentials, and trigonometric functions.
