{"id":904,"date":"2015-11-12T18:37:58","date_gmt":"2015-11-12T18:37:58","guid":{"rendered":"https:\/\/courses.candelalearning.com\/collegealgebra1xmaster\/?post_type=chapter&#038;p=904"},"modified":"2015-11-12T18:37:58","modified_gmt":"2015-11-12T18:37:58","slug":"combine-functions-using-algebraic-operations","status":"publish","type":"chapter","link":"https:\/\/courses.lumenlearning.com\/ivytech-collegealgebra\/chapter\/combine-functions-using-algebraic-operations\/","title":{"raw":"Combine functions using algebraic operations","rendered":"Combine functions using algebraic operations"},"content":{"raw":"<p id=\"fs-id1165137446477\">Function composition is only one way to combine existing functions. Another way is to carry out the usual algebraic operations on functions, such as addition, subtraction, multiplication and division. We do this by performing the operations with the function outputs, defining the result as the output of our new function.<\/p>\n<p id=\"fs-id1165135533159\">Suppose we need to add two columns of numbers that represent a husband and wife\u2019s separate annual incomes over a period of years, with the result being their total household income. We want to do this for every year, adding only that year\u2019s incomes and then collecting all the data in a new column. If [latex]w\\left(y\\right)[\/latex] is the wife\u2019s income and [latex]h\\left(y\\right)[\/latex] is the husband\u2019s income in year [latex]y[\/latex], and we want [latex]T[\/latex] to represent the total income, then we can define a new function.<\/p>\n\n<div id=\"fs-id1165137641862\" class=\"equation unnumbered\" style=\"text-align: center;\" data-type=\"equation\" data-label=\"\">[latex]T\\left(y\\right)=h\\left(y\\right)+w\\left(y\\right)[\/latex]<\/div>\n<p id=\"fs-id1165135347766\">If this holds true for every year, then we can focus on the relation between the functions without reference to a year and write<\/p>\n\n<div id=\"fs-id1165137665765\" class=\"equation unnumbered\" style=\"text-align: center;\" data-type=\"equation\" data-label=\"\">[latex]T=h+w[\/latex]<\/div>\n<p id=\"fs-id1165132957142\">Just as for this sum of two functions, we can define difference, product, and ratio functions for any pair of functions that have the same kinds of inputs (not necessarily numbers) and also the same kinds of outputs (which do have to be numbers so that the usual operations of algebra can apply to them, and which also must have the same units or no units when we add and subtract). In this way, we can think of adding, subtracting, multiplying, and dividing functions.<\/p>\n<p id=\"fs-id1165137424116\">For two functions [latex]f\\left(x\\right)[\/latex] and [latex]g\\left(x\\right)[\/latex] with real number outputs, we define new functions [latex]f+g,f-g,fg[\/latex], and [latex]\\frac{f}{g}[\/latex] by the relations<\/p>\n\n<div id=\"fs-id1165137543139\" class=\"equation unnumbered\" style=\"text-align: center;\" data-type=\"equation\" data-label=\"\">[latex]\\begin{cases}\\left(f+g\\right)\\left(x\\right)=f\\left(x\\right)+g\\left(x\\right)\\hfill \\\\ \\left(f-g\\right)\\left(x\\right)=f\\left(x\\right)-g\\left(x\\right)\\hfill \\\\ \\text{ }\\left(fg\\right)\\left(x\\right)=f\\left(x\\right)g\\left(x\\right)\\hfill \\\\ \\text{ }\\left(\\frac{f}{g}\\right)\\left(x\\right)=\\frac{f\\left(x\\right)}{g\\left(x\\right)}\\hfill \\end{cases}[\/latex]<\/div>\n<div id=\"Example_01_04_01\" class=\"example\" data-type=\"example\">\n<div id=\"fs-id1165137585443\" class=\"exercise\" data-type=\"exercise\">\n<div id=\"fs-id1165137573272\" class=\"problem textbox shaded\" data-type=\"problem\">\n<h3 data-type=\"title\">Example 1: Performing Algebraic Operations on Functions<\/h3>\n<p id=\"fs-id1165135304963\">Find and simplify the functions [latex]\\left(g-f\\right)\\left(x\\right)[\/latex] and [latex]\\left(\\frac{g}{f}\\right)\\left(x\\right)[\/latex], given [latex]f\\left(x\\right)=x - 1[\/latex] and [latex]g\\left(x\\right)={x}^{2}-1[\/latex]. Are they the same function?<\/p>\n\n<\/div>\n<div id=\"fs-id1165137823858\" class=\"solution textbox shaded\" data-type=\"solution\">\n<h3>Solution<\/h3>\n<p id=\"fs-id1165137466263\">Begin by writing the general form, and then substitute the given functions.<\/p>\n\n<div id=\"fs-id1165135701567\" class=\"equation unnumbered\" style=\"text-align: center;\" data-type=\"equation\" data-label=\"\">[latex]\\begin{cases}\\left(g-f\\right)\\left(x\\right)=g\\left(x\\right)-f\\left(x\\right) \\\\ \\left(g-f\\right)\\left(x\\right)={x}^{2}-1-\\left(x - 1\\right)\\\\ \\text{ }={x}^{2}-x \\\\ \\text{ }=x\\left(x - 1\\right) \\\\\\end{cases}\\\\[\/latex] [latex]\\begin{cases}\\text{ }\\left(\\frac{g}{f}\\right)\\left(x\\right)=\\frac{g\\left(x\\right)}{f\\left(x\\right)} \\\\ \\text{ }\\left(\\frac{g}{f}\\right)\\left(x\\right)=\\frac{{x}^{2}-1}{x - 1}\\\\ \\text{ }=\\frac{\\left(x+1\\right)\\left(x - 1\\right)}{x - 1}\\text{ where }x\\ne 1 \\\\ \\text{ }=x+1 \\end{cases}[\/latex]<\/div>\n<p id=\"fs-id1165137553743\">No, the functions are not the same.<\/p>\n<p id=\"fs-id1165135351612\">Note: For [latex]\\left(\\frac{g}{f}\\right)\\left(x\\right)\\\\[\/latex], the condition [latex]x\\ne 1[\/latex] is necessary because when [latex]x=1[\/latex], the denominator is equal to 0, which makes the function undefined.<\/p>\n\n<\/div>\n<\/div>\n<\/div>\n<div class=\"bcc-box bcc-success\">\n<h3 id=\"fs-id1165135333576\">Try It 1<\/h3>\nFind and simplify the functions [latex]\\left(fg\\right)\\left(x\\right)[\/latex] and [latex]\\left(f-g\\right)\\left(x\\right)[\/latex].\n<div id=\"fs-id1165137434994\" class=\"equation unnumbered\" style=\"text-align: center;\" data-type=\"equation\" data-label=\"\">[latex]f\\left(x\\right)=x - 1\\text{ and }g\\left(x\\right)={x}^{2}-1[\/latex]<\/div>\n<p id=\"fs-id1165137434911\">Are they the same function?<\/p>\n<a href=\"https:\/\/courses.candelalearning.com\/osprecalc\/chapter\/solutions-3\/\" target=\"_blank\">Solution<\/a>\n\n<\/div>\n<div id=\"fs-id1165137619426\" class=\"solution\" data-type=\"solution\"\/>\n<section id=\"fs-id1165135690697\" data-depth=\"1\"\/>","rendered":"<p id=\"fs-id1165137446477\">Function composition is only one way to combine existing functions. Another way is to carry out the usual algebraic operations on functions, such as addition, subtraction, multiplication and division. We do this by performing the operations with the function outputs, defining the result as the output of our new function.<\/p>\n<p id=\"fs-id1165135533159\">Suppose we need to add two columns of numbers that represent a husband and wife\u2019s separate annual incomes over a period of years, with the result being their total household income. We want to do this for every year, adding only that year\u2019s incomes and then collecting all the data in a new column. If [latex]w\\left(y\\right)[\/latex] is the wife\u2019s income and [latex]h\\left(y\\right)[\/latex] is the husband\u2019s income in year [latex]y[\/latex], and we want [latex]T[\/latex] to represent the total income, then we can define a new function.<\/p>\n<div id=\"fs-id1165137641862\" class=\"equation unnumbered\" style=\"text-align: center;\" data-type=\"equation\" data-label=\"\">[latex]T\\left(y\\right)=h\\left(y\\right)+w\\left(y\\right)[\/latex]<\/div>\n<p id=\"fs-id1165135347766\">If this holds true for every year, then we can focus on the relation between the functions without reference to a year and write<\/p>\n<div id=\"fs-id1165137665765\" class=\"equation unnumbered\" style=\"text-align: center;\" data-type=\"equation\" data-label=\"\">[latex]T=h+w[\/latex]<\/div>\n<p id=\"fs-id1165132957142\">Just as for this sum of two functions, we can define difference, product, and ratio functions for any pair of functions that have the same kinds of inputs (not necessarily numbers) and also the same kinds of outputs (which do have to be numbers so that the usual operations of algebra can apply to them, and which also must have the same units or no units when we add and subtract). In this way, we can think of adding, subtracting, multiplying, and dividing functions.<\/p>\n<p id=\"fs-id1165137424116\">For two functions [latex]f\\left(x\\right)[\/latex] and [latex]g\\left(x\\right)[\/latex] with real number outputs, we define new functions [latex]f+g,f-g,fg[\/latex], and [latex]\\frac{f}{g}[\/latex] by the relations<\/p>\n<div id=\"fs-id1165137543139\" class=\"equation unnumbered\" style=\"text-align: center;\" data-type=\"equation\" data-label=\"\">[latex]\\begin{cases}\\left(f+g\\right)\\left(x\\right)=f\\left(x\\right)+g\\left(x\\right)\\hfill \\\\ \\left(f-g\\right)\\left(x\\right)=f\\left(x\\right)-g\\left(x\\right)\\hfill \\\\ \\text{ }\\left(fg\\right)\\left(x\\right)=f\\left(x\\right)g\\left(x\\right)\\hfill \\\\ \\text{ }\\left(\\frac{f}{g}\\right)\\left(x\\right)=\\frac{f\\left(x\\right)}{g\\left(x\\right)}\\hfill \\end{cases}[\/latex]<\/div>\n<div id=\"Example_01_04_01\" class=\"example\" data-type=\"example\">\n<div id=\"fs-id1165137585443\" class=\"exercise\" data-type=\"exercise\">\n<div id=\"fs-id1165137573272\" class=\"problem textbox shaded\" data-type=\"problem\">\n<h3 data-type=\"title\">Example 1: Performing Algebraic Operations on Functions<\/h3>\n<p id=\"fs-id1165135304963\">Find and simplify the functions [latex]\\left(g-f\\right)\\left(x\\right)[\/latex] and [latex]\\left(\\frac{g}{f}\\right)\\left(x\\right)[\/latex], given [latex]f\\left(x\\right)=x - 1[\/latex] and [latex]g\\left(x\\right)={x}^{2}-1[\/latex]. Are they the same function?<\/p>\n<\/div>\n<div id=\"fs-id1165137823858\" class=\"solution textbox shaded\" data-type=\"solution\">\n<h3>Solution<\/h3>\n<p id=\"fs-id1165137466263\">Begin by writing the general form, and then substitute the given functions.<\/p>\n<div id=\"fs-id1165135701567\" class=\"equation unnumbered\" style=\"text-align: center;\" data-type=\"equation\" data-label=\"\">[latex]\\begin{cases}\\left(g-f\\right)\\left(x\\right)=g\\left(x\\right)-f\\left(x\\right) \\\\ \\left(g-f\\right)\\left(x\\right)={x}^{2}-1-\\left(x - 1\\right)\\\\ \\text{ }={x}^{2}-x \\\\ \\text{ }=x\\left(x - 1\\right) \\\\\\end{cases}\\\\[\/latex] [latex]\\begin{cases}\\text{ }\\left(\\frac{g}{f}\\right)\\left(x\\right)=\\frac{g\\left(x\\right)}{f\\left(x\\right)} \\\\ \\text{ }\\left(\\frac{g}{f}\\right)\\left(x\\right)=\\frac{{x}^{2}-1}{x - 1}\\\\ \\text{ }=\\frac{\\left(x+1\\right)\\left(x - 1\\right)}{x - 1}\\text{ where }x\\ne 1 \\\\ \\text{ }=x+1 \\end{cases}[\/latex]<\/div>\n<p id=\"fs-id1165137553743\">No, the functions are not the same.<\/p>\n<p id=\"fs-id1165135351612\">Note: For [latex]\\left(\\frac{g}{f}\\right)\\left(x\\right)\\\\[\/latex], the condition [latex]x\\ne 1[\/latex] is necessary because when [latex]x=1[\/latex], the denominator is equal to 0, which makes the function undefined.<\/p>\n<\/div>\n<\/div>\n<\/div>\n<div class=\"bcc-box bcc-success\">\n<h3 id=\"fs-id1165135333576\">Try It 1<\/h3>\n<p>Find and simplify the functions [latex]\\left(fg\\right)\\left(x\\right)[\/latex] and [latex]\\left(f-g\\right)\\left(x\\right)[\/latex].<\/p>\n<div id=\"fs-id1165137434994\" class=\"equation unnumbered\" style=\"text-align: center;\" data-type=\"equation\" data-label=\"\">[latex]f\\left(x\\right)=x - 1\\text{ and }g\\left(x\\right)={x}^{2}-1[\/latex]<\/div>\n<p id=\"fs-id1165137434911\">Are they the same function?<\/p>\n<p><a href=\"https:\/\/courses.candelalearning.com\/osprecalc\/chapter\/solutions-3\/\" target=\"_blank\">Solution<\/a><\/p>\n<\/div>\n<div id=\"fs-id1165137619426\" class=\"solution\" data-type=\"solution\">\n<section id=\"fs-id1165135690697\" data-depth=\"1\"><\/section>\n<\/div>\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-904\">\n\t\t\t\t\t\t\t <div class=\"licensing\"><div class=\"license-attribution-dropdown-subheading\">CC licensed content, Shared previously<\/div><ul class=\"citation-list\"><li>Precalculus. <strong>Authored by<\/strong>: Jay Abramson, et al.. <strong>Provided by<\/strong>: OpenStax. <strong>Located at<\/strong>: <a target=\"_blank\" href=\"http:\/\/cnx.org\/contents\/fd53eae1-fa23-47c7-bb1b-972349835c3c@5.175\">http:\/\/cnx.org\/contents\/fd53eae1-fa23-47c7-bb1b-972349835c3c@5.175<\/a>. <strong>License<\/strong>: <em><a target=\"_blank\" rel=\"license\" href=\"https:\/\/creativecommons.org\/licenses\/by\/4.0\/\">CC BY: Attribution<\/a><\/em>. <strong>License Terms<\/strong>: Download For Free at : http:\/\/cnx.org\/contents\/fd53eae1-fa23-47c7-bb1b-972349835c3c@5.175.<\/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":276,"menu_order":2,"template":"","meta":{"_candela_citation":"[{\"type\":\"cc\",\"description\":\"Precalculus\",\"author\":\"Jay Abramson, et al.\",\"organization\":\"OpenStax\",\"url\":\"http:\/\/cnx.org\/contents\/fd53eae1-fa23-47c7-bb1b-972349835c3c@5.175\",\"project\":\"\",\"license\":\"cc-by\",\"license_terms\":\"Download For Free at : http:\/\/cnx.org\/contents\/fd53eae1-fa23-47c7-bb1b-972349835c3c@5.175.\"}]","CANDELA_OUTCOMES_GUID":"","pb_show_title":"on","pb_short_title":"","pb_subtitle":"","pb_authors":[],"pb_section_license":""},"chapter-type":[],"contributor":[],"license":[],"class_list":["post-904","chapter","type-chapter","status-publish","hentry"],"part":901,"_links":{"self":[{"href":"https:\/\/courses.lumenlearning.com\/ivytech-collegealgebra\/wp-json\/pressbooks\/v2\/chapters\/904","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/courses.lumenlearning.com\/ivytech-collegealgebra\/wp-json\/pressbooks\/v2\/chapters"}],"about":[{"href":"https:\/\/courses.lumenlearning.com\/ivytech-collegealgebra\/wp-json\/wp\/v2\/types\/chapter"}],"author":[{"embeddable":true,"href":"https:\/\/courses.lumenlearning.com\/ivytech-collegealgebra\/wp-json\/wp\/v2\/users\/276"}],"version-history":[{"count":1,"href":"https:\/\/courses.lumenlearning.com\/ivytech-collegealgebra\/wp-json\/pressbooks\/v2\/chapters\/904\/revisions"}],"predecessor-version":[{"id":2491,"href":"https:\/\/courses.lumenlearning.com\/ivytech-collegealgebra\/wp-json\/pressbooks\/v2\/chapters\/904\/revisions\/2491"}],"part":[{"href":"https:\/\/courses.lumenlearning.com\/ivytech-collegealgebra\/wp-json\/pressbooks\/v2\/parts\/901"}],"metadata":[{"href":"https:\/\/courses.lumenlearning.com\/ivytech-collegealgebra\/wp-json\/pressbooks\/v2\/chapters\/904\/metadata\/"}],"wp:attachment":[{"href":"https:\/\/courses.lumenlearning.com\/ivytech-collegealgebra\/wp-json\/wp\/v2\/media?parent=904"}],"wp:term":[{"taxonomy":"chapter-type","embeddable":true,"href":"https:\/\/courses.lumenlearning.com\/ivytech-collegealgebra\/wp-json\/pressbooks\/v2\/chapter-type?post=904"},{"taxonomy":"contributor","embeddable":true,"href":"https:\/\/courses.lumenlearning.com\/ivytech-collegealgebra\/wp-json\/wp\/v2\/contributor?post=904"},{"taxonomy":"license","embeddable":true,"href":"https:\/\/courses.lumenlearning.com\/ivytech-collegealgebra\/wp-json\/wp\/v2\/license?post=904"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}