O Level and A Level · Functions

Composite functions: domain, range and when fg exists

How to find fg(x) in the right order, when a composite function exists, and its domain and range, with worked examples from Cambridge exams.

Updated

Short answer

How do you find the domain and range of a composite function?

fg(x) means apply g first, then f. fg exists only when every output of g is an input f accepts. Its domain is the domain of g, and its range comes from feeding the range of g into f.

In , the function next to acts first. So : put into , then put the answer into .

Building fg and gf

Take and .

These are different functions. Their ranges differ too: , while .

When does fg exist?

exists only when the range of lies inside the domain of . Every output of must be something can accept.

Take for , and .

  • If is defined for all real , its smallest value is . But cannot take , because it needs inputs of at least . So does not exist.
  • If is restricted to , then only takes values , which accepts. Now exists.

Domain and range of fg

With restricted to :

  • Domain of : the domain of , so .
  • Range of : feed the range of into . , smallest at , where it is . So .

Try it: does the range of g fit the domain of f?

Predict each round first, then watch the range of drop into the domain of .

loading lab…

Mistakes that cost marks

  1. Applying first in . Read it as .
  2. Giving the domain of as the domain of . It is the domain of (restricted further if needed).
  3. Saying exists without checking that the range of fits inside the domain of .

Practise with exam questions: 9709 functions practice.

Questions students ask