Function Notation
On this page
What f(3) and f(x) = k mean, how to work out a function's value, how to solve for an input, how to find unknown constants from function values, and how to put an expression in as the input.
Builds on: Substitution
Key ideas
f(3) is the output when 3 is the input. It never means f\times3.
Put the input in a bracket in place of every x: f(-3)=(-3)^2-4(-3)=21
In f(x)=11 the output is given. Write the rule equal to 11 and solve for x.
On the graph of y=f(x), f(4) is the height of the curve at x=4. The roots of f(x)=0 are where it crosses the x-axis.
Worked example 1: Substituting a negative input
g(x)=\dfrac{20}{x^2+1}
Find g(-3)
- Put (-3) in place of x:
- g(-3)=\dfrac{20}{(-3)^2+1}
- =\dfrac{20}{9+1}
- =2
- Keep the bracket: (-3)^2=9, but a calculator works out -3^2 as −9.
Now try this
f(x)=\dfrac{30}{x^2-x}
Find f(-2)
- f(-2)=\dfrac{30}{(-2)^2-(-2)}
- =\dfrac{30}{4+2}
- =5
Worked example 2: A function with an angle
f(x)=6\cos x^\circ
Find f(52)
Give your answer correct to 3 significant figures.
- f(52)=6\cos52^\circ
- =3.69397\ldots
- =3.69 (3 s.f.)
- The ^\circ says the input is in degrees: set the calculator to degrees. Only the angle goes inside the cosine; the 6 multiplies the answer.
Now try this
f(x)=5\tan x^\circ
Find f(38)
Give your answer correct to 3 significant figures.
- f(38)=5\tan38^\circ
- =5\times0.78128\ldots
- =3.90642\ldots
- =3.91 (3 s.f.)
Worked example 3: The output is given
f(x)=(2x-1)^2
Solve f(x)=49
- 49 is the output, so write the rule equal to 49:
- (2x-1)^2=49
- 2x-1=7 or 2x-1=-7
- so 2x=8 or 2x=-6
- so x=4 or x=-3
- A square root can be positive or negative, so there are two answers. Do not work out f(49): 49 is the output, not the input.
Now try this
g(x)=(x+3)^2-5
Solve g(x)=31
- (x+3)^2-5=31
- so (x+3)^2=36
- so x+3=6 or x+3=-6
- so x=3 or x=-9
Worked example 4: Finding constants from function values
f(x)=x^2+5
g(x)=ax+b, where a and b are constants.
g(2)=9 and g(5)=f(4)
Find the value of a and the value of b.
- Each function value gives an equation. g(2)=2a+b, so
- 2a+b=9
- f(4)=4^2+5=21
- so 5a+b=21
- Subtract the first equation from the second:
- 3a=12
- so a=4
- 2\times4+b=9
- so b=1
- Check: g(5)=4\times5+1=21, which is f(4).
Now try this
f(x)=3x+2
g(x)=ax+b, where a and b are constants.
g(1)=4 and g(3)=f(4)
Find g(x)
- g(1)=a+b
- so a+b=4
- f(4)=3\times4+2=14
- so 3a+b=14
- Subtract: 2a=10
- so a=5
- so b=4-5=-1
- g(x)=5x-1
Worked example 5: An expression as the input
f(x)=2x^2-3x+1
Express f(x+1) in the form ax^2+bx
- Put (x+1) in place of every x:
- f(x+1)=2(x+1)^2-3(x+1)+1
- =2(x^2+2x+1)-3x-3+1
- =2x^2+4x+2-3x-3+1
- =2x^2+x
- f(x+1) is not f(x)+1: the 1 is added to the input, before the rule acts. Composite functions use the same step.
Now try this
f(x)=3x^2+2x-5
Express f(x-1) in the form ax^2+bx+c
- f(x-1)=3(x-1)^2+2(x-1)-5
- =3(x^2-2x+1)+2x-2-5
- =3x^2-6x+3+2x-2-5
- =3x^2-4x-4
Next: Composite Functions, Inverse Functions
More on this topic: Function Notation worksheet with full solutions