DP Math AA · HL / SL · Functions

SL 2.2—Functions, notation domain, range and inverse as reflection

Get started
Notes Quiz

What is a Function?

A function is a mathematical rule that takes each input value and produces exactly one output value. Think of it like a machine: you feed in a number x, and the machine returns a single result f(x).

Function: A function f is a rule that assigns to each element x in the domain exactly one element f(x) in the range.

The critical requirement is the one output per input rule. If a single input could produce two different outputs , for example, f(x)=±x​ gives both +2 and −2 when x=4 , then the relation is not a function.

Note

A function can map different inputs to the same output. For example, f(x)=x2 maps both x=−2 and x=2 to 4. This is perfectly fine , what's forbidden is one input giving two different outputs.

Analogy

Think of a vending machine: each button (input) gives you exactly one snack (output). Two buttons can give the same snack , but one button can't give you two different snacks at once.

What is a Function?

Function Notation

The standard way to write a function is f(x), where:

  • f is the name of the function
  • x is the input variable
  • f(x) is the output

Other letters are used when the context calls for it:

  • v(t) , velocity as a function of time
  • C(n) , cost as a function of number of items
  • h(t) , height as a function of time

You may also see the mapping notation:
f:x→y
This is completely equivalent to writing f(x)=y. It simply says "the function f maps input x to output y."

Exam Tip

When an exam uses multiple functions, they'll often label them f(x), g(x), h(x), etc. Keep track of which letter refers to which rule , mixing them up is a common source of errors.

Evaluating a function at a specific value means substituting that value in place of x:

Example

Let f(x)=x+4​. Find f(5).

f(5)=5+4​=9​=3

Simply replace every x with 5 and simplify.

Free preview

10 more sections in this topic

← Previous topicSL 2.1—Equations of straight lines, parallel and perpendicularNext topic →SL 2.3—Graphing
Koncepts

Learn it properly. Then practise like it's the real paper.

Start free

Features

  • Lessons
  • Past papers
  • Library
  • Homework Help
  • Duels

More

  • For parents
  • Compare
  • Plans & pricing
  • DP for students

Legal

  • Privacy
  • Terms
  • Account deletion

© 2026 Koncepts (product of PrepAiro, Inc). All rights reserved.
DP, IB, EE and TOK are terms of the International Baccalaureate Organization.

Made for IB DP students.