Back to courseLesson 1 of 14

What a function really is

What you'll learn

See a function as a machine that turns each input into exactly one output — and read its domain and range.

Almost everything in pre-calculus is about one object: the function. Get this idea solid and the rest of the course is variations on a theme.

A function is a rule with one output

A function is a rule that takes an input and gives back exactly one output. Think of it as a machine: you drop a number in, the rule acts on it, and a single number comes out.

input3the rulef(x) = 2x + 1output7
f(3) = 2·3 + 1 = 7. Same input, same output — every time. That single-valued rule is what makes it a function.

We write the rule as f(x) — read "f of x". The letter x is a placeholder for whatever you feed in:

  • f(x) = 2x + 1 is the rule.
  • f(3) = 7 is the rule applied to the input 3.

The "exactly one output" part is the whole point. A rule that could return two different numbers for the same input is not a function.

Domain and range

Two sets describe every function:

TermWhat it isFor f(x) = 2x + 1
Domainevery input the rule is allowed to takeall real numbers
Rangeevery output the rule can produceall real numbers

Domains aren't always "everything". Some rules have inputs they can't handle:

  • f(x) = 1 / x — the input 0 is banned (you can't divide by zero).
  • f(x) = √x — negative inputs are banned (no real square root).

Finding the domain is really one question: which inputs would break the rule? Everything else is allowed.

Why this matters

The function is the noun of calculus. Derivatives measure how a function changes; integrals add a function up. Before any of that, you need the reflex of seeing f(x) as a machine with a domain of legal inputs and a range of possible outputs — not as a jumble of letters.

Check your understanding

Question 1 of 2

What is the domain of f(x) = 1 / (x − 3)?

Next lesson