Skip to content

Mathematics · Ch 15 — Functions

Composition of Functions

15.2.1

Composition of Functions

Composition of functions. A method of combining a function f:A→Bf:A\to B with a function g:B→Cg:B\to C is composition, defined as (f∘g)(x)=f[g(x)](f\circ g)(x)=f[g(x)], read 'ff composed with gg' (Fig. 6.35).

Note: (1) The domain of g∘fg\circ f is the set of all xx in AA such that f(x)f(x) is in BB. The range of g∘fg\circ f is the set of all g[f(x)]g[f(x)] in CC such that f(x)f(x) is in BB. (2) Domain of g∘f⊆g\circ f\subseteq domain of ff, and range of g∘f⊆g\circ f\subseteq range of gg.

Illustration: A cow produces 4 litres of milk in a day. Then xx cows produce 4x4x litres of milk in a day, given by the function f(x)=4x=′y′f(x)=4x='y'. The price of one litre of milk is Rs. 50, so the price of yy litres is Rs. 50y50y, given by another function g(y)=50yg(y)=50y. Now a function h(x)h(x) gives the money earned from xx cows in a day as a composite function of ff and gg: h(x)=(g∘f)(x)=g[f(x)]=g(4x)=50(4x)=200xh(x)=(g\circ f)(x)=g[f(x)]=g(4x)=50(4x)=200x.

Ex. 3: If f(x)=2x+5f(x)=\dfrac{2}{x+5} and g(x)=x2−1g(x)=x^2-1, find (i) (f∘g)(x)(f\circ g)(x), (ii) (g∘f)(3)(g\circ f)(3).

Solution: (i) Since (f∘g)(x)=f[g(x)](f\circ g)(x)=f[g(x)] and f(x)=2x+5f(x)=\dfrac{2}{x+5}, replace xx in f(x)f(x) by g(x)g(x): (f∘g)(x)=2g(x)+5=2x2−1+5=2x2+4(f\circ g)(x)=\dfrac{2}{g(x)+5}=\dfrac{2}{x^2-1+5}=\dfrac{2}{x^2+4}.

(ii) Since (g∘f)(x)=g[f(x)](g\circ f)(x)=g[f(x)] and g(x)=x2−1g(x)=x^2-1, replace xx by f(x)f(x): (g∘f)(x)=[f(x)]2−1=(2x+5)2−1(g\circ f)(x)=[f(x)]^2-1=\left(\dfrac{2}{x+5}\right)^2-1. Now let x=3x=3: (g∘f)(3)=(28)2−1=(14)2−1=116−1=1−1616=−1516(g\circ f)(3)=\left(\dfrac{2}{8}\right)^2-1=\left(\dfrac14\right)^2-1=\dfrac{1}{16}-1=\dfrac{1-16}{16}=-\dfrac{15}{16}.

Ex. 4: If f(x)=x2f(x)=x^2, g(x)=x+5g(x)=x+5, and h(x)=1x, x≠0h(x)=\dfrac1x,\ x\ne0, find (g∘f∘h)(x)(g\circ f\circ h)(x).

Solution: (g∘f∘h)(x)=g{f[h(x)]}=g[f(1x)]=g[(1x)2]=(1x)2+5=1x2+5(g\circ f\circ h)(x)=g\{f[h(x)]\}=g\left[f\left(\dfrac1x\right)\right]=g\left[\left(\dfrac1x\right)^2\right]=\left(\dfrac1x\right)^2+5=\dfrac{1}{x^2}+5.

Ex. 5: If h(x)=(x−5)2h(x)=(x-5)^2, find the functions ff and gg such that h=f∘gh=f\circ g. …

Figure 1Fig. 6.35 — composition A to B to C diagram

What this figure shows. Three ovals labelled A, B, C side by side, with an arrow from a point x in A to a point y in B labelled f (representing y=f(x)), a second arrow from y in B to a point z in C labelled g (representing z=g(y)), and one long curved arrow drawn directly from x in A all the way to z in C, labelled g-composed-with-f, running underneath the two short arrows. Illustrates that composing f then g is the same as one direct combi …