{"id":15959,"date":"2019-12-05T05:17:00","date_gmt":"2019-12-05T05:17:00","guid":{"rendered":"https:\/\/courses.lumenlearning.com\/csn-prealgebra\/chapter\/evaluating-functions\/"},"modified":"2019-12-05T05:17:35","modified_gmt":"2019-12-05T05:17:35","slug":"evaluating-functions","status":"publish","type":"chapter","link":"https:\/\/courses.lumenlearning.com\/csn-prealgebra\/chapter\/evaluating-functions\/","title":{"raw":"Evaluate Functions","rendered":"Evaluate Functions"},"content":{"raw":"\n<div class=\"textbox learning-objectives\">\n<h3>Learning OUTCOMES<\/h3>\n<ul>\n \t<li>Given a function equation, find function values (outputs) for specified numbers and variables (inputs)<\/li>\n<\/ul>\n<\/div>\nThroughout this course, you have been working with algebraic equations. Many of these equations are functions. For example, [latex]y=4x+1[\/latex] is an equation that represents a function. When you input values for <em>x<\/em>, you can determine a single output for <em>y<\/em>. In this case, if you substitute [latex]x=10[\/latex] into the equation you will find that y must be&nbsp;[latex]41[\/latex]; there is no other value of y that would make the equation true.\n\nRather than using the variable y, the equations of functions can be written using <strong>function notation<\/strong>. Function notation is very useful when you are working with more than one function at a time and substituting more than one value in for <em>x<\/em>.\n\nEquations written using function notation can also be evaluated. With function notation, you might see the following:\n\nGiven [latex]f(x)=4x+1[\/latex]<i>, <\/i>find&nbsp;[latex]f(2)[\/latex].\n\nYou read this problem like this: \u201cgiven <i>f<\/i> of <i>x<\/i> equals&nbsp;[latex]4x[\/latex] plus one, find <i>f<\/i> of&nbsp;[latex]2[\/latex].\u201d While the notation and wording is different, the process of evaluating a function is the same as evaluating an equation. In both cases, you substitute&nbsp;[latex]2[\/latex] for <i>x<\/i>, multiply it by&nbsp;[latex]4[\/latex] and add&nbsp;[latex]1[\/latex], simplifying to get&nbsp;[latex]9[\/latex]. In both a function and an equation, an input of&nbsp;[latex]2[\/latex] results in an output of&nbsp;[latex]9[\/latex].\n<p style=\"text-align: center;\">[latex]f(x)=4x+1\\\\f(2)=4(2)+1=8+1=9[\/latex]<\/p>\nYou can simply apply what you already know about evaluating expressions to evaluate a function. It is important to note that the parentheses that are part of function notation do not mean multiply. The notation <i>f<\/i>(<i>x<\/i>) does not mean <i>f<\/i> multiplied by <i>x<\/i>. Instead, the notation means \u201c<i>f<\/i> of <i>x<\/i>\u201d or \u201cthe function of <i>x.\"<\/i>&nbsp;To evaluate the function, take the value given for <i>x,<\/i>&nbsp;and substitute that value in for <i>x<\/i> in the expression. Let us look at a couple of examples.\n<div class=\"textbox exercises\">\n<h3>Example<\/h3>\nGiven [latex]f(x)=3x\u20134[\/latex],&nbsp;find [latex]f(5)[\/latex].\n\n[reveal-answer q=\"42679\"]Show Solution[\/reveal-answer]\n[hidden-answer a=\"42679\"]\n\nSubstitute&nbsp;[latex]5[\/latex] in for <i>x <\/i>in the function.\n<p style=\"text-align: center;\">[latex]f(5)=3(5)-4[\/latex]<\/p>\nSimplify the expression on the right side of the equation.\n<p style=\"text-align: center;\">[latex]f(5)=15-4\\\\f(5)=11[\/latex]<\/p>\n[\/hidden-answer]\n\n<\/div>\nFunctions can be evaluated for negative values of <i>x<\/i>, too. Keep in mind the rules for integer operations.\n<div class=\"textbox exercises\">\n<h3>Example<\/h3>\nGiven [latex]p(x)=2x^{2}+5[\/latex], find [latex]p(\u22123)[\/latex].\n\n[reveal-answer q=\"489384\"]Show Solution[\/reveal-answer]\n[hidden-answer a=\"489384\"]\n\nSubstitute [latex]-3[\/latex] in for <i>x <\/i>in the function.\n<p style=\"text-align: center;\">[latex]p(\u22123)=2(\u22123)^{2}+5[\/latex]<\/p>\nSimplify the expression on the right side of the equation.\n<p style=\"text-align: center;\">[latex]p(\u22123)=2(9)+5\\\\p(\u22123)=18+5\\\\p(\u22123)=23[\/latex]<\/p>\n[\/hidden-answer]\n\n<\/div>\nYou may also be asked to evaluate a function for more than one value as shown in the example that follows.\n<div class=\"textbox exercises\">\n<h3>Example<\/h3>\nGiven [latex]f(x)=|4x-3|[\/latex], find [latex]f(0)[\/latex], [latex]f(2)[\/latex], and [latex]f(\u22121)[\/latex].\n\n[reveal-answer q=\"971051\"]Show Solution[\/reveal-answer]\n[hidden-answer a=\"971051\"]\n\nTreat each of these like three separate problems. In each case, you substitute the value in for <em>x<\/em> and simplify.\n\nStart with [latex]x=0[\/latex].\n<p style=\"text-align: center;\">[latex]f(0)=|4(0)-3|=|-3|=3\\\\f(0)=3[\/latex]<\/p>\nEvaluate for [latex]x=2[\/latex].\n<p style=\"text-align: center;\">[latex]f(2)=|4(2)-3|=|5|=5\\\\f(2)=5[\/latex]<\/p>\nEvaluate for [latex]x=\u22121[\/latex].\n<p style=\"text-align: center;\">[latex]f(\u22121)=|4(-1)-3|=|-7|=7\\\\f(-1)=7[\/latex]<\/p>\n[\/hidden-answer]\n\n<\/div>\n<h2>Variable Inputs<\/h2>\nSo far, you have evaluated functions for inputs that have been constants. Functions can also be evaluated for inputs that are variables or expressions. The process is the same, but the simplified answer will contain a variable. The following examples show how to evaluate a function for a variable input.\n<div class=\"bcc-box bcc-info\">\n<h3>Example<\/h3>\nGiven [latex]f(x)=3x^{2}+2x+1[\/latex], find [latex]f(b)[\/latex].\n[reveal-answer q=\"213691\"]Show Solution[\/reveal-answer]\n[hidden-answer a=\"213691\"]\n\nThis problem is asking you to evaluate the function for <i>b<\/i>. This means substitute <i>b<\/i> in the equation for <i>x.<\/i>\n\n[latex]f(b)=3b^{2}+2b+1[\/latex]\n\n(That is all\u2014you are done.)\n\n[\/hidden-answer]\n\n<\/div>\nIn the following example, you evaluate a function for an expression. So here you will substitute the entire expression in for <i>x<\/i> and simplify.\n<div class=\"bcc-box bcc-info\">\n<h3>Example<\/h3>\nGiven [latex]f(x)=4x+1[\/latex], find [latex]f(h+1)[\/latex].\n\n[reveal-answer q=\"943471\"]Show Solution[\/reveal-answer]\n[hidden-answer a=\"943471\"]\n\nThis time, you substitute [latex](h+1)[\/latex] into the equation for <i>x.<\/i>\n\n[latex]f(h+1)=4(h+1)+1[\/latex]<i>&nbsp;<\/i>\n\nUse the distributive property on the right side, and then combine like terms to simplify.\n\n[latex]f(h+1)=4h+4+1=4h+5[\/latex]\n\nGiven [latex]f(x)=4x+1[\/latex], [latex]f(h+1)=4h+5[\/latex].\n\n[\/hidden-answer]\n\n<\/div>\nIn the following video, we show more examples of evaluating functions for both integer and variable inputs.\n\nhttps:\/\/youtu.be\/_bi0B2zibOg\n<h2>Summary<\/h2>\nFunction notation takes the form such as [latex]f(x)=18x\u201310[\/latex] and is read \u201c<i>f <\/i>of <i>x <\/i>equals 18 times <i>x <\/i>minus&nbsp;[latex]10[\/latex].\u201d Function notation can use letters other than <i>f, <\/i>such as <i>c<\/i>(<i>x<\/i>)<i>,<\/i> <i>g<\/i>(<i>x<\/i>), or <i>h<\/i>(<i>x<\/i>). As you go further in your study of functions, this notation will provide you more flexibility, allowing you to examine and compare different functions more easily. Just as an algebraic equation written in <i>x <\/i>and <i>y<\/i> can be evaluated for different values of the input <i>x, <\/i>an equation written in function notation can also be evaluated for different values of <i>x<\/i>. To evaluate a function, substitute in values for <i>x <\/i>and simplify to find the related output.\n","rendered":"<div class=\"textbox learning-objectives\">\n<h3>Learning OUTCOMES<\/h3>\n<ul>\n<li>Given a function equation, find function values (outputs) for specified numbers and variables (inputs)<\/li>\n<\/ul>\n<\/div>\n<p>Throughout this course, you have been working with algebraic equations. Many of these equations are functions. For example, [latex]y=4x+1[\/latex] is an equation that represents a function. When you input values for <em>x<\/em>, you can determine a single output for <em>y<\/em>. In this case, if you substitute [latex]x=10[\/latex] into the equation you will find that y must be&nbsp;[latex]41[\/latex]; there is no other value of y that would make the equation true.<\/p>\n<p>Rather than using the variable y, the equations of functions can be written using <strong>function notation<\/strong>. Function notation is very useful when you are working with more than one function at a time and substituting more than one value in for <em>x<\/em>.<\/p>\n<p>Equations written using function notation can also be evaluated. With function notation, you might see the following:<\/p>\n<p>Given [latex]f(x)=4x+1[\/latex]<i>, <\/i>find&nbsp;[latex]f(2)[\/latex].<\/p>\n<p>You read this problem like this: \u201cgiven <i>f<\/i> of <i>x<\/i> equals&nbsp;[latex]4x[\/latex] plus one, find <i>f<\/i> of&nbsp;[latex]2[\/latex].\u201d While the notation and wording is different, the process of evaluating a function is the same as evaluating an equation. In both cases, you substitute&nbsp;[latex]2[\/latex] for <i>x<\/i>, multiply it by&nbsp;[latex]4[\/latex] and add&nbsp;[latex]1[\/latex], simplifying to get&nbsp;[latex]9[\/latex]. In both a function and an equation, an input of&nbsp;[latex]2[\/latex] results in an output of&nbsp;[latex]9[\/latex].<\/p>\n<p style=\"text-align: center;\">[latex]f(x)=4x+1\\\\f(2)=4(2)+1=8+1=9[\/latex]<\/p>\n<p>You can simply apply what you already know about evaluating expressions to evaluate a function. It is important to note that the parentheses that are part of function notation do not mean multiply. The notation <i>f<\/i>(<i>x<\/i>) does not mean <i>f<\/i> multiplied by <i>x<\/i>. Instead, the notation means \u201c<i>f<\/i> of <i>x<\/i>\u201d or \u201cthe function of <i>x.&#8221;<\/i>&nbsp;To evaluate the function, take the value given for <i>x,<\/i>&nbsp;and substitute that value in for <i>x<\/i> in the expression. Let us look at a couple of examples.<\/p>\n<div class=\"textbox exercises\">\n<h3>Example<\/h3>\n<p>Given [latex]f(x)=3x\u20134[\/latex],&nbsp;find [latex]f(5)[\/latex].<\/p>\n<div class=\"qa-wrapper\" style=\"display: block\"><span class=\"show-answer collapsed\" style=\"cursor: pointer\" data-target=\"q42679\">Show Solution<\/span><\/p>\n<div id=\"q42679\" class=\"hidden-answer\" style=\"display: none\">\n<p>Substitute&nbsp;[latex]5[\/latex] in for <i>x <\/i>in the function.<\/p>\n<p style=\"text-align: center;\">[latex]f(5)=3(5)-4[\/latex]<\/p>\n<p>Simplify the expression on the right side of the equation.<\/p>\n<p style=\"text-align: center;\">[latex]f(5)=15-4\\\\f(5)=11[\/latex]<\/p>\n<\/div>\n<\/div>\n<\/div>\n<p>Functions can be evaluated for negative values of <i>x<\/i>, too. Keep in mind the rules for integer operations.<\/p>\n<div class=\"textbox exercises\">\n<h3>Example<\/h3>\n<p>Given [latex]p(x)=2x^{2}+5[\/latex], find [latex]p(\u22123)[\/latex].<\/p>\n<div class=\"qa-wrapper\" style=\"display: block\"><span class=\"show-answer collapsed\" style=\"cursor: pointer\" data-target=\"q489384\">Show Solution<\/span><\/p>\n<div id=\"q489384\" class=\"hidden-answer\" style=\"display: none\">\n<p>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]p(\u22123)=2(9)+5\\\\p(\u22123)=18+5\\\\p(\u22123)=23[\/latex]<\/p>\n<\/div>\n<\/div>\n<\/div>\n<p>You may also be asked to evaluate a function for more than one value as shown in the example that follows.<\/p>\n<div class=\"textbox exercises\">\n<h3>Example<\/h3>\n<p>Given [latex]f(x)=|4x-3|[\/latex], find [latex]f(0)[\/latex], [latex]f(2)[\/latex], and [latex]f(\u22121)[\/latex].<\/p>\n<div class=\"qa-wrapper\" style=\"display: block\"><span class=\"show-answer collapsed\" style=\"cursor: pointer\" data-target=\"q971051\">Show Solution<\/span><\/p>\n<div id=\"q971051\" class=\"hidden-answer\" style=\"display: none\">\n<p>Treat each of these like three separate problems. In each case, you substitute the value in for <em>x<\/em> and simplify.<\/p>\n<p>Start with [latex]x=0[\/latex].<\/p>\n<p style=\"text-align: center;\">[latex]f(0)=|4(0)-3|=|-3|=3\\\\f(0)=3[\/latex]<\/p>\n<p>Evaluate for [latex]x=2[\/latex].<\/p>\n<p style=\"text-align: center;\">[latex]f(2)=|4(2)-3|=|5|=5\\\\f(2)=5[\/latex]<\/p>\n<p>Evaluate for [latex]x=\u22121[\/latex].<\/p>\n<p style=\"text-align: center;\">[latex]f(\u22121)=|4(-1)-3|=|-7|=7\\\\f(-1)=7[\/latex]<\/p>\n<\/div>\n<\/div>\n<\/div>\n<h2>Variable Inputs<\/h2>\n<p>So far, you have evaluated functions for inputs that have been constants. Functions can also be evaluated for inputs that are variables or expressions. The process is the same, but the simplified answer will contain a variable. The following examples show how to evaluate a function for a variable input.<\/p>\n<div class=\"bcc-box bcc-info\">\n<h3>Example<\/h3>\n<p>Given [latex]f(x)=3x^{2}+2x+1[\/latex], find [latex]f(b)[\/latex].<\/p>\n<div class=\"qa-wrapper\" style=\"display: block\"><span class=\"show-answer collapsed\" style=\"cursor: pointer\" data-target=\"q213691\">Show Solution<\/span><\/p>\n<div id=\"q213691\" class=\"hidden-answer\" style=\"display: none\">\n<p>This problem is asking you to evaluate the function for <i>b<\/i>. This means substitute <i>b<\/i> in the equation for <i>x.<\/i><\/p>\n<p>[latex]f(b)=3b^{2}+2b+1[\/latex]<\/p>\n<p>(That is all\u2014you are done.)<\/p>\n<\/div>\n<\/div>\n<\/div>\n<p>In the following example, you evaluate a function for an expression. So here you will substitute the entire expression in for <i>x<\/i> and simplify.<\/p>\n<div class=\"bcc-box bcc-info\">\n<h3>Example<\/h3>\n<p>Given [latex]f(x)=4x+1[\/latex], find [latex]f(h+1)[\/latex].<\/p>\n<div class=\"qa-wrapper\" style=\"display: block\"><span class=\"show-answer collapsed\" style=\"cursor: pointer\" data-target=\"q943471\">Show Solution<\/span><\/p>\n<div id=\"q943471\" class=\"hidden-answer\" style=\"display: none\">\n<p>This time, you substitute [latex](h+1)[\/latex] into the equation for <i>x.<\/i><\/p>\n<p>[latex]f(h+1)=4(h+1)+1[\/latex]<i>&nbsp;<\/i><\/p>\n<p>Use the distributive property on the right side, and then combine like terms to simplify.<\/p>\n<p>[latex]f(h+1)=4h+4+1=4h+5[\/latex]<\/p>\n<p>Given [latex]f(x)=4x+1[\/latex], [latex]f(h+1)=4h+5[\/latex].<\/p>\n<\/div>\n<\/div>\n<\/div>\n<p>In the following video, we show more examples of evaluating functions for both integer and variable inputs.<\/p>\n<p><iframe loading=\"lazy\" id=\"oembed-1\" title=\"Ex: Determine Various Function Outputs for a Quadratic Function\" width=\"500\" height=\"281\" src=\"https:\/\/www.youtube.com\/embed\/_bi0B2zibOg?feature=oembed&#38;rel=0\" frameborder=\"0\" allowfullscreen=\"allowfullscreen\"><\/iframe><\/p>\n<h2>Summary<\/h2>\n<p>Function notation takes the form such as [latex]f(x)=18x\u201310[\/latex] and is read \u201c<i>f <\/i>of <i>x <\/i>equals 18 times <i>x <\/i>minus&nbsp;[latex]10[\/latex].\u201d Function notation can use letters other than <i>f, <\/i>such as <i>c<\/i>(<i>x<\/i>)<i>,<\/i> <i>g<\/i>(<i>x<\/i>), or <i>h<\/i>(<i>x<\/i>). As you go further in your study of functions, this notation will provide you more flexibility, allowing you to examine and compare different functions more easily. Just as an algebraic equation written in <i>x <\/i>and <i>y<\/i> can be evaluated for different values of the input <i>x, <\/i>an equation written in function notation can also be evaluated for different values of <i>x<\/i>. To evaluate a function, substitute in values for <i>x <\/i>and simplify to find the related output.<\/p>\n\n\t\t\t <section class=\"citations-section\" role=\"contentinfo\">\n\t\t\t <h3>Candela Citations<\/h3>\n\t\t\t\t\t <div>\n\t\t\t\t\t\t <div id=\"citation-list-15959\">\n\t\t\t\t\t\t\t <div class=\"licensing\"><div class=\"license-attribution-dropdown-subheading\">CC licensed content, Original<\/div><ul class=\"citation-list\"><li>Revision and Adaptation. <strong>Provided by<\/strong>: Lumen Learning. <strong>License<\/strong>: <em><a target=\"_blank\" rel=\"license\" href=\"https:\/\/creativecommons.org\/licenses\/by\/4.0\/\">CC BY: Attribution<\/a><\/em><\/li><\/ul><div class=\"license-attribution-dropdown-subheading\">CC licensed content, Shared previously<\/div><ul class=\"citation-list\"><li>Ex: Determine Various Function Outputs for a Quadratic Function. <strong>Authored by<\/strong>: James Sousa (Mathispower4u.com). <strong>Located at<\/strong>: <a target=\"_blank\" href=\"https:\/\/youtu.be\/_bi0B2zibOg\">https:\/\/youtu.be\/_bi0B2zibOg<\/a>. <strong>License<\/strong>: <em><a target=\"_blank\" rel=\"license\" href=\"https:\/\/creativecommons.org\/licenses\/by\/4.0\/\">CC BY: Attribution<\/a><\/em><\/li><li>College Algebra. <strong>Provided by<\/strong>: OPenStax. <strong>Located at<\/strong>: <a target=\"_blank\" href=\"http:\/\/cnx.org\/contents\/9b08c294-057f-4201-9f48-5d6ad992740d@3.278:1\/Preface\">http:\/\/cnx.org\/contents\/9b08c294-057f-4201-9f48-5d6ad992740d@3.278:1\/Preface<\/a>. <strong>License<\/strong>: <em><a target=\"_blank\" rel=\"license\" href=\"https:\/\/creativecommons.org\/licenses\/by\/4.0\/\">CC BY: Attribution<\/a><\/em><\/li><\/ul><\/div>\n\t\t\t\t\t\t <\/div>\n\t\t\t\t\t <\/div>\n\t\t\t <\/section>","protected":false},"author":23485,"menu_order":5,"template":"","meta":{"_candela_citation":"[{\"type\":\"cc\",\"description\":\"Ex: Determine Various Function Outputs for a Quadratic Function\",\"author\":\"James Sousa (Mathispower4u.com)\",\"organization\":\"\",\"url\":\"https:\/\/youtu.be\/_bi0B2zibOg\",\"project\":\"\",\"license\":\"cc-by\",\"license_terms\":\"\"},{\"type\":\"original\",\"description\":\"Revision and Adaptation\",\"author\":\"\",\"organization\":\"Lumen Learning\",\"url\":\"\",\"project\":\"\",\"license\":\"cc-by\",\"license_terms\":\"\"},{\"type\":\"cc\",\"description\":\"College Algebra\",\"author\":\"\",\"organization\":\"OPenStax\",\"url\":\" http:\/\/cnx.org\/contents\/9b08c294-057f-4201-9f48-5d6ad992740d@3.278:1\/Preface\",\"project\":\"\",\"license\":\"cc-by\",\"license_terms\":\"\"}]","CANDELA_OUTCOMES_GUID":"901161ac-575c-4ae8-913d-b4c66c230672","pb_show_title":"on","pb_short_title":"","pb_subtitle":"","pb_authors":[],"pb_section_license":""},"chapter-type":[],"contributor":[],"license":[],"class_list":["post-15959","chapter","type-chapter","status-publish","hentry"],"part":15954,"_links":{"self":[{"href":"https:\/\/courses.lumenlearning.com\/csn-prealgebra\/wp-json\/pressbooks\/v2\/chapters\/15959","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/courses.lumenlearning.com\/csn-prealgebra\/wp-json\/pressbooks\/v2\/chapters"}],"about":[{"href":"https:\/\/courses.lumenlearning.com\/csn-prealgebra\/wp-json\/wp\/v2\/types\/chapter"}],"author":[{"embeddable":true,"href":"https:\/\/courses.lumenlearning.com\/csn-prealgebra\/wp-json\/wp\/v2\/users\/23485"}],"version-history":[{"count":1,"href":"https:\/\/courses.lumenlearning.com\/csn-prealgebra\/wp-json\/pressbooks\/v2\/chapters\/15959\/revisions"}],"predecessor-version":[{"id":15996,"href":"https:\/\/courses.lumenlearning.com\/csn-prealgebra\/wp-json\/pressbooks\/v2\/chapters\/15959\/revisions\/15996"}],"part":[{"href":"https:\/\/courses.lumenlearning.com\/csn-prealgebra\/wp-json\/pressbooks\/v2\/parts\/15954"}],"metadata":[{"href":"https:\/\/courses.lumenlearning.com\/csn-prealgebra\/wp-json\/pressbooks\/v2\/chapters\/15959\/metadata\/"}],"wp:attachment":[{"href":"https:\/\/courses.lumenlearning.com\/csn-prealgebra\/wp-json\/wp\/v2\/media?parent=15959"}],"wp:term":[{"taxonomy":"chapter-type","embeddable":true,"href":"https:\/\/courses.lumenlearning.com\/csn-prealgebra\/wp-json\/pressbooks\/v2\/chapter-type?post=15959"},{"taxonomy":"contributor","embeddable":true,"href":"https:\/\/courses.lumenlearning.com\/csn-prealgebra\/wp-json\/wp\/v2\/contributor?post=15959"},{"taxonomy":"license","embeddable":true,"href":"https:\/\/courses.lumenlearning.com\/csn-prealgebra\/wp-json\/wp\/v2\/license?post=15959"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}