Study Guide

Linear functions and their graphs

IB Mathematics AI SLΒ· Topic 2.4Β· 5 min read

1. Definition and Key Featuresβ˜…β˜†β˜†β˜†β˜†β± 10 min

🚫 No Calculator

πŸ“˜ Definition

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.

πŸ“ Worked Example

Identify the gradient and -intercept of the line

  1. 1

    Rearrange the equation into gradient-intercept form :

  2. 2
    2y=4x+122y = 4x + 12
  3. 3

    Divide all terms by 2 to isolate :

  4. 4
    y=2x+6y = 2x + 6
  5. 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:

m=y2βˆ’y1x2βˆ’x1m = \frac{y_2 - y_1}{x_2 - x_1}

Once you have the gradient, use the point-gradient formula to find the full equation, then rearrange to gradient-intercept form:

yβˆ’y1=m(xβˆ’x1)y - y_1 = m(x - x_1)
πŸ“ Worked Example

Find the equation of the line passing through and

  1. 1

    Calculate the gradient from the two points:

  2. 2
    m=9βˆ’54βˆ’2=42=2m = \frac{9 - 5}{4 - 2} = \frac{4}{2} = 2
  3. 3

    Substitute and point into point-gradient formula:

  4. 4
    yβˆ’5=2(xβˆ’2)y - 5 = 2(x - 2)
  5. 5

    Expand and rearrange to gradient-intercept form:

  6. 6
    yβˆ’5=2xβˆ’4β€…β€ŠβŸΉβ€…β€Šy=2x+1y - 5 = 2x - 4 \implies y = 2x + 1

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.

πŸ“ Worked Example

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. 1

    Identify the fixed initial fee as the intercept, and the cost per person as the gradient: ,

  2. 2
    C=2p+5C = 2p + 5
  3. 3

    Interpretation: The intercept of 5 means you pay \2 for each additional person.

  4. 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.

πŸ“ Worked Example

Find the intersection of and

  1. 1

    Set the expressions for equal to each other, since they are equal at the intersection:

  2. 2
    3xβˆ’4=βˆ’x+83x - 4 = -x + 8
  3. 3

    Solve for :

  4. 4
    4x=12β€…β€ŠβŸΉβ€…β€Šx=34x = 12 \implies x = 3
  5. 5

    Substitute back into one equation to find :

  6. 6
    y=βˆ’(3)+8=5y = -(3) + 8 = 5
  7. 7

    The intersection point is

βœ“ Quick check

Test your understanding:

  1. 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.