Study
MTH-102 route
Unit 1 · Lesson 1 of 7 12 min

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 xx in a set DD exactly one real number, written f(x)f(x). The set DD 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 xx in DD: 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. f(x)=x2f(x)=x^{2} sends both −3-3 and 33 to 99, 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 f(x)f(x) is read "ff of xx". It is a name for the output, not a product: there is no ff multiplied by xx. Asking for f(2)f(2) means: feed 22 into the rule and report what comes out. Graphically, f(2)f(2) is the height of the curve above x=2x=2, so the point (2,f(2))(2, f(2)) lies on the graph.

Worked example

Worked Example: Evaluating a Rule at Numbers and at Expressions

Let f(x)=3x2−5f(x) = 3x^{2} - 5. Evaluate f(2)f(2), f(−1)f(-1) and f(t+1)f(t+1).

  1. 1
    Input 2

    f(2)=3(2)2−5=3(4)−5=12−5=7f(2) = 3(2)^{2} - 5 = 3(4) - 5 = 12 - 5 = 7.

Which Relations Are Functions, and Which Are Not

one x, two y-values x squared + y squared = 4 fails: not a function
The vertical line test: a curve that a vertical line meets twice cannot be the graph of a function of xx.
Function, Relation and Equation
What it isExampleFunction?
RelationAny set of ordered pairs{(1,2),(1,5)}\{(1,2), (1,5)\}Not necessarily
FunctionA relation with one output per input{(−1,1),(0,0),(1,1)}\{(-1,1), (0,0), (1,1)\}Yes
Equation in xx and yyA condition picking out pointsx2+y2=4x^{2} + y^{2} = 4Only if it fixes one yy per xx

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 ff over a step of length hh.

Worked example

Worked Example: Building a Difference Quotient

For f(x)=x2+2xf(x) = x^{2} + 2x, simplify f(x+h)−f(x)h\dfrac{f(x+h) - f(x)}{h}.

  1. 1
    Find f(x + h) by substituting everywhere

    f(x+h)=(x+h)2+2(x+h)=x2+2xh+h2+2x+2hf(x+h) = (x+h)^{2} + 2(x+h) = x^{2} + 2xh + h^{2} + 2x + 2h.

Pause & think

x2+y2=4x^{2} + y^{2} = 4 looks like a tidier equation than y=3x2−5y = 3x^{2} - 5. Is it a function of xx?

📌 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.
  • f(x)f(x) is the output value, not a product; f(t+1)f(t+1) means substitute t+1t+1 everywhere xx appears.
  • The vertical line test turns the definition into a picture: two hits on one vertical line, no function.
  • The difference quotient f(x+h)−f(x)h\frac{f(x+h)-f(x)}{h} measures average change over a step and is the door into every calculation in Units 2 to 5.

Quick check

Did it land?

1. A function is given by f(x)=3x2−5f(x) = 3x^{2} - 5. What is f(t+1)f(t+1)?
2. Which relation fails to be a function of xx?

Spotted a mistake?