IB MATHEMATICS: APPLICATIONS AND INTERPRETATION • FUNCTIONS

Linear Functions & Models — SL 2.2 Linear functions and models (rate of change; intercept)

Discover how straight-line relationships model constant change in the real world.

Historical Context & Motivation

Humans have been thinking about straight-line relationships for thousands of years. Ancient surveyors in Egypt noticed that the Nile's flood levels rose at roughly the same rate each day during flood season, making it possible to predict water heights and plan crop planting. This core idea — that a quantity changes at a constant rate — lies at the heart of what we now call a linear function. Over the centuries, mathematicians refined this idea into one of the most powerful and widely used tools in all of mathematics.

~300 BCE
Euclid's Elements
The Greek mathematician Euclid formally defined lines and their properties in his landmark work, laying the geometric foundation for the study of linear relationships.
1637
Descartes & the Coordinate Plane
René Descartes introduced the Cartesian coordinate system, allowing lines to be described with algebraic equations rather than purely geometric constructions.
1795
Gauss & Least Squares
Carl Friedrich Gauss developed the method of least squares to fit the best straight line through astronomical data, pioneering the idea of linear modelling.
20th Century
Linear Models Everywhere
Linear functions became indispensable in economics, physics, engineering, and data science — any field where understanding constant rates of change is critical.

The question that drives this topic is deceptively simple: If something changes at a steady pace, how can we describe it, graph it, and use it to make predictions? Answering that question with precision is exactly what SL 2.2 is about.

Core Principles & Definitions

A linear function connects two variables with a relationship that produces a perfectly straight line when graphed on the Cartesian plane. Before we dive into calculations, let's lock down the four foundational ideas you'll use throughout the course.

1

Linear Function

A function of the form f(x) = mx + c, where m and c are constants. Its graph is always a straight line.
2

Gradient (Slope)

The value m measures the rate of change — how much y increases (or decreases) for every 1-unit increase in x.
3

y-Intercept

The value c is the output when x = 0. It tells you where the line crosses the y-axis, giving you the starting value of the model.
4

Rate of Change

Calculated as Δy ÷ Δx (change in y divided by change in x). For a linear function this rate is constant — the same between any two points on the line.
KEY TAKEAWAY
Think of a linear function like a car travelling at a constant speed on a straight highway. The gradient (m) is the speed — it tells you how quickly the distance piles up per hour. The y-intercept (c) is where the car already was when you started timing. Together, speed and starting position let you predict exactly where the car will be at any future moment.

Visualising Linear Functions

The graph below shows the line y = 2x + 3 plotted on a coordinate plane. Pay close attention to how the gradient triangle (rise over run) and the y-intercept are marked — these two features define every linear function you'll ever meet.

The pink dot marks the y-intercept at (0, 3). The dashed yellow triangle shows the gradient: for every 1 unit you move right (run), the line rises 2 units (rise), giving m = 2.

Every linear function graph shares these features. The line extends infinitely in both directions, the gradient triangle can be drawn between any two points and will always yield the same ratio, and the y-intercept sits exactly where x = 0. When you see a graph in an exam, these are the first two features to identify.

Mathematical Framework

The IB formula booklet provides several forms for linear functions. Understanding each form — what it tells you and when to use it — is essential for the exam and for real-world modelling.

SLOPE-INTERCEPT FORM
y = mx + c
m = gradient (rate of change), c = y-intercept (value of y when x = 0). This is the form used most often in IB Applications and Interpretation.
GRADIENT FORMULA
m = (y₂ − y₁) / (x₂ − x₁)
Given any two points (x₁, y₁) and (x₂, y₂) on the line, this formula calculates the gradient. Remember: it doesn't matter which point you call 'point 1' as long as you stay consistent.
POINT-SLOPE FORM
y − y₁ = m(x − x₁)
Useful when you know the gradient m and one point (x₁, y₁) on the line but not the y-intercept. You can always rearrange this into slope-intercept form.
💡 IB Exam Tip
The IB formula booklet uses c for the y-intercept (not b as you may have seen in other courses). Always match the notation your exam uses — it avoids confusion and keeps the examiner happy.

Understanding Different Gradients

The sign and size of the gradient dramatically change what the linear model means in context. A positive gradient signals growth or increase, a negative gradient signals decline, and a zero gradient means no change at all. The diagram below compares four key cases side by side.

Four panels comparing gradient types: positive (upward slope), negative (downward slope), zero (horizontal), and steep vs. shallow (comparing magnitudes).
How gradient value translates to graph behaviour and real-world meaning
Gradient (m)Direction of LineReal-World Example
m > 0 (positive)Rises from left to rightEarning $15/hour: total pay rises with hours worked
m < 0 (negative)Falls from left to rightA phone battery losing 10 % per hour
m = 0Horizontal lineA flat monthly subscription fee regardless of usage
Large |m|Steep lineRapid temperature drop during a cold front
Small |m|Shallow lineSlow, steady erosion of a hillside over years

Worked Example — Water Tank Model

A water tank is being filled at a constant rate. At time t = 0 minutes the tank already holds 20 litres of water. After 5 minutes, it holds 45 litres. Find the linear model that describes the volume V (in litres) as a function of time t (in minutes), and predict the volume after 12 minutes.

Finding the Linear Model for a Water Tank
1
Step 1 — Identify Given ValuesWe have two data points: (t₁, V₁) = (0, 20) and (t₂, V₂) = (5, 45). Because t₁ = 0, we already know the y-intercept: c = 20.
c = 20
2
Step 2 — Calculate the GradientUse the gradient formula: m = (V₂ − V₁) / (t₂ − t₁) = (45 − 20) / (5 − 0) = 25 / 5.
m = 5 litres per minute
3
Step 3 — Write the Linear ModelSubstitute m and c into y = mx + c. Using context-appropriate variable names:
V = 5t + 20
4
Step 4 — Interpret in ContextThe gradient m = 5 means the tank fills at a rate of 5 litres per minute. The y-intercept c = 20 means there were already 20 litres in the tank when timing began.
5
Step 5 — Predict Volume at t = 12Substitute t = 12 into the model: V = 5(12) + 20 = 60 + 20.
V = 80 litres
📝 Interpretation Matters
In IB exams, you often earn marks for interpreting the gradient and intercept in context, not just calculating them. Always write a sentence explaining what m and c mean in the real-world scenario.

Strengths & Limitations of Linear Models

Linear models are beautifully simple, but simplicity is a double-edged sword. It's important to recognise when a straight line is a good fit for the data and when a more complex model (quadratic, exponential, etc.) would be more appropriate.

When to trust — and when to question — a linear model
StrengthsLimitations
Easy to create — only two data points are needed to define the lineAssumes a constant rate of change, which rarely holds over large ranges
Simple to interpret — the gradient and intercept have clear, intuitive meaningsCannot model curves, acceleration, or saturation effects
Great for interpolation (predicting within the data range)Extrapolation can be unreliable if the trend changes outside the observed range
Foundational — many advanced models (regression, calculus) build on linearityReal-world constraints (e.g., capacity limits) may make the model unrealistic
KEY TAKEAWAY
A linear model is like a weather forecast for the next hour: highly reliable in the short term but increasingly uncertain the further ahead you project. Always ask yourself, 'Is the rate of change likely to stay constant over this range?' If the answer is no, consider a different model.

Connection to Advanced Models

Linear functions are the first step on a ladder of increasingly powerful models you'll encounter in IB Maths. Understanding how linear relates to what comes next helps you see the bigger picture and prepares you for SL 2.5 (modelling) and later HL topics.

Linear vs. non-linear modelling at a glance
FeatureLinear Model (SL 2.2)Beyond Linear (SL 2.5+)
Equation formy = mx + cy = ax² + bx + c (quadratic), y = abˣ (exponential), etc.
Rate of changeConstant — same everywhereVariable — changes depending on x
Graph shapeStraight lineParabola, curve, exponential growth/decay
Typical useConstant-speed motion, fixed-rate billingProjectile motion, population growth, radioactive decay
Number of parameters2 (m and c)3 or more, allowing more flexible curve shapes

In calculus, you'll learn that the gradient of any smooth curve at a single point is found by zooming in until the curve looks like a straight line — a tangent line. So even when the world isn't linear, linear thinking is still the tool you use to analyse it locally. Mastering SL 2.2 now gives you a head start on those more advanced ideas.

Practice Problems

PROBLEM 1CONCEPTUAL
A friend says, 'The y-intercept of a linear function is the point where the line is steepest.' Is this correct? Explain your reasoning.
PROBLEM 2BASIC CALCULATION
Find the equation of the line that passes through the points (2, 7) and (6, 19). Write your answer in the form y = mx + c.
PROBLEM 3INTERMEDIATE
A taxi company charges a flat fee of $4.50 plus $2.80 per kilometre. Write a linear model for the total cost C in terms of distance d (km). How far can you travel for $25?
PROBLEM 4APPLIED
A scientist records the temperature of a cooling liquid. At t = 3 minutes the temperature is 68 °C, and at t = 10 minutes it is 40 °C. Assuming a linear model is appropriate over this interval, find the rate of cooling and estimate the temperature at t = 15 minutes. Comment on whether the linear model is likely to remain valid.
PROBLEM 5CRITICAL THINKING
Two linear functions are defined: f(x) = 3x − 2 and g(x) = −0.5x + 7. Find the point where they intersect. Then explain what the intersection point means if f models revenue (in thousands of dollars) and g models cost (in thousands of dollars) as functions of units sold x (in hundreds).

Lesson Summary

A linear function has the form y = mx + c, where m (the gradient) represents the constant rate of change and c (the y-intercept) is the output value when x = 0. The gradient is calculated using m = (y₂ − y₁) / (x₂ − x₁) and can be positive (line rises), negative (line falls), or zero (horizontal line).

Linear models are powerful for situations with constant rates — such as fixed-speed travel, hourly wages, or steady filling of a tank — but have limitations when the rate of change is not truly constant. Always interpret m and c in context for full IB marks, and question whether extrapolation beyond the given data is reasonable. Mastering these ideas prepares you for quadratic, exponential, and other non-linear models later in the course.

Varsity Tutors • IB Mathematics: Applications and Interpretation • Linear Functions & Models — SL 2.2