Loading...
3+
3
Login

Functions – Rules That Connect Inputs to Outputs

A function is a rule that assigns exactly one output to every input. Functions are the heart of mathematics — they describe how one quantity depends on another, from temperature-time relationships to population growth.

What Is a Function?

A function takes an input value, applies a rule, and produces a single output. Every input gives exactly one output. Functions are often written as f(x), read as 'f of x', where x is the input.

Notation and Language

NotationMeaning
f(x) = 2x + 1The rule is: double the input and add 1
f(3)The output when x = 3
DomainThe set of all valid inputs
RangeThe set of all possible outputs

Evaluating Functions

f(x) = 3x - 2. Find f(4).

f(4) = 3(4) - 2 = 12 - 2 = 10.

g(x) = x squared + 1. Find g(-3).

g(-3) = (-3) squared + 1 = 9 + 1 = 10.

h(x) = 2x squared - 5x + 3. Find h(0) and h(2).

h(0) = 0 - 0 + 3 = 3. h(2) = 8 - 10 + 3 = 1.

Composite Functions

A composite function applies one function and then another. Written as fg(x) or f(g(x)), it means: first apply g to x, then apply f to the result.

f(x) = x + 2 and g(x) = 3x. Find fg(x) and gf(x).

fg(x) = f(g(x)) = f(3x) = 3x + 2. gf(x) = g(f(x)) = g(x+2) = 3(x+2) = 3x + 6. Note: fg and gf are not the same!

Inverse Functions

The inverse function undoes what the original function did. If f(x) = y then f inverse(y) = x.

Find the inverse of f(x) = 2x - 5.

Let y = 2x - 5. Rearrange for x: 2x = y + 5, so x = (y+5)/2. The inverse is f inverse(x) = (x + 5) / 2.

Real-Life Application

A taxi costs f(x) = 2x + 3 where x is the distance in kilometres. The inverse function finds how far you can travel for a given cost.

Key Takeaways

  • A function gives exactly one output for each input: f(x) maps x to a unique value.
  • Evaluate by substituting the input for x and calculating.
  • Composite functions apply two rules in sequence; order matters.
  • Inverse functions reverse the mapping: they undo the original function.

Practice Questions

  1. f(x) = 5x - 3. Find f(2) and f(-1).
  2. g(x) = x squared - 2x + 4. Find g(3).
  3. f(x) = x + 4 and g(x) = 2x. Find fg(5) and gf(5).
  4. Find the inverse of f(x) = 3x + 6.
  5. A function gives the cost in pounds of renting a hall: C(h) = 50h + 80 where h is the number of hours. Find C(3) and find h when C(h) = 280.
HomeAboutResourcesDashboard