Evaluate composite functions | College Algebra (2024)

Once we compose a new function from two existing functions, we need to be able to evaluate it for any input in its domain. We will do this with specific numerical inputs for functions expressed as tables, graphs, and formulas and with variables as inputs to functions expressed as formulas. In each case, we evaluate the inner function using the starting input and then use the inner function’s output as the input for the outer function.

Evaluating Composite Functions Using Tables

When working with functions given as tables, we read input and output values from the table entries and always work from the inside to the outside. We evaluate the inside function first and then use the output of the inside function as the input to the outside function.

Example 5: Using a Table to Evaluate a Composite Function

Using the table below,evaluate [latex]f\left(g\left(3\right)\right)[/latex] and [latex]g\left(f\left(3\right)\right)[/latex].

[latex]x[/latex][latex]f\left(x\right)[/latex][latex]g\left(x\right)[/latex]
163
285
332
417

Solution

To evaluate [latex]f\left(g\left(3\right)\right)[/latex], we start from the inside with the input value 3. We then evaluate the inside expression [latex]g\left(3\right)[/latex] using the table that defines the function [latex]g:[/latex] [latex]g\left(3\right)=2[/latex]. We can then use that result as the input to the function [latex]f[/latex], so [latex]g\left(3\right)[/latex] is replaced by 2 and we get [latex]f\left(2\right)[/latex]. Then, using the table that defines the function [latex]f[/latex], we find that [latex]f\left(2\right)=8[/latex].

[latex]\begin{cases}g\left(3\right)=2\hfill \\ f\left(g\left(3\right)\right)=f\left(2\right)=8\hfill \end{cases}[/latex]

To evaluate [latex]g\left(f\left(3\right)\right)[/latex], we first evaluate the inside expression [latex]f\left(3\right)[/latex] using the first table: [latex]f\left(3\right)=3[/latex]. Then, using the table for [latex]g\text{,\hspace{0.17em}}[/latex] we can evaluate

[latex]g\left(f\left(3\right)\right)=g\left(3\right)=2[/latex]

The table below shows the composite functions [latex]f\circ g[/latex] and [latex]g\circ f[/latex] as tables.

[latex]x[/latex][latex]g\left(x\right)[/latex][latex]f\left(g\left(x\right)\right)[/latex][latex]f\left(x\right)[/latex][latex]g\left(f\left(x\right)\right)[/latex]
32832

Try It 3

Using the table below, evaluate [latex]f\left(g\left(1\right)\right)[/latex] and [latex]g\left(f\left(4\right)\right)[/latex].

[latex]x[/latex][latex]f\left(x\right)[/latex][latex]g\left(x\right)[/latex]
163
285
332
417

Solution

Evaluating Composite Functions Using Graphs

When we are given individual functions as graphs, the procedure for evaluating composite functions is similar to the process we use for evaluating tables. We read the input and output values, but this time, from the [latex]x\text{-}[/latex] and [latex]y\text{-}[/latex] axes of the graphs.

How To: Given a composite function and graphs of its individual functions, evaluate it using the information provided by the graphs.

  1. Locate the given input to the inner function on the [latex]x\text{-}[/latex] axis of its graph.
  2. Read off the output of the inner function from the [latex]y\text{-}[/latex] axis of its graph.
  3. Locate the inner function output on the [latex]x\text{-}[/latex] axis of the graph of the outer function.
  4. Read the output of the outer function from the [latex]y\text{-}[/latex] axis of its graph. This is the output of the composite function.

Example 6: Using a Graph to Evaluate a Composite Function

Using the graphs in Figure 3, evaluate [latex]f\left(g\left(1\right)\right)[/latex].

Evaluate composite functions | College Algebra (1)

Figure 3

Solution

Evaluate composite functions | College Algebra (2)

Figure 4

To evaluate [latex]f\left(g\left(1\right)\right)[/latex], we start with the inside evaluation.

We evaluate [latex]g\left(1\right)[/latex] using the graph of [latex]g\left(x\right)[/latex], finding the input of 1 on the [latex]x\text{-}[/latex] axis and finding the output value of the graph at that input. Here, [latex]g\left(1\right)=3[/latex]. We use this value as the input to the function [latex]f[/latex].

[latex]f\left(g\left(1\right)\right)=f\left(3\right)[/latex]

We can then evaluate the composite function by looking to the graph of [latex]f\left(x\right)[/latex], finding the input of 3 on the [latex]x\text{-}[/latex] axis and reading the output value of the graph at this input. Here, [latex]f\left(3\right)=6[/latex], so [latex]f\left(g\left(1\right)\right)=6[/latex].

Analysis of the Solution

Figure 5shows how we can mark the graphs with arrows to trace the path from the input value to the output value.

Evaluate composite functions | College Algebra (3)

Figure 5

Try It 4

Using Figure 6, evaluate [latex]g\left(f\left(2\right)\right)[/latex].

Evaluate composite functions | College Algebra (4)

Figure 6

Solution

Evaluating Composite Functions Using Formulas

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\left(g\left(x\right)\right)[/latex]. To do this, we will extend our idea of function evaluation. Recall that, when we evaluate a function like [latex]f\left(t\right)={t}^{2}-t[/latex], we substitute the value inside the parentheses into the formula wherever we see the input variable.

How To: Given a formula for a composite function, evaluate the function.

  1. Evaluate the inside function using the input value or variable provided.
  2. Use the resulting output as the input to the outside function.

Example 7: Evaluating a Composition of Functions Expressed as Formulas with a Numerical Input

Given [latex]f\left(t\right)={t}^{2}-{t}[/latex] and [latex]h\left(x\right)=3x+2[/latex], evaluate [latex]f\left(h\left(1\right)\right)[/latex].

Solution

Because the inside expression is [latex]h\left(1\right)[/latex], we start by evaluating [latex]h\left(x\right)[/latex] at 1.

[latex]\begin{cases}h\left(1\right)=3\left(1\right)+2\\ h\left(1\right)=5\end{cases}[/latex]

Then [latex]f\left(h\left(1\right)\right)=f\left(5\right)[/latex], so we evaluate [latex]f\left(t\right)[/latex] at an input of 5.

[latex]\begin{cases}f\left(h\left(1\right)\right)=f\left(5\right)\\ f\left(h\left(1\right)\right)={5}^{2}-5\\ f\left(h\left(1\right)\right)=20\end{cases}[/latex]

Analysis of the Solution

It makes no difference what the input variables [latex]t[/latex] and [latex]x[/latex] were called in this problem because we evaluated for specific numerical values.

Try It 5

Given [latex]f\left(t\right)={t}^{2}-t[/latex] and [latex]h\left(x\right)=3x+2[/latex], evaluate

A) [latex]h\left(f\left(2\right)\right)[/latex]

B) [latex]h\left(f\left(-2\right)\right)[/latex]

Solution

Evaluate composite functions | College Algebra (2024)

FAQs

How do you evaluate a composite function algebraically? ›

In order to evaluate a composite function, take the given input value (fractional value) and find its output value (which may be a fraction). Then, take this output value and replace it as the "new" input value ("new" fractional value) of a second function, to find the value between the composition.

What is the mistake in Danielle's work? ›

Final answer: The mistake in Danielle's work is in Step 1; she incorrectly calculated g(7) by simplifying 3/7 and then subtracting 2. The terms are not like terms and cannot be directly combined. The correct evaluation of g(7) should find the result before multiplying it by h(7).

How to find f of g using a table? ›

Sometimes f and g are defined by a table representing each function. In that case, to find f(g(x)) at some number x = a: Find g(a) by using the table of g(x) (see the corresponding y-value of x = a on the table of g) Find f(g(a)) by using the table of f(x) (see the corresponding y-value of x = g(a) on the table of f)

What is the composition of a function problem? ›

The composition of two functions g and f is the new function we get by performing f first, and then performing g. For example, if we let f be the function given by f(x) = x2 and let g be the function given by g(x) = x + 3, then the composition of g with f is called gf and is worked out as gf(x) = g(f(x)) .

What is the formula for a composite function? ›

The composition of two functions f and g is the new function h, where h(x) = f(g(x)), for all x in the domain of g such that g(x) is in the domain of f. The notation for function composition is h = f • g or h(x) = (f • g)(x) and is read as 'f of g of x'.

What does f∘g mean? ›

The composition f∘g of two functions f and g is the function formed by first applying the function g and then the function f. In other words, to apply the composition f∘g to an input x, you perform the following two steps. You first apply the function g to the input x and obtain the result g(x) as the output.

How to find the composite function fog? ›

To form the composite function (f o g)(x), we first apply g to the input x, which gives us g(x) = x + 1. Then, we apply f to the output of g, which gives us f(g(x)) = f(x + 1) = 2(x + 1) = 2x + 2. So, (f o g)(x) = 2x + 2.

How do you express a function as a composition of two functions? ›

Summary
  1. "Function Composition" is applying one function to the results of another.
  2. (g º f)(x) = g(f(x)), first apply f(), then apply g()
  3. We must also respect the domain of the first function.
  4. Some functions can be de-composed into two (or more) simpler functions.

What does f to the negative 1 mean? ›

An inverse function or an anti function is defined as a function, which can reverse into another function. In simple words, if any function “f” takes x to y then, the inverse of “f” will take y to x. If the function is denoted by 'f' or 'F', then the inverse function is denoted by f-1 or F-1.

What is an example of a composite function? ›

Composite Functions Definition
  • Symbol: It is also denoted as (g∘f)(x), where ∘ is a small circle symbol. ...
  • Domain: f(g(x)) is read as f of g of x. ...
  • Example: If f(x) = 3x+1 and g(x) = x2 , then f of g of x, f(g(x)) = f(x2) = 3x2+1.
  • Also, read:

How to tell if a function is even or odd? ›

Determine whether the function satisfies f(x)=f(−x) f ( x ) = f ( − x ) . If it does, it is even. Determine whether the function satisfies f(x)=−f(−x) f ( x ) = − f ( − x ) . If it does, it is odd.

How do you evaluate a function algebraically? ›

Evaluating a function means finding the value of f(x) =… or y =… that corresponds to a given value of x. To do this, simply replace all the x variables with whatever x has been assigned. For example, if we are asked to evaluate f(4), then x has been assigned the value of 4.

How do you evaluate algebraically? ›

To evaluate an algebraic expression, you have to substitute a number for each variable and perform the arithmetic operations. In the example above, the variable x is equal to 6 since 6 + 6 = 12. If we know the value of our variables, we can replace the variables with their values and then evaluate the expression.

What is a composite function in algebra? ›

Composite functions are when the output of one function is used as the input of another. If we have a function f and another function g, the function f g ( x ) fg(x) fg(x), said as “ f of g of x”, or “ f g fg fg of x”, is the composition of the two functions.

References

Top Articles
Latest Posts
Article information

Author: Margart Wisoky

Last Updated:

Views: 5865

Rating: 4.8 / 5 (78 voted)

Reviews: 93% of readers found this page helpful

Author information

Name: Margart Wisoky

Birthday: 1993-05-13

Address: 2113 Abernathy Knoll, New Tamerafurt, CT 66893-2169

Phone: +25815234346805

Job: Central Developer

Hobby: Machining, Pottery, Rafting, Cosplaying, Jogging, Taekwondo, Scouting

Introduction: My name is Margart Wisoky, I am a gorgeous, shiny, successful, beautiful, adventurous, excited, pleasant person who loves writing and wants to share my knowledge and understanding with you.