Solveeit Logo

Question

Question: How do you compute \(\left( {f \circ g} \right)\) and \(\left( {g \circ f} \right)\) if \(g(x) = {x^...

How do you compute (fg)\left( {f \circ g} \right) and (gf)\left( {g \circ f} \right) if g(x)=x28g(x) = {x^2} - 8 , f(x)=(x+1)12f(x) = {\left( { - x + 1} \right)^{\dfrac{1}{2}}} ?

Explanation

Solution

Here we will compute the given function by using composition of a function. Let there be two functions ff and gg. Let us note that the co domain of ff and the domain of gg are the same. Let us cut off gg and paste it on the function ff.
Let f:XYf:X \to Y and g:YZg :Y \to Z be two functions. Then the function h:XZh :X \to Z defined as h(x)=g(f(x))h(x) = g\left( {f(x)} \right) for every xXx \in X is called the composition of ff with gg. It is denoted by gfg \circ f (Read this as ff composite with gg ).

Complete step-by-step solution:
If we are given two functions, we can create another function by composing one function into the other. The steps required to perform this operation are similar to when any function is solved for any given value. Such functions are called composite functions.
Let us understand what we need to do for (fg)(x)\left( {f \circ g} \right)(x) and (gf)(x)\left( {g \circ f} \right)(x). Before moving ahead let us understand evaluating a function.
We can see for evaluating we just plug in place of xx ,
f(g(x))f\left( {g(x)} \right) is same as (fg)(x)\left( {f \circ g} \right)(x)
(fg)(x)=f(g(x))\left( {f \circ g} \right)(x) = f\left( {g(x)} \right)-------(1)
(gf)(x)=g(f(x))\left( {g \circ f} \right)(x) = g\left( {f(x)} \right)-------(2)
Let us use the same thing on our problem,
f(x)=(x+1)12f(x) = {\left( { - x + 1} \right)^{\dfrac{1}{2}}} and g(x)=x28g(x) = {x^2} - 8
Using (1) we get,
(fg)(x)=(g(x)+1)12\left( {f \circ g} \right)(x) = {\left( { - g(x) + 1} \right)^{\dfrac{1}{2}}}
Now we substitute the value of g(x)=x28g(x) = {x^2} - 8 in above equation we get,
((x28)+1)12\Rightarrow {\left( { - ({x^2} - 8) + 1} \right)^{\dfrac{1}{2}}}
(x2+8+1)12\Rightarrow {\left( { - {x^2} + 8 + 1} \right)^{\dfrac{1}{2}}}
(fg)(x)=(x2+9)12\left( {f \circ g} \right)(x) = {\left( { - {x^2} + 9} \right)^{\dfrac{1}{2}}}
Now the other composition (gf)(x)\left( {g \circ f} \right)(x) ,
(gf)(x)=(f(x))28\left( {g \circ f} \right)(x) = {\left( {f(x)} \right)^2} - 8
((x+1)12)28\Rightarrow {\left( {{{( - x + 1)}^{\dfrac{1}{2}}}} \right)^2} - 8
Simplified the above term we get,
x+18\Rightarrow - x + 1 - 8
x7\Rightarrow - x - 7
(gf)(x)=(x+7)\left( {g \circ f} \right)(x) = - \left( {x + 7} \right)

Therefore (fg)(x)=(g(x)+1)12\left( {f \circ g} \right)(x) = {\left( { - g(x) + 1} \right)^{\dfrac{1}{2}}} and (gf)(x)=(x+7)\left( {g \circ f} \right)(x) = - \left( {x + 7} \right).

Note: Combining two functions by substituting one function’s formula in place of each xx in the other function’s formula. The composition of functions ff and gg is written fgf \circ g. And it read “ ff composed with gg “. Sometimes forget where each of the functions is defined before composing functions, which can lead to non-existing results. We also sometimes forget that composition is not a commutative operation that is fggff \circ g \ne g \circ f.