When evaluating a composite function where we have either created or been given formulas, the rule of working from the inside out remains the same. The input value to the outer function will be the output of the inner function, which may be a numerical value, a variable name, or a more complicated expression.
While we can compose the functions for each individual input value, it is sometimes helpful to find a single formula that will calculate the result of a composition [latex](f \circ g)(x)[/latex].
How To: Given a formula for a composite function, evaluate the function.
Evaluate the inside function using the input value or variable provided.
Use the resulting output as the input to the outside function.
Given that [latex]f(x) = x^2-x[/latex] and [latex]h(x) = 3x+2[/latex], find [latex](f \circ h)(1)[/latex], [latex](h \circ f)(1)[/latex], and [latex](f \circ h \circ f)(1)[/latex].
When evaluating the composition of functions at a specific value, always check the domains of both functions first. The value must be in the domain of the inner function, and the result must be in the domain of the outer function. This ensures the composition is valid.What value(s) of [latex]x[/latex] that are not allowed for the composition [latex]f \circ g[/latex] if [latex]f(x) = \dfrac{5}{x - 1}[/latex] and [latex]g(x) = \dfrac{4}{3x - 2}[/latex]?
Check the domain of [latex]g(x)[/latex]:
[latex]g(x) = \dfrac{4}{3x - 2} \text{ is defined for } 3x - 2 \neq 0.[/latex]
[latex]3x - 2 \neq 0 \Rightarrow x \neq \dfrac{2}{3}.[/latex]
Check the domain of [latex]f(g(x))[/latex]:
[latex]f(x) = \dfrac{5}{x - 1} \text{ is defined for } x - 1 \neq 0 \Rightarrow x \neq 1.[/latex]
Our input is now [latex]g(x)[/latex]. So, we need to ensure that [latex]g(x) \neq 1[/latex].
Therefore, the values of [latex]x[/latex] that are not allowed are [latex]x \neq \dfrac{2}{3}[/latex] and [latex]x \neq 2[/latex].
Note: The value [latex]x=1[/latex] does not need to be excluded since it is not directly applicable in this context; [latex]x=1[/latex] would be relevant if we were evaluating [latex]f(x)[/latex] directly.