Composite and inverse functions
In a nutshell
Functions take an input, perform an operation and then produce an output. Functions can be represented diagrammatically with a function machine or algebraically with f(x) notation.
Once a function is written in function notation, it is possible to perform calculations to find the output, find composite functions and inverse functions. A composite function is a combination of two different functions, and an inverse function performs the inverse operation to the original function.
Function machines
Function machines are used to apply operations to an input to obtain an output. The input can be a number, a variable or even an expression. The function machine is represented in a diagram and can be written using f(x) notation.
Example 1
Here is a function machine, find the output for the inputs 5, x and y+1.
input⟶×2⟶+1⟶output
5⟶×2⟶+1⟶11
x⟶×2⟶+1⟶2x+1
y+1⟶×2⟶+1⟶2(y+1)+1=2y+3
Example 2
Write the function machine using f(x) notation.
x⟶−2⟶square⟶y
f(x)=(x−2)2
f(x) notation
A function written algebraically in f(x) notation can be used to calculate an output from an input. It is also possible to find the input given an output.
Example 3
Find the outputs for the function f(x)=x2−3 with inputs 2,w and y+1.
f(x)f(2)f(w)f(y+1)=x2−3=22−3=1=w2−3=(y+1)2+3=y2+2y+4
Example 4
For f(x)=2x−3, find the input when the output is 7.
Make the function equal to 7 and then solve for x.
f(x)=2x−32x−32x=7=7=10x=5
Composite functions
Composite functions consist of two functions combined together. The output of one function machine is used as an input for another function. The order of applying the functions matters. If an input is put through a function f(x) then the output is put through g(x), the composite function is called gf(x).
x⟶f(x)⟶g(x)⟶y is the same as x⟶gf(x)⟶y
To find the composite function, substitute the inner function, which is f(x) in the above example, into the outer function g(x).
Example 5
Find the composite function fg(x) for the functions
f(x)=x2 and g(x)=x−5
Substitute the inner function g(x) into f(x) to give
fg(x)=(x−5)2
Inverse functions
An inverse function f−1(x) performs the inverse operation to f(x). If f(x) takes an input x to calculate an output y, then the inverse operation will take the value of y as an input and give the output as x.
x⟶x⟵f(x)⟶yf−1(x)⟵y
To find an inverse function, rearrange the function for x and then swap x and y. Then rename the function to f−1(x).
Example 6
Find the inverse function for
f(x)=5x−3
Write the equation as
y=5x−3
Rearrange for x.
yy+35y+3x=5x−3=5x=x=5y+3
Swap the y for x and rename the function to f−1(x).
f−1(x)=5x+3