{"id":3767,"date":"2025-09-05T21:38:53","date_gmt":"2025-09-05T21:38:53","guid":{"rendered":"https:\/\/content.one.lumenlearning.com\/precalculus\/?post_type=chapter&#038;p=3767"},"modified":"2026-01-14T18:57:43","modified_gmt":"2026-01-14T18:57:43","slug":"rational-functions-learn-it-6","status":"publish","type":"chapter","link":"https:\/\/content.one.lumenlearning.com\/precalculus\/chapter\/rational-functions-learn-it-6\/","title":{"raw":"Rational Functions: Learn It 7","rendered":"Rational Functions: Learn It 7"},"content":{"raw":"<h2>Writing Rational Functions<\/h2>\r\nNow that we have analyzed the equations for rational functions and how they relate to a graph of the function, we can use information given by a graph to write the function.\r\n\r\nA rational function written in factored form will have an [latex]x[\/latex]-intercept where each factor of the numerator is equal to zero. (An exception occurs in the case of a removable discontinuity.) As a result, we can form a numerator of a function whose graph will pass through a set of [latex]x[\/latex]-intercepts by introducing a corresponding set of factors. Likewise, because the function will have a vertical asymptote where each factor of the denominator is equal to zero, we can form a denominator that will produce the vertical asymptotes by introducing a corresponding set of factors.\r\n\r\n<section class=\"textbox proTip\" aria-label=\"Pro Tip\">If a <strong>rational function<\/strong> has [latex]x[\/latex]-intercepts at [latex]x={x}_{1}, {x}_{2}, ..., {x}_{n}[\/latex], vertical asymptotes at [latex]x={v}_{1},{v}_{2},\\dots ,{v}_{m}[\/latex], and no [latex]{x}_{i}=\\text{any }{v}_{j}[\/latex], then the function can be written in the form:\r\n<p style=\"text-align: center;\">[latex]f\\left(x\\right)=a\\frac{{\\left(x-{x}_{1}\\right)}^{{p}_{1}}{\\left(x-{x}_{2}\\right)}^{{p}_{2}}\\cdots {\\left(x-{x}_{n}\\right)}^{{p}_{n}}}{{\\left(x-{v}_{1}\\right)}^{{q}_{1}}{\\left(x-{v}_{2}\\right)}^{{q}_{2}}\\cdots {\\left(x-{v}_{m}\\right)}^{{q}_{n}}}[\/latex]<\/p>\r\nwhere the powers [latex]{p}_{i}[\/latex] or [latex]{q}_{i}[\/latex] on each factor can be determined by the behavior of the graph at the corresponding intercept or asymptote, and the stretch factor [latex]a[\/latex]can be determined given a value of the function other than the [latex]x[\/latex]-intercept or by the horizontal asymptote if it is nonzero.\r\n\r\n<\/section><section class=\"textbox questionHelp\" aria-label=\"Question Help\"><strong>What do the subscripts in the example above indicate?<\/strong>\r\n\r\n<hr \/>\r\n\r\nThe above example uses an abstract form to help define a rational function. We've seen these before.\r\n\r\nA linear function can be written in the form [latex]f(x)=mx+b[\/latex], and a quadratic function can be written in the form [latex]f(x)=ax^2+bx+c[\/latex].\r\n\r\nA quadratic can also be written in the form of a polynomial as [latex]p(x)=a(x-r_{1})(x-r_{2})[\/latex], where [latex]a[\/latex] represents the leading coefficient and [latex]r_{1}[\/latex] and [latex]r_{2}[\/latex] are the roots, or zeros of the function. Instead of writing \"[latex]r_{1}[\/latex] and [latex]r_{2}[\/latex],\" we could use some notational shorthand and simply write, \"the [latex]r_{n}[\/latex]\" to indicate them both at once. That's the same as saying that the number of roots present include [latex]r_{1}, r_{2}, \\ldots, r_{n}[\/latex] for [latex]n[\/latex] total roots.\r\n\r\nIn the definition above, to say that \"no [latex]x_{i}=\\text{ any } v_{j}[\/latex]\" is to say that there are no common factors in the numerator and denominator. In other words, the roots in the numerator and the vertical asymptotes in the denominator can only be counted in factored and reduced form.\r\n\r\n<\/section><section class=\"textbox questionHelp\" aria-label=\"Question Help\"><strong>How To: Given a graph of a rational function, write the function.<\/strong>\r\n<ol>\r\n \t<li>Determine the factors of the numerator. Examine the behavior of the graph at the <em>x<\/em>-intercepts to determine the zeroes and their multiplicities. (This is easy to do when finding the \"simplest\" function with small multiplicities\u2014such as 1 or 3\u2014but may be difficult for larger multiplicities\u2014such as 5 or 7, for example.)<\/li>\r\n \t<li>Determine the factors of the denominator. Examine the behavior on both sides of each vertical asymptote to determine the factors and their powers.<\/li>\r\n \t<li>Use any clear point on the graph to find the stretch factor.<\/li>\r\n<\/ol>\r\n<\/section><section class=\"textbox example\" aria-label=\"Example\">Write an equation for the rational function\u00a0below.<img class=\"aligncenter\" src=\"https:\/\/s3-us-west-2.amazonaws.com\/courses-images\/wp-content\/uploads\/sites\/896\/2016\/11\/02213956\/CNX_Precalc_Figure_03_07_024.jpg\" alt=\"Graph of a rational function.\" width=\"487\" height=\"475\" \/>\r\n[reveal-answer q=\"666867\"]Show Solution[\/reveal-answer]\r\n[hidden-answer a=\"666867\"]The graph appears to have [latex]x[\/latex]-intercepts at [latex]x=-2[\/latex] and [latex]x=3[\/latex]. At both, the graph passes through the intercept, suggesting linear factors. The graph has two vertical asymptotes. The one at [latex]x=-1[\/latex] seems to exhibit the basic behavior similar to [latex]\\frac{1}{x}[\/latex], with the graph heading toward positive infinity on one side and heading toward negative infinity on the other. The asymptote at [latex]x=2[\/latex] is exhibiting a behavior similar to [latex]\\frac{1}{{x}^{2}}[\/latex], with the graph heading toward negative infinity on both sides of the asymptote.<img class=\"aligncenter\" src=\"https:\/\/s3-us-west-2.amazonaws.com\/courses-images\/wp-content\/uploads\/sites\/896\/2016\/11\/02213958\/CNX_Precalc_Figure_03_07_025.jpg\" alt=\"Graph of a rational function denoting its vertical asymptotes and x-intercepts.\" width=\"731\" height=\"475\" \/>We can use this information to write a function of the form\r\n<p style=\"text-align: center;\">[latex]f\\left(x\\right)=a\\dfrac{\\left(x+2\\right)\\left(x - 3\\right)}{\\left(x+1\\right){\\left(x - 2\\right)}^{2}}[\/latex].<\/p>\r\nTo find the stretch factor, we can use another clear point on the graph, such as the [latex]y[\/latex]-intercept [latex]\\left(0,-2\\right)[\/latex].\r\n<p style=\"text-align: center;\">[latex]\\begin{align}-2&amp;=a\\dfrac{\\left(0+2\\right)\\left(0 - 3\\right)}{\\left(0+1\\right){\\left(0 - 2\\right)}^{2}} \\\\[1mm] -2&amp;=a\\frac{-6}{4} \\\\[1mm] a=\\frac{-8}{-6}=\\frac{4}{3} \\end{align}[\/latex]<\/p>\r\nThis gives us a final function of [latex]f\\left(x\\right)=\\dfrac{4\\left(x+2\\right)\\left(x - 3\\right)}{3\\left(x+1\\right){\\left(x - 2\\right)}^{2}}[\/latex].\r\n\r\n[\/hidden-answer]\r\n\r\n<\/section>Note in the example above that we used a point on the graph to help write the equation of the graph. In doing so, we used the important concept that\u00a0<strong>any point contained on the graph of a function satisfies the equation of the function<\/strong> (that is, substituting both input and output values into the function equation will result in a true statement)<strong>.<\/strong>\r\n\r\nThis concept applies to any function we study. If the function can be graphed in the real plane, it has a set of input [latex]x[\/latex] values and a set of corresponding output [latex]f(x)[\/latex] values, and each corresponding pair is given by [latex]\\left(x, f(x)\\right)[\/latex].\r\n\r\nThis correspondence allows us to substitute any [latex]x[\/latex] to find its corresponding [latex]f(x)[\/latex] and vice versa. It also allows us to substitute both input and output into any function equation in order to solve for a missing third value, such as the leading coefficient [latex]a[\/latex] in the example above.\r\n\r\n<section class=\"textbox tryIt\" aria-label=\"Try It\">[ohm_question hide_question_numbers=1]318952[\/ohm_question]<\/section><section class=\"textbox tryIt\" aria-label=\"Try It\">[ohm_question hide_question_numbers=1]318953[\/ohm_question]<\/section>","rendered":"<h2>Writing Rational Functions<\/h2>\n<p>Now that we have analyzed the equations for rational functions and how they relate to a graph of the function, we can use information given by a graph to write the function.<\/p>\n<p>A rational function written in factored form will have an [latex]x[\/latex]-intercept where each factor of the numerator is equal to zero. (An exception occurs in the case of a removable discontinuity.) As a result, we can form a numerator of a function whose graph will pass through a set of [latex]x[\/latex]-intercepts by introducing a corresponding set of factors. Likewise, because the function will have a vertical asymptote where each factor of the denominator is equal to zero, we can form a denominator that will produce the vertical asymptotes by introducing a corresponding set of factors.<\/p>\n<section class=\"textbox proTip\" aria-label=\"Pro Tip\">If a <strong>rational function<\/strong> has [latex]x[\/latex]-intercepts at [latex]x={x}_{1}, {x}_{2}, ..., {x}_{n}[\/latex], vertical asymptotes at [latex]x={v}_{1},{v}_{2},\\dots ,{v}_{m}[\/latex], and no [latex]{x}_{i}=\\text{any }{v}_{j}[\/latex], then the function can be written in the form:<\/p>\n<p style=\"text-align: center;\">[latex]f\\left(x\\right)=a\\frac{{\\left(x-{x}_{1}\\right)}^{{p}_{1}}{\\left(x-{x}_{2}\\right)}^{{p}_{2}}\\cdots {\\left(x-{x}_{n}\\right)}^{{p}_{n}}}{{\\left(x-{v}_{1}\\right)}^{{q}_{1}}{\\left(x-{v}_{2}\\right)}^{{q}_{2}}\\cdots {\\left(x-{v}_{m}\\right)}^{{q}_{n}}}[\/latex]<\/p>\n<p>where the powers [latex]{p}_{i}[\/latex] or [latex]{q}_{i}[\/latex] on each factor can be determined by the behavior of the graph at the corresponding intercept or asymptote, and the stretch factor [latex]a[\/latex]can be determined given a value of the function other than the [latex]x[\/latex]-intercept or by the horizontal asymptote if it is nonzero.<\/p>\n<\/section>\n<section class=\"textbox questionHelp\" aria-label=\"Question Help\"><strong>What do the subscripts in the example above indicate?<\/strong><\/p>\n<hr \/>\n<p>The above example uses an abstract form to help define a rational function. We&#8217;ve seen these before.<\/p>\n<p>A linear function can be written in the form [latex]f(x)=mx+b[\/latex], and a quadratic function can be written in the form [latex]f(x)=ax^2+bx+c[\/latex].<\/p>\n<p>A quadratic can also be written in the form of a polynomial as [latex]p(x)=a(x-r_{1})(x-r_{2})[\/latex], where [latex]a[\/latex] represents the leading coefficient and [latex]r_{1}[\/latex] and [latex]r_{2}[\/latex] are the roots, or zeros of the function. Instead of writing &#8220;[latex]r_{1}[\/latex] and [latex]r_{2}[\/latex],&#8221; we could use some notational shorthand and simply write, &#8220;the [latex]r_{n}[\/latex]&#8221; to indicate them both at once. That&#8217;s the same as saying that the number of roots present include [latex]r_{1}, r_{2}, \\ldots, r_{n}[\/latex] for [latex]n[\/latex] total roots.<\/p>\n<p>In the definition above, to say that &#8220;no [latex]x_{i}=\\text{ any } v_{j}[\/latex]&#8221; is to say that there are no common factors in the numerator and denominator. In other words, the roots in the numerator and the vertical asymptotes in the denominator can only be counted in factored and reduced form.<\/p>\n<\/section>\n<section class=\"textbox questionHelp\" aria-label=\"Question Help\"><strong>How To: Given a graph of a rational function, write the function.<\/strong><\/p>\n<ol>\n<li>Determine the factors of the numerator. Examine the behavior of the graph at the <em>x<\/em>-intercepts to determine the zeroes and their multiplicities. (This is easy to do when finding the &#8220;simplest&#8221; function with small multiplicities\u2014such as 1 or 3\u2014but may be difficult for larger multiplicities\u2014such as 5 or 7, for example.)<\/li>\n<li>Determine the factors of the denominator. Examine the behavior on both sides of each vertical asymptote to determine the factors and their powers.<\/li>\n<li>Use any clear point on the graph to find the stretch factor.<\/li>\n<\/ol>\n<\/section>\n<section class=\"textbox example\" aria-label=\"Example\">Write an equation for the rational function\u00a0below.<img loading=\"lazy\" decoding=\"async\" class=\"aligncenter\" src=\"https:\/\/s3-us-west-2.amazonaws.com\/courses-images\/wp-content\/uploads\/sites\/896\/2016\/11\/02213956\/CNX_Precalc_Figure_03_07_024.jpg\" alt=\"Graph of a rational function.\" width=\"487\" height=\"475\" \/><\/p>\n<div class=\"qa-wrapper\" style=\"display: block\"><button class=\"show-answer show-answer-button collapsed\" data-target=\"q666867\">Show Solution<\/button><\/p>\n<div id=\"q666867\" class=\"hidden-answer\" style=\"display: none\">The graph appears to have [latex]x[\/latex]-intercepts at [latex]x=-2[\/latex] and [latex]x=3[\/latex]. At both, the graph passes through the intercept, suggesting linear factors. The graph has two vertical asymptotes. The one at [latex]x=-1[\/latex] seems to exhibit the basic behavior similar to [latex]\\frac{1}{x}[\/latex], with the graph heading toward positive infinity on one side and heading toward negative infinity on the other. The asymptote at [latex]x=2[\/latex] is exhibiting a behavior similar to [latex]\\frac{1}{{x}^{2}}[\/latex], with the graph heading toward negative infinity on both sides of the asymptote.<img loading=\"lazy\" decoding=\"async\" class=\"aligncenter\" src=\"https:\/\/s3-us-west-2.amazonaws.com\/courses-images\/wp-content\/uploads\/sites\/896\/2016\/11\/02213958\/CNX_Precalc_Figure_03_07_025.jpg\" alt=\"Graph of a rational function denoting its vertical asymptotes and x-intercepts.\" width=\"731\" height=\"475\" \/>We can use this information to write a function of the form<\/p>\n<p style=\"text-align: center;\">[latex]f\\left(x\\right)=a\\dfrac{\\left(x+2\\right)\\left(x - 3\\right)}{\\left(x+1\\right){\\left(x - 2\\right)}^{2}}[\/latex].<\/p>\n<p>To find the stretch factor, we can use another clear point on the graph, such as the [latex]y[\/latex]-intercept [latex]\\left(0,-2\\right)[\/latex].<\/p>\n<p style=\"text-align: center;\">[latex]\\begin{align}-2&=a\\dfrac{\\left(0+2\\right)\\left(0 - 3\\right)}{\\left(0+1\\right){\\left(0 - 2\\right)}^{2}} \\\\[1mm] -2&=a\\frac{-6}{4} \\\\[1mm] a=\\frac{-8}{-6}=\\frac{4}{3} \\end{align}[\/latex]<\/p>\n<p>This gives us a final function of [latex]f\\left(x\\right)=\\dfrac{4\\left(x+2\\right)\\left(x - 3\\right)}{3\\left(x+1\\right){\\left(x - 2\\right)}^{2}}[\/latex].<\/p>\n<\/div>\n<\/div>\n<\/section>\n<p>Note in the example above that we used a point on the graph to help write the equation of the graph. In doing so, we used the important concept that\u00a0<strong>any point contained on the graph of a function satisfies the equation of the function<\/strong> (that is, substituting both input and output values into the function equation will result in a true statement)<strong>.<\/strong><\/p>\n<p>This concept applies to any function we study. If the function can be graphed in the real plane, it has a set of input [latex]x[\/latex] values and a set of corresponding output [latex]f(x)[\/latex] values, and each corresponding pair is given by [latex]\\left(x, f(x)\\right)[\/latex].<\/p>\n<p>This correspondence allows us to substitute any [latex]x[\/latex] to find its corresponding [latex]f(x)[\/latex] and vice versa. It also allows us to substitute both input and output into any function equation in order to solve for a missing third value, such as the leading coefficient [latex]a[\/latex] in the example above.<\/p>\n<section class=\"textbox tryIt\" aria-label=\"Try It\"><iframe loading=\"lazy\" id=\"ohm318952\" class=\"resizable\" src=\"https:\/\/ohm.lumenlearning.com\/multiembedq.php?id=318952&theme=lumen&iframe_resize_id=ohm318952&source=tnh\" width=\"100%\" height=\"150\"><\/iframe><\/section>\n<section class=\"textbox tryIt\" aria-label=\"Try It\"><iframe loading=\"lazy\" id=\"ohm318953\" class=\"resizable\" src=\"https:\/\/ohm.lumenlearning.com\/multiembedq.php?id=318953&theme=lumen&iframe_resize_id=ohm318953&source=tnh\" width=\"100%\" height=\"150\"><\/iframe><\/section>\n","protected":false},"author":13,"menu_order":12,"template":"","meta":{"_candela_citation":"[]","pb_show_title":"on","pb_short_title":"","pb_subtitle":"","pb_authors":[],"pb_section_license":""},"chapter-type":[],"contributor":[],"license":[],"part":508,"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\/3767"}],"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":4,"href":"https:\/\/content.one.lumenlearning.com\/precalculus\/wp-json\/pressbooks\/v2\/chapters\/3767\/revisions"}],"predecessor-version":[{"id":5355,"href":"https:\/\/content.one.lumenlearning.com\/precalculus\/wp-json\/pressbooks\/v2\/chapters\/3767\/revisions\/5355"}],"part":[{"href":"https:\/\/content.one.lumenlearning.com\/precalculus\/wp-json\/pressbooks\/v2\/parts\/508"}],"metadata":[{"href":"https:\/\/content.one.lumenlearning.com\/precalculus\/wp-json\/pressbooks\/v2\/chapters\/3767\/metadata\/"}],"wp:attachment":[{"href":"https:\/\/content.one.lumenlearning.com\/precalculus\/wp-json\/wp\/v2\/media?parent=3767"}],"wp:term":[{"taxonomy":"chapter-type","embeddable":true,"href":"https:\/\/content.one.lumenlearning.com\/precalculus\/wp-json\/pressbooks\/v2\/chapter-type?post=3767"},{"taxonomy":"contributor","embeddable":true,"href":"https:\/\/content.one.lumenlearning.com\/precalculus\/wp-json\/wp\/v2\/contributor?post=3767"},{"taxonomy":"license","embeddable":true,"href":"https:\/\/content.one.lumenlearning.com\/precalculus\/wp-json\/wp\/v2\/license?post=3767"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}