Function Composition Math Example 2

Follow the full solution, then compare it with the other examples linked below.

Example 2

medium
Given f(x)=x+3f(x) = x + 3 and g(x)=2x2โˆ’1g(x) = 2x^2 - 1, find the formula for (gโˆ˜f)(x)(g \circ f)(x).

Solution

  1. 1
    (gโˆ˜f)(x)=g(f(x))=g(x+3)(g \circ f)(x) = g(f(x)) = g(x + 3).
  2. 2
    Substitute x+3x + 3 into gg: 2(x+3)2โˆ’12(x + 3)^2 - 1.
  3. 3
    Expand: 2(x2+6x+9)โˆ’1=2x2+12x+18โˆ’1=2x2+12x+172(x^2 + 6x + 9) - 1 = 2x^2 + 12x + 18 - 1 = 2x^2 + 12x + 17.

Answer

2x2+12x+172x^2 + 12x + 17
To find a composition formula, replace every xx in the outer function with the entire inner function expression, then simplify.

About Function Composition

Function composition applies one function to the output of another: (fโˆ˜g)(x)=f(g(x))(f \circ g)(x) = f(g(x)), meaning evaluate gg first, then apply ff to the result.

Learn more about Function Composition โ†’

More Function Composition Examples