{"id":1573,"date":"2024-05-28T21:55:55","date_gmt":"2024-05-28T21:55:55","guid":{"rendered":"https:\/\/content.one.lumenlearning.com\/collegealgebra\/?post_type=chapter&#038;p=1573"},"modified":"2025-09-03T21:20:11","modified_gmt":"2025-09-03T21:20:11","slug":"combinations-and-compositions-of-functions-learn-it-3","status":"publish","type":"chapter","link":"https:\/\/content.one.lumenlearning.com\/collegealgebra\/chapter\/combinations-and-compositions-of-functions-learn-it-3\/","title":{"raw":"Combinations and Compositions of Functions: Learn It 3","rendered":"Combinations and Compositions of Functions: Learn It 3"},"content":{"raw":"<h2>Evaluating Composite Functions<\/h2>\r\nOnce 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\u2019s output as the input for the outer function.\r\n<h3>Using Tables<\/h3>\r\nWhen 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.\r\n\r\n<section class=\"textbox example\">Using the table below, evaluate [latex](f \\circ g)(3)[\/latex] and [latex](g \\circ f)(3)[\/latex].\r\n<table style=\"width: 30%; height: 132px;\" summary=\"Five rows and three columns. The first column is labeled,\"><colgroup> <col \/> <col \/> <col \/><\/colgroup>\r\n<thead>\r\n<tr style=\"height: 44px;\">\r\n<th style=\"height: 44px;\">[latex]x[\/latex]<\/th>\r\n<th style=\"height: 44px;\">[latex]f\\left(x\\right)[\/latex]<\/th>\r\n<th style=\"height: 44px;\">[latex]g\\left(x\\right)[\/latex]<\/th>\r\n<\/tr>\r\n<\/thead>\r\n<tbody>\r\n<tr style=\"height: 22px;\">\r\n<td style=\"height: 22px;\">[latex]1[\/latex]<\/td>\r\n<td style=\"height: 22px;\">[latex]6[\/latex]<\/td>\r\n<td style=\"height: 22px;\">[latex]3[\/latex]<\/td>\r\n<\/tr>\r\n<tr style=\"height: 22px;\">\r\n<td style=\"height: 22px;\">[latex]2[\/latex]<\/td>\r\n<td style=\"height: 22px;\">[latex]8[\/latex]<\/td>\r\n<td style=\"height: 22px;\">[latex]5[\/latex]<\/td>\r\n<\/tr>\r\n<tr style=\"height: 22px;\">\r\n<td style=\"height: 22px;\">[latex]3[\/latex]<\/td>\r\n<td style=\"height: 22px;\">[latex]3[\/latex]<\/td>\r\n<td style=\"height: 22px;\">[latex]2[\/latex]<\/td>\r\n<\/tr>\r\n<tr style=\"height: 22px;\">\r\n<td style=\"height: 22px;\">[latex]4[\/latex]<\/td>\r\n<td style=\"height: 22px;\">[latex]1[\/latex]<\/td>\r\n<td style=\"height: 22px;\">[latex]7[\/latex]<\/td>\r\n<\/tr>\r\n<\/tbody>\r\n<\/table>\r\n[reveal-answer q=\"195147\"]Show Solution[\/reveal-answer]\r\n[hidden-answer a=\"195147\"]\r\n<ul>\r\n \t<li>First, find [latex]g(3)[\/latex]: From the table, when [latex]x=3[\/latex], [latex]g(3) = 2[\/latex].<\/li>\r\n \t<li>Next, find [latex]f(g(3)) = f(2)[\/latex]: From the table, when [latex]x=2[\/latex], [latex]f(2) = 8[\/latex].<\/li>\r\n<\/ul>\r\nTherefore, [latex](f \\circ g)(3) = f(g(3)) = f(2) = 8[\/latex].\r\n\r\nTo 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[\/latex], we can evaluate\r\n<p style=\"text-align: center;\">[latex]g\\left(f\\left(3\\right)\\right)=g\\left(3\\right)=2[\/latex]<\/p>\r\nThe table below shows the composite functions [latex]f\\circ g[\/latex] and [latex]g\\circ f[\/latex] as tables.\r\n<table style=\"width: 30%;\" summary=\"Two rows and five columns. When x=3, g(3)=2, f(g(3))=8, f(3)=3, and g(f(3))=2.\"><colgroup> <col \/> <col \/> <col \/> <col \/> <col \/><\/colgroup>\r\n<tbody>\r\n<tr>\r\n<td>[latex]x[\/latex]<\/td>\r\n<td>[latex]g\\left(x\\right)[\/latex]<\/td>\r\n<td>[latex]f\\left(g\\left(x\\right)\\right)[\/latex]<\/td>\r\n<td>[latex]f\\left(x\\right)[\/latex]<\/td>\r\n<td>[latex]g\\left(f\\left(x\\right)\\right)[\/latex]<\/td>\r\n<\/tr>\r\n<tr>\r\n<td>[latex]3[\/latex]<\/td>\r\n<td>[latex]2[\/latex]<\/td>\r\n<td>[latex]8[\/latex]<\/td>\r\n<td>[latex]3[\/latex]<\/td>\r\n<td>[latex]2[\/latex]<\/td>\r\n<\/tr>\r\n<\/tbody>\r\n<\/table>\r\n[\/hidden-answer]\r\n\r\n<\/section><section class=\"textbox tryIt\">[ohm2_question hide_question_numbers=1]19134[\/ohm2_question]<\/section>\r\n<h3>Using Graphs<\/h3>\r\nWhen we are given individual functions as graphs, the procedure for evaluating composite functions is similar to the <span style=\"font-family: 'Public Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen-Sans, Ubuntu, Cantarell, 'Helvetica Neue', sans-serif;\">process we use for evaluating tables. We read the input and output values, but this time, from the [latex]x-[\/latex] and [latex]y-[\/latex]axes of the graphs.<\/span>\r\n\r\n<section class=\"textbox questionHelp\" aria-label=\"Question Help\"><strong>How To: Given a composite function and graphs of its individual functions, evaluate it using the information provided by the graphs.\r\n<\/strong>\r\n<ol>\r\n \t<li>Locate the given input to the inner function on the [latex]x\\text{-}[\/latex] axis of its graph.<\/li>\r\n \t<li>Read off the output of the inner function from the [latex]y\\text{-}[\/latex] axis of its graph.<\/li>\r\n \t<li>Locate the inner function output on the [latex]x\\text{-}[\/latex] axis of the graph of the outer function.<\/li>\r\n \t<li>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.<\/li>\r\n<\/ol>\r\n<\/section><section class=\"textbox example\">Using the graphs below, evaluate [latex](f \\circ g)(2)[\/latex], [latex](g \\circ f)(2)[\/latex], and [latex]f(g(1))[\/latex].\r\n\r\n[caption id=\"\" align=\"aligncenter\" width=\"975\"]<img src=\"https:\/\/s3-us-west-2.amazonaws.com\/courses-images\/wp-content\/uploads\/sites\/896\/2016\/10\/18195618\/CNX_Precalc_Figure_01_04_002ab2.jpg\" alt=\"Explanation of the composite function.\" width=\"975\" height=\"543\" \/> Graphs of g(x) and f(x)[\/caption]\r\n\r\n[reveal-answer q=\"215575\"][latex](f \\circ g)(2)[\/latex][\/reveal-answer]\r\n[hidden-answer a=\"215575\"]Find [latex]g(2) [\/latex] using graph (a):\r\n<ul>\r\n \t<li>Locate [latex]x = 2[\/latex] on the [latex]g(x)[\/latex] graph.<\/li>\r\n \t<li>[latex]g(2)[\/latex] is the [latex]y[\/latex]-value at [latex]x=2[\/latex], which is [latex]0[\/latex].<\/li>\r\n<\/ul>\r\nFind [latex]f(g(2)) = f(0)[\/latex] using graph (b):\r\n<ul>\r\n \t<li>Locate [latex]x = 0[\/latex] on the [latex]f(x)[\/latex] graph.<\/li>\r\n \t<li>[latex]f(0)[\/latex] is the [latex]y[\/latex]-value at [latex]x=0[\/latex], which is [latex]-3[\/latex].<\/li>\r\n<\/ul>\r\nTherefore, [latex](f \\circ g)(2) = -3[\/latex].[\/hidden-answer]\r\n\r\n[reveal-answer q=\"915645\"][latex](g \\circ f)(2)[\/latex][\/reveal-answer]\r\n[hidden-answer a=\"915645\"][latex]\\begin{align*} \\text{First, find } f(2) \\text{ using graph (b):} \\\\ f(2) &amp;= 5 \\quad \\text{(Locate } x = 2 \\text{ on the } f(x) \\text{ graph, } f(2) \\text{ is the } y \\text{-value at } x = 2) \\\\[2mm] \\text{Next, find } g(f(2)) = g(5) \\text{ using graph (a):} \\\\ g(5) &amp;= 3 \\quad \\text{(Locate } x = 5 \\text{ on the } g(x) \\text{ graph, } g(5) \\text{ is the } y \\text{-value at } x = 5) \\\\[2mm] \\text{Therefore, } (g \\circ f)(2) &amp;= 3 \\end{align*}[\/latex][\/hidden-answer]\r\n\r\n[reveal-answer q=\"998961\"][latex]f(g(1))[\/latex][\/reveal-answer]\r\n[hidden-answer a=\"998961\"]\r\n<p style=\"text-align: center;\">[latex]f(g(1)) = f(3) = 6[\/latex]<\/p>\r\n\r\n\r\n[caption id=\"\" align=\"aligncenter\" width=\"975\"]<img src=\"https:\/\/s3-us-west-2.amazonaws.com\/courses-images\/wp-content\/uploads\/sites\/896\/2016\/10\/18195623\/CNX_Precalc_Figure_01_04_0052.jpg\" alt=\"Two graphs of a positive and negative parabola.\" width=\"975\" height=\"520\" \/> Graphs of g(x) and f(x)[\/caption]\r\n\r\n[\/hidden-answer]\r\n\r\n<\/section><section class=\"textbox tryIt\">[ohm2_question hide_question_numbers=1]19135[\/ohm2_question]<\/section><section>\r\n<h3>Using Formulas<\/h3>\r\n<div class=\"page\" title=\"Page 295\">\r\n<div class=\"layoutArea\">\r\n<div class=\"column\">\r\n\r\nWhen 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.\r\n\r\nWhile 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].\r\n\r\n<section class=\"textbox questionHelp\" aria-label=\"Question Help\"><strong>How To: Given a formula for a composite function, evaluate the function.\r\n<\/strong>\r\n<ol>\r\n \t<li>Evaluate the inside function using the input value or variable provided.<\/li>\r\n \t<li>Use the resulting output as the input to the outside function.<\/li>\r\n<\/ol>\r\n<\/section><section class=\"textbox example\">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].[reveal-answer q=\"45744\"][latex](f \\circ h)(1)[\/latex][\/reveal-answer]\r\n[hidden-answer a=\"45744\"]<center>[latex]\\begin{align*} \\text{First, find } h(1): \\\\ h(1) &amp;= 3(1) + 2 \\\\ &amp;= 3 + 2 \\\\ &amp;= 5 \\\\[2mm] \\text{Next, find } f(h(1)) = f(5): \\\\ f(5) &amp;= 5^2 - 5 \\\\ &amp;= 25 - 5 \\\\ &amp;= 20 \\\\[2mm] \\text{Therefore, } f(h(1)) &amp;= 20 \\end{align*}[\/latex]<\/center>We can also find the composition function [latex]f \\circ h[\/latex] first, and then use this to to evaluate the expressions.<center>[latex]\\begin{align*} (f \\circ h)(x) &amp;= f(h(x)) \\\\ &amp;= f(3x + 2) \\\\ &amp;= (3x + 2)^2 - (3x + 2) \\\\ &amp;= 9x^2 + 12x + 4 - 3x - 2 \\\\ &amp;= 9x^2 + 9x + 2 \\end{align*}[\/latex]<\/center>Therefore,<center>[latex](f \\circ h)(1) = 9(1)^2 + 9(1) + 2 = 9+9+2 = 20[\/latex]<\/center>.[\/hidden-answer][reveal-answer q=\"641220\"][latex](h \\circ f)(1)[\/latex][\/reveal-answer]\r\n[hidden-answer a=\"641220\"]\\begin{align*} \\text{First, find } f(1): \\\\ f(1) &amp;= 1^2 - 1 \\\\ &amp;= 1 - 1 \\\\ &amp;= 0 \\\\[2mm] \\text{Next, find } h(f(1)) = h(0): \\\\ h(0) &amp;= 3(0) + 2 \\\\ &amp;= 0 + 2 \\\\ &amp;= 2 \\\\[2mm] \\text{Therefore, } h(f(1)) &amp;= 2 \\end{align*}[\/hidden-answer][reveal-answer q=\"240587\"][latex](f \\circ h \\circ f)(1)[\/latex][\/reveal-answer]\r\n[hidden-answer a=\"240587\"]\\begin{align*} \\text{First, find } f(1): \\\\ f(1) &amp;= 1^2 - 1 \\\\ &amp;= 1 - 1 \\\\ &amp;= 0 \\\\[2mm] \\text{Next, find } h(f(1)) = h(0): \\\\ h(0) &amp;= 3(0) + 2 \\\\ &amp;= 0 + 2 \\\\ &amp;= 2 \\\\[2mm] \\text{Finally, find } f(h(f(1))) = f(2): \\\\ f(2) &amp;= 2^2 - 2 \\\\ &amp;= 4 - 2 \\\\ &amp;= 2 \\\\[2mm] \\text{Therefore, } f(h(f(1))) &amp;= 2 \\end{align*}[\/hidden-answer]<\/section><section class=\"textbox tryIt\">[ohm2_question hide_question_numbers=1]19136[\/ohm2_question]<\/section><section class=\"textbox proTip\">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.<\/section><section class=\"textbox example\">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]?[reveal-answer q=\"845324\"]Show Answer[\/reveal-answer]\r\n[hidden-answer a=\"845324\"]Check the domain of [latex]g(x)[\/latex]:\r\n<ul>\r\n \t<li>[latex]g(x) = \\dfrac{4}{3x - 2} \\text{ is defined for } 3x - 2 \\neq 0.[\/latex]<\/li>\r\n \t<li>[latex]3x - 2 \\neq 0 \\Rightarrow x \\neq \\dfrac{2}{3}.[\/latex]<\/li>\r\n<\/ul>\r\nCheck the domain of [latex]f(g(x))[\/latex]:\r\n<ul>\r\n \t<li>[latex]f(x) = \\dfrac{5}{x - 1} \\text{ is defined for } x - 1 \\neq 0 \\Rightarrow x \\neq 1.[\/latex]<\/li>\r\n \t<li>Our input is now [latex]g(x)[\/latex]. So, we need to ensure that [latex]g(x) \\neq 1[\/latex].<\/li>\r\n \t<li>[latex]g(x) = \\dfrac{4}{3x - 2} \\neq 1 \\Rightarrow \\dfrac{4}{3x - 2} \\neq 1 \\Rightarrow 4 \\neq 3x - 2 \\Rightarrow 3x \\neq 6 \\Rightarrow x \\neq 2[\/latex]<\/li>\r\n<\/ul>\r\nTherefore, the values of [latex]x[\/latex] that are not allowed are [latex]x \\neq \\dfrac{2}{3}[\/latex] and [latex]x \\neq 2[\/latex].\r\n\r\nNote: 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.[\/hidden-answer]\r\n\r\n<\/section><section class=\"textbox tryIt\">[ohm2_question hide_question_numbers=1]19137[\/ohm2_question]<\/section><\/div>\r\n<\/div>\r\n<\/div>\r\n<\/section>","rendered":"<h2>Evaluating Composite Functions<\/h2>\n<p>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\u2019s output as the input for the outer function.<\/p>\n<h3>Using Tables<\/h3>\n<p>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.<\/p>\n<section class=\"textbox example\">Using the table below, evaluate [latex](f \\circ g)(3)[\/latex] and [latex](g \\circ f)(3)[\/latex].<\/p>\n<table style=\"width: 30%; height: 132px;\" summary=\"Five rows and three columns. The first column is labeled,\">\n<colgroup>\n<col \/>\n<col \/>\n<col \/><\/colgroup>\n<thead>\n<tr style=\"height: 44px;\">\n<th style=\"height: 44px;\">[latex]x[\/latex]<\/th>\n<th style=\"height: 44px;\">[latex]f\\left(x\\right)[\/latex]<\/th>\n<th style=\"height: 44px;\">[latex]g\\left(x\\right)[\/latex]<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr style=\"height: 22px;\">\n<td style=\"height: 22px;\">[latex]1[\/latex]<\/td>\n<td style=\"height: 22px;\">[latex]6[\/latex]<\/td>\n<td style=\"height: 22px;\">[latex]3[\/latex]<\/td>\n<\/tr>\n<tr style=\"height: 22px;\">\n<td style=\"height: 22px;\">[latex]2[\/latex]<\/td>\n<td style=\"height: 22px;\">[latex]8[\/latex]<\/td>\n<td style=\"height: 22px;\">[latex]5[\/latex]<\/td>\n<\/tr>\n<tr style=\"height: 22px;\">\n<td style=\"height: 22px;\">[latex]3[\/latex]<\/td>\n<td style=\"height: 22px;\">[latex]3[\/latex]<\/td>\n<td style=\"height: 22px;\">[latex]2[\/latex]<\/td>\n<\/tr>\n<tr style=\"height: 22px;\">\n<td style=\"height: 22px;\">[latex]4[\/latex]<\/td>\n<td style=\"height: 22px;\">[latex]1[\/latex]<\/td>\n<td style=\"height: 22px;\">[latex]7[\/latex]<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<div class=\"qa-wrapper\" style=\"display: block\"><button class=\"show-answer show-answer-button collapsed\" data-target=\"q195147\">Show Solution<\/button><\/p>\n<div id=\"q195147\" class=\"hidden-answer\" style=\"display: none\">\n<ul>\n<li>First, find [latex]g(3)[\/latex]: From the table, when [latex]x=3[\/latex], [latex]g(3) = 2[\/latex].<\/li>\n<li>Next, find [latex]f(g(3)) = f(2)[\/latex]: From the table, when [latex]x=2[\/latex], [latex]f(2) = 8[\/latex].<\/li>\n<\/ul>\n<p>Therefore, [latex](f \\circ g)(3) = f(g(3)) = f(2) = 8[\/latex].<\/p>\n<p>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[\/latex], we can evaluate<\/p>\n<p style=\"text-align: center;\">[latex]g\\left(f\\left(3\\right)\\right)=g\\left(3\\right)=2[\/latex]<\/p>\n<p>The table below shows the composite functions [latex]f\\circ g[\/latex] and [latex]g\\circ f[\/latex] as tables.<\/p>\n<table style=\"width: 30%;\" summary=\"Two rows and five columns. When x=3, g(3)=2, f(g(3))=8, f(3)=3, and g(f(3))=2.\">\n<colgroup>\n<col \/>\n<col \/>\n<col \/>\n<col \/>\n<col \/><\/colgroup>\n<tbody>\n<tr>\n<td>[latex]x[\/latex]<\/td>\n<td>[latex]g\\left(x\\right)[\/latex]<\/td>\n<td>[latex]f\\left(g\\left(x\\right)\\right)[\/latex]<\/td>\n<td>[latex]f\\left(x\\right)[\/latex]<\/td>\n<td>[latex]g\\left(f\\left(x\\right)\\right)[\/latex]<\/td>\n<\/tr>\n<tr>\n<td>[latex]3[\/latex]<\/td>\n<td>[latex]2[\/latex]<\/td>\n<td>[latex]8[\/latex]<\/td>\n<td>[latex]3[\/latex]<\/td>\n<td>[latex]2[\/latex]<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<\/div>\n<\/section>\n<section class=\"textbox tryIt\"><iframe loading=\"lazy\" id=\"ohm19134\" class=\"resizable\" src=\"https:\/\/ohm.one.lumenlearning.com\/multiembedq.php?id=19134&theme=lumen&iframe_resize_id=ohm19134&source=tnh\" width=\"100%\" height=\"150\"><\/iframe><\/section>\n<h3>Using Graphs<\/h3>\n<p>When we are given individual functions as graphs, the procedure for evaluating composite functions is similar to the <span style=\"font-family: 'Public Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen-Sans, Ubuntu, Cantarell, 'Helvetica Neue', sans-serif;\">process we use for evaluating tables. We read the input and output values, but this time, from the [latex]x-[\/latex] and [latex]y-[\/latex]axes of the graphs.<\/span><\/p>\n<section class=\"textbox questionHelp\" aria-label=\"Question Help\"><strong>How To: Given a composite function and graphs of its individual functions, evaluate it using the information provided by the graphs.<br \/>\n<\/strong><\/p>\n<ol>\n<li>Locate the given input to the inner function on the [latex]x\\text{-}[\/latex] axis of its graph.<\/li>\n<li>Read off the output of the inner function from the [latex]y\\text{-}[\/latex] axis of its graph.<\/li>\n<li>Locate the inner function output on the [latex]x\\text{-}[\/latex] axis of the graph of the outer function.<\/li>\n<li>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.<\/li>\n<\/ol>\n<\/section>\n<section class=\"textbox example\">Using the graphs below, evaluate [latex](f \\circ g)(2)[\/latex], [latex](g \\circ f)(2)[\/latex], and [latex]f(g(1))[\/latex].<\/p>\n<figure style=\"width: 975px\" class=\"wp-caption aligncenter\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/s3-us-west-2.amazonaws.com\/courses-images\/wp-content\/uploads\/sites\/896\/2016\/10\/18195618\/CNX_Precalc_Figure_01_04_002ab2.jpg\" alt=\"Explanation of the composite function.\" width=\"975\" height=\"543\" \/><figcaption class=\"wp-caption-text\">Graphs of g(x) and f(x)<\/figcaption><\/figure>\n<div class=\"qa-wrapper\" style=\"display: block\"><button class=\"show-answer show-answer-button collapsed\" data-target=\"q215575\">[latex](f \\circ g)(2)[\/latex]<\/button><\/p>\n<div id=\"q215575\" class=\"hidden-answer\" style=\"display: none\">Find [latex]g(2)[\/latex] using graph (a):<\/p>\n<ul>\n<li>Locate [latex]x = 2[\/latex] on the [latex]g(x)[\/latex] graph.<\/li>\n<li>[latex]g(2)[\/latex] is the [latex]y[\/latex]-value at [latex]x=2[\/latex], which is [latex]0[\/latex].<\/li>\n<\/ul>\n<p>Find [latex]f(g(2)) = f(0)[\/latex] using graph (b):<\/p>\n<ul>\n<li>Locate [latex]x = 0[\/latex] on the [latex]f(x)[\/latex] graph.<\/li>\n<li>[latex]f(0)[\/latex] is the [latex]y[\/latex]-value at [latex]x=0[\/latex], which is [latex]-3[\/latex].<\/li>\n<\/ul>\n<p>Therefore, [latex](f \\circ g)(2) = -3[\/latex].<\/p><\/div>\n<\/div>\n<div class=\"qa-wrapper\" style=\"display: block\"><button class=\"show-answer show-answer-button collapsed\" data-target=\"q915645\">[latex](g \\circ f)(2)[\/latex]<\/button><\/p>\n<div id=\"q915645\" class=\"hidden-answer\" style=\"display: none\">[latex]\\begin{align*} \\text{First, find } f(2) \\text{ using graph (b):} \\\\ f(2) &= 5 \\quad \\text{(Locate } x = 2 \\text{ on the } f(x) \\text{ graph, } f(2) \\text{ is the } y \\text{-value at } x = 2) \\\\[2mm] \\text{Next, find } g(f(2)) = g(5) \\text{ using graph (a):} \\\\ g(5) &= 3 \\quad \\text{(Locate } x = 5 \\text{ on the } g(x) \\text{ graph, } g(5) \\text{ is the } y \\text{-value at } x = 5) \\\\[2mm] \\text{Therefore, } (g \\circ f)(2) &= 3 \\end{align*}[\/latex]<\/div>\n<\/div>\n<div class=\"qa-wrapper\" style=\"display: block\"><button class=\"show-answer show-answer-button collapsed\" data-target=\"q998961\">[latex]f(g(1))[\/latex]<\/button><\/p>\n<div id=\"q998961\" class=\"hidden-answer\" style=\"display: none\">\n<p style=\"text-align: center;\">[latex]f(g(1)) = f(3) = 6[\/latex]<\/p>\n<figure style=\"width: 975px\" class=\"wp-caption aligncenter\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/s3-us-west-2.amazonaws.com\/courses-images\/wp-content\/uploads\/sites\/896\/2016\/10\/18195623\/CNX_Precalc_Figure_01_04_0052.jpg\" alt=\"Two graphs of a positive and negative parabola.\" width=\"975\" height=\"520\" \/><figcaption class=\"wp-caption-text\">Graphs of g(x) and f(x)<\/figcaption><\/figure>\n<\/div>\n<\/div>\n<\/section>\n<section class=\"textbox tryIt\"><iframe loading=\"lazy\" id=\"ohm19135\" class=\"resizable\" src=\"https:\/\/ohm.one.lumenlearning.com\/multiembedq.php?id=19135&theme=lumen&iframe_resize_id=ohm19135&source=tnh\" width=\"100%\" height=\"150\"><\/iframe><\/section>\n<section>\n<h3>Using Formulas<\/h3>\n<div class=\"page\" title=\"Page 295\">\n<div class=\"layoutArea\">\n<div class=\"column\">\n<p>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.<\/p>\n<p>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].<\/p>\n<section class=\"textbox questionHelp\" aria-label=\"Question Help\"><strong>How To: Given a formula for a composite function, evaluate the function.<br \/>\n<\/strong><\/p>\n<ol>\n<li>Evaluate the inside function using the input value or variable provided.<\/li>\n<li>Use the resulting output as the input to the outside function.<\/li>\n<\/ol>\n<\/section>\n<section class=\"textbox example\">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].<\/p>\n<div class=\"qa-wrapper\" style=\"display: block\"><button class=\"show-answer show-answer-button collapsed\" data-target=\"q45744\">[latex](f \\circ h)(1)[\/latex]<\/button><\/p>\n<div id=\"q45744\" class=\"hidden-answer\" style=\"display: none\">\n<div style=\"text-align: center;\">[latex]\\begin{align*} \\text{First, find } h(1): \\\\ h(1) &= 3(1) + 2 \\\\ &= 3 + 2 \\\\ &= 5 \\\\[2mm] \\text{Next, find } f(h(1)) = f(5): \\\\ f(5) &= 5^2 - 5 \\\\ &= 25 - 5 \\\\ &= 20 \\\\[2mm] \\text{Therefore, } f(h(1)) &= 20 \\end{align*}[\/latex]<\/div>\n<p>We can also find the composition function [latex]f \\circ h[\/latex] first, and then use this to to evaluate the expressions.<\/p>\n<div style=\"text-align: center;\">[latex]\\begin{align*} (f \\circ h)(x) &= f(h(x)) \\\\ &= f(3x + 2) \\\\ &= (3x + 2)^2 - (3x + 2) \\\\ &= 9x^2 + 12x + 4 - 3x - 2 \\\\ &= 9x^2 + 9x + 2 \\end{align*}[\/latex]<\/div>\n<p>Therefore,<\/p>\n<div style=\"text-align: center;\">[latex](f \\circ h)(1) = 9(1)^2 + 9(1) + 2 = 9+9+2 = 20[\/latex]<\/div>\n<p>.<\/p><\/div>\n<\/div>\n<div class=\"qa-wrapper\" style=\"display: block\"><button class=\"show-answer show-answer-button collapsed\" data-target=\"q641220\">[latex](h \\circ f)(1)[\/latex]<\/button><\/p>\n<div id=\"q641220\" class=\"hidden-answer\" style=\"display: none\">\\begin{align*} \\text{First, find } f(1): \\\\ f(1) &amp;= 1^2 &#8211; 1 \\\\ &amp;= 1 &#8211; 1 \\\\ &amp;= 0 \\\\[2mm] \\text{Next, find } h(f(1)) = h(0): \\\\ h(0) &amp;= 3(0) + 2 \\\\ &amp;= 0 + 2 \\\\ &amp;= 2 \\\\[2mm] \\text{Therefore, } h(f(1)) &amp;= 2 \\end{align*}<\/div>\n<\/div>\n<div class=\"qa-wrapper\" style=\"display: block\"><button class=\"show-answer show-answer-button collapsed\" data-target=\"q240587\">[latex](f \\circ h \\circ f)(1)[\/latex]<\/button><\/p>\n<div id=\"q240587\" class=\"hidden-answer\" style=\"display: none\">\\begin{align*} \\text{First, find } f(1): \\\\ f(1) &amp;= 1^2 &#8211; 1 \\\\ &amp;= 1 &#8211; 1 \\\\ &amp;= 0 \\\\[2mm] \\text{Next, find } h(f(1)) = h(0): \\\\ h(0) &amp;= 3(0) + 2 \\\\ &amp;= 0 + 2 \\\\ &amp;= 2 \\\\[2mm] \\text{Finally, find } f(h(f(1))) = f(2): \\\\ f(2) &amp;= 2^2 &#8211; 2 \\\\ &amp;= 4 &#8211; 2 \\\\ &amp;= 2 \\\\[2mm] \\text{Therefore, } f(h(f(1))) &amp;= 2 \\end{align*}<\/div>\n<\/div>\n<\/section>\n<section class=\"textbox tryIt\"><iframe loading=\"lazy\" id=\"ohm19136\" class=\"resizable\" src=\"https:\/\/ohm.one.lumenlearning.com\/multiembedq.php?id=19136&theme=lumen&iframe_resize_id=ohm19136&source=tnh\" width=\"100%\" height=\"150\"><\/iframe><\/section>\n<section class=\"textbox proTip\">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.<\/section>\n<section class=\"textbox example\">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]?<\/p>\n<div class=\"qa-wrapper\" style=\"display: block\"><button class=\"show-answer show-answer-button collapsed\" data-target=\"q845324\">Show Answer<\/button><\/p>\n<div id=\"q845324\" class=\"hidden-answer\" style=\"display: none\">Check the domain of [latex]g(x)[\/latex]:<\/p>\n<ul>\n<li>[latex]g(x) = \\dfrac{4}{3x - 2} \\text{ is defined for } 3x - 2 \\neq 0.[\/latex]<\/li>\n<li>[latex]3x - 2 \\neq 0 \\Rightarrow x \\neq \\dfrac{2}{3}.[\/latex]<\/li>\n<\/ul>\n<p>Check the domain of [latex]f(g(x))[\/latex]:<\/p>\n<ul>\n<li>[latex]f(x) = \\dfrac{5}{x - 1} \\text{ is defined for } x - 1 \\neq 0 \\Rightarrow x \\neq 1.[\/latex]<\/li>\n<li>Our input is now [latex]g(x)[\/latex]. So, we need to ensure that [latex]g(x) \\neq 1[\/latex].<\/li>\n<li>[latex]g(x) = \\dfrac{4}{3x - 2} \\neq 1 \\Rightarrow \\dfrac{4}{3x - 2} \\neq 1 \\Rightarrow 4 \\neq 3x - 2 \\Rightarrow 3x \\neq 6 \\Rightarrow x \\neq 2[\/latex]<\/li>\n<\/ul>\n<p>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].<\/p>\n<p>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.<\/p><\/div>\n<\/div>\n<\/section>\n<section class=\"textbox tryIt\"><iframe loading=\"lazy\" id=\"ohm19137\" class=\"resizable\" src=\"https:\/\/ohm.one.lumenlearning.com\/multiembedq.php?id=19137&theme=lumen&iframe_resize_id=ohm19137&source=tnh\" width=\"100%\" height=\"150\"><\/iframe><\/section>\n<\/div>\n<\/div>\n<\/div>\n<\/section>\n","protected":false},"author":12,"menu_order":7,"template":"","meta":{"_candela_citation":"[]","pb_show_title":"on","pb_short_title":"","pb_subtitle":"","pb_authors":[],"pb_section_license":""},"chapter-type":[],"contributor":[],"license":[],"part":142,"module-header":"learn_it","content_attributions":[],"internal_book_links":[],"video_content":null,"cc_video_embed_content":{"cc_scripts":"","media_targets":[]},"try_it_collection":null,"_links":{"self":[{"href":"https:\/\/content.one.lumenlearning.com\/collegealgebra\/wp-json\/pressbooks\/v2\/chapters\/1573"}],"collection":[{"href":"https:\/\/content.one.lumenlearning.com\/collegealgebra\/wp-json\/pressbooks\/v2\/chapters"}],"about":[{"href":"https:\/\/content.one.lumenlearning.com\/collegealgebra\/wp-json\/wp\/v2\/types\/chapter"}],"author":[{"embeddable":true,"href":"https:\/\/content.one.lumenlearning.com\/collegealgebra\/wp-json\/wp\/v2\/users\/12"}],"version-history":[{"count":20,"href":"https:\/\/content.one.lumenlearning.com\/collegealgebra\/wp-json\/pressbooks\/v2\/chapters\/1573\/revisions"}],"predecessor-version":[{"id":8012,"href":"https:\/\/content.one.lumenlearning.com\/collegealgebra\/wp-json\/pressbooks\/v2\/chapters\/1573\/revisions\/8012"}],"part":[{"href":"https:\/\/content.one.lumenlearning.com\/collegealgebra\/wp-json\/pressbooks\/v2\/parts\/142"}],"metadata":[{"href":"https:\/\/content.one.lumenlearning.com\/collegealgebra\/wp-json\/pressbooks\/v2\/chapters\/1573\/metadata\/"}],"wp:attachment":[{"href":"https:\/\/content.one.lumenlearning.com\/collegealgebra\/wp-json\/wp\/v2\/media?parent=1573"}],"wp:term":[{"taxonomy":"chapter-type","embeddable":true,"href":"https:\/\/content.one.lumenlearning.com\/collegealgebra\/wp-json\/pressbooks\/v2\/chapter-type?post=1573"},{"taxonomy":"contributor","embeddable":true,"href":"https:\/\/content.one.lumenlearning.com\/collegealgebra\/wp-json\/wp\/v2\/contributor?post=1573"},{"taxonomy":"license","embeddable":true,"href":"https:\/\/content.one.lumenlearning.com\/collegealgebra\/wp-json\/wp\/v2\/license?post=1573"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}