Consider the functions f(x) = 2x + 1 and g(x) = 3x^2 - 1. Find and simplify the following:

We are given the following functions:
[tex]\begin{gathered} f\mleft(x\mright)=2x+1,\text{ and} \\ g\mleft(x\mright)=3x^2-1 \end{gathered}[/tex]We are asked to determine the following:
[tex](f\circ g)(x)[/tex]This is a composition of functions and it is equivalent to the following:
[tex](f\circ g)(x)=f(g(x))[/tex]This means that we will substitute the value of "x" is f(x) for the function g(x), like this:
[tex]f(g(x))=2(3x^2-1)+1[/tex]Now we simplify, first by applying the distributive property:
[tex]f(g(x))=6x^2-2+1[/tex]Now we solve the operation:
[tex]f(g(x))=6x^2-1[/tex]And thus we have the composition of the functions.
For part B we are asked:
[tex](g\circ f)(x)=g(f(x))[/tex]This means that this time we will substitute the value of "x" in g(x) for the function f(x), like this:
[tex]g(f(x))=3(2x+1)^2-1[/tex]Now we simplify the function. First, we solve the square using the following relationship:
[tex](a+b)^2=a^2+2ab+b^2[/tex]Using the relationship we get:
[tex]g(f(x))=3(4x^2+4x+1)-1[/tex]Now we apply the distributive property:
[tex]g(f(x))=12x^2+12x+3-1[/tex]Now we solve the operations:
[tex]g(f(x))=12x^2+12x+2[/tex]And thus we get the composition of the functions.