Let f(x)=3x+2 and g(x)=x2−5. Find the composition of the functions (f∘g)(x) and (g∘f)(x).
Next, find g(f(x)). Substituting f(x) into g(x), we get g(f(x))=f(x)2−5=(3x+2)2−5. Expand and simplify to get 9x2+12x+4−5=9x2+12x−1.
Step 1 :First, find f(g(x)). Substituting g(x) into f(x), we get f(g(x))=3g(x)+2=3(x2−5)+2. Simplify to get 3x2−15+2=3x2−13.
Step 2 :Next, find g(f(x)). Substituting f(x) into g(x), we get g(f(x))=f(x)2−5=(3x+2)2−5. Expand and simplify to get 9x2+12x+4−5=9x2+12x−1.