What is a function?
Practice Flashcards
Flip to reveal answersWhat is a function?
Track your progress — Sign up free to save your progress and get smart review reminders based on spaced repetition.
All 16 Flashcards — What is a function?
Sign up free to track progress and get spaced-repetition review schedules.
Question
What is a function?
Answer
A function is a rule that assigns exactly one output to each input. Every input (x-value) maps to one and only one output (y-value). Example: f maps every temperature in °C to a temperature in °F — one input, one output.
Question
A mapping shows: 1 → 5, 2 → 7, 3 → 5. Is this a function? What about 1 → 5, 1 → 9, 2 → 7?
Answer
First mapping (1→5, 2→7, 3→5): YES, this is a function. Two inputs (1 and 3) share the same output — that is allowed. Second mapping (1→5, 1→9): NOT a function. Input 1 maps to two different outputs — that breaks the rule.
Question
Give a real-world example of a function and explain why it qualifies.
Answer
Example: "Country → Capital city." Each country has exactly one capital — every input (country) maps to exactly one output (capital). Non-example: "Person → Friend" — a person can have many friends, so one input maps to many outputs.
Question
Exam trap: Can two different inputs map to the same output in a function?
Answer
Yes — this is perfectly fine and does NOT stop something from being a function. What is NOT allowed: one input mapping to two different outputs. Example: f(2) = 5 and f(3) = 5 is fine. But f(2) = 5 and f(2) = 9 means it is not a function.
Question
What does the notation f(x) mean?
Answer
f(x) is the output of the function f when the input is x. Read it as "f of x." f is the name of the function. x is the input. f(x) is the corresponding output. Example: if f(x) = 2x + 1, then f(3) = 7.
Question
Rewrite y = 4x − 3 using function notation.
Answer
f(x) = 4x − 3. Replace y with f(x). The name "f" is conventional but any letter works (g, h, p, etc.). Both y = 4x − 3 and f(x) = 4x − 3 describe the same rule.
Question
g(x) = x² + 1. What does g(t) mean? What does g(a + 1) mean?
Answer
g(t): apply the same rule but with t as the input → g(t) = t² + 1. g(a + 1): replace every x with (a + 1) → g(a + 1) = (a + 1)² + 1. The letter inside the bracket is always the input — substitute it everywhere x appears.
Question
Exam trap: A student writes "f(x) means f multiplied by x." What is the error?
Answer
f(x) is not multiplication — the parentheses here mean "function of," not "times." f(x) = 4x + 2 does not mean f × x = 4x + 2. f is the function name; f(x) is the output value when the input is x.
Question
How do you evaluate f(a) given a function f(x)?
Answer
Substitute a for every x in the function rule, then simplify. Example: f(x) = 3x + 5. Find f(4). Replace x with 4: f(4) = 3(4) + 5 = 12 + 5 = 17.
Question
f(x) = 2x − 7. Find f(3) and f(0).
Answer
f(3) = 2(3) − 7 = 6 − 7 = −1. f(0) = 2(0) − 7 = 0 − 7 = −7. f(0) gives the y-intercept of the function.
Question
h(x) = x² − 4x + 1. Find h(−2).
Answer
Replace x with −2: h(−2) = (−2)² − 4(−2) + 1 = 4 + 8 + 1 = 13. Key: (−2)² = 4 (positive). −4(−2) = +8 (negative times negative = positive).
Question
Exam trap: f(x) = x² + 3. A student evaluates f(−4) = −4² + 3 = −16 + 3 = −13. What is wrong?
Answer
The error is in −4². When substituting a negative number, use brackets: (−4)² = +16. Without brackets: −4² = −16 (squaring only 4, then negating — wrong). Correct: f(−4) = (−4)² + 3 = 16 + 3 = 19.
Question
What is the vertical line test and what does it tell you?
Answer
The vertical line test: draw (or imagine) any vertical line through a graph. If every vertical line crosses the graph at most once → the graph represents a function. If any vertical line crosses the graph more than once → it is NOT a function (one x has two y-values).
Question
Does a full circle (e.g. x² + y² = 9) represent a function? Explain using the vertical line test.
Answer
No — a vertical line through the centre of the circle crosses it twice (two y-values for one x). Since one input (x) gives two outputs (y), the circle fails the vertical line test and is not a function.
Question
Does the graph of y = |x| (V-shape) represent a function? Why?
Answer
Yes — every vertical line crosses the V-shape exactly once. Although the V looks like two lines meeting at a point, each x-value still gives exactly one y-value. y = |x| passes the vertical line test and is a function.
Question
Exam trap: A student says "the vertical line test checks if every y-value is produced by only one x." Is this correct?
Answer
No — this describes a one-to-one function (injective), not just any function. The vertical line test only checks if each x gives at most one y. It is fine for two different x-values to produce the same y (many-to-one is still a function).
Read the notes
Full study notes for What is a function?
Topic 2.2 hub
Functions, domains, ranges, and graphs
More from Topic 2.2
All flashcards in this topic
Math AI SL exam skills
Paper structures & tips
Track your progress with spaced repetition
Sign up free — Aimnova tells you exactly which cards to review and when, so you remember everything before your IB exam.
Start Free