{"id":9217,"date":"2023-10-17T19:19:01","date_gmt":"2023-10-17T19:19:01","guid":{"rendered":"https:\/\/content.one.lumenlearning.com\/quantitativereasoning\/?post_type=chapter&#038;p=9217"},"modified":"2024-09-10T05:48:45","modified_gmt":"2024-09-10T05:48:45","slug":"function-basics-learn-it-4","status":"publish","type":"chapter","link":"https:\/\/content.one.lumenlearning.com\/quantitativereasoning\/chapter\/function-basics-learn-it-4\/","title":{"raw":"Function Basics: Learn It 4","rendered":"Function Basics: Learn It 4"},"content":{"raw":"<h2>Finding Input and Output Values of a Function<\/h2>\r\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>\r\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>\r\n<h3>Evaluation of Functions in Algebraic Forms<\/h3>\r\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>\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>\r\n<section class=\"textbox proTip\">\r\n<p>When evaluating functions, it's handy to wrap the input variable in parentheses before making the substitution.<\/p>\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\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>\r\n<\/section>\r\n<section class=\"textbox example\">For the function, [latex]f\\left(x\\right)={x}^{2}+3x - 4[\/latex], evaluate each of the following.\r\n\r\n\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\r\n\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\r\n\r\n<ol>\r\n\t<li>Because the input value is a number, 2, we can use algebra to simplify.\r\n<p><\/p>\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><\/p>\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><\/p>\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><\/p>\r\n<p style=\"text-align: center;\">[latex]f\\left(a+h\\right)={a}^{2}+2ah+{h}^{2}+3a+3h - 4[\/latex]<\/p>\r\n\r\n\r\nand we know that:\r\n\r\n\r\n<p style=\"text-align: center;\">[latex]f\\left(a\\right)={a}^{2}+3a - 4[\/latex]<\/p>\r\n\r\n\r\nNow we combine the results and simplify.\r\n\r\n\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\r\n\r\n[\/hidden-answer]<\/section>\r\n<p>Functions can be evaluated for negative values of [latex]x[\/latex], too. Keep in mind the rules for integer operations.<\/p>\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 <i>x <\/i>in the function.\r\n\r\n\r\n<p style=\"text-align: center;\">[latex]p(\u22123)=2(\u22123)^{2}+5[\/latex]<\/p>\r\n\r\n\r\nSimplify the expression on the right side of the equation.\r\n\r\n\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\r\n\r\n[\/hidden-answer]<\/section>\r\n<section class=\"textbox tryIt\">\r\n<p>[ohm2_question hide_question_numbers=1]13509[\/ohm2_question]<\/p>\r\n<\/section>\r\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>\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>\r\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]. [reveal-answer q=\"119909\"]Show Solution[\/reveal-answer] [hidden-answer a=\"119909\"]\r\n\r\n\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\n\r\n\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 0). We will set each factor equal to 0 and solve for [latex]p[\/latex] in each case.\r\n\r\n\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\n\r\n\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].<center><img class=\"aligncenter\" 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\" \/><\/center>\r\n<p>&nbsp;<\/p>\r\n\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]<\/section>\r\n<section class=\"textbox tryIt\">\r\n<p>[ohm2_question hide_question_numbers=1]13511[\/ohm2_question]<\/p>\r\n<\/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\">\n<p>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>\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>\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>\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>\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 <i>x <\/i>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\">\n<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><br \/>\n<\/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 0). We will set each factor equal to 0 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;\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter\" 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\" \/><\/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\">\n<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><br \/>\n<\/section>\n","protected":false},"author":15,"menu_order":7,"template":"","meta":{"_candela_citation":"[{\"type\":\"cc-attribution\",\"description\":\"Algebra and Trigonometry 2e\",\"author\":\"Jay Abramson\",\"organization\":\"OpenStax\",\"url\":\"https:\/\/openstax.org\/books\/algebra-and-trigonometry-2e\/pages\/3-1-functions-and-function-notation#Figure_01_01_013\",\"project\":\"3.1 Functions and Function Notation\",\"license\":\"cc-by\",\"license_terms\":\"Access for free at https:\/\/openstax.org\/books\/algebra-and-trigonometry-2e\/pages\/1-introduction-to-prerequisites\"}]","pb_show_title":"on","pb_short_title":"","pb_subtitle":"","pb_authors":[],"pb_section_license":""},"chapter-type":[],"contributor":[],"license":[],"part":72,"module-header":"learn_it","content_attributions":[{"type":"cc-attribution","description":"Algebra and Trigonometry 2e","author":"Jay Abramson","organization":"OpenStax","url":"https:\/\/openstax.org\/books\/algebra-and-trigonometry-2e\/pages\/3-1-functions-and-function-notation#Figure_01_01_013","project":"3.1 Functions and Function Notation","license":"cc-by","license_terms":"Access for free at https:\/\/openstax.org\/books\/algebra-and-trigonometry-2e\/pages\/1-introduction-to-prerequisites"}],"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\/quantitativereasoning\/wp-json\/pressbooks\/v2\/chapters\/9217"}],"collection":[{"href":"https:\/\/content.one.lumenlearning.com\/quantitativereasoning\/wp-json\/pressbooks\/v2\/chapters"}],"about":[{"href":"https:\/\/content.one.lumenlearning.com\/quantitativereasoning\/wp-json\/wp\/v2\/types\/chapter"}],"author":[{"embeddable":true,"href":"https:\/\/content.one.lumenlearning.com\/quantitativereasoning\/wp-json\/wp\/v2\/users\/15"}],"version-history":[{"count":19,"href":"https:\/\/content.one.lumenlearning.com\/quantitativereasoning\/wp-json\/pressbooks\/v2\/chapters\/9217\/revisions"}],"predecessor-version":[{"id":14744,"href":"https:\/\/content.one.lumenlearning.com\/quantitativereasoning\/wp-json\/pressbooks\/v2\/chapters\/9217\/revisions\/14744"}],"part":[{"href":"https:\/\/content.one.lumenlearning.com\/quantitativereasoning\/wp-json\/pressbooks\/v2\/parts\/72"}],"metadata":[{"href":"https:\/\/content.one.lumenlearning.com\/quantitativereasoning\/wp-json\/pressbooks\/v2\/chapters\/9217\/metadata\/"}],"wp:attachment":[{"href":"https:\/\/content.one.lumenlearning.com\/quantitativereasoning\/wp-json\/wp\/v2\/media?parent=9217"}],"wp:term":[{"taxonomy":"chapter-type","embeddable":true,"href":"https:\/\/content.one.lumenlearning.com\/quantitativereasoning\/wp-json\/pressbooks\/v2\/chapter-type?post=9217"},{"taxonomy":"contributor","embeddable":true,"href":"https:\/\/content.one.lumenlearning.com\/quantitativereasoning\/wp-json\/wp\/v2\/contributor?post=9217"},{"taxonomy":"license","embeddable":true,"href":"https:\/\/content.one.lumenlearning.com\/quantitativereasoning\/wp-json\/wp\/v2\/license?post=9217"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}