Function notation: evaluating and finding functions
A function is a rule that gives exactly one output for each allowed input. Function notation names the rule and makes the input explicit.
For example,
means: the function called multiplies its input by , then subtracts . If the input is , the output is
The notation is read as “ of ”. It does not mean .
Function notation occurs throughout A-level Mathematics, including graphs, transformations, calculus, sequences and numerical methods. The central habit is simple:
Replace every occurrence of the input variable by the complete new input.
Prerequisites
Section titled “Prerequisites”You should already be able to:
- substitute numbers into algebraic expressions;
- use negative numbers and the order of operations;
- expand brackets and collect like terms;
- solve simple linear and quadratic equations.
Review algebraic manipulation and factorisation if substitution or expansion is uncertain. Review linear equations or quadratic equations if solving the final equation causes difficulty.
Inputs, rules and outputs
Section titled “Inputs, rules and outputs”Think of a function as a machine:
If , then
so . This can also be written as a mapping:
The letter is merely the function’s name. Other names are equally valid:
In , the input variable is . The choice of letter does not change the idea.
Function notation and equation notation
Section titled “Function notation and equation notation”The statements
and
can describe the same input and output rule. Function notation is more informative because it names the rule. It lets us write , or without inventing a new output variable each time.
Evaluating a function at a number
Section titled “Evaluating a function at a number”To evaluate , replace every in the formula for by , then simplify.
Worked example 1: a linear function
Section titled “Worked example 1: a linear function”Given , find .
Replace by :
The expression is the output, not an instruction to multiply by .
Worked example 2: a negative input
Section titled “Worked example 2: a negative input”Given , find .
Use brackets around the negative input every time it replaces :
Without brackets, would mean . The function requires the whole input to be squared.
Worked example 3: a fractional input
Section titled “Worked example 3: a fractional input”Let
Find .
The fraction bar groups the complete numerator and denominator. Substitute into both before simplifying.
Self-check 1
Section titled “Self-check 1”Let . Find:
- ;
- ;
- .
Answers
- .
- .
- .
The input can be an expression
Section titled “The input can be an expression”In , the input is . In , it is . In , the complete input is . The same replacement rule always applies.
Suppose
Then
Putting into each box gives
The brackets protect the structure of the new input.
Worked example 4: substitute and expand
Section titled “Worked example 4: substitute and expand”For , simplify .
A common incorrect first line is . This substitutes into separate pieces instead of replacing each whole occurrence of . In particular,
Worked example 5: a scaled input
Section titled “Worked example 5: a scaled input”Given , simplify .
Because , both the coefficient and variable are squared.
Worked example 6: compare nearby inputs
Section titled “Worked example 6: compare nearby inputs”Let . Find and simplify .
First evaluate the two function expressions separately:
Now subtract the complete second expression:
This comparison of nearby outputs is an early version of an idea used later in differentiation.
Self-check 2
Section titled “Self-check 2”Given , simplify:
- ;
- ;
- ;
- .
Answers
- .
- .
- .
- .
The last answer equals because squaring removes the sign. This does not happen for every function.
Finding an unknown function value
Section titled “Finding an unknown function value”An equation such as asks:
Which input or inputs produce the output ?
Replace by its rule, then solve the resulting equation.
Worked example 7: solve a linear function equation
Section titled “Worked example 7: solve a linear function equation”Given , solve .
Check:
The answer is , not . The function is named ; the unknown is its input.
Worked example 8: there may be two inputs
Section titled “Worked example 8: there may be two inputs”Let . Solve .
Both inputs give the same output:
A function assigns one output to each input. It may still assign the same output to several different inputs.
Worked example 9: an equation involving two function values
Section titled “Worked example 9: an equation involving two function values”Given , solve
First calculate the fixed value:
Therefore
Hence
Do not cancel the letter from . Function notation is not multiplication. Instead, evaluate both sides using the stated rule.
Finding the function rule
Section titled “Finding the function rule”Sometimes the formula contains unknown constants. Given enough input and output information, form equations and solve for them.
Worked example 10: determine a linear rule
Section titled “Worked example 10: determine a linear rule”A function has the form
Given and , find .
Substitute each input and output:
Subtract the first equation from the second:
so . Use :
giving . Therefore
Check both facts:
Two points determine a linear function because its two constants, gradient and intercept, are then fixed.
Worked example 11: use a stated family of functions
Section titled “Worked example 11: use a stated family of functions”The function has the form
Given and , find and .
From ,
so
p+q=3.\tag{1}
From ,
so
-2p+q=6.\tag{2}
Subtract equation from equation :
giving . Then gives . Thus
Tables and function notation
Section titled “Tables and function notation”A function may be given by a table rather than a formula.
From the table:
The equation has two listed solutions:
The table gives no value for . Unless a rule or further information is supplied, it cannot be inferred. A function need not follow an obvious pattern merely because a few values are displayed.
Allowed inputs
Section titled “Allowed inputs”Not every formula accepts every real number. The set of allowed inputs is called the domain.
For
the input would make the denominator zero. Therefore is undefined.
For
real outputs require , so .
At this stage, develop the habit of checking for division by zero and square roots of negative numbers. Domains and ranges are treated fully in functions, domains and ranges.
Worked example 12: decide whether a value exists
Section titled “Worked example 12: decide whether a value exists”Let
Determine whether and exist.
For ,
For , the denominator is
Division by zero is undefined, so does not exist.
Common misconceptions
Section titled “Common misconceptions”- Reading as . The letter names a rule. You cannot cancel or divide by it as though it were a factor.
- Replacing only some occurrences of the variable. In , both occurrences change when evaluating .
- Losing brackets around a negative or algebraic input. If , then , and .
- Confusing with . If , then , while . They are generally different.
- Assuming one output has one input. A function requires one output per input, not one input per output. For , both and produce .
- Ignoring forbidden inputs. A formula containing a denominator or square root may have restrictions.
Mixed self-check
Section titled “Mixed self-check”Let
- Find .
- Simplify .
- Simplify .
- Solve .
- Solve .
- Find if .
Answers
1.
2.
The subtraction changes both terms inside the bracket.
3.
4.
so .
5.
Therefore or .
6. First, . Now solve
Hence
What to learn next
Section titled “What to learn next”You should now be able to explain as an output, evaluate a function at numerical and algebraic inputs, solve equations involving function values, and determine simple function rules.
Next, study functions, domains and ranges for the full A-level language of mappings, domains, codomains, ranges and one-to-one functions. Then continue to composite and inverse functions and function graphs. If the algebraic manipulation was the main difficulty, strengthen algebraic fluency first.