What is a Function?
A function is a rule that takes an input and produces exactly one output.
Think of it like a machine: you put something in, something comes out.
The key rule: one input, one output.
You can have different inputs giving the same output (like 3 and -3 both giving 9 when squared).
But you cannot have one input giving multiple outputs.
Function vs. Not a Function
In Relation A, each input maps to exactly one output. That’s a function.
In Relation B, input 1 maps to both a and b. That violates the rule.
A function gives each input exactly one output.
Function Notation
We write to mean “the output of function when the input is .”
This says: “take the input, square it.”
The letter doesn’t have to be . You’ll also see , , or even for population as a function of time.
The variable doesn’t have to be either. It’s just a placeholder for “the input.”
Domain
The domain is the set of all inputs that work.
For , any real number works.
Domain = all real numbers
But some functions have restrictions. There are three common ones:
1. Division by zero
Can’t divide by zero, so .
Domain: all reals except 0
2. Square roots of negatives
Can’t take the square root of a negative (in real numbers).
Domain:
3. Logarithms of non-positives
Logarithms only work for positive numbers.
Domain:
Finding Domain
When given a function, ask yourself:
- Are there any denominators? → Set them
- Are there square roots? → Set the inside
- Are there logarithms? → Set the argument
Example: Find the domain of
Two restrictions:
- Square root:
- Denominator:
Combine them: and
Domain:
Range
The range is the set of all possible outputs.
For :
- Squaring always gives a non-negative result
- The smallest output is 0 (when )
- There’s no largest output
Range:
Another example:
- As gets very large, approaches 0 (but never reaches it)
- As gets very small (negative), same thing
- The output can be any number except 0
Range: all reals except 0