What is a function?
Purpose: Teaching
If you have ever sat in class wondering what the word "function" really means, you are in good company. Many Grade 12 learners reach the trial exams still unsure what a function actually is. Let's fix that with one simple definition and a clear example.
The simple definition
A function is a rule that takes an input value and gives you exactly one output value. The input is usually written as x, and the output is written as f(x) — read as "f of x". The most important word in that definition is "one": for every input, the function produces exactly one answer.
Think of a function like a vending machine. You put in a specific coin (the input), and the machine gives you one specific item (the output). The same coin cannot produce two different snacks at the same time — that would be a broken machine, and in Mathematics we simply say "this is not a function".
Why functions matter in Grade 12
Functions appear everywhere in the Grade 12 exam — in Algebra, Calculus, Trigonometry and Financial Mathematics. When you sketch a graph, find a turning point, calculate a derivative, or solve for an intercept, you are working with a function. If the definition is clear in your head, a large block of the syllabus suddenly feels connected. The learners who lose marks are usually the ones who treat each topic as a separate rule instead of recognising that they are all functions in different costumes.
When the marker asks "Determine the values of x for which f(x) = g(x)", they are asking where two functions meet — and that question makes sense only if you already know what a function is. The same logic carries into Calculus, where the derivative is itself a function of x.
How to spot a function in a question
A function is normally written with brackets. The most common forms you will see are:
- f(x) = 2x + 3 — a linear function
- g(x) = x^2 - 4 — a quadratic function
- h(x) = 2^x — an exponential function
The letter inside the brackets is the input. The expression on the right tells you what to do with that input. Whenever you see brackets followed by an equals sign and an expression, you are looking at a function.
A small detail that confuses learners is the use of different letters. You might see P(x) = 5x - 2 in a problem about profit. The P is just a label chosen because the function represents profit, but the structure is exactly the same. Do not let new letters panic you.
Worked example
Worked example
Consider the function f(x) = 3x - 5. Find the value of f(2).
The input was 2 and the function gave back exactly one answer: 1. That one-answer rule is what makes it a function.
What a function is NOT
A function is not the same as an equation, even though they look similar. The equation x^2 + y^2 = 25 describes a circle, but a circle is not a function because some x-values give two y-values (one above the x-axis and one below). A function must give exactly one output for each valid input. We will return to this idea when we look at graphs and the vertical line test later in this category.
Once you can recognise a function and calculate its output, you are ready for the notation, the graphs and the transformations we will tackle in the rest of this category.
Ready to give your child the Mathematics support they need?
Book a one-on-one tutoring session and let's close the gaps before the next test.