Study Guide

Linear functions and their graphs

IB Mathematics: Analysis and Approaches SLΒ· 5 min read

1. Core definitions and standard formsβ˜…β˜†β˜†β˜†β˜†β± 10 min

πŸ“˜ Definition

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

πŸ“ Worked Example

Write in gradient-intercept form

  1. 1

    Isolate the term on the left side by adding to both sides:

  2. 2
    3y=6x+93y = 6x + 9
  3. 3

    Divide all terms by the coefficient of (which is 3):

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

πŸ“˜ Definition

Gradient formula

For two points and on a line, gradient is the ratio of vertical change to horizontal change.

πŸ“ Worked Example

Find the gradient of the line through and , then find its x-intercept.

  1. 1

    Label the points and substitute into the gradient formula:

  2. 2
    m=11βˆ’55βˆ’2=63=2m = \frac{11 - 5}{5 - 2} = \frac{6}{3} = 2
  3. 3

    Use point-gradient form to find the full line equation:

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

    Find x-intercept by setting and solving for :

  6. 6
    0=2x+1β€…β€ŠβŸΉβ€…β€Šx=βˆ’120 = 2x + 1 \implies x = -\frac{1}{2}
  7. 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.

πŸ“˜ Definition

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

πŸ“ Worked Example

Find the equation of the line through that is perpendicular to .

  1. 1

    The original line has gradient . For a perpendicular line:

  2. 2
    m2=βˆ’1m1=βˆ’13m_2 = -\frac{1}{m_1} = -\frac{1}{3}
  3. 3

    Substitute the point into point-gradient form:

  4. 4
    yβˆ’(βˆ’2)=βˆ’13(xβˆ’3)y - (-2) = -\frac{1}{3}(x - 3)
  5. 5

    Rearrange to gradient-intercept form:

  6. 6
    y+2=βˆ’13x+1β€…β€ŠβŸΉβ€…β€Šy=βˆ’13xβˆ’1y + 2 = -\frac{1}{3}x + 1 \implies y = -\frac{1}{3}x - 1

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.

πŸ“ Worked Example

A coffee shop charges a fixed monthly subscription fee plus \38 in a month, find the cost of 25 coffees.

  1. 1

    Define variables: Let = total monthly cost, = number of coffees. The linear model is , where = fixed fee, = cost per coffee.

  2. 2

    We know , substitute the given values to find :

  3. 3
    38=2(15)+fβ€…β€ŠβŸΉβ€…β€Š38=30+fβ€…β€ŠβŸΉβ€…β€Šf=838 = 2(15) + f \implies 38 = 30 + f \implies f = 8
  4. 4

    The full model is . Calculate cost for 25 coffees:

  5. 5
    C=2(25)+8=50+8=58C = 2(25) + 8 = 50 + 8 = 58
  6. 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.