# Composite functions

Up a level : IB Mathematics
Previous page : Various definitions
Next page : Functions, Quiz 2, composite functions

Composite functions [SL/HL]

If we have a function f (x) and a function g(x)  then the function

y=f (g (x))

is the function we get by first applying the function g then the function f.

The expression f (g (x)) is read “f of g of x“.

One can often see this written as

y=(f g)(x)

Say we have f (x)=2x+3 and g (x)=x2+x, then we have that

f (g (x))=f (x2+x)=2(x2+x)+3=2x2+2x+3

We thus replace g (x) by x2+x, then use that instead of x in f (x)=2x+3.