Linear functions and their graphs
IB Mathematics AI SLΒ· Topic 2.4Β· 5 min read
1. Definition and Key Featuresβ βββββ± 10 min
π« No Calculator
Linear Function
A first-degree function with a constant rate of change, that graphs as a straight line on the -plane.
Example:
is linear; is non-linear
In the standard gradient-intercept form , is the gradient (measures steepness and direction) and is the -coordinate of the -intercept where the line crosses the -axis.
Identify the gradient and -intercept of the line
- 1
Rearrange the equation into gradient-intercept form :
- 2
- 3
Divide all terms by 2 to isolate :
- 4
- 5
Compare to : gradient , -intercept is
2. Finding the Equation of a Lineβ β ββββ± 15 min
π« No Calculator
To find the equation of a line, you need two pieces of information: either the gradient and one point on the line, or two points that lie on the line. The gradient between two points and is:
Once you have the gradient, use the point-gradient formula to find the full equation, then rearrange to gradient-intercept form:
Find the equation of the line passing through and
- 1
Calculate the gradient from the two points:
- 2
- 3
Substitute and point into point-gradient formula:
- 4
- 5
Expand and rearrange to gradient-intercept form:
- 6
3. Sketching and Contextual Interpretationβ β ββββ± 15 min
β Calculator OK
Linear functions are very commonly used to model real-world scenarios. In context, the gradient represents a constant rate of change, and the -intercept represents an initial value when the input is 0. To sketch a line, you only need two distinct points.
A coffee shop charges a fixed \2 per person for drinks. Write the linear function for total cost for people, and interpret the gradient and intercept.
- 1
Identify the fixed initial fee as the intercept, and the cost per person as the gradient: ,
- 2
- 3
Interpretation: The intercept of 5 means you pay \2 for each additional person.
- 4
To sketch, use two points: when , β ; when , β . Draw a straight line between these points for (number of people can't be negative).
4. Intersection of Two Linesβ β β βββ± 15 min
β Calculator OK
The intersection of two lines is the point that satisfies both equations. In context, this often represents a break-even point or equilibrium value. You can find the intersection algebraically or graphically.
Find the intersection of and
- 1
Set the expressions for equal to each other, since they are equal at the intersection:
- 2
- 3
Solve for :
- 4
- 5
Substitute back into one equation to find :
- 6
- 7
The intersection point is
Test your understanding:
What is the intersection of and ?
5. Common Pitfalls
Wrong move:
Rearranging gives the wrong sign for the gradient
Why:
Forgetting to change the sign of when moving it to the other side of the equation
Correct move:
Rearrange step-by-step: move to the right-hand side first, then divide all terms by to isolate
Wrong move:
Calculating gradient as instead of rise over run
Why:
Mixing up the order of and differences in the gradient formula
Correct move:
Always remember gradient = change in (rise) divided by change in (run)
Wrong move:
Drawing the full infinite line across negative axes in contextual problems
Why:
Forgetting that quantities like distance or number of people can't be negative
Correct move:
Only draw the line for the valid range of the input variable, and label your domain
Wrong move:
Stopping after finding when asked for the intersection point
Why:
Forgetting that an intersection is a 2D point with both and coordinates
Correct move:
Always substitute your value back into one of the equations to find the corresponding value
6. Quick Reference Cheatsheet
Concept | Key Formula/Rule |
|---|---|
Gradient between and | |
Gradient-intercept form | , =gradient, =-intercept |
Point-gradient form | |
Find intersection of two lines | Set equal, solve for , find |
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 equation of line through two points
- 2023 Β· 1
Interpret linear graph in context
- 2021 Β· 2
Calculate intersection of two lines
Going deeper
What's Next
Linear functions are the foundational building block for almost all other topics in IB AI SL. Mastering these core skills will make working with linear regression, systems of equations, piecewise functions, and even non-linear functions much easier, because almost all non-linear relationships can be approximated by linear functions around a point. You will regularly use linear functions to model real-world data in statistics, solve optimization problems, and interpret relationships between variables across the entire course. Next, you will build on these skills to study more complex functions starting with quadratic functions, the next core topic in the functions unit.
