Home page for accesible maths Math 101 Chapter 2: Functions of a real variable

Style control - access keys in brackets

Font (2 3) - + Letter spacing (4 5) - + Word spacing (6 7) - + Line spacing (8 9) - +

2.30 Composite function

Suppose f:ABf:A\to B is defined by y=f(x)y=f(x) and g:BCg:B\to C is defined by z=g(y)z=g(y), then z=g(f(x))=gf(x)z=g(f(x))=g\circ f(x), where gf:ACg\circ f:A\to C is the composition of gg and ff. To calculate gf(x)g\circ f(x), we start with xx and calculate f(x)f(x), then calculate g(f(x))g(f(x)); so we start from the inside and work outwards. (In some books these are called compound functions.)

In the context of this course, we often take A=B=A=B={\mathbb{R}}.

Example

Compose g=sing=\sin and f(x)=x2f(x)=x^{2}. Then fg(x)=(sinx)2f\circ g(x)=(\sin x)^{2}, and gf(x)=sin(x2)g\circ f(x)=\sin(x^{2}). In general, fggff\circ g\not=g\circ f. (When using a calculator, it is important to press the buttons in the correct order.)