{"id":10720,"date":"2015-07-10T19:09:19","date_gmt":"2015-07-10T19:09:19","guid":{"rendered":"https:\/\/courses.candelalearning.com\/osprecalc\/?post_type=chapter&#038;p=10720"},"modified":"2021-07-17T20:29:29","modified_gmt":"2021-07-17T20:29:29","slug":"graph-piecewise-defined-functions","status":"publish","type":"chapter","link":"https:\/\/courses.lumenlearning.com\/ccbcmd-math\/chapter\/graph-piecewise-defined-functions\/","title":{"raw":"Graph piecewise-defined functions","rendered":"Graph piecewise-defined functions"},"content":{"raw":"<p>Sometimes, we come across a function that requires more than one formula in order to obtain the given output. For example, in the toolkit functions, we introduced the absolute value function [latex]f\\left(x\\right)=|x|[\/latex]. With a domain of all real numbers and a range of values greater than or equal to 0, <strong>absolute value<\/strong> can be defined as the <strong>magnitude<\/strong>, or <strong>modulus<\/strong>, of a real number value regardless of sign. It is the distance from 0 on the number line. All of these definitions require the output to be greater than or equal to 0.<\/p>\r\n<p id=\"fs-id1165137558775\">If we input 0, or a positive value, the output is the same as the input.<\/p>\r\n\r\n<div id=\"fs-id1165135194329\" class=\"equation unnumbered\" style=\"text-align: center\">[latex]f\\left(x\\right)=x\\text{ if }x\\ge 0[\/latex]<\/div>\r\n<p id=\"fs-id1165137529947\">If we input a negative value, the output is the opposite of the input.<\/p>\r\n\r\n<div id=\"fs-id1165133112779\" class=\"equation unnumbered\" style=\"text-align: center\">[latex]f\\left(x\\right)=-x\\text{ if }x&lt;0[\/latex]<\/div>\r\n<p id=\"fs-id1165137863778\">Because this requires two different processes or pieces, the absolute value function is an example of a piecewise function. A <strong>piecewise function<\/strong> is a function in which more than one formula is used to define the output over different pieces of the domain.<\/p>\r\n<p id=\"fs-id1165134042316\">We use piecewise functions to describe situations in which a rule or relationship changes as the input value crosses certain \"boundaries.\" For example, we often encounter situations in business for which the cost per piece of a certain item is discounted once the number ordered exceeds a certain value. Tax brackets are another real-world example of piecewise functions. For example, consider a simple tax system in which incomes up to $10,000 are taxed at 10%, and any additional income is taxed at 20%. The tax on a total income, S, would be\u00a00.1S if [latex]{S}\\le\\[\/latex] $10,000\u00a0and 1000 + 0.2 (S - $10,000),\u00a0if S&gt; $10,000.<\/p>\r\n\r\n<div id=\"fs-id1165137531241\" class=\"note textbox\">\r\n<h3 class=\"title\">A General Note: Piecewise Function<\/h3>\r\n<p id=\"fs-id1165135504970\">A piecewise function is a function in which more than one formula is used to define the output. Each formula has its own domain, and the domain of the function is the union of all these smaller domains. We notate this idea like this:<\/p>\r\n[latex] f\\left(x\\right)=\\begin{cases}\\text{formula 1 if x is in domain 1}\\\\ \\text{formula 2 if x is in domain 2}\\\\ \\text{formula 3 if x is in domain 3}\\end{cases} [\/latex]\r\n\r\nIn piecewise notation, the absolute value function is\r\n<div id=\"fs-id1165135190749\" class=\"equation unnumbered\" style=\"text-align: center\">[latex]|x|=\\begin{cases}x\\text{ if }x\\ge 0\\\\ -x\\text{ if }x&lt;0\\end{cases}[\/latex]<\/div>\r\n<\/div>\r\n<div id=\"fs-id1165137768426\" class=\"note precalculus howto textbox\">\r\n<h3>How To:\u00a0Given a piecewise function, write the formula and identify the domain for each interval.<strong>\r\n<\/strong><\/h3>\r\n<ol id=\"fs-id1165135443772\">\r\n\t<li>Identify the intervals for which different rules apply.<\/li>\r\n\t<li>Determine formulas that describe how to calculate an output from an input in each interval.<\/li>\r\n\t<li>Use braces and if-statements to write the function.<\/li>\r\n<\/ol>\r\n<\/div>\r\n<div class=\"textbox shaded\">\r\n<h3>Example 11: Writing a Piecewise Function<\/h3>\r\nA museum charges $5 per person for a guided tour with a group of 1 to 9 people or a fixed $50 fee for a group of 10 or more people. Write a <strong>function<\/strong> relating the number of people, [latex]n[\/latex], to the cost, [latex]C[\/latex].\r\n\r\n<\/div>\r\n<div class=\"textbox shaded\">\r\n<h3>Solution<\/h3>\r\nTwo different formulas will be needed. For <em>n<\/em>-values under 10, C=5n. For values of n that are 10 or greater, C=50.\r\n\r\nC(n)=[latex]\\begin{cases}{5n}\\text{ if }{0}&lt;{n}&lt;{10}\\\\ 50\\text{ if }{n}\\ge 10\\end{cases}[\/latex]\r\n\r\n&nbsp;\r\n\r\n<\/div>\r\n<div>\r\n<h3>Analysis of the Solution<\/h3>\r\nThe function is represented in Figure 21. The graph is a diagonal line from [latex]n=0[\/latex] to [latex]n=10[\/latex] and a constant after that. In this example, the two formulas agree at the meeting point where [latex]n=10[\/latex], but not all piecewise functions have this property.\r\n\r\n[caption id=\"\" align=\"aligncenter\" width=\"360\"]<img src=\"https:\/\/s3-us-west-2.amazonaws.com\/courses-images-archive-read-only\/wp-content\/uploads\/sites\/1227\/2015\/04\/03010548\/CNX_Precalc_Figure_01_02_0212.jpg\" alt=\"Graph of C(n).\" width=\"360\" height=\"294\" \/> <b>Figure 21<\/b>[\/caption]\r\n\r\n<\/div>\r\nhttps:\/\/www.youtube.com\/watch?v=B1jfpiI-QQ8&amp;feature=youtu.be\r\n<div id=\"Example_01_02_12\" class=\"example\">\r\n<div id=\"fs-id1165135436662\" class=\"exercise\">\r\n<div id=\"fs-id1165135436664\" class=\"problem textbox shaded\">\r\n<h3>Example 12: Working with a Piecewise Function<\/h3>\r\n<p id=\"fs-id1165137938645\">A cell phone company uses the function below to determine the cost, [latex]C[\/latex], in dollars for [latex]g[\/latex] gigabytes of data transfer.<\/p>\r\n\r\n<div id=\"fs-id1165137660470\" class=\"equation unnumbered\" style=\"text-align: center\">[latex]C\\left(g\\right)=\\begin{cases}{25} \\text{ if }{ 0 }&lt;{ g }&lt;{ 2 }\\\\ { 25+10 }\\left(g - 2\\right) \\text{ if }{ g}\\ge{ 2 }\\end{cases}[\/latex]<\/div>\r\n<p id=\"fs-id1165135193798\">Find the cost of using 1.5 gigabytes of data and the cost of using 4 gigabytes of data.<\/p>\r\n\r\n<\/div>\r\n<div id=\"fs-id1165135177567\" class=\"solution textbox shaded\">\r\n<h3>Solution<\/h3>\r\n<p id=\"fs-id1165134373545\">To find the cost of using 1.5 gigabytes of data, C(1.5), we first look to see which part of the domain our input falls in. Because 1.5 is less than 2, we use the first formula.<\/p>\r\nC(1.5) = $25\r\n<p id=\"fs-id1165135440213\">To find the cost of using 4 gigabytes of data, C(4), we see that our input of 4 is greater than 2, so we use the second formula.<\/p>\r\n\r\n<div>C(4)=25 + 10( 4-2) =$45<\/div>\r\n<\/div>\r\n<div id=\"fs-id1165137634432\" class=\"commentary\">\r\n<h3>Analysis of the Solution<\/h3>\r\nThe function is represented in Figure 22. We can see where the function changes from a constant to a shifted and stretched identity at [latex]g=2[\/latex]. We plot the graphs for the different formulas on a common set of axes, making sure each formula is applied on its proper domain.\r\n\r\n[caption id=\"\" align=\"aligncenter\" width=\"487\"]<img src=\"https:\/\/s3-us-west-2.amazonaws.com\/courses-images-archive-read-only\/wp-content\/uploads\/sites\/1227\/2015\/04\/03010548\/CNX_Precalc_Figure_01_02_0222.jpg\" alt=\"Graph of C(g)\" width=\"487\" height=\"296\" \/> <b>Figure 22<\/b>[\/caption]\r\n\r\n<\/div>\r\n<\/div>\r\n<\/div>\r\n<div id=\"fs-id1165137600493\" class=\"note precalculus howto textbox\">\r\n<h3 id=\"fs-id1165135532516\">How To:\u00a0Given a piecewise function, sketch a graph.<\/h3>\r\n<ol id=\"fs-id1165137588539\">\r\n\t<li>Indicate on the <em>x<\/em>-axis the boundaries defined by the intervals on each piece of the domain.<\/li>\r\n\t<li>For each piece of the domain, graph on that interval using the corresponding equation pertaining to that piece. Do not graph two functions over one interval because it would violate the criteria of a function.<\/li>\r\n<\/ol>\r\n<\/div>\r\n<div id=\"Example_01_02_13\" class=\"example\">\r\n<div id=\"fs-id1165137781618\" class=\"exercise\">\r\n<div id=\"fs-id1165135412870\" class=\"problem textbox shaded\">\r\n<h3>Example 13: Graphing a Piecewise Function<\/h3>\r\n<p id=\"fs-id1165137838785\">Sketch a graph of the function.<\/p>\r\n\r\n<div id=\"fs-id1165137475346\" class=\"equation unnumbered\" style=\"text-align: center\">[latex]f\\left(x\\right)=\\begin{cases}{ x }^{2} \\text{ if }{ x }\\le{ 1 }\\\\ { 3 } \\text{ if } { 1 }&amp;lt{ x }\\le 2\\\\ { x } \\text{ if }{ x }&amp;gt{ 2 }\\end{cases}[\/latex]<\/div>\r\n<\/div>\r\n<div id=\"fs-id1165135487148\" class=\"solution textbox shaded\">\r\n<h3>Solution<\/h3>\r\n<p id=\"fs-id1165135487150\">Each of the component functions is from our library of toolkit functions, so we know their shapes. We can imagine graphing each function and then limiting the graph to the indicated domain. At the endpoints of the domain, we draw open circles to indicate where the endpoint is not included because of a less-than or greater-than inequality; we draw a closed circle where the endpoint is included because of a less-than-or-equal-to or greater-than-or-equal-to inequality.<\/p>\r\n<p id=\"fs-id1165137642848\">Below are\u00a0the three components of the piecewise function graphed on separate coordinate systems.<\/p>\r\n\r\n<figure id=\"Figure_01_02_023\"><figcaption>(a) [latex]f\\left(x\\right)={x}^{2}\\text{ if }x\\le 1[\/latex]; (b) [latex]f\\left(x\\right)=3\\text{ if 1&lt; }x\\le 2[\/latex]; (c) [latex]f\\left(x\\right)=x\\text{ if }x&gt;2[\/latex]<\/figcaption>\r\n\r\n[caption id=\"\" align=\"aligncenter\" width=\"974\"]<img src=\"https:\/\/s3-us-west-2.amazonaws.com\/courses-images-archive-read-only\/wp-content\/uploads\/sites\/1227\/2015\/04\/03010549\/CNX_Precalc_Figure_01_02_023abc2.jpg\" alt=\"Graph of each part of the piece-wise function f(x)\" width=\"974\" height=\"327\" \/> <b>Figure 23<\/b>[\/caption]\r\n\r\n<\/figure>\r\n<p id=\"fs-id1165137676209\">Now that we have sketched each piece individually, we combine them in the same coordinate plane.<span id=\"fs-id1165137646696\">\r\n<\/span><\/p>\r\n\r\n\r\n[caption id=\"\" align=\"aligncenter\" width=\"487\"]<img src=\"https:\/\/s3-us-west-2.amazonaws.com\/courses-images-archive-read-only\/wp-content\/uploads\/sites\/1227\/2015\/04\/03010549\/CNX_Precalc_Figure_01_02_0262.jpg\" alt=\"Graph of the entire function.\" width=\"487\" height=\"333\" \/> <b>Figure 24<\/b>[\/caption]\r\n\r\n<\/div>\r\n<div id=\"fs-id1165135188517\" class=\"commentary\">\r\n<h3>Analysis of the Solution<\/h3>\r\n<p id=\"fs-id1165134389893\">Note that the graph does pass the vertical line test even at [latex]x=1[\/latex] and [latex]x=2[\/latex] because the points [latex]\\left(1,3\\right)[\/latex] and [latex]\\left(2,2\\right)[\/latex] are not part of the graph of the function, though [latex]\\left(1,1\\right)[\/latex]\u00a0and [latex]\\left(2,3\\right)[\/latex] are.<\/p>\r\n\r\n<\/div>\r\n<\/div>\r\n<\/div>\r\n<div class=\"bcc-box bcc-success\">\r\n<h3>Try It 8<\/h3>\r\nGraph the following piecewise function.\r\n<div style=\"text-align: center\">[latex]f\\left(x\\right)=\\begin{cases}{ x}^{3} \\text{ if }{ x }&amp;lt{-1 }\\\\ { -2 } \\text{ if } { -1 }&amp;lt{ x }&amp;lt{ 4 }\\\\ \\sqrt{x} \\text{ if }{ x }&amp;gt{ 4 }\\end{cases}[\/latex]<\/div>\r\n<div><a href=\"https:\/\/courses.lumenlearning.com\/precalcone\/chapter\/solutions-2\/\" target=\"_blank\">Solution<\/a><\/div>\r\n<\/div>\r\n<div id=\"fs-id1165137810682\" class=\"note precalculus qa textbox\">\r\n<h3>Q&amp;A<\/h3>\r\n<p id=\"fs-id1165137527804\"><strong>Can more than one formula from a piecewise function be applied to a value in the domain?<\/strong><\/p>\r\n<p id=\"fs-id1165137464467\"><em>No. Each value corresponds to one equation in a piecewise formula.<\/em><\/p>\r\n\r\n<\/div>","rendered":"<p>Sometimes, we come across a function that requires more than one formula in order to obtain the given output. For example, in the toolkit functions, we introduced the absolute value function [latex]f\\left(x\\right)=|x|[\/latex]. With a domain of all real numbers and a range of values greater than or equal to 0, <strong>absolute value<\/strong> can be defined as the <strong>magnitude<\/strong>, or <strong>modulus<\/strong>, of a real number value regardless of sign. It is the distance from 0 on the number line. All of these definitions require the output to be greater than or equal to 0.<\/p>\n<p id=\"fs-id1165137558775\">If we input 0, or a positive value, the output is the same as the input.<\/p>\n<div id=\"fs-id1165135194329\" class=\"equation unnumbered\" style=\"text-align: center\">[latex]f\\left(x\\right)=x\\text{ if }x\\ge 0[\/latex]<\/div>\n<p id=\"fs-id1165137529947\">If we input a negative value, the output is the opposite of the input.<\/p>\n<div id=\"fs-id1165133112779\" class=\"equation unnumbered\" style=\"text-align: center\">[latex]f\\left(x\\right)=-x\\text{ if }x<0[\/latex]<\/div>\n<p id=\"fs-id1165137863778\">Because this requires two different processes or pieces, the absolute value function is an example of a piecewise function. A <strong>piecewise function<\/strong> is a function in which more than one formula is used to define the output over different pieces of the domain.<\/p>\n<p id=\"fs-id1165134042316\">We use piecewise functions to describe situations in which a rule or relationship changes as the input value crosses certain &#8220;boundaries.&#8221; For example, we often encounter situations in business for which the cost per piece of a certain item is discounted once the number ordered exceeds a certain value. Tax brackets are another real-world example of piecewise functions. For example, consider a simple tax system in which incomes up to $10,000 are taxed at 10%, and any additional income is taxed at 20%. The tax on a total income, S, would be\u00a00.1S if [latex]{S}\\le\\[\/latex] $10,000\u00a0and 1000 + 0.2 (S &#8211; $10,000),\u00a0if S&gt; $10,000.<\/p>\n<div id=\"fs-id1165137531241\" class=\"note textbox\">\n<h3 class=\"title\">A General Note: Piecewise Function<\/h3>\n<p id=\"fs-id1165135504970\">A piecewise function is a function in which more than one formula is used to define the output. Each formula has its own domain, and the domain of the function is the union of all these smaller domains. We notate this idea like this:<\/p>\n<p>[latex]f\\left(x\\right)=\\begin{cases}\\text{formula 1 if x is in domain 1}\\\\ \\text{formula 2 if x is in domain 2}\\\\ \\text{formula 3 if x is in domain 3}\\end{cases}[\/latex]<\/p>\n<p>In piecewise notation, the absolute value function is<\/p>\n<div id=\"fs-id1165135190749\" class=\"equation unnumbered\" style=\"text-align: center\">[latex]|x|=\\begin{cases}x\\text{ if }x\\ge 0\\\\ -x\\text{ if }x<0\\end{cases}[\/latex]<\/div>\n<\/div>\n<div id=\"fs-id1165137768426\" class=\"note precalculus howto textbox\">\n<h3>How To:\u00a0Given a piecewise function, write the formula and identify the domain for each interval.<strong><br \/>\n<\/strong><\/h3>\n<ol id=\"fs-id1165135443772\">\n<li>Identify the intervals for which different rules apply.<\/li>\n<li>Determine formulas that describe how to calculate an output from an input in each interval.<\/li>\n<li>Use braces and if-statements to write the function.<\/li>\n<\/ol>\n<\/div>\n<div class=\"textbox shaded\">\n<h3>Example 11: Writing a Piecewise Function<\/h3>\n<p>A museum charges $5 per person for a guided tour with a group of 1 to 9 people or a fixed $50 fee for a group of 10 or more people. Write a <strong>function<\/strong> relating the number of people, [latex]n[\/latex], to the cost, [latex]C[\/latex].<\/p>\n<\/div>\n<div class=\"textbox shaded\">\n<h3>Solution<\/h3>\n<p>Two different formulas will be needed. For <em>n<\/em>-values under 10, C=5n. For values of n that are 10 or greater, C=50.<\/p>\n<p>C(n)=[latex]\\begin{cases}{5n}\\text{ if }{0}<{n}<{10}\\\\ 50\\text{ if }{n}\\ge 10\\end{cases}[\/latex]\n\n&nbsp;\n\n<\/div>\n<div>\n<h3>Analysis of the Solution<\/h3>\n<p>The function is represented in Figure 21. The graph is a diagonal line from [latex]n=0[\/latex] to [latex]n=10[\/latex] and a constant after that. In this example, the two formulas agree at the meeting point where [latex]n=10[\/latex], but not all piecewise functions have this property.<\/p>\n<div style=\"width: 370px\" class=\"wp-caption aligncenter\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/s3-us-west-2.amazonaws.com\/courses-images-archive-read-only\/wp-content\/uploads\/sites\/1227\/2015\/04\/03010548\/CNX_Precalc_Figure_01_02_0212.jpg\" alt=\"Graph of C(n).\" width=\"360\" height=\"294\" \/><\/p>\n<p class=\"wp-caption-text\"><b>Figure 21<\/b><\/p>\n<\/div>\n<\/div>\n<p><iframe loading=\"lazy\" id=\"oembed-1\" title=\"Ex 2:  Graph a Piecewise Defined Function\" width=\"500\" height=\"281\" src=\"https:\/\/www.youtube.com\/embed\/B1jfpiI-QQ8?feature=oembed&#38;rel=0\" frameborder=\"0\" allowfullscreen=\"allowfullscreen\"><\/iframe><\/p>\n<div id=\"Example_01_02_12\" class=\"example\">\n<div id=\"fs-id1165135436662\" class=\"exercise\">\n<div id=\"fs-id1165135436664\" class=\"problem textbox shaded\">\n<h3>Example 12: Working with a Piecewise Function<\/h3>\n<p id=\"fs-id1165137938645\">A cell phone company uses the function below to determine the cost, [latex]C[\/latex], in dollars for [latex]g[\/latex] gigabytes of data transfer.<\/p>\n<div id=\"fs-id1165137660470\" class=\"equation unnumbered\" style=\"text-align: center\">[latex]C\\left(g\\right)=\\begin{cases}{25} \\text{ if }{ 0 }<{ g }<{ 2 }\\\\ { 25+10 }\\left(g - 2\\right) \\text{ if }{ g}\\ge{ 2 }\\end{cases}[\/latex]<\/div>\n<p id=\"fs-id1165135193798\">Find the cost of using 1.5 gigabytes of data and the cost of using 4 gigabytes of data.<\/p>\n<\/div>\n<div id=\"fs-id1165135177567\" class=\"solution textbox shaded\">\n<h3>Solution<\/h3>\n<p id=\"fs-id1165134373545\">To find the cost of using 1.5 gigabytes of data, C(1.5), we first look to see which part of the domain our input falls in. Because 1.5 is less than 2, we use the first formula.<\/p>\n<p>C(1.5) = $25<\/p>\n<p id=\"fs-id1165135440213\">To find the cost of using 4 gigabytes of data, C(4), we see that our input of 4 is greater than 2, so we use the second formula.<\/p>\n<div>C(4)=25 + 10( 4-2) =$45<\/div>\n<\/div>\n<div id=\"fs-id1165137634432\" class=\"commentary\">\n<h3>Analysis of the Solution<\/h3>\n<p>The function is represented in Figure 22. We can see where the function changes from a constant to a shifted and stretched identity at [latex]g=2[\/latex]. We plot the graphs for the different formulas on a common set of axes, making sure each formula is applied on its proper domain.<\/p>\n<div style=\"width: 497px\" class=\"wp-caption aligncenter\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/s3-us-west-2.amazonaws.com\/courses-images-archive-read-only\/wp-content\/uploads\/sites\/1227\/2015\/04\/03010548\/CNX_Precalc_Figure_01_02_0222.jpg\" alt=\"Graph of C(g)\" width=\"487\" height=\"296\" \/><\/p>\n<p class=\"wp-caption-text\"><b>Figure 22<\/b><\/p>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<div id=\"fs-id1165137600493\" class=\"note precalculus howto textbox\">\n<h3 id=\"fs-id1165135532516\">How To:\u00a0Given a piecewise function, sketch a graph.<\/h3>\n<ol id=\"fs-id1165137588539\">\n<li>Indicate on the <em>x<\/em>-axis the boundaries defined by the intervals on each piece of the domain.<\/li>\n<li>For each piece of the domain, graph on that interval using the corresponding equation pertaining to that piece. Do not graph two functions over one interval because it would violate the criteria of a function.<\/li>\n<\/ol>\n<\/div>\n<div id=\"Example_01_02_13\" class=\"example\">\n<div id=\"fs-id1165137781618\" class=\"exercise\">\n<div id=\"fs-id1165135412870\" class=\"problem textbox shaded\">\n<h3>Example 13: Graphing a Piecewise Function<\/h3>\n<p id=\"fs-id1165137838785\">Sketch a graph of the function.<\/p>\n<div id=\"fs-id1165137475346\" class=\"equation unnumbered\" style=\"text-align: center\">[latex]f\\left(x\\right)=\\begin{cases}{ x }^{2} \\text{ if }{ x }\\le{ 1 }\\\\ { 3 } \\text{ if } { 1 }&lt{ x }\\le 2\\\\ { x } \\text{ if }{ x }&gt{ 2 }\\end{cases}[\/latex]<\/div>\n<\/div>\n<div id=\"fs-id1165135487148\" class=\"solution textbox shaded\">\n<h3>Solution<\/h3>\n<p id=\"fs-id1165135487150\">Each of the component functions is from our library of toolkit functions, so we know their shapes. We can imagine graphing each function and then limiting the graph to the indicated domain. At the endpoints of the domain, we draw open circles to indicate where the endpoint is not included because of a less-than or greater-than inequality; we draw a closed circle where the endpoint is included because of a less-than-or-equal-to or greater-than-or-equal-to inequality.<\/p>\n<p id=\"fs-id1165137642848\">Below are\u00a0the three components of the piecewise function graphed on separate coordinate systems.<\/p>\n<figure id=\"Figure_01_02_023\"><figcaption>(a) [latex]f\\left(x\\right)={x}^{2}\\text{ if }x\\le 1[\/latex]; (b) [latex]f\\left(x\\right)=3\\text{ if 1< }x\\le 2[\/latex]; (c) [latex]f\\left(x\\right)=x\\text{ if }x>2[\/latex]<\/figcaption><div style=\"width: 984px\" class=\"wp-caption aligncenter\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/s3-us-west-2.amazonaws.com\/courses-images-archive-read-only\/wp-content\/uploads\/sites\/1227\/2015\/04\/03010549\/CNX_Precalc_Figure_01_02_023abc2.jpg\" alt=\"Graph of each part of the piece-wise function f(x)\" width=\"974\" height=\"327\" \/><\/p>\n<p class=\"wp-caption-text\"><b>Figure 23<\/b><\/p>\n<\/div>\n<\/figure>\n<p id=\"fs-id1165137676209\">Now that we have sketched each piece individually, we combine them in the same coordinate plane.<span id=\"fs-id1165137646696\"><br \/>\n<\/span><\/p>\n<div style=\"width: 497px\" class=\"wp-caption aligncenter\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/s3-us-west-2.amazonaws.com\/courses-images-archive-read-only\/wp-content\/uploads\/sites\/1227\/2015\/04\/03010549\/CNX_Precalc_Figure_01_02_0262.jpg\" alt=\"Graph of the entire function.\" width=\"487\" height=\"333\" \/><\/p>\n<p class=\"wp-caption-text\"><b>Figure 24<\/b><\/p>\n<\/div>\n<\/div>\n<div id=\"fs-id1165135188517\" class=\"commentary\">\n<h3>Analysis of the Solution<\/h3>\n<p id=\"fs-id1165134389893\">Note that the graph does pass the vertical line test even at [latex]x=1[\/latex] and [latex]x=2[\/latex] because the points [latex]\\left(1,3\\right)[\/latex] and [latex]\\left(2,2\\right)[\/latex] are not part of the graph of the function, though [latex]\\left(1,1\\right)[\/latex]\u00a0and [latex]\\left(2,3\\right)[\/latex] are.<\/p>\n<\/div>\n<\/div>\n<\/div>\n<div class=\"bcc-box bcc-success\">\n<h3>Try It 8<\/h3>\n<p>Graph the following piecewise function.<\/p>\n<div style=\"text-align: center\">[latex]f\\left(x\\right)=\\begin{cases}{ x}^{3} \\text{ if }{ x }&lt{-1 }\\\\ { -2 } \\text{ if } { -1 }&lt{ x }&lt{ 4 }\\\\ \\sqrt{x} \\text{ if }{ x }&gt{ 4 }\\end{cases}[\/latex]<\/div>\n<div><a href=\"https:\/\/courses.lumenlearning.com\/precalcone\/chapter\/solutions-2\/\" target=\"_blank\">Solution<\/a><\/div>\n<\/div>\n<div id=\"fs-id1165137810682\" class=\"note precalculus qa textbox\">\n<h3>Q&amp;A<\/h3>\n<p id=\"fs-id1165137527804\"><strong>Can more than one formula from a piecewise function be applied to a value in the domain?<\/strong><\/p>\n<p id=\"fs-id1165137464467\"><em>No. Each value corresponds to one equation in a piecewise formula.<\/em><\/p>\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-10720\">\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 class=\"license-attribution-dropdown-subheading\">All rights reserved content<\/div><ul class=\"citation-list\"><li>Ex 2: Graph a Piecewise Defined Function. <strong>Authored by<\/strong>: Mathispower4u. <strong>Located at<\/strong>: <a target=\"_blank\" href=\"https:\/\/www.youtube.com\/watch?v=B1jfpiI-QQ8&#038;feature=youtu.be\">https:\/\/www.youtube.com\/watch?v=B1jfpiI-QQ8&#038;feature=youtu.be<\/a>. <strong>License<\/strong>: <em>All Rights Reserved<\/em>. <strong>License Terms<\/strong>: Standard YouTube License<\/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":6,"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.\"},{\"type\":\"copyrighted_video\",\"description\":\"Ex 2: Graph a Piecewise Defined Function\",\"author\":\"Mathispower4u\",\"organization\":\"\",\"url\":\"https:\/\/www.youtube.com\/watch?v=B1jfpiI-QQ8&feature=youtu.be\",\"project\":\"\",\"license\":\"arr\",\"license_terms\":\"Standard YouTube License\"}]","CANDELA_OUTCOMES_GUID":"","pb_show_title":"on","pb_short_title":"","pb_subtitle":"","pb_authors":[],"pb_section_license":""},"chapter-type":[],"contributor":[],"license":[],"class_list":["post-10720","chapter","type-chapter","status-publish","hentry"],"part":10717,"_links":{"self":[{"href":"https:\/\/courses.lumenlearning.com\/ccbcmd-math\/wp-json\/pressbooks\/v2\/chapters\/10720","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/courses.lumenlearning.com\/ccbcmd-math\/wp-json\/pressbooks\/v2\/chapters"}],"about":[{"href":"https:\/\/courses.lumenlearning.com\/ccbcmd-math\/wp-json\/wp\/v2\/types\/chapter"}],"author":[{"embeddable":true,"href":"https:\/\/courses.lumenlearning.com\/ccbcmd-math\/wp-json\/wp\/v2\/users\/276"}],"version-history":[{"count":22,"href":"https:\/\/courses.lumenlearning.com\/ccbcmd-math\/wp-json\/pressbooks\/v2\/chapters\/10720\/revisions"}],"predecessor-version":[{"id":15210,"href":"https:\/\/courses.lumenlearning.com\/ccbcmd-math\/wp-json\/pressbooks\/v2\/chapters\/10720\/revisions\/15210"}],"part":[{"href":"https:\/\/courses.lumenlearning.com\/ccbcmd-math\/wp-json\/pressbooks\/v2\/parts\/10717"}],"metadata":[{"href":"https:\/\/courses.lumenlearning.com\/ccbcmd-math\/wp-json\/pressbooks\/v2\/chapters\/10720\/metadata\/"}],"wp:attachment":[{"href":"https:\/\/courses.lumenlearning.com\/ccbcmd-math\/wp-json\/wp\/v2\/media?parent=10720"}],"wp:term":[{"taxonomy":"chapter-type","embeddable":true,"href":"https:\/\/courses.lumenlearning.com\/ccbcmd-math\/wp-json\/pressbooks\/v2\/chapter-type?post=10720"},{"taxonomy":"contributor","embeddable":true,"href":"https:\/\/courses.lumenlearning.com\/ccbcmd-math\/wp-json\/wp\/v2\/contributor?post=10720"},{"taxonomy":"license","embeddable":true,"href":"https:\/\/courses.lumenlearning.com\/ccbcmd-math\/wp-json\/wp\/v2\/license?post=10720"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}