Function Notation
Theory
Function notation writes a rule as \(f(x)\), read “\(f\) of \(x\)”, so that \(f(a)\) is the output when the input is \(a\). This Year 11 Mathematics Advanced page shows how to evaluate \(f(a)\), substitute expressions such as \(f(a+2)\) and \(f(x-1)\), solve \(f(x)=k\), find an unknown coefficient, write an equation in the form \(y=f(x)\), and simplify expressions such as \(\dfrac{f(x+h)-f(x)}{h}\).
A function is a rule that gives exactly one output for each input. We name it with a letter such as \(f\), \(g\) or \(h\) and write the rule as \(f(x)=\ldots\), read “\(f\) of \(x\)”. For example, \(f(x)=x^{2}+1\) means “square the input, then add \(1\)”.
\(f(a)\) means the value of the function when \(x=a\). To find it, substitute \(a\) for every \(x\) in the rule. So \(f(3)=3^{2}+1=10\). The brackets do not mean multiply: \(f(3)\) is not \(f\times 3\).
The input \(x\) is the independent variable and the output \(y=f(x)\) is the dependent variable. Writing an equation “in the form \(y=f(x)\)” means making \(y\) the subject.
On the graph of \(y=f(x)\), \(f(a)\) is the \(y\)-value at \(x=a\): the point \((a,f(a))\) lies on the graph. The zeros of \(f\) are the solutions of \(f(x)=0\); they give the \(x\)-intercepts.
The input can also be an expression. \(f(a+2)\), \(f(2a)\), \(f(x-1)\), \(f(x+h)\) and \(f\left(\dfrac{1}{x}\right)\) all mean: replace every \(x\) in the rule by that expression, in brackets, then simplify.
For a function \(f\):
Two expressions built from function values, used again in calculus:
\(4x+3y-6=0\ \Rightarrow\ 3y=6-4x\ \Rightarrow\ y=\dfrac{6-4x}{3}\), so \(f(x)=\dfrac{6-4x}{3}\).
How to work with function notation
- Substitute the input for every \(x\) in the rule, in brackets: \(f(-3)=(-3)^{2}-3(-3)+4\). Brackets keep the signs and powers right.
- Simplify in order: powers, then multiplication, then addition and subtraction. Give fractions as exact values in simplest form.
- State the answer in function notation, for example \(\therefore f(-3)=22\).
Other question types
- An expression as the input (\(f(a+2)\), \(f(2a)\), \(f(x-1)\)): replace every \(x\) with the whole expression in brackets, expand, then collect like terms.
- Combining values such as \(\dfrac{1}{2}\left(f(-2)+f(2)\right)\): find each function value first, then combine.
- Solve \(f(x)=k\) or find \(a\) so that \(f(a)=k\): write the equation and solve it. A quadratic usually gives two answers. With a fraction, multiply both sides by the denominator (it cannot be zero).
- Solve \(f(x)=f(x+1)\): write each side using the rule, expand, and solve. The \(x^{2}\) terms often cancel.
- An unknown coefficient \(k\): substitute the given inputs, use the given fact (such as \(f(2)=f(-4)\)) to make an equation in \(k\), solve, then use the full rule.
- \(x\)-intercepts: solve \(f(x)=0\), then write each answer as a point \((x,0)\).
- \(\dfrac{f(x+h)-f(x)}{h}\): expand \(f(x+h)\), subtract \(f(x)\) (most terms cancel), take out the common factor \(h\), and cancel it (Example 4). If \(f\) is a fraction such as \(\dfrac{2}{x}\), first write \(f(x+h)-f(x)=\dfrac{2}{x+h}-\dfrac{2}{x}=\dfrac{-2h}{x(x+h)}\) as one fraction, then divide by \(h\) to get \(-\dfrac{2}{x(x+h)}\).
- Show that \(f\left(\dfrac{1}{x}\right)=\ldots\): replace every \(x\) with \(\dfrac{1}{x}\), then multiply the top and bottom by \(x\) to clear the small fractions.
(ii) Given \(g(x)=\dfrac{x+5}{2x-1}\), find the exact value of \(g(3)\).
(i) Substitute \(x=-2\) into \(f(x)\):
| \(f(-2)\) | \(=\) | \(2(-2)^{2}-5(-2)+1\) |
| \(\) | \(=\) | \(2(4)+10+1\) |
| \(\) | \(=\) | \(8+10+1\) |
| \(\) | \(=\) | \(19\) |
\(\therefore f(-2)=\boldsymbol{19}\)
(ii) Substitute \(x=3\) into \(g(x)\):
| \(g(3)\) | \(=\) | \(\dfrac{3+5}{2(3)-1}\) |
| \(\) | \(=\) | \(\dfrac{8}{5}\) |
\(\therefore g(3)=\boldsymbol{\dfrac{8}{5}}\)
(i) Find \(f(a-1)\) in simplest form.
(ii) Hence solve \(f(x)=f(x-1)\).
(i) Replace every \(x\) with \(a-1\):
| \(f(a-1)\) | \(=\) | \((a-1)^{2}+3(a-1)\) |
| \(\) | \(=\) | \(a^{2}-2a+1+3a-3\) |
| \(\) | \(=\) | \(a^{2}+a-2\) |
\(\therefore f(a-1)=\boldsymbol{a^{2}+a-2}\)
(ii) By part (i) with \(a=x\), \(f(x-1)=x^{2}+x-2\). Write each side using the rule:
| \(x^{2}+3x\) | \(=\) | \(x^{2}+x-2\) |
| \(2x\) | \(=\) | \(-2\) |
| \(x\) | \(=\) | \(-1\) |
\(\therefore x=\boldsymbol{-1}\). Check: \(f(-1)=1-3=-2\) and \(f(-2)=4-6=-2\).
Substitute both values and equate:
| \(f(3)\) | \(=\) | \(9+3k-6=3+3k\) |
| \(f(-1)\) | \(=\) | \(1-k-6=-5-k\) |
| \(3+3k\) | \(=\) | \(-5-k\) |
| \(4k\) | \(=\) | \(-8\) |
| \(k\) | \(=\) | \(-2\) |
So \(f(x)=x^{2}-2x-6\). Now write \(f(x)=2\) as an equation and solve:
| \(x^{2}-2x-6\) | \(=\) | \(2\) |
| \(x^{2}-2x-8\) | \(=\) | \(0\) |
| \((x-4)(x+2)\) | \(=\) | \(0\) |
\(\therefore k=\boldsymbol{-2}\), and \(f(x)=2\) when \(x=\boldsymbol{4}\) or \(x=\boldsymbol{-2}\).
Expand \(f(x+h)\), subtract \(f(x)\), then divide by \(h\):
| \(f(x+h)\) | \(=\) | \(2(x+h)^{2}+(x+h)\) |
| \(\) | \(=\) | \(2x^{2}+4xh+2h^{2}+x+h\) |
| \(f(x+h)-f(x)\) | \(=\) | \(4xh+2h^{2}+h\) |
| \(\dfrac{f(x+h)-f(x)}{h}\) | \(=\) | \(\dfrac{h(4x+2h+1)}{h}\) |
| \(\) | \(=\) | \(4x+2h+1\) |
\(\therefore \dfrac{f(x+h)-f(x)}{h}=\boldsymbol{4x+2h+1}\)
The \(2x^{2}\) and \(x\) terms cancel when \(f(x)\) is subtracted, so every term left on top has a factor \(h\).
Common pitfalls
Frequently asked questions
What does f(x) mean in maths?
\(f(x)\) is read “\(f\) of \(x\)”. It means the output of the function \(f\) when the input is \(x\). It does not mean \(f\) times \(x\).
How do you find f(a) for a function?
Substitute \(a\) for every \(x\) in the rule, using brackets, then simplify. For \(f(x)=x^{2}+1\), \(f(3)=3^{2}+1=10\).
How do you find f(x + 1) or f(2a)?
Replace every \(x\) in the rule with the whole expression in brackets, then expand and collect like terms. For \(f(x)=x^{2}\), \(f(x+1)=(x+1)^{2}=x^{2}+2x+1\).
What is the difference between f(x) = 3 and f(3)?
\(f(3)\) is the output when the input is \(3\); you substitute. \(f(x)=3\) is an equation; you solve it to find the inputs that give an output of \(3\).
What does write in the form y = f(x) mean?
Make \(y\) the subject of the equation. The expression in \(x\) that \(y\) equals is \(f(x)\). For \(4x+3y-6=0\), \(y=\dfrac{6-4x}{3}\).