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:A→Bf:A\to B is defined by y=f⁢(x)y=f(x) and g:B→Cg:B\to C is defined by z=g⁢(y)z=g(y), then z=g⁢(f⁢(x))=g∘f⁢(x)z=g(f(x))=g\circ f(x), where g∘f:A→Cg\circ f:A\to C is the composition of gg and ff. To calculate g∘f⁢(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 f∘g⁢(x)=(sin⁡x)2f\circ g(x)=(\sin x)^{2}, and g∘f⁢(x)=sin⁡(x2)g\circ f(x)=\sin(x^{2}). In general, f∘g≠g∘ff\circ g\not=g\circ f. (When using a calculator, it is important to press the buttons in the correct order.)