Part \(1\). Introduction to functions
\(1.1\) What is a function?
A function is a rule that assigns exactly one output to every input in its domain.
Think of a function as a mathematical machine. You provide an input, the function performs a calculation, and it produces an output.
For example, consider the function:
This function tells us to multiply the input by \(2\) and then add \(3\).
Suppose the input is \(x=2\).
The calculation is:
Therefore, the output corresponding to the input \(2\) is \(7\).
Input-output table
The following HTML table shows how the function works for different inputs.
| Input \(x\) | Calculation | Output \(f(x)\) |
|---|---|---|
| \(0\) | \(2(0)+3\) | \(3\) |
| \(1\) | \(2(1)+3\) | \(5\) |
| \(2\) | \(2(2)+3\) | \(7\) |
| \(3\) | \(2(3)+3\) | \(9\) |
| \(4\) | \(2(4)+3\) | \(11\) |
Notice that each input has exactly one output. This is the essential property of a function.
\(1.2\) Understanding function notation
Functions are usually represented by letters such as \(f\), \(g\), and \(h\).
Consider:
The notation \(f(x)\) is read as “\(f\) of \(x\).”
-
\(f\) is the name of the function.
-
\(x\) represents the input.
-
\(f(x)\) represents the output corresponding to the input.
Important: \(f(x)\) does not mean \(f\) multiplied by \(x\). It represents the value of the function.
Worked example
Given:
Find \(f(3)\).
Step one: Substitute the input.
Step two: Calculate the power.
Step three: Simplify.
\(1.3\) Evaluating functions with negative inputs
Negative inputs require careful substitution, especially when powers are involved.
Consider:
Find \(f(-2)\).
Step one: Substitute the input.
Step two: Calculate the power and multiplication.
Step three: Simplify.
Always use parentheses when substituting negative values.
\(1.4\) Can different inputs produce the same output?
Yes. Different inputs may produce the same output, and the relationship can still be a function.
Consider:
For the input \(x=2\):
For the input \(x=-2\):
Both inputs produce the same output.
This is still a function because each individual input has exactly one output.
Part \(2\). Function mappings and ordered pairs
\(2.1\) Understanding function mappings
A mapping shows which output corresponds to each input.
Consider:
Suppose the domain is:
Calculate the outputs:
The mapping can be written as:
Every input has exactly one output, so this is a function.
\(2.2\) Ordered pairs
An ordered pair has the form:
The first coordinate represents the input, and the second coordinate represents the output.
Consider:
This relation is a function because each input has exactly one output.
Now consider:
This relation is not a function because the input \(x=2\) corresponds to two different outputs.
Comparison table
| Relation | Is it a function? | Explanation |
|---|---|---|
| \(\{(1,3),(2,5),(3,7)\}\) | Yes | Every input has exactly one output. |
| \(\{(1,4),(2,4),(3,4)\}\) | Yes | Different inputs may share the same output. |
| \(\{(1,3),(2,5),(2,8)\}\) | No | The input \(2\) has two different outputs. |
| \(\{(-1,2),(0,3),(1,2)\}\) | Yes | Every input has exactly one output. |
Exam tip: Compare the first coordinates. If the same input is associated with different outputs, the relation is not a function.
Part \(3\). Domain, codomain, and range
\(3.1\) Domain
The domain is the set of all permitted input values for a function.
In simple terms, the domain answers this question:
Which values can we substitute into the function?
Consider:
We cannot substitute \(x=0\), because division by zero is undefined.
Therefore, the domain is all real numbers except zero:
In interval notation:
\(3.2\) Codomain
The codomain is the declared set into which the function maps its outputs.
Consider:
The domain is \(\mathbb R\), and the codomain is also \(\mathbb R\).
However, the function cannot produce negative outputs because the square of a real number is never negative.
\(3.3\) Range
The range is the set of all actual output values produced by a function.
Consider:
For every real input:
The minimum output is zero, achieved when \(x=0\). Every nonnegative real output is possible.
Therefore:
Comparison table
| Concept | Meaning | Example for \(f(x)=x^2\) |
|---|---|---|
| Domain | All permitted inputs. | \(\mathbb R\) |
| Codomain | Declared output set. | \(\mathbb R\) |
| Range | All actual outputs. | \([0,\infty)\) |
The range is always a subset of the codomain:
The range and codomain may be equal, but they do not have to be equal.
\(3.4\) Interval notation
Interval notation expresses sets of real numbers using parentheses and square brackets.
| Interval | Inequality | Meaning |
|---|---|---|
| \((a,b)\) | \(a<x<b\) | Neither endpoint is included. |
| \([a,b]\) | \(a\leq x\leq b\) | Both endpoints are included. |
| \((a,b]\) | \(a<x\leq b\) | Only the right endpoint is included. |
| \([a,b)\) | \(a\leq x<b\) | Only the left endpoint is included. |
| \((-\infty,a)\) | \(x<a\) | All real numbers less than \(a\). |
| \([a,\infty)\) | \(x\geq a\) | All real numbers greater than or equal to \(a\). |
Remember: Infinity always uses parentheses because infinity is not a real-number endpoint that can be included.
Part \(4\). Determining domains from algebraic expressions
The domain depends on which inputs make an expression mathematically valid.
For real-valued elementary functions, remember these rules:
-
Polynomial functions have no domain restrictions.
-
Rational functions cannot have a zero denominator.
-
Square roots require a nonnegative radicand.
-
Logarithms require a strictly positive argument.
\(4.1\) Polynomial functions
Polynomial functions include linear, quadratic, and cubic expressions.
Examples:
Every real number is permitted as an input.
Therefore:
Worked example
Find the domain of:
This is a polynomial, so every real input is allowed.
\(4.2\) Rational functions
A rational function contains a fraction. Its denominator must not equal zero.
The restriction is:
Consider:
Set the denominator unequal to zero:
Solve:
Therefore:
Worked example: Two excluded values
Find the domain of:
Factor the denominator:
The denominator must not equal zero:
Therefore:
The final answer is:
Even if a factor cancels during simplification, an input excluded by the original denominator remains excluded from the original function’s domain.
\(4.3\) Square root functions
For a real-valued square root, the expression inside the root must be nonnegative.
Consider:
Set the radicand greater than or equal to zero:
Solve:
Therefore:
The endpoint is included because:
Worked example: Negative coefficient
Find the domain of:
Set the radicand nonnegative:
Rearrange:
Divide by a negative number and reverse the inequality sign:
Therefore:
\(4.4\) Logarithmic functions
For a real logarithm, its argument must be strictly positive.
The base must also satisfy:
Consider:
The argument must be positive:
Solve:
Therefore:
The endpoint is excluded because the logarithm of zero is undefined.
Worked example
Find the domain of:
Require the argument to be positive:
Subtract