Solveeit Logo

Question

Question: How do you find (f o g) (x) and its domain, (g o f) (x) and its domain, (f o g) (-2) and (g o f) (-2...

How do you find (f o g) (x) and its domain, (g o f) (x) and its domain, (f o g) (-2) and (g o f) (-2) of the following problem f(x)=x21f(x) = {x^2} - 1 , g(x)=x+1g(x) = x + 1 ?

Explanation

Solution

Hint : We can write (f 0 g)(x)(f{\text{ }}0{\text{ }}g)(x) as f(g(x))f(g(x)) . Similarly we can write (g 0 f)(x)(g{\text{ }}0{\text{ }}f)(x) as g(f(x))g(f(x)) . Here we have a composition of two functions. The composition is an operation where two functions say ‘f’ and ‘g’ generate a new function say ‘h’ in such a way that h(x)=g(f(x))h(x) = g(f(x)) . It means here function g is applied to the function of ‘x’.

Complete step-by-step answer :
As we know that, (f 0 g)(x)=f(g(x))(f{\text{ }}0{\text{ }}g)(x) = f(g(x)) and (g 0 f)(x)=g(f(x))(g{\text{ }}0{\text{ }}f)(x) = g(f(x)) .
Given, f(x)=x21f(x) = {x^2} - 1 and g(x)=x+1g(x) = x + 1
Now,
(f 0 g)(x)=f(g(x))\Rightarrow (f{\text{ }}0{\text{ }}g)(x) = f(g(x))
We have f(x)=x21f(x) = {x^2} - 1 in this we need to put x=g(x)x = g(x) . Then we have,
=[g(x)]21= {[g(x)] ^2} - 1
But we have g(x)=x+1g(x) = x + 1 . Squaring this on both sides we have (g(x))2=(x+1)2{\left( {g(x)} \right)^2} = {\left( {x + 1} \right)^2} .
=(x+1)21= {\left( {x + 1} \right)^2} - 1
We know (a+b)2=a2+b2+2ab{(a + b)^2} = {a^2} + {b^2} + 2ab , applying this we have,
=x2+1+2x1= {x^2} + 1 + 2x - 1
=x2+2x= {x^2} + 2x
Thus we have (f 0 g)(x)=x2+2x (1) \Rightarrow (f{\text{ }}0{\text{ }}g)(x) = {x^2} + 2x{\text{ }} - - - (1) .
Since this is defined for all real values of ‘x’, the domain of (f 0 g)(x)(f{\text{ }}0{\text{ }}g)(x) is all real numbers.
We also need to find (f 0 g)(2)(f{\text{ }}0{\text{ }}g)( - 2) .
Put x=2x = - 2 in the equation (1) we have
(f 0 g)(2)=(2)2+2(2)\Rightarrow (f{\text{ }}0{\text{ }}g)( - 2) = {( - 2)^2} + 2( - 2)
=44= 4 - 4
=0= 0 .
Similarly, now take (g 0 f)(x)=g(f(x))(g{\text{ }}0{\text{ }}f)(x) = g(f(x))
We have g(x)=x+1g(x) = x + 1 in this we need to put x=f(x)x = f(x) . Then we have,
=f(x)+1= f(x) + 1
But we have f(x)=x21f(x) = {x^2} - 1 , then substituting in the above we get,
=x21+1= {x^2} - 1 + 1
=x2= {x^2} .
Thus we have, (g 0 f)(x)=x2 (2) \Rightarrow (g{\text{ }}0{\text{ }}f)(x) = {x^2}{\text{ }} - - - (2) .
Again, this is defined for all real values of ‘x’ so the domain of (g 0 f)(x)(g{\text{ }}0{\text{ }}f)(x) is all real value.
Now we need (g 0 f)(2)(g{\text{ }}0{\text{ }}f)( - 2)
So put x=2x = - 2 in the equation (2) we get,
(g 0 f)(2)=(2)2\Rightarrow (g{\text{ }}0{\text{ }}f)( - 2) = {( - 2)^2}
=4= 4 .

Note : Follow the same procedure for any composition problem. As we can see in above problem it fails commutative property because (f 0 g)(x)(g 0 f)(x)(f{\text{ }}0{\text{ }}g)(x) \ne (g{\text{ }}0{\text{ }}f)(x) . If ‘f’ and ‘g’ are one-one functions then the composition function (f 0 g)(x)(f{\text{ }}0{\text{ }}g)(x) is also one-one function. The function composition of two onto function is always onto.