{"id":1426,"date":"2024-05-23T03:59:55","date_gmt":"2024-05-23T03:59:55","guid":{"rendered":"https:\/\/content.one.lumenlearning.com\/collegealgebra\/?post_type=chapter&#038;p=1426"},"modified":"2025-08-13T16:01:19","modified_gmt":"2025-08-13T16:01:19","slug":"introduction-to-functions-learn-it-4","status":"publish","type":"chapter","link":"https:\/\/content.one.lumenlearning.com\/collegealgebra\/chapter\/introduction-to-functions-learn-it-4\/","title":{"raw":"Introduction to Functions: Learn It 4","rendered":"Introduction to Functions: Learn It 4"},"content":{"raw":"<h2>Finding Input and Output Values of a Function<\/h2>\r\nWhen we know an input value and want to determine the corresponding output value for a function, we <em>evaluate<\/em> the function. Evaluating will always produce one result because each input value of a function corresponds to exactly one output value.\r\n\r\nWhen we know an output value and want to determine the input values that would produce that output value, we set the output equal to the function\u2019s formula and <em>solve<\/em> for the input. Solving can produce more than one solution because different input values can produce the same output value.\r\n<h3>Evaluation of Functions in Algebraic Forms<\/h3>\r\nWhen we have a function in formula form, it is usually a simple matter to evaluate the function. For example, the function [latex]f(x)=5\u22123x^2[\/latex] can be evaluated by squaring the input value, multiplying by [latex]3[\/latex], and then subtracting the product from [latex]5[\/latex].\r\n\r\n<section class=\"textbox questionHelp\"><strong>How to: Given the formula for a function, evaluate.<\/strong>\r\n<ol id=\"fs-id1165137629040\" type=\"1\">\r\n \t<li>Substitute the input variable in the formula with the value provided.<\/li>\r\n \t<li>Calculate the result.<\/li>\r\n<\/ol>\r\n<\/section><section class=\"textbox proTip\">When evaluating functions, it's handy to wrap the input variable in parentheses before making the substitution.\r\n<p style=\"text-align: center;\">Ex. Given [latex]f(x)=x^2 - 8[\/latex], find [latex]f(-3)[\/latex]<\/p>\r\n<p style=\"text-align: center;\">[latex]\\begin{align}f(x)&amp;=(x)^2 - 8 \\\\ &amp;= (-3)^2 - 8 \\\\ &amp;= 9 - 8 \\\\ &amp;= 1\\end{align}[\/latex]<\/p>\r\nThe value of the function [latex]f(x)=x^2 - 8[\/latex], at the input [latex]x=-3[\/latex], is [latex]1[\/latex].\r\n\r\n<\/section><section class=\"textbox example\">For the function, [latex]f\\left(x\\right)={x}^{2}+3x - 4[\/latex], evaluate each of the following.\r\n<ol>\r\n \t<li>[latex]f\\left(2\\right)[\/latex]<\/li>\r\n \t<li>[latex]f(a)[\/latex]<\/li>\r\n \t<li>[latex]f(a+h)[\/latex]<\/li>\r\n \t<li>[latex]\\dfrac{f\\left(a+h\\right)-f\\left(a\\right)}{h}[\/latex]<\/li>\r\n<\/ol>\r\n[reveal-answer q=\"645951\"]Show Solution[\/reveal-answer] [hidden-answer a=\"645951\"] Replace the [latex]x[\/latex]\u00a0in the function with each specified value.\r\n<ol>\r\n \t<li>Because the input value is a number, 2, we can use algebra to simplify.\r\n<p style=\"text-align: center;\">[latex]\\begin{align}f\\left(2\\right)&amp;={2}^{2}+3\\left(2\\right)-4 \\\\ &amp;=4+6 - 4 \\\\ &amp;=6\\hfill \\end{align}[\/latex]<\/p>\r\n<\/li>\r\n \t<li>In this case, the input value is a letter so we cannot simplify the answer any further.\r\n<p style=\"text-align: center;\">[latex]f\\left(a\\right)={a}^{2}+3a - 4[\/latex]<\/p>\r\n<\/li>\r\n \t<li>With an input value of [latex]a+h[\/latex], we must use the distributive property.\r\n<p style=\"text-align: center;\">[latex]\\begin{align}f\\left(a+h\\right)&amp;={\\left(a+h\\right)}^{2}+3\\left(a+h\\right)-4 \\\\[2mm] &amp;={a}^{2}+2ah+{h}^{2}+3a+3h - 4 \\end{align}[\/latex]<\/p>\r\n<\/li>\r\n \t<li>In this case, we apply the input values to the function more than once, and then perform algebraic operations on the result. We already found that:\r\n<p style=\"text-align: center;\">[latex]f\\left(a+h\\right)={a}^{2}+2ah+{h}^{2}+3a+3h - 4[\/latex]<\/p>\r\nand we know that:\r\n<p style=\"text-align: center;\">[latex]f\\left(a\\right)={a}^{2}+3a - 4[\/latex]<\/p>\r\nNow we combine the results and simplify.\r\n<p style=\"text-align: center;\">[latex]\\begin{align}\\dfrac{f\\left(a+h\\right)-f\\left(a\\right)}{h}&amp;=\\dfrac{\\left({a}^{2}+2ah+{h}^{2}+3a+3h - 4\\right)-\\left({a}^{2}+3a - 4\\right)}{h} \\\\[2mm] &amp;=\\dfrac{2ah+{h}^{2}+3h}{h}\\\\[2mm] &amp;=\\frac{h\\left(2a+h+3\\right)}{h}&amp;&amp;\\text{Factor out }h. \\\\[2mm] &amp;=2a+h+3&amp;&amp;\\text{Simplify}.\\end{align}[\/latex]<\/p>\r\n<\/li>\r\n<\/ol>\r\n[\/hidden-answer]\r\n\r\n<\/section>Functions can be evaluated for negative values of [latex]x[\/latex], too. Keep in mind the rules for integer operations.\r\n\r\n<section class=\"textbox example\">Given [latex]p(x)=2x^{2}+5[\/latex], find [latex]p(\u22123)[\/latex]. [reveal-answer q=\"489384\"]Show Solution[\/reveal-answer] [hidden-answer a=\"489384\"] Substitute [latex]-3[\/latex] in for [latex]x[\/latex] in the function.\r\n<p style=\"text-align: center;\">[latex]p(\u22123)=2(\u22123)^{2}+5[\/latex]<\/p>\r\nSimplify the expression on the right side of the equation.\r\n<p style=\"text-align: center;\">[latex]\\begin{array}{lll}p(\u22123)=2(9)+5\\\\p(\u22123)=18+5\\\\p(\u22123)=23\\end{array}[\/latex]<\/p>\r\n[\/hidden-answer]\r\n\r\n<\/section><section class=\"textbox tryIt\">[ohm2_question hide_question_numbers=1]13509[\/ohm2_question]<\/section>In addition to <strong>evaluating functions<\/strong> for a particular input, we can also <strong>solve functions<\/strong> for the input that creates a particular output.\r\n\r\n<section class=\"textbox questionHelp\"><strong>How to: Solve a Function.<\/strong>\r\n<ol>\r\n \t<li>Replace the output in the formula with the value provided.<\/li>\r\n \t<li>Solve for the input variable that makes the statement true.<\/li>\r\n<\/ol>\r\n<\/section><section class=\"textbox example\">Given the function [latex]h\\left(p\\right)={p}^{2}+2p[\/latex], solve for [latex]h\\left(p\\right)=3[\/latex]. [reveal-answer q=\"119909\"]Show Solution[\/reveal-answer] [hidden-answer a=\"119909\"]\r\n<p style=\"text-align: center;\">[latex]\\begin{align}&amp;h\\left(p\\right)=3\\\\ &amp;{p}^{2}+2p=3 &amp;&amp;\\text{Substitute the original function }h\\left(p\\right)={p}^{2}+2p. \\\\ &amp;{p}^{2}+2p - 3=0 &amp;&amp;\\text{Subtract 3 from each side}. \\\\ &amp;\\left(p+3\\text{)(}p - 1\\right)=0 &amp;&amp;\\text{Factor}. \\end{align}[\/latex]<\/p>\r\nIf [latex]\\left(p+3\\right)\\left(p - 1\\right)=0[\/latex], either [latex]\\left(p+3\\right)=0[\/latex] or [latex]\\left(p - 1\\right)=0[\/latex] (or both of them equal [latex]0[\/latex]). We will set each factor equal to [latex]0[\/latex] and solve for [latex]p[\/latex] in each case.\r\n<p style=\"text-align: center;\">[latex]\\begin{align}&amp;p+3=0, &amp;&amp;p=-3 \\\\ &amp;p - 1=0, &amp;&amp;p=1\\hfill \\end{align}[\/latex]<\/p>\r\nThis gives us two solutions. The output [latex]h\\left(p\\right)=3[\/latex] when the input is either [latex]p=1[\/latex] or [latex]p=-3[\/latex].\r\n\r\n<center>\r\n\r\n[caption id=\"\" align=\"aligncenter\" width=\"487\"]<img src=\"https:\/\/s3-us-west-2.amazonaws.com\/courses-images\/wp-content\/uploads\/sites\/896\/2016\/10\/18190959\/CNX_Precalc_Figure_01_01_0062.jpg\" alt=\"Graph of a parabola with labeled points (-3, 3), (1, 3), and (4, 24).\" width=\"487\" height=\"459\" \/> Graph of a parabola with labeled points (-3, 3), (1, 3), and (4, 24).[\/caption]\r\n\r\n<\/center>&nbsp;\r\n\r\nWe can also verify by graphing, as seen above. The graph verifies that [latex]h\\left(1\\right)=h\\left(-3\\right)=3[\/latex] and [latex]h\\left(4\\right)=24[\/latex]. [\/hidden-answer]\r\n\r\n<\/section><section class=\"textbox tryIt\">[ohm2_question hide_question_numbers=1]13511[\/ohm2_question]<\/section>","rendered":"<h2>Finding Input and Output Values of a Function<\/h2>\n<p>When we know an input value and want to determine the corresponding output value for a function, we <em>evaluate<\/em> the function. Evaluating will always produce one result because each input value of a function corresponds to exactly one output value.<\/p>\n<p>When we know an output value and want to determine the input values that would produce that output value, we set the output equal to the function\u2019s formula and <em>solve<\/em> for the input. Solving can produce more than one solution because different input values can produce the same output value.<\/p>\n<h3>Evaluation of Functions in Algebraic Forms<\/h3>\n<p>When we have a function in formula form, it is usually a simple matter to evaluate the function. For example, the function [latex]f(x)=5\u22123x^2[\/latex] can be evaluated by squaring the input value, multiplying by [latex]3[\/latex], and then subtracting the product from [latex]5[\/latex].<\/p>\n<section class=\"textbox questionHelp\"><strong>How to: Given the formula for a function, evaluate.<\/strong><\/p>\n<ol id=\"fs-id1165137629040\" type=\"1\">\n<li>Substitute the input variable in the formula with the value provided.<\/li>\n<li>Calculate the result.<\/li>\n<\/ol>\n<\/section>\n<section class=\"textbox proTip\">When evaluating functions, it&#8217;s handy to wrap the input variable in parentheses before making the substitution.<\/p>\n<p style=\"text-align: center;\">Ex. Given [latex]f(x)=x^2 - 8[\/latex], find [latex]f(-3)[\/latex]<\/p>\n<p style=\"text-align: center;\">[latex]\\begin{align}f(x)&=(x)^2 - 8 \\\\ &= (-3)^2 - 8 \\\\ &= 9 - 8 \\\\ &= 1\\end{align}[\/latex]<\/p>\n<p>The value of the function [latex]f(x)=x^2 - 8[\/latex], at the input [latex]x=-3[\/latex], is [latex]1[\/latex].<\/p>\n<\/section>\n<section class=\"textbox example\">For the function, [latex]f\\left(x\\right)={x}^{2}+3x - 4[\/latex], evaluate each of the following.<\/p>\n<ol>\n<li>[latex]f\\left(2\\right)[\/latex]<\/li>\n<li>[latex]f(a)[\/latex]<\/li>\n<li>[latex]f(a+h)[\/latex]<\/li>\n<li>[latex]\\dfrac{f\\left(a+h\\right)-f\\left(a\\right)}{h}[\/latex]<\/li>\n<\/ol>\n<div class=\"qa-wrapper\" style=\"display: block\"><button class=\"show-answer show-answer-button collapsed\" data-target=\"q645951\">Show Solution<\/button> <\/p>\n<div id=\"q645951\" class=\"hidden-answer\" style=\"display: none\"> Replace the [latex]x[\/latex]\u00a0in the function with each specified value.<\/p>\n<ol>\n<li>Because the input value is a number, 2, we can use algebra to simplify.\n<p style=\"text-align: center;\">[latex]\\begin{align}f\\left(2\\right)&={2}^{2}+3\\left(2\\right)-4 \\\\ &=4+6 - 4 \\\\ &=6\\hfill \\end{align}[\/latex]<\/p>\n<\/li>\n<li>In this case, the input value is a letter so we cannot simplify the answer any further.\n<p style=\"text-align: center;\">[latex]f\\left(a\\right)={a}^{2}+3a - 4[\/latex]<\/p>\n<\/li>\n<li>With an input value of [latex]a+h[\/latex], we must use the distributive property.\n<p style=\"text-align: center;\">[latex]\\begin{align}f\\left(a+h\\right)&={\\left(a+h\\right)}^{2}+3\\left(a+h\\right)-4 \\\\[2mm] &={a}^{2}+2ah+{h}^{2}+3a+3h - 4 \\end{align}[\/latex]<\/p>\n<\/li>\n<li>In this case, we apply the input values to the function more than once, and then perform algebraic operations on the result. We already found that:\n<p style=\"text-align: center;\">[latex]f\\left(a+h\\right)={a}^{2}+2ah+{h}^{2}+3a+3h - 4[\/latex]<\/p>\n<p>and we know that:<\/p>\n<p style=\"text-align: center;\">[latex]f\\left(a\\right)={a}^{2}+3a - 4[\/latex]<\/p>\n<p>Now we combine the results and simplify.<\/p>\n<p style=\"text-align: center;\">[latex]\\begin{align}\\dfrac{f\\left(a+h\\right)-f\\left(a\\right)}{h}&=\\dfrac{\\left({a}^{2}+2ah+{h}^{2}+3a+3h - 4\\right)-\\left({a}^{2}+3a - 4\\right)}{h} \\\\[2mm] &=\\dfrac{2ah+{h}^{2}+3h}{h}\\\\[2mm] &=\\frac{h\\left(2a+h+3\\right)}{h}&&\\text{Factor out }h. \\\\[2mm] &=2a+h+3&&\\text{Simplify}.\\end{align}[\/latex]<\/p>\n<\/li>\n<\/ol>\n<\/div>\n<\/div>\n<\/section>\n<p>Functions can be evaluated for negative values of [latex]x[\/latex], too. Keep in mind the rules for integer operations.<\/p>\n<section class=\"textbox example\">Given [latex]p(x)=2x^{2}+5[\/latex], find [latex]p(\u22123)[\/latex]. <\/p>\n<div class=\"qa-wrapper\" style=\"display: block\"><button class=\"show-answer show-answer-button collapsed\" data-target=\"q489384\">Show Solution<\/button> <\/p>\n<div id=\"q489384\" class=\"hidden-answer\" style=\"display: none\"> Substitute [latex]-3[\/latex] in for [latex]x[\/latex] in the function.<\/p>\n<p style=\"text-align: center;\">[latex]p(\u22123)=2(\u22123)^{2}+5[\/latex]<\/p>\n<p>Simplify the expression on the right side of the equation.<\/p>\n<p style=\"text-align: center;\">[latex]\\begin{array}{lll}p(\u22123)=2(9)+5\\\\p(\u22123)=18+5\\\\p(\u22123)=23\\end{array}[\/latex]<\/p>\n<\/div>\n<\/div>\n<\/section>\n<section class=\"textbox tryIt\"><iframe loading=\"lazy\" id=\"ohm13509\" class=\"resizable\" src=\"https:\/\/ohm.one.lumenlearning.com\/multiembedq.php?id=13509&theme=lumen&iframe_resize_id=ohm13509&source=tnh\" width=\"100%\" height=\"150\"><\/iframe><\/section>\n<p>In addition to <strong>evaluating functions<\/strong> for a particular input, we can also <strong>solve functions<\/strong> for the input that creates a particular output.<\/p>\n<section class=\"textbox questionHelp\"><strong>How to: Solve a Function.<\/strong><\/p>\n<ol>\n<li>Replace the output in the formula with the value provided.<\/li>\n<li>Solve for the input variable that makes the statement true.<\/li>\n<\/ol>\n<\/section>\n<section class=\"textbox example\">Given the function [latex]h\\left(p\\right)={p}^{2}+2p[\/latex], solve for [latex]h\\left(p\\right)=3[\/latex]. <\/p>\n<div class=\"qa-wrapper\" style=\"display: block\"><button class=\"show-answer show-answer-button collapsed\" data-target=\"q119909\">Show Solution<\/button> <\/p>\n<div id=\"q119909\" class=\"hidden-answer\" style=\"display: none\">\n<p style=\"text-align: center;\">[latex]\\begin{align}&h\\left(p\\right)=3\\\\ &{p}^{2}+2p=3 &&\\text{Substitute the original function }h\\left(p\\right)={p}^{2}+2p. \\\\ &{p}^{2}+2p - 3=0 &&\\text{Subtract 3 from each side}. \\\\ &\\left(p+3\\text{)(}p - 1\\right)=0 &&\\text{Factor}. \\end{align}[\/latex]<\/p>\n<p>If [latex]\\left(p+3\\right)\\left(p - 1\\right)=0[\/latex], either [latex]\\left(p+3\\right)=0[\/latex] or [latex]\\left(p - 1\\right)=0[\/latex] (or both of them equal [latex]0[\/latex]). We will set each factor equal to [latex]0[\/latex] and solve for [latex]p[\/latex] in each case.<\/p>\n<p style=\"text-align: center;\">[latex]\\begin{align}&p+3=0, &&p=-3 \\\\ &p - 1=0, &&p=1\\hfill \\end{align}[\/latex]<\/p>\n<p>This gives us two solutions. The output [latex]h\\left(p\\right)=3[\/latex] when the input is either [latex]p=1[\/latex] or [latex]p=-3[\/latex].<\/p>\n<div style=\"text-align: center;\">\n<figure style=\"width: 487px\" 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\/18190959\/CNX_Precalc_Figure_01_01_0062.jpg\" alt=\"Graph of a parabola with labeled points (-3, 3), (1, 3), and (4, 24).\" width=\"487\" height=\"459\" \/><figcaption class=\"wp-caption-text\">Graph of a parabola with labeled points (-3, 3), (1, 3), and (4, 24).<\/figcaption><\/figure>\n<\/div>\n<p>&nbsp;<\/p>\n<p>We can also verify by graphing, as seen above. The graph verifies that [latex]h\\left(1\\right)=h\\left(-3\\right)=3[\/latex] and [latex]h\\left(4\\right)=24[\/latex]. <\/p><\/div>\n<\/div>\n<\/section>\n<section class=\"textbox tryIt\"><iframe loading=\"lazy\" id=\"ohm13511\" class=\"resizable\" src=\"https:\/\/ohm.one.lumenlearning.com\/multiembedq.php?id=13511&theme=lumen&iframe_resize_id=ohm13511&source=tnh\" width=\"100%\" height=\"150\"><\/iframe><\/section>\n","protected":false},"author":12,"menu_order":8,"template":"","meta":{"_candela_citation":"[]","pb_show_title":"on","pb_short_title":"","pb_subtitle":"","pb_authors":[],"pb_section_license":""},"chapter-type":[],"contributor":[],"license":[],"part":116,"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\/1426"}],"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":12,"href":"https:\/\/content.one.lumenlearning.com\/collegealgebra\/wp-json\/pressbooks\/v2\/chapters\/1426\/revisions"}],"predecessor-version":[{"id":7629,"href":"https:\/\/content.one.lumenlearning.com\/collegealgebra\/wp-json\/pressbooks\/v2\/chapters\/1426\/revisions\/7629"}],"part":[{"href":"https:\/\/content.one.lumenlearning.com\/collegealgebra\/wp-json\/pressbooks\/v2\/parts\/116"}],"metadata":[{"href":"https:\/\/content.one.lumenlearning.com\/collegealgebra\/wp-json\/pressbooks\/v2\/chapters\/1426\/metadata\/"}],"wp:attachment":[{"href":"https:\/\/content.one.lumenlearning.com\/collegealgebra\/wp-json\/wp\/v2\/media?parent=1426"}],"wp:term":[{"taxonomy":"chapter-type","embeddable":true,"href":"https:\/\/content.one.lumenlearning.com\/collegealgebra\/wp-json\/pressbooks\/v2\/chapter-type?post=1426"},{"taxonomy":"contributor","embeddable":true,"href":"https:\/\/content.one.lumenlearning.com\/collegealgebra\/wp-json\/wp\/v2\/contributor?post=1426"},{"taxonomy":"license","embeddable":true,"href":"https:\/\/content.one.lumenlearning.com\/collegealgebra\/wp-json\/wp\/v2\/license?post=1426"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}