{"id":3429,"date":"2025-08-20T20:40:23","date_gmt":"2025-08-20T20:40:23","guid":{"rendered":"https:\/\/content.one.lumenlearning.com\/precalculus\/?post_type=chapter&#038;p=3429"},"modified":"2026-01-08T17:07:28","modified_gmt":"2026-01-08T17:07:28","slug":"composition-of-functions-learn-it-4-2","status":"publish","type":"chapter","link":"https:\/\/content.one.lumenlearning.com\/precalculus\/chapter\/composition-of-functions-learn-it-4-2\/","title":{"raw":"Composition of Functions: Learn It 4","rendered":"Composition of Functions: Learn It 4"},"content":{"raw":"<h2>Evaluating Composite Functions from Formulas<\/h2>\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\">[ohm_question hide_question_numbers=1]317904[\/ohm_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\">[ohm_question hide_question_numbers=1]317905[\/ohm_question]<\/section><\/div>\r\n<\/div>\r\n<\/div>","rendered":"<h2>Evaluating Composite Functions from Formulas<\/h2>\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=\"ohm317904\" class=\"resizable\" src=\"https:\/\/ohm.lumenlearning.com\/multiembedq.php?id=317904&theme=lumen&iframe_resize_id=ohm317904&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=\"ohm317905\" class=\"resizable\" src=\"https:\/\/ohm.lumenlearning.com\/multiembedq.php?id=317905&theme=lumen&iframe_resize_id=ohm317905&source=tnh\" width=\"100%\" height=\"150\"><\/iframe><\/section>\n<\/div>\n<\/div>\n<\/div>\n","protected":false},"author":13,"menu_order":9,"template":"","meta":{"_candela_citation":"[]","pb_show_title":"on","pb_short_title":"","pb_subtitle":"","pb_authors":[],"pb_section_license":""},"chapter-type":[],"contributor":[],"license":[],"part":498,"module-header":"- Select Header -","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\/precalculus\/wp-json\/pressbooks\/v2\/chapters\/3429"}],"collection":[{"href":"https:\/\/content.one.lumenlearning.com\/precalculus\/wp-json\/pressbooks\/v2\/chapters"}],"about":[{"href":"https:\/\/content.one.lumenlearning.com\/precalculus\/wp-json\/wp\/v2\/types\/chapter"}],"author":[{"embeddable":true,"href":"https:\/\/content.one.lumenlearning.com\/precalculus\/wp-json\/wp\/v2\/users\/13"}],"version-history":[{"count":3,"href":"https:\/\/content.one.lumenlearning.com\/precalculus\/wp-json\/pressbooks\/v2\/chapters\/3429\/revisions"}],"predecessor-version":[{"id":5237,"href":"https:\/\/content.one.lumenlearning.com\/precalculus\/wp-json\/pressbooks\/v2\/chapters\/3429\/revisions\/5237"}],"part":[{"href":"https:\/\/content.one.lumenlearning.com\/precalculus\/wp-json\/pressbooks\/v2\/parts\/498"}],"metadata":[{"href":"https:\/\/content.one.lumenlearning.com\/precalculus\/wp-json\/pressbooks\/v2\/chapters\/3429\/metadata\/"}],"wp:attachment":[{"href":"https:\/\/content.one.lumenlearning.com\/precalculus\/wp-json\/wp\/v2\/media?parent=3429"}],"wp:term":[{"taxonomy":"chapter-type","embeddable":true,"href":"https:\/\/content.one.lumenlearning.com\/precalculus\/wp-json\/pressbooks\/v2\/chapter-type?post=3429"},{"taxonomy":"contributor","embeddable":true,"href":"https:\/\/content.one.lumenlearning.com\/precalculus\/wp-json\/wp\/v2\/contributor?post=3429"},{"taxonomy":"license","embeddable":true,"href":"https:\/\/content.one.lumenlearning.com\/precalculus\/wp-json\/wp\/v2\/license?post=3429"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}