Composite and Inverse Functions

A LevelAQAEdexcelOCR

Composite and Inverse Functions

A mapping takes an input in one set of values to an output in another set. A function is a type of mapping. You need to be able to understand the language of functions and how to work with composite functions and inverse functions.

A LevelAQAEdexcelOCR

Language of Functions

There are some key terms that you need to understand before we look at composite and inverse functions:

  • A function is an operation that maps each number to only one number, e.g. x3x^3 is f(x)=x3f(x) = x^3 or f:xx3f : x rightarrow x^3
  • The domain is the set of input (starting) values.
  • The range is the set of possible output values.
  • The domain and/or range is usually the set of real numbers, denoted Rmathbb{R} (i.e. any number, decimal, fraction, surd etc.). If xx is any real number then we write xRx in mathbb{R}
  • A function that maps one element in the domain to one element in the range is called a one-to-one function.
  • A function that maps more than one element in the domain to one element in the range is called a many-to-one function.

 

Example: State the domain and range of the following functions seen in the graphs:

Both functions have domain xRx in mathbb{R}.

f(x)f(x) has a range f(x)Rf(x) in mathbb{R} and it is a one-to-one function.

g(x)g(x) has a range g(x)0g(x) geq 0 and it is a many-to-one function.

A LevelAQAEdexcelOCR

Composite Functions

A composite function is a combination of two or more functions, say ff and gg, that makes a new function.

We write composite functions as fg(x)fg(x) which means that we do gg first, and then do ff – we can rewrite this as f(g(x))f(g(x)) to make things clearer. The order is vital – in most cases fg(x)gf(x)fg(x) neq gf(x) (they are different functions).

You may see squared functions, e.g. f2(x)f^2 (x) – this is the same as ff(x)ff(x) (you do ff twice)

 

Example: For the functions f:x5x2{xR}textcolor{red}{f} : x rightarrow 5x^2 ,,, { x in mathbb{R} }  and  g:xx1{xR}textcolor{limegreen}{g} : x rightarrow x-1 ,,, { xin mathbb{R} }, find

fg(3)textcolor{red}{f} textcolor{limegreen}{g}(3), gf(3)textcolor{limegreen}{g} textcolor{red}{f}(3), f2(x)textcolor{red}{f}^2(x)  and  fg(x)textcolor{red}{f} textcolor{limegreen}{g}(x)

 

fg(3)=f(g(3))=f(31)=f(2)=5(2)2=20textcolor{red}{f} textcolor{limegreen}{g}(3) = textcolor{red}{f} (textcolor{limegreen}{g}(3)) = textcolor{red}{f}(3-1) = textcolor{red}{f}(2) = 5(2)^2 = 20

gf(3)=g(f(3))=g(5(3)2)=g(45)=451=44textcolor{limegreen}{g} textcolor{red}{f}(3) = textcolor{limegreen}{g}( textcolor{red}{f}(3)) = textcolor{limegreen}{g}(5(3)^2) = textcolor{limegreen}{g}(45) = 45 – 1 = 44

f2(x)=f(f(x))=5(5x2)2=125x4textcolor{red}{f} ^2(x) = textcolor{red}{f} ( textcolor{red}{f}(x)) = 5(5x^2)^2 = 125x^4

fg(x)=f(g(x))=f(x1)=5(x1)2textcolor{red}{f} textcolor{limegreen}{g} (x) = textcolor{red}{f} (textcolor{limegreen}{g}(x)) = textcolor{red}{f}(x-1) = 5(x-1)^2

A LevelAQAEdexcelOCR

Solving Composite Functions Equations

You may be asked to solve equations involving composite functions, e.g. fg(x)=2fg(x) = 2. Just find fg(x)fg(x) first and then rearrange and solve to find xx.

Example: For the functions f:xx2{xR}textcolor{red}{f} : x rightarrow x^2 ,,, { x in mathbb{R} }  and  g:xx+2{xR}textcolor{limegreen}{g} : x rightarrow x+2 ,,, { xin mathbb{R} },  solve

fg(x)=4textcolor{red}{f} textcolor{limegreen}{g} (x) = 4

Also, state the range of fg(x)fg(x).

 

fg(x)=f(g(x))=f(x+2)=(x+2)2textcolor{red}{f} textcolor{limegreen}{g} (x) = textcolor{red}{f} ( textcolor{limegreen}{g} (x)) = textcolor{red}{f} (x+2) = (x+2)^2

So,

(x+2)2=4(x+2)^2 = 4

Rearrange this and solve to find the values of xx:

(x+2)2=4x+2=±2begin{aligned} (x+2)^2 &= 4 x+2 &= pm 2 end{aligned}

x=4x = -4  or  x=0x = 0

 

To find the range, it may be helpful to draw the graph of fg(x)textcolor{red}{f} textcolor{limegreen}{g} (x):

 

Hence, the range is fg(x)0textcolor{red}{f} textcolor{limegreen}{g} (x) geq 0.

A LevelAQAEdexcelOCR

Inverse Functions

An inverse of a function does the opposite of that function. The inverse of a function f(x)f(x), is written as f1(x)f^{-1} (x).

An inverse function maps an element in the range to an element in the domain (the opposite of a function). Hence, only one-to-one functions have inverses.

The domain of the inverse is the same as the range of the function. The range of the inverse is the same as the domain of the function.

A composite function of a function and its inverse, and vice versa, gives xx – i.e. f1f(x)=ff1(x)=xf^{-1}f(x) = ff^{-1} (x) = x

 

To work out the inverse of a function, you need to rearrange the function and change the subject.

Example: Find the inverse of f(x)=2x2+5f(x) = 2x^2 + 5, with domain x0x textcolor{red}{geq 0}. State the domain and range of f1(x)f^{-1} (x).

Step 1: Replace f(x)f(x) with yy in the equation:

y=2x2+5y = 2x^2 + 5

Step 2: Rearrange to make xx the subject:

y=2x2+5y5=2x2y52=x2x=y52begin{aligned} y &= 2x^2 + 5 [1.1em] y-5 &= 2x^2 [1.1em] dfrac{y-5}{2} &= x^2 [1.1em] x &= sqrt{dfrac{y-5}{2}} end{aligned}

x0x geq 0, so we don’t need the negative square root.

Step 3: Replace xx with f1(x)f^{-1} (x) and yy with xx:

f1(x)=x52textcolor{limegreen}{f^{-1} (x) = sqrt{dfrac{x-5}{2}}}

Step 4: Swap the domain and range:

The domain of f(x)f(x) is given as x0x textcolor{red}{geq 0} and its range is f(x)5f(x) textcolor{blue}{geq 5}

Hence, the domain of f1(x)f^{-1} (x) is x5x textcolor{blue}{geq 5} and its range is f1(x)0f^{-1} (x) textcolor{red}{geq 0}

 

Note: For simple functions, you can work out the inverse by looking at it – e.g. f(x)=x2f(x) = x-2 has inverse f1(x)=x+2f^{-1}(x) = x+2

A LevelAQAEdexcelOCR

Drawing Inverse Functions

For a function f(x)f(x) plotted on a graph, its inverse f1(x)f^{-1} (x) is its reflection in the line y=xy=x.

Example: Given that f(x)=x21f(x) = x^2 – 1 with domain x0x geq 0, sketch the graph of f1(x)f^{-1}(x).

Firstly, draw f(x)textcolor{red}{f(x)}. Then draw in the line y=xy=x. Finally, reflect f(x)f(x) in y=xy=x to get f1(x)textcolor{blue}{f^{-1}(x)}.

The inverse function is f1(x)=x+1textcolor{blue}{f^{-1} (x)} = sqrt{x+1}

 

You can see from the graph that f(x)f(x) has domain x0x geq 0 and range f(x)1f(x) geq -1, and f1(x)f^{-1} (x) has domain x1x geq -1 and range f1(x)0f^{-1} (x) geq 0.

A LevelAQAEdexcelOCR

Composite and Inverse Functions Example Questions

Question 1: For the functions f:xx+3,{xR}f : x rightarrow x+3, { x in mathbb{R} }  and  g:x22x+1,{x12}g : x rightarrow dfrac{2}{2x+1}, { x neq – dfrac{1}{2} }, find

a) gf(x)gf(x)

b) fg(3)fg(3)

[4 marks]

A Level AQAEdexcelOCR

a)

gf(x)=g(f(x))=g(x+3)=22(x+3)+1=22x+7begin{aligned} gf(x) &= g(f(x)) [1.1em] &= g(x+3) [1.1em] &= dfrac{2}{2(x+3)+1} [1.1em] &= dfrac{2}{2x+7} end{aligned}

 

b)

fg(3)=f(g(3))=f(22(3)+1)=f(27)=27+3=237begin{aligned} fg(3) &= f(g(3)) [1.1em] &= f left( dfrac{2}{2(3)+1} right) [1.1em] &= f left ( dfrac{2}{7} right) [1.1em] &= dfrac{2}{7} + 3 [1.1em] &= dfrac{23}{7} end{aligned}

MME Premium Laptop

Save your answers with

MME Premium

Gold Standard Education

Question 2: For the function f:x2x23,{xR}f : x rightarrow 2x^2 – 3, { x in mathbb{R} }, find

a) f2(x)f^2(x)

b) f2(2)f^2(2)

[3 marks]

A Level AQAEdexcelOCR

a)

f2(x)=f(f(x))=2(2x23)23=2(4x412x2+9)3=8x424x2+183=8x424x2+15begin{aligned} f^2(x) &= f(f(x)) &= 2(2x^2 – 3)^2 – 3 &= 2(4x^4 – 12x^2 + 9) – 3 &= 8x^4 – 24x^2 + 18 – 3 &= 8x^4 – 24x^2 + 15 end{aligned}

 

b)

f2(2)=8(2)424(2)2+15=47f^2(2) = 8(2)^4 – 24(2)^2 + 15 = 47

MME Premium Laptop

Save your answers with

MME Premium

Gold Standard Education

Question 3: For the functions f:xx2+3,{xR}f : x rightarrow x^2 +3, { x in mathbb{R} }  and  g:x6x2,{x2}g : x rightarrow dfrac{6}{x-2}, { x neq 2 }, solve gf(x)=2gf(x) = 2

[3 marks]

A Level AQAEdexcelOCR

gf(x)=g(f(x))=6(x2+3)2=6x2+1begin{aligned} gf(x) &= g(f(x)) [1.1em] &= dfrac{6}{(x^2 + 3) – 2} [1.1em] &= dfrac{6}{x^2 + 1} end{aligned}

So, we can solve the equation to find xx

gf(x)=26x2+1=26=2(x2+1)6=2x2+24=2x22=x2x=±2begin{aligned} gf(x) &= 2 dfrac{6}{x^2 + 1} &= 2 6 &= 2(x^2 + 1) 6 &= 2x^2 + 2 4 &= 2x ^2 2 &= x^2 x &= pm sqrt{2} end{aligned}

MME Premium Laptop

Save your answers with

MME Premium

Gold Standard Education

Question 4:

a) Find the inverse of f(x)=4x+3f(x) = dfrac{4}{x+3} with domain x>3x > -3.

b) State the domain and range of the inverse.

[4 marks]

 

A Level AQAEdexcelOCR

a) Replace f(x)f(x) with yy:

y=4x+3y = dfrac{4}{x+3}

Rearrange to make xx the subject:

y(x+3)=4xy+3y=4xy=43yx=43yybegin{aligned} y(x+3) &= 4 xy + 3y &= 4 xy &= 4 – 3y x &= dfrac{4 – 3y}{y} end{aligned}

Replace xx with f1(x)f^{-1} (x) and yy with xx:

f1(x)=43xxf^{-1} (x) = dfrac{4 – 3x}{x}

 

b) f(x)f(x) has domain x>3x > -3 and range x>0x > 0.

Hence, f1(x)f^{-1} (x) has domain x>0x>0 and range x>3x > -3

MME Premium Laptop

Save your answers with

MME Premium

Gold Standard Education

Additional Resources

Site Logo

Exam Tips Cheat Sheet

A Level
Site Logo

Formula Booklet

A Level

Specification Points Covered

B8 – Understand and use composite functions; inverse functions and their graphs

Composite and Inverse Functions Worksheet and Example Questions