Functions of a Real Variable
A function is a rule that never gives two different answers to the same question.
A keke driver at Ojota charges ₦300 per head for the run to Ikeja. Ask for the fare of 1 passenger, 2 passengers, 7 passengers, and you get one clean answer every time. Now imagine asking for 3 passengers and getting two different prices from the same driver in the same breath. You would say the pricing is broken. That insistence on one answer per question is exactly what mathematicians made a law, and it is the ground this entire course stands on.
The One-Output Rule
A function of a real variable is a rule that assigns to each element in a set exactly one real number, written . The set of permitted inputs is the domain; the set of values the rule actually produces is the range.
Three words in that definition are doing all the work. Each in : nothing is left out. Exactly one: no doubling up. Real number: the answer is a plain number on the line, not a matrix or a mood. Note what the rule does not forbid — two different inputs may well share one output. sends both and to , and that is perfectly legal. What is illegal is one input sending you to two outputs.
Every idea in this course — limit, derivative, integral — is a question you ask about a function. Get the function straight and the rest becomes reasonable.
Function Notation and Function Values
The symbol is read " of ". It is a name for the output, not a product: there is no multiplied by . Asking for means: feed into the rule and report what comes out. Graphically, is the height of the curve above , so the point lies on the graph.
Worked example
Worked Example: Evaluating a Rule at Numbers and at Expressions
Let . Evaluate , and .
- 1 Input 2
.
Which Relations Are Functions, and Which Are Not
| What it is | Example | Function? | |
|---|---|---|---|
| Relation | Any set of ordered pairs | Not necessarily | |
| Function | A relation with one output per input | Yes | |
| Equation in and | A condition picking out points | Only if it fixes one per |
The Question Calculus Asks
Algebra asks for the value of the rule at an input. Calculus asks what the rule is doing near an input — and that tiny shift in question is worth learning now. The tool for it is the difference quotient, the average change of over a step of length .
Worked example
Worked Example: Building a Difference Quotient
For , simplify .
- 1 Find f(x + h) by substituting everywhere
.
Pause & think
looks like a tidier equation than . Is it a function of ?
📌 If you remember nothing else…
- A function assigns exactly one output to each input in its domain; repeated outputs are allowed, repeated inputs with different outputs are not.
- is the output value, not a product; means substitute everywhere appears.
- The vertical line test turns the definition into a picture: two hits on one vertical line, no function.
- The difference quotient measures average change over a step and is the door into every calculation in Units 2 to 5.
Quick check
Did it land?
Spotted a mistake?