1MA1 · A7AlgebraHigherGrades 7–9

Functions

A function is a rule that takes an input and produces exactly one output — like a machine. Writing f(x)=3x−2\mathrm{f}(x) = 3x - 2 gives the machine a name, so you can ask for f(4)\mathrm{f}(4), feed one machine’s output into another, or reverse the machine to find which input produced a given output.

45 min Sequences & Functions

The big picture

Function notation is compact and precise. f(4)\mathrm{f}(4) means "put 4 into the rule f"; fg(x)\mathrm{fg}(x) means "put xx into g, then put the result into f". The order matters, and reading it correctly is where most marks are won or lost.

The inverse function f−1\mathrm{f}^{-1} undoes f. Finding it is rearranging a formula, and Edexcel often combines all three ideas in one question — evaluate, compose, then solve an equation involving an inverse.

What you'll learn

  • Use function notation to evaluate functions and solve equations
  • Find composite functions such as fg(x)\mathrm{fg}(x) and gf(x)\mathrm{gf}(x)
  • Find inverse functions f−1(x)\mathrm{f}^{-1}(x)
  • Solve problems combining composite and inverse functions
1

Function notation

f(x)=3x−2\mathrm{f}(x) = 3x - 2 means "the function f multiplies by 3 and subtracts 2".

To find f(4)\mathrm{f}(4), substitute: 3(4)−2=103(4) - 2 = 10. Negative inputs go in brackets: f(−1)=3(−1)−2=−5\mathrm{f}(-1) = 3(-1) - 2 = -5.

f(x)=13\mathrm{f}(x) = 13 is an equation: 3x−2=133x - 2 = 13, so x=5x = 5.

Your turnSame method, new numbers — try it before moving on.

f(x)=5−2xf(x) = 5 - 2x. Find f(−3)f(-3).

Show worked solution
Solution
  1. 1f(−3)=5−2(−3)=5+6=11f(-3) = 5 - 2(-3) = 5 + 6 = 11.

Answer: 1111

Tip — Read f(a)=b\mathrm{f}(a) = b as "input aa gives output bb". Deciding whether a question gives you the input or the output tells you whether to substitute or solve.

2

Composite functions

fg(x)\mathrm{fg}(x) means f(g(x))\mathrm{f}(\mathrm{g}(x)): apply g first, then f. The function nearest to xx acts first.

Numerically, work from the inside out. Algebraically, substitute the whole expression for g(x)\mathrm{g}(x) wherever xx appears in f.

In general fg(x)≠gf(x)\mathrm{fg}(x) \neq \mathrm{gf}(x).

fg(x)=f(g(x))\mathrm{fg}(x) = \mathrm{f}(\mathrm{g}(x))
g first, then f.
Example 1f(x)=3x−2\mathrm{f}(x) = 3x - 2 and g(x)=x2+1\mathrm{g}(x) = x^{2} + 1. Find (a) fg(2)\mathrm{fg}(2) (b) gf(2)\mathrm{gf}(2) (c) fg(x)\mathrm{fg}(x).
1(a) g(2)=5\mathrm{g}(2) = 5, then f(5)=13\mathrm{f}(5) = 13.
2(b) f(2)=4\mathrm{f}(2) = 4, then g(4)=17\mathrm{g}(4) = 17.
3(c) f(x2+1)=3(x2+1)−2\mathrm{f}(x^{2} + 1) = 3(x^{2} + 1) - 2.
Answer(a) 1313 (b) 1717 (c) 3x2+13x^{2} + 1
Your turnSame method, new numbers — try it before moving on.

f(x)=2x+1f(x) = 2x + 1 and g(x)=x2g(x) = x^2. Find gf(3)gf(3).

Show worked solution
Solution
  1. 1f(3)=7f(3) = 7.
  2. 2g(7)=49g(7) = 49.

Answer: 4949

Why this works

fg(2)=13\mathrm{fg}(2) = 13 but gf(2)=17\mathrm{gf}(2) = 17: the same two machines in a different order give different results, just as "add 1 then square" differs from "square then add 1".

3

Inverse functions

The inverse f−1\mathrm{f}^{-1} reverses f: if f(5)=13\mathrm{f}(5) = 13 then f−1(13)=5\mathrm{f}^{-1}(13) = 5.

To find it, write y=f(x)y = \mathrm{f}(x), rearrange to make xx the subject, then replace yy with xx.

f−1(x)\mathrm{f}^{-1}(x) does not mean 1f(x)\dfrac{1}{\mathrm{f}(x)}.

Example 1Find f−1(x)\mathrm{f}^{-1}(x) when f(x)=2x+53\mathrm{f}(x) = \dfrac{2x + 5}{3}.
1y=2x+53y = \dfrac{2x + 5}{3}, so 3y=2x+53y = 2x + 5.
22x=3y−52x = 3y - 5, so x=3y−52x = \dfrac{3y - 5}{2}.
3Replace yy with xx.
Answerf−1(x)=3x−52\mathrm{f}^{-1}(x) = \dfrac{3x - 5}{2}
Your turnSame method, new numbers — try it before moving on.

f(x)=x−45f(x) = \dfrac{x - 4}{5}. Find f−1(x)f^{-1}(x).

Show worked solution
Solution
  1. 1y=x−45y = \frac{x - 4}{5}, so 5y=x−45y = x - 4 and x=5y+4x = 5y + 4.
  2. 2f−1(x)=5x+4f^{-1}(x) = 5x + 4.

Answer: f−1(x)=5x+4f^{-1}(x) = 5x + 4

Tip — Check an inverse by composing: f−1(f(1))=f−1(73)=7−52=1\mathrm{f}^{-1}(\mathrm{f}(1)) = \mathrm{f}^{-1}\left(\tfrac73\right) = \dfrac{7 - 5}{2} = 1 ✓.

4

Solving with functions

Equations such as fg(x)=28\mathrm{fg}(x) = 28 or f(x)=f−1(x)\mathrm{f}(x) = \mathrm{f}^{-1}(x) are solved by writing each side as an expression first, then solving.

Example 1With f(x)=3x−2\mathrm{f}(x) = 3x - 2 and g(x)=x2+1\mathrm{g}(x) = x^{2} + 1, solve fg(x)=28\mathrm{fg}(x) = 28.
1fg(x)=3x2+1\mathrm{fg}(x) = 3x^{2} + 1.
23x2+1=283x^{2} + 1 = 28, so x2=9x^{2} = 9.
Answerx=3x = 3 or x=−3x = -3
Your turnSame method, new numbers — try it before moving on.

With f(x)=2x+1f(x) = 2x + 1 and g(x)=x2g(x) = x^2, solve gf(x)=25gf(x) = 25.

Separate with a comma.

Show worked solution
Solution
  1. 1(2x+1)2=25(2x + 1)^2 = 25, so 2x+1=±52x + 1 = \pm 5.
  2. 2x=2x = 2 or x=−3x = -3.

Answer: x=2x = 2 or x=−3x = -3

Think like an examiner

  • Show the inside function evaluated before the outside one.
  • Use brackets when substituting an expression into a function.
  • Write inverses in terms of xx, using the notation f−1(x)\mathrm{f}^{-1}(x).

Functions

fg(x)=f(g(x))\mathrm{fg}(x) = \mathrm{f}(\mathrm{g}(x))
Composite: g first.
f−1(f(x))=x\mathrm{f}^{-1}(\mathrm{f}(x)) = x
Inverse undoes f.
y=f(x)→x=⋯→f−1(x)y = \mathrm{f}(x) \to x = \dots \to \mathrm{f}^{-1}(x)
Finding an inverse.

Watch out for these

Applying f first in fg(x)\mathrm{fg}(x).
The function next to xx, g, acts first.
Writing f−1(x)=13x−2\mathrm{f}^{-1}(x) = \dfrac{1}{3x - 2}.
The inverse reverses the operations: x+23\dfrac{x + 2}{3}.
Substituting without brackets: 3x2+1−23x^{2} + 1 - 2 for f(x2+1)\mathrm{f}(x^{2} + 1).
3(x2+1)−2=3x2+13(x^{2} + 1) - 2 = 3x^{2} + 1.
Giving only x=3x = 3 for x2=9x^{2} = 9.
Include x=−3x = -3.

Stretch yourself

f(x)=2x+5\mathrm{f}(x) = 2x + 5. Solve f(x)=f−1(x)\mathrm{f}(x) = \mathrm{f}^{-1}(x).

Hint — Find f−1(x)\mathrm{f}^{-1}(x) first, then set the two expressions equal.

Reveal solution
SolutionFrom y=2x+5y = 2x + 5: x=y−52x = \dfrac{y - 5}{2}, so f−1(x)=x−52\mathrm{f}^{-1}(x) = \dfrac{x - 5}{2}. Setting 2x+5=x−522x + 5 = \dfrac{x - 5}{2}: 4x+10=x−54x + 10 = x - 5, so 3x=−153x = -15 and x=−5x = -5. Check: f(−5)=−5\mathrm{f}(-5) = -5 and f−1(−5)=−102=−5\mathrm{f}^{-1}(-5) = \dfrac{-10}{2} = -5 ✓. (Graphs of a function and its inverse meet on the line y=xy = x, which is why the output equals the input here.) ■\blacksquare

Questions students ask

What does ff(x)\mathrm{ff}(x) mean?
Apply f twice: f(f(x))\mathrm{f}(\mathrm{f}(x)).
How do I check a composite function?
Pick a number, evaluate step by step, and compare with substituting into your algebraic answer.
Does every function have an inverse?
At GCSE the functions you invert are one-to-one. Functions like x2x^{2} need a restricted domain, which is A-Level content.

Key takeaways

  • f(a)\mathrm{f}(a): substitute aa. f(x)=b\mathrm{f}(x) = b: solve for xx.
  • fg(x)=f(g(x))\mathrm{fg}(x) = \mathrm{f}(\mathrm{g}(x)): g first, then f.
  • Usually fg(x)≠gf(x)\mathrm{fg}(x) \neq \mathrm{gf}(x).
  • Find f−1\mathrm{f}^{-1} by rearranging y=f(x)y = \mathrm{f}(x) for xx.
  • Check inverses by composing: f−1(f(x))=x\mathrm{f}^{-1}(\mathrm{f}(x)) = x.

Exam-style questions

Practise it the way it is examined

3 original questions · 8 marks, written to match the style and mark allocation of the real papers. Work on paper, then open the mark scheme and tick the marks you earned — method marks count even if the final answer slips.

Question 1Grade 72 marks
  1. f(x)=x2−3f(x) = x^2 - 3 and g(x)=2x+1g(x) = 2x + 1. Find fg(x)fg(x) in its simplest form.[2]
    Show mark scheme

    Answer: 4x2+4x−24x^2 + 4x - 2

Answer on paper first, then mark it.
Question 2Grade 83 marks
  1. f(x)=3x+2f(x) = 3x + 2. Solve f(x)=f−1(x)f(x) = f^{-1}(x).[3]
    Show mark scheme

    Answer: x=−1x = -1

Answer on paper first, then mark it.
Question 3Grade 93 marks
  1. f(x)=2x+3x−1f(x) = \dfrac{2x + 3}{x - 1}. Find f−1(x)f^{-1}(x).[3]
    Show mark scheme

    Answer: x+3x−2\dfrac{x + 3}{x - 2}

Answer on paper first, then mark it.

Unlimited practice

Skill drill

A new question every time, marked instantly, with a full worked solution. Aim for a streak of five, then move up a level.

0 / 0 first-time correct Streak 0Best at this level: 0

Generating a question…

Test yourself

Answer a few questions, then review anything you missed.

Next step

Keep practising

Start with the quiz above to check the key ideas. You can also choose another topic from the practice library.

Browse practice topics

Related lessons

All 3 lessons