Arithly

← All maths topics

Functions: notation, composite functions and inverse functions

A function is a rule that turns an input number into exactly one output number. The notation f(x) = 2x + 1 says: the rule f takes the input x, doubles it and adds 1. Writing f(3) means feeding 3 into the rule, so f(3) = 2 × 3 + 1 = 7. Solving f(x) = 7 runs the rule backwards: set 2x + 1 = 7 and solve the equation.

A composite function chains two rules: fg(x) means apply g first, then apply f to g's answer — always work inside-out, starting with the function written closest to the number. The inverse function f⁻¹ undoes f completely: to find it, write y = f(x), swap x and y, and rearrange to make y the subject. The inverse of a straight-line function is another straight line, and f⁻¹(f(x)) always gives x back.

Think first

Before reading the solution, try to answer these — they are the hints Arithly itself gives:

Worked example

f(x) = x² − 1 and g(x) = 2x + 1. Find fg(3)

  1. fg(3) means f(g(3)): the inside function g works first, then f uses its answer.
  2. Inside first: g(3) = 2(3) + 1.
  3. Work out each part: 2 × 3 = 6.
  4. Add the parts: 6 + 1 = 7.
  5. Now put 7 into f: f(7) = (7)² − 1.
  6. Work out each part: (7)² = 49.
  7. Add the parts: 49 − 1 = 48.

Answer: fg(3) = 48

Practice

Try these yourself. Each one opens in Arithly with the question already filled in — solve it there and check your working:

More topics: all maths topics · Next topic: Changing the subject of a formula

© 2026 Arithly. Content: CC BY-NC 4.0 · Code & solver: all rights reserved.