{"id":2841,"date":"2024-06-10T17:53:27","date_gmt":"2024-06-10T17:53:27","guid":{"rendered":"https:\/\/content.one.lumenlearning.com\/calculus1\/?post_type=chapter&#038;p=2841"},"modified":"2024-08-05T12:38:50","modified_gmt":"2024-08-05T12:38:50","slug":"the-derivative-as-a-function-learn-it-3","status":"publish","type":"chapter","link":"https:\/\/content.one.lumenlearning.com\/calculus1\/chapter\/the-derivative-as-a-function-learn-it-3\/","title":{"raw":"The Derivative as a Function: Learn It 3","rendered":"The Derivative as a Function: Learn It 3"},"content":{"raw":"<h2>Derivatives and Continuity<\/h2>\r\n<p id=\"fs-id1169738188294\">Now that we can graph a derivative, let\u2019s examine the behavior of the graphs. <br \/>\r\n<br \/>\r\nFirst, we consider the relationship between differentiability and continuity. We will see that if a function is differentiable at a point, it must be continuous there; however, a function that is continuous at a point need not be differentiable at that point. In fact, a function may be continuous at a point and fail to be differentiable at the point for one of several reasons.<\/p>\r\n<section class=\"textbox keyTakeaway\">\r\n<h3 style=\"text-align: left;\">differentiability implies continuity<\/h3>\r\n<p>Let [latex]f(x)[\/latex] be a function and [latex]a[\/latex] be in its domain. If [latex]f(x)[\/latex] is differentiable at [latex]a[\/latex], then [latex]f[\/latex] is continuous at [latex]a[\/latex].<\/p>\r\n<\/section>\r\n<section class=\"textbox connectIt\">\r\n<p style=\"text-align: center;\"><strong>Proof<\/strong><\/p>\r\n<hr \/>\r\n<p id=\"fs-id1169738184909\">If [latex]f(x)[\/latex] is differentiable at [latex]a[\/latex], then [latex]f^{\\prime}(a)[\/latex] exists and<\/p>\r\n<div id=\"fs-id1169738220653\" class=\"equation unnumbered\" style=\"text-align: center;\">[latex]f^{\\prime}(a)=\\underset{x\\to a}{\\lim}\\dfrac{f(x)-f(a)}{x-a}[\/latex]<\/div>\r\n<p>&nbsp;<\/p>\r\n<p id=\"fs-id1169737140882\">We want to show that [latex]f(x)[\/latex] is continuous at [latex]a[\/latex] by showing that [latex]\\underset{x\\to a}{\\lim}f(x)=f(a)[\/latex]. Thus,<\/p>\r\n<div id=\"fs-id1169738221978\" class=\"equation unnumbered\">[latex]\\begin{array}{lllll} \\underset{x\\to a}{\\lim}f(x) &amp; =\\underset{x\\to a}{\\lim}(f(x)-f(a)+f(a)) &amp; &amp; &amp; \\\\ &amp; =\\underset{x\\to a}{\\lim}(\\frac{f(x)-f(a)}{x-a}\\cdot (x-a)+f(a)) &amp; &amp; &amp; \\text{Multiply and divide} \\, f(x)-f(a) \\, \\text{by} \\, x-a. \\\\ &amp; =(\\underset{x\\to a}{\\lim}\\frac{f(x)-f(a)}{x-a}) \\cdot (\\underset{x\\to a}{\\lim}(x-a))+\\underset{x\\to a}{\\lim}f(a) &amp; &amp; &amp; \\\\ &amp; =f^{\\prime}(a) \\cdot 0+f(a) &amp; &amp; &amp; \\\\ &amp; =f(a). &amp; &amp; &amp; \\end{array}[\/latex]<\/div>\r\n<p>&nbsp;<\/p>\r\n<p id=\"fs-id1169738226778\">Therefore, since [latex]f(a)[\/latex] is defined and [latex]\\underset{x\\to a}{\\lim}f(x)=f(a)[\/latex], we conclude that [latex]f[\/latex] is continuous at [latex]a[\/latex].<\/p>\r\n<p>[latex]_\\blacksquare[\/latex]<\/p>\r\n<\/section>\r\n<p>We have just proven that differentiability implies continuity, but now we consider whether continuity implies differentiability. <br \/>\r\n<br \/>\r\nTo determine an answer to this question, we examine the function [latex]f(x)=|x|[\/latex]. This function is continuous everywhere; however, [latex]f^{\\prime}(0)[\/latex] is undefined. This observation leads us to believe that continuity does not imply differentiability. Let\u2019s explore further.<\/p>\r\n<section class=\"textbox example\">\r\n<p id=\"fs-id1169737978576\">For [latex]f(x)=|x|[\/latex],<\/p>\r\n<div id=\"fs-id1169738223612\" class=\"equation unnumbered\" style=\"text-align: center;\">[latex]f^{\\prime}(0)=\\underset{x\\to 0}{\\lim}\\dfrac{f(x)-f(0)}{x-0}=\\underset{x\\to 0}{\\lim}\\dfrac{|x|-|0|}{x-0}=\\underset{x\\to 0}{\\lim}\\dfrac{|x|}{x}[\/latex]<\/div>\r\n<p id=\"fs-id1169738216093\">This limit does not exist because<\/p>\r\n<div id=\"fs-id1169738216096\" class=\"equation unnumbered\" style=\"text-align: center;\">[latex]\\underset{x\\to 0^-}{\\lim}\\dfrac{|x|}{x}=-1 \\, \\text{and} \\, \\underset{x\\to 0^+}{\\lim}\\dfrac{|x|}{x}=1[\/latex]<\/div>\r\n\r\n\r\n[caption id=\"\" align=\"aligncenter\" width=\"487\"]<img src=\"https:\/\/s3-us-west-2.amazonaws.com\/courses-images\/wp-content\/uploads\/sites\/2332\/2018\/01\/11205235\/CNX_Calc_Figure_03_02_006.jpg\" alt=\"The function f(x) = the absolute value of x is graphed. It consists of two straight line segments: the first follows the equation y = \u2212x and ends at the origin; the second follows the equation y = x and starts at the origin.\" width=\"487\" height=\"471\" \/> Figure 6. The function [latex]f(x)=|x|[\/latex] is continuous at 0 but is not differentiable at 0.[\/caption]\r\n<\/section>\r\n<p>Let\u2019s consider some additional situations in which a continuous function fails to be differentiable.<\/p>\r\n<section class=\"textbox example\">\r\n<p>Consider the function [latex]f(x)=\\sqrt[3]{x}[\/latex]:<\/p>\r\n<div id=\"fs-id1169738228211\" class=\"equation unnumbered\" style=\"text-align: center;\">[latex]f^{\\prime}(0)=\\underset{x\\to 0}{\\lim}\\dfrac{\\sqrt[3]{x}-0}{x-0}=\\underset{x\\to 0}{\\lim}\\dfrac{1}{\\sqrt[3]{x^2}}=+\\infty[\/latex]<\/div>\r\n<p id=\"fs-id1169738217227\">Thus [latex]f^{\\prime}(0)[\/latex] does not exist. A quick look at the graph of [latex]f(x)=\\sqrt[3]{x}[\/latex] clarifies the situation. The function has a vertical tangent line at [latex]0[\/latex] (Figure 7).<\/p>\r\n\r\n\r\n[caption id=\"\" align=\"aligncenter\" width=\"487\"]<img src=\"https:\/\/s3-us-west-2.amazonaws.com\/courses-images\/wp-content\/uploads\/sites\/2332\/2018\/01\/11205237\/CNX_Calc_Figure_03_02_007.jpg\" alt=\"The function f(x) = the cube root of x is graphed. It has a vertical tangent at x = 0.\" width=\"487\" height=\"275\" \/> Figure 7. The function [latex]f(x)=\\sqrt[3]{x}[\/latex] has a vertical tangent at [latex]x=0[\/latex]. It is continuous at 0 but is not differentiable at 0.[\/caption]\r\n<\/section>\r\n<p id=\"fs-id1169738217510\">The function [latex]f(x)=\\begin{cases} x \\sin\\left(\\frac{1}{x}\\right) &amp; \\text{ if } \\, x \\ne 0 \\\\ 0 &amp; \\text{ if } \\, x = 0 \\end{cases}[\/latex] also has a derivative that exhibits interesting behavior at [latex]0[\/latex].<\/p>\r\n<section class=\"textbox example\">\r\n<p id=\"fs-id1169738217510\">We see that,<\/p>\r\n<div id=\"fs-id1169738225665\" class=\"equation unnumbered\" style=\"text-align: center;\">[latex]f^{\\prime}(0)=\\underset{x\\to 0}{\\lim}\\dfrac{x \\sin\\left(\\frac{1}{x}\\right)-0}{x-0}=\\underset{x\\to 0}{\\lim} \\sin\\left(\\dfrac{1}{x}\\right)[\/latex]<\/div>\r\n<p id=\"fs-id1169737946726\">This limit does not exist, essentially because the slopes of the secant lines continuously change direction as they approach zero (Figure 8).<\/p>\r\n\r\n\r\n[caption id=\"\" align=\"aligncenter\" width=\"426\"]<img src=\"https:\/\/s3-us-west-2.amazonaws.com\/courses-images\/wp-content\/uploads\/sites\/2332\/2018\/01\/11205240\/CNX_Calc_Figure_03_02_008.jpg\" alt=\"The function f(x) = x sin (1\/2) if x does not equal 0 and f(x) = 0 if x = 0 is graphed. It looks like a rapidly oscillating sinusoidal function with amplitude decreasing to 0 at the origin.\" width=\"426\" height=\"391\" \/> Figure 8. The function [latex]f(x)=\\begin{cases} x \\sin(\\frac{1}{x}) &amp; \\text{ if } \\, x \\ne 0 \\\\ 0 &amp; \\text{ if } \\, x = 0 \\end{cases}[\/latex] is not differentiable at 0.[\/caption]\r\n<\/section>\r\n<p id=\"fs-id1169738042233\">In summary:<\/p>\r\n<ol id=\"fs-id1169738042236\">\r\n\t<li>We observe that if a function is not continuous, it cannot be differentiable, since every differentiable function must be continuous. However, if a function is continuous, it may still fail to be differentiable.<\/li>\r\n\t<li>We saw that [latex]f(x)=|x|[\/latex] failed to be differentiable at [latex]0[\/latex] because the limit of the slopes of the tangent lines on the left and right were not the same. Visually, this resulted in a sharp corner on the graph of the function at [latex]0[\/latex]. From this we conclude that in order to be differentiable at a point, a function must be \u201csmooth\u201d at that point.<\/li>\r\n\t<li>As we saw in the example of [latex]f(x)=\\sqrt[3]{x}[\/latex], a function fails to be differentiable at a point where there is a vertical tangent line.<\/li>\r\n\t<li>As we saw with [latex]f(x)=\\begin{cases} x \\sin(\\frac{1}{x}) &amp; \\text{ if } \\, x \\ne 0 \\\\ 0 &amp; \\text{ if } \\, x = 0 \\end{cases}[\/latex] a function may fail to be differentiable at a point in more complicated ways as well.<\/li>\r\n<\/ol>\r\n<section class=\"textbox example\">\r\n<p>A toy company wants to design a track for a toy car that starts out along a parabolic curve and then converts to a straight line (Figure 9). The function that describes the track is to have the form<\/p>\r\n<center>[latex]f(x)=\\begin{cases} \\frac{1}{10}x^2 + bx + c &amp; \\text{ if } \\, x &lt; -10 \\\\ -\\frac{1}{4}x + \\frac{5}{2} &amp; \\text{ if } \\, x \\ge -10 \\end{cases}[\/latex],<\/center>\r\n<p id=\"fs-id1169738218195\">where [latex]x[\/latex] and [latex]f(x)[\/latex] are in inches. <br \/>\r\n<br \/>\r\nFor the car to move smoothly along the track, the function [latex]f(x)[\/latex] must be both continuous and differentiable at [latex]-10[\/latex]. Find values of [latex]b[\/latex] and [latex]c[\/latex] that make [latex]f(x)[\/latex] both continuous and differentiable.<\/p>\r\n\r\n\r\n[caption id=\"\" align=\"aligncenter\" width=\"487\"]<img src=\"https:\/\/s3-us-west-2.amazonaws.com\/courses-images\/wp-content\/uploads\/sites\/2332\/2018\/01\/11205243\/CNX_Calc_Figure_03_02_009.jpg\" alt=\"A cart is drawn on a line that curves through (\u221210, 5) to (10, 0) with y-intercept roughly (0, 2).\" width=\"487\" height=\"237\" \/> Figure 9. For the car to move smoothly along the track, the function must be both continuous and differentiable.[\/caption]\r\n\r\n\r\n<p>[reveal-answer q=\"fs-id1169738222036\"]Show Solution[\/reveal-answer]<br \/>\r\n[hidden-answer a=\"fs-id1169738222036\"]<br \/>\r\n<br \/>\r\n<\/p>\r\n<p id=\"fs-id1169738222036\">For the function to be continuous at [latex]x=-10, \\, \\underset{x\\to 10^-}{\\lim}f(x)=f(-10)[\/latex]. Thus, since<\/p>\r\n<div id=\"fs-id1169737950192\" class=\"equation unnumbered\" style=\"text-align: center;\">[latex]\\underset{x\\to \u221210^-}{\\lim}f(x)=\\frac{1}{10}(-10)^2-10b+c=10-10b+c[\/latex]<\/div>\r\n<p id=\"fs-id1169738216001\">and [latex]f(-10)=5[\/latex], we must have [latex]10-10b+c=5[\/latex]. Equivalently, we have [latex]c=10b-5[\/latex].<\/p>\r\n<p id=\"fs-id1169738219145\">For the function to be differentiable at [latex]-10[\/latex],<\/p>\r\n<div id=\"fs-id1169738219154\" class=\"equation unnumbered\" style=\"text-align: center;\">[latex]f^{\\prime}(10)=\\underset{x\\to \u221210}{\\lim}\\frac{f(x)-f(-10)}{x+10}[\/latex]<\/div>\r\n<p id=\"fs-id1169738224010\">must exist.<\/p>\r\n<p>Since [latex]f(x)[\/latex] is defined using different rules on the right and the left, we must evaluate this limit from the right and the left and then set them equal to each other:<\/p>\r\n<div id=\"fs-id1169738183518\" class=\"equation unnumbered\" style=\"text-align: center;\">[latex]\\begin{array}{lllll} \\underset{x\\to \u221210^-}{\\lim}\\frac{f(x)-f(-10)}{x+10} &amp; =\\underset{x\\to \u221210^-}{\\lim}\\frac{\\frac{1}{10}x^2+bx+c-5}{x+10} &amp; &amp; &amp; \\\\ &amp; =\\underset{x\\to \u221210^-}{\\lim}\\frac{\\frac{1}{10}x^2+bx+(10b-5)-5}{x+10} &amp; &amp; &amp; \\text{Substitute} \\, c=10b-5. \\\\ &amp; =\\underset{x\\to \u221210^-}{\\lim}\\frac{x^2-100+10bx+100b}{10(x+10)} &amp; &amp; &amp; \\\\ &amp; =\\underset{x\\to \u221210^-}{\\lim}\\frac{(x+10)(x-10+10b)}{10(x+10)} &amp; &amp; &amp; \\text{Factor by grouping.} \\\\ &amp; =b-2 &amp; &amp; &amp; \\end{array}[\/latex]<\/div>\r\n<p id=\"fs-id1169738183170\">We also have<\/p>\r\n<div id=\"fs-id1169738183173\" class=\"equation unnumbered\" style=\"text-align: center;\">[latex]\\begin{array}{ll} \\underset{x\\to \u221210^+}{\\lim}\\frac{f(x)-f(-10)}{x+10} &amp; =\\underset{x\\to \u221210^+}{\\lim}\\frac{-\\frac{1}{4}x+\\frac{5}{2}-5}{x+10} \\\\ &amp; =\\underset{x\\to \u221210^+}{\\lim}\\frac{\u2212(x+10)}{4(x+10)} \\\\ &amp; =-\\frac{1}{4} \\end{array}[\/latex]<\/div>\r\n<p id=\"fs-id1169738221364\">This gives us [latex]b-2=-\\frac{1}{4}[\/latex].<\/p>\r\n<p>Thus [latex]b=\\frac{7}{4}[\/latex] and [latex]c=10(\\frac{7}{4})-5=\\frac{25}{2}[\/latex].<\/p>\r\n<p>Watch the following video to see the worked solution to this example.<\/p>\r\n<center><iframe title=\"YouTube video player\" src=\"https:\/\/www.youtube.com\/embed\/w9m4h4i47-M?controls=0&amp;start=904&amp;end=1275&amp;autoplay=0\" width=\"750\" height=\"450\" frameborder=\"0\" allowfullscreen=\"allowfullscreen\" data-mce-fragment=\"1\"><\/iframe><\/center>\r\n<p>For closed captioning, open the video on its original page by clicking the Youtube logo in the lower right-hand corner of the video display. In YouTube, the video will begin at the same starting point as this clip, but will continue playing until the very end.<\/p>\r\n<p>You can view the <a href=\"https:\/\/oerfiles.s3.us-west-2.amazonaws.com\/Calculus\/Calculus1+Videos\/3.2TheDerivativeAsAFunction904to1275_transcript.txt\" target=\"_blank\" rel=\"noopener\">transcript for this segmented clip of \"3.2 The Derivative as a Function\" here (opens in new window)<\/a>.<\/p>\r\n<p>[\/hidden-answer]<\/p>\r\n<\/section>\r\n<section class=\"textbox example\">\r\n<p id=\"fs-id1169738185323\">Find values of [latex]a[\/latex] and [latex]b[\/latex] that make [latex]f(x)=\\begin{cases} ax+b &amp; \\text{ if } \\, x &lt; 3 \\\\ x^2 &amp; \\text{ if } \\, x \\ge 3 \\end{cases}[\/latex] both continuous and differentiable at [latex]3[\/latex].<\/p>\r\n<p>[reveal-answer q=\"fs-id1169738225596\"]Show Solution[\/reveal-answer]<br \/>\r\n[hidden-answer a=\"fs-id1169738225596\"]<\/p>\r\n<p id=\"fs-id1169738225596\">[latex]a=6[\/latex] and [latex]b=-9[\/latex]<\/p>\r\n<p>[\/hidden-answer]<\/p>\r\n<\/section>","rendered":"<h2>Derivatives and Continuity<\/h2>\n<p id=\"fs-id1169738188294\">Now that we can graph a derivative, let\u2019s examine the behavior of the graphs. <\/p>\n<p>First, we consider the relationship between differentiability and continuity. We will see that if a function is differentiable at a point, it must be continuous there; however, a function that is continuous at a point need not be differentiable at that point. In fact, a function may be continuous at a point and fail to be differentiable at the point for one of several reasons.<\/p>\n<section class=\"textbox keyTakeaway\">\n<h3 style=\"text-align: left;\">differentiability implies continuity<\/h3>\n<p>Let [latex]f(x)[\/latex] be a function and [latex]a[\/latex] be in its domain. If [latex]f(x)[\/latex] is differentiable at [latex]a[\/latex], then [latex]f[\/latex] is continuous at [latex]a[\/latex].<\/p>\n<\/section>\n<section class=\"textbox connectIt\">\n<p style=\"text-align: center;\"><strong>Proof<\/strong><\/p>\n<hr \/>\n<p id=\"fs-id1169738184909\">If [latex]f(x)[\/latex] is differentiable at [latex]a[\/latex], then [latex]f^{\\prime}(a)[\/latex] exists and<\/p>\n<div id=\"fs-id1169738220653\" class=\"equation unnumbered\" style=\"text-align: center;\">[latex]f^{\\prime}(a)=\\underset{x\\to a}{\\lim}\\dfrac{f(x)-f(a)}{x-a}[\/latex]<\/div>\n<p>&nbsp;<\/p>\n<p id=\"fs-id1169737140882\">We want to show that [latex]f(x)[\/latex] is continuous at [latex]a[\/latex] by showing that [latex]\\underset{x\\to a}{\\lim}f(x)=f(a)[\/latex]. Thus,<\/p>\n<div id=\"fs-id1169738221978\" class=\"equation unnumbered\">[latex]\\begin{array}{lllll} \\underset{x\\to a}{\\lim}f(x) & =\\underset{x\\to a}{\\lim}(f(x)-f(a)+f(a)) & & & \\\\ & =\\underset{x\\to a}{\\lim}(\\frac{f(x)-f(a)}{x-a}\\cdot (x-a)+f(a)) & & & \\text{Multiply and divide} \\, f(x)-f(a) \\, \\text{by} \\, x-a. \\\\ & =(\\underset{x\\to a}{\\lim}\\frac{f(x)-f(a)}{x-a}) \\cdot (\\underset{x\\to a}{\\lim}(x-a))+\\underset{x\\to a}{\\lim}f(a) & & & \\\\ & =f^{\\prime}(a) \\cdot 0+f(a) & & & \\\\ & =f(a). & & & \\end{array}[\/latex]<\/div>\n<p>&nbsp;<\/p>\n<p id=\"fs-id1169738226778\">Therefore, since [latex]f(a)[\/latex] is defined and [latex]\\underset{x\\to a}{\\lim}f(x)=f(a)[\/latex], we conclude that [latex]f[\/latex] is continuous at [latex]a[\/latex].<\/p>\n<p>[latex]_\\blacksquare[\/latex]<br \/>\n<\/section>\n<p>We have just proven that differentiability implies continuity, but now we consider whether continuity implies differentiability. <\/p>\n<p>To determine an answer to this question, we examine the function [latex]f(x)=|x|[\/latex]. This function is continuous everywhere; however, [latex]f^{\\prime}(0)[\/latex] is undefined. This observation leads us to believe that continuity does not imply differentiability. Let\u2019s explore further.<\/p>\n<section class=\"textbox example\">\n<p id=\"fs-id1169737978576\">For [latex]f(x)=|x|[\/latex],<\/p>\n<div id=\"fs-id1169738223612\" class=\"equation unnumbered\" style=\"text-align: center;\">[latex]f^{\\prime}(0)=\\underset{x\\to 0}{\\lim}\\dfrac{f(x)-f(0)}{x-0}=\\underset{x\\to 0}{\\lim}\\dfrac{|x|-|0|}{x-0}=\\underset{x\\to 0}{\\lim}\\dfrac{|x|}{x}[\/latex]<\/div>\n<p id=\"fs-id1169738216093\">This limit does not exist because<\/p>\n<div id=\"fs-id1169738216096\" class=\"equation unnumbered\" style=\"text-align: center;\">[latex]\\underset{x\\to 0^-}{\\lim}\\dfrac{|x|}{x}=-1 \\, \\text{and} \\, \\underset{x\\to 0^+}{\\lim}\\dfrac{|x|}{x}=1[\/latex]<\/div>\n<figure style=\"width: 487px\" class=\"wp-caption aligncenter\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/s3-us-west-2.amazonaws.com\/courses-images\/wp-content\/uploads\/sites\/2332\/2018\/01\/11205235\/CNX_Calc_Figure_03_02_006.jpg\" alt=\"The function f(x) = the absolute value of x is graphed. It consists of two straight line segments: the first follows the equation y = \u2212x and ends at the origin; the second follows the equation y = x and starts at the origin.\" width=\"487\" height=\"471\" \/><figcaption class=\"wp-caption-text\">Figure 6. The function [latex]f(x)=|x|[\/latex] is continuous at 0 but is not differentiable at 0.<\/figcaption><\/figure>\n<\/section>\n<p>Let\u2019s consider some additional situations in which a continuous function fails to be differentiable.<\/p>\n<section class=\"textbox example\">\n<p>Consider the function [latex]f(x)=\\sqrt[3]{x}[\/latex]:<\/p>\n<div id=\"fs-id1169738228211\" class=\"equation unnumbered\" style=\"text-align: center;\">[latex]f^{\\prime}(0)=\\underset{x\\to 0}{\\lim}\\dfrac{\\sqrt[3]{x}-0}{x-0}=\\underset{x\\to 0}{\\lim}\\dfrac{1}{\\sqrt[3]{x^2}}=+\\infty[\/latex]<\/div>\n<p id=\"fs-id1169738217227\">Thus [latex]f^{\\prime}(0)[\/latex] does not exist. A quick look at the graph of [latex]f(x)=\\sqrt[3]{x}[\/latex] clarifies the situation. The function has a vertical tangent line at [latex]0[\/latex] (Figure 7).<\/p>\n<figure style=\"width: 487px\" class=\"wp-caption aligncenter\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/s3-us-west-2.amazonaws.com\/courses-images\/wp-content\/uploads\/sites\/2332\/2018\/01\/11205237\/CNX_Calc_Figure_03_02_007.jpg\" alt=\"The function f(x) = the cube root of x is graphed. It has a vertical tangent at x = 0.\" width=\"487\" height=\"275\" \/><figcaption class=\"wp-caption-text\">Figure 7. The function [latex]f(x)=\\sqrt[3]{x}[\/latex] has a vertical tangent at [latex]x=0[\/latex]. It is continuous at 0 but is not differentiable at 0.<\/figcaption><\/figure>\n<\/section>\n<p id=\"fs-id1169738217510\">The function [latex]f(x)=\\begin{cases} x \\sin\\left(\\frac{1}{x}\\right) & \\text{ if } \\, x \\ne 0 \\\\ 0 & \\text{ if } \\, x = 0 \\end{cases}[\/latex] also has a derivative that exhibits interesting behavior at [latex]0[\/latex].<\/p>\n<section class=\"textbox example\">\n<p>We see that,<\/p>\n<div id=\"fs-id1169738225665\" class=\"equation unnumbered\" style=\"text-align: center;\">[latex]f^{\\prime}(0)=\\underset{x\\to 0}{\\lim}\\dfrac{x \\sin\\left(\\frac{1}{x}\\right)-0}{x-0}=\\underset{x\\to 0}{\\lim} \\sin\\left(\\dfrac{1}{x}\\right)[\/latex]<\/div>\n<p id=\"fs-id1169737946726\">This limit does not exist, essentially because the slopes of the secant lines continuously change direction as they approach zero (Figure 8).<\/p>\n<figure style=\"width: 426px\" class=\"wp-caption aligncenter\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/s3-us-west-2.amazonaws.com\/courses-images\/wp-content\/uploads\/sites\/2332\/2018\/01\/11205240\/CNX_Calc_Figure_03_02_008.jpg\" alt=\"The function f(x) = x sin (1\/2) if x does not equal 0 and f(x) = 0 if x = 0 is graphed. It looks like a rapidly oscillating sinusoidal function with amplitude decreasing to 0 at the origin.\" width=\"426\" height=\"391\" \/><figcaption class=\"wp-caption-text\">Figure 8. The function [latex]f(x)=\\begin{cases} x \\sin(\\frac{1}{x}) &amp; \\text{ if } \\, x \\ne 0 \\\\ 0 &amp; \\text{ if } \\, x = 0 \\end{cases}[\/latex] is not differentiable at 0.<\/figcaption><\/figure>\n<\/section>\n<p id=\"fs-id1169738042233\">In summary:<\/p>\n<ol id=\"fs-id1169738042236\">\n<li>We observe that if a function is not continuous, it cannot be differentiable, since every differentiable function must be continuous. However, if a function is continuous, it may still fail to be differentiable.<\/li>\n<li>We saw that [latex]f(x)=|x|[\/latex] failed to be differentiable at [latex]0[\/latex] because the limit of the slopes of the tangent lines on the left and right were not the same. Visually, this resulted in a sharp corner on the graph of the function at [latex]0[\/latex]. From this we conclude that in order to be differentiable at a point, a function must be \u201csmooth\u201d at that point.<\/li>\n<li>As we saw in the example of [latex]f(x)=\\sqrt[3]{x}[\/latex], a function fails to be differentiable at a point where there is a vertical tangent line.<\/li>\n<li>As we saw with [latex]f(x)=\\begin{cases} x \\sin(\\frac{1}{x}) & \\text{ if } \\, x \\ne 0 \\\\ 0 & \\text{ if } \\, x = 0 \\end{cases}[\/latex] a function may fail to be differentiable at a point in more complicated ways as well.<\/li>\n<\/ol>\n<section class=\"textbox example\">\n<p>A toy company wants to design a track for a toy car that starts out along a parabolic curve and then converts to a straight line (Figure 9). The function that describes the track is to have the form<\/p>\n<div style=\"text-align: center;\">[latex]f(x)=\\begin{cases} \\frac{1}{10}x^2 + bx + c & \\text{ if } \\, x < -10 \\\\ -\\frac{1}{4}x + \\frac{5}{2} & \\text{ if } \\, x \\ge -10 \\end{cases}[\/latex],<\/div>\n<p id=\"fs-id1169738218195\">where [latex]x[\/latex] and [latex]f(x)[\/latex] are in inches. <\/p>\n<p>For the car to move smoothly along the track, the function [latex]f(x)[\/latex] must be both continuous and differentiable at [latex]-10[\/latex]. Find values of [latex]b[\/latex] and [latex]c[\/latex] that make [latex]f(x)[\/latex] both continuous and differentiable.<\/p>\n<figure style=\"width: 487px\" class=\"wp-caption aligncenter\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/s3-us-west-2.amazonaws.com\/courses-images\/wp-content\/uploads\/sites\/2332\/2018\/01\/11205243\/CNX_Calc_Figure_03_02_009.jpg\" alt=\"A cart is drawn on a line that curves through (\u221210, 5) to (10, 0) with y-intercept roughly (0, 2).\" width=\"487\" height=\"237\" \/><figcaption class=\"wp-caption-text\">Figure 9. For the car to move smoothly along the track, the function must be both continuous and differentiable.<\/figcaption><\/figure>\n<p><div class=\"qa-wrapper\" style=\"display: block\"><button class=\"show-answer show-answer-button collapsed\" data-target=\"qfs-id1169738222036\">Show Solution<\/button><\/p>\n<div id=\"qfs-id1169738222036\" class=\"hidden-answer\" style=\"display: none\">\n<p id=\"fs-id1169738222036\">For the function to be continuous at [latex]x=-10, \\, \\underset{x\\to 10^-}{\\lim}f(x)=f(-10)[\/latex]. Thus, since<\/p>\n<div id=\"fs-id1169737950192\" class=\"equation unnumbered\" style=\"text-align: center;\">[latex]\\underset{x\\to \u221210^-}{\\lim}f(x)=\\frac{1}{10}(-10)^2-10b+c=10-10b+c[\/latex]<\/div>\n<p id=\"fs-id1169738216001\">and [latex]f(-10)=5[\/latex], we must have [latex]10-10b+c=5[\/latex]. Equivalently, we have [latex]c=10b-5[\/latex].<\/p>\n<p id=\"fs-id1169738219145\">For the function to be differentiable at [latex]-10[\/latex],<\/p>\n<div id=\"fs-id1169738219154\" class=\"equation unnumbered\" style=\"text-align: center;\">[latex]f^{\\prime}(10)=\\underset{x\\to \u221210}{\\lim}\\frac{f(x)-f(-10)}{x+10}[\/latex]<\/div>\n<p id=\"fs-id1169738224010\">must exist.<\/p>\n<p>Since [latex]f(x)[\/latex] is defined using different rules on the right and the left, we must evaluate this limit from the right and the left and then set them equal to each other:<\/p>\n<div id=\"fs-id1169738183518\" class=\"equation unnumbered\" style=\"text-align: center;\">[latex]\\begin{array}{lllll} \\underset{x\\to \u221210^-}{\\lim}\\frac{f(x)-f(-10)}{x+10} & =\\underset{x\\to \u221210^-}{\\lim}\\frac{\\frac{1}{10}x^2+bx+c-5}{x+10} & & & \\\\ & =\\underset{x\\to \u221210^-}{\\lim}\\frac{\\frac{1}{10}x^2+bx+(10b-5)-5}{x+10} & & & \\text{Substitute} \\, c=10b-5. \\\\ & =\\underset{x\\to \u221210^-}{\\lim}\\frac{x^2-100+10bx+100b}{10(x+10)} & & & \\\\ & =\\underset{x\\to \u221210^-}{\\lim}\\frac{(x+10)(x-10+10b)}{10(x+10)} & & & \\text{Factor by grouping.} \\\\ & =b-2 & & & \\end{array}[\/latex]<\/div>\n<p id=\"fs-id1169738183170\">We also have<\/p>\n<div id=\"fs-id1169738183173\" class=\"equation unnumbered\" style=\"text-align: center;\">[latex]\\begin{array}{ll} \\underset{x\\to \u221210^+}{\\lim}\\frac{f(x)-f(-10)}{x+10} & =\\underset{x\\to \u221210^+}{\\lim}\\frac{-\\frac{1}{4}x+\\frac{5}{2}-5}{x+10} \\\\ & =\\underset{x\\to \u221210^+}{\\lim}\\frac{\u2212(x+10)}{4(x+10)} \\\\ & =-\\frac{1}{4} \\end{array}[\/latex]<\/div>\n<p id=\"fs-id1169738221364\">This gives us [latex]b-2=-\\frac{1}{4}[\/latex].<\/p>\n<p>Thus [latex]b=\\frac{7}{4}[\/latex] and [latex]c=10(\\frac{7}{4})-5=\\frac{25}{2}[\/latex].<\/p>\n<p>Watch the following video to see the worked solution to this example.<\/p>\n<div style=\"text-align: center;\"><iframe loading=\"lazy\" title=\"YouTube video player\" src=\"https:\/\/www.youtube.com\/embed\/w9m4h4i47-M?controls=0&amp;start=904&amp;end=1275&amp;autoplay=0\" width=\"750\" height=\"450\" frameborder=\"0\" allowfullscreen=\"allowfullscreen\" data-mce-fragment=\"1\"><\/iframe><\/div>\n<p>For closed captioning, open the video on its original page by clicking the Youtube logo in the lower right-hand corner of the video display. In YouTube, the video will begin at the same starting point as this clip, but will continue playing until the very end.<\/p>\n<p>You can view the <a href=\"https:\/\/oerfiles.s3.us-west-2.amazonaws.com\/Calculus\/Calculus1+Videos\/3.2TheDerivativeAsAFunction904to1275_transcript.txt\" target=\"_blank\" rel=\"noopener\">transcript for this segmented clip of &#8220;3.2 The Derivative as a Function&#8221; here (opens in new window)<\/a>.<\/p>\n<\/div>\n<\/div>\n<\/section>\n<section class=\"textbox example\">\n<p id=\"fs-id1169738185323\">Find values of [latex]a[\/latex] and [latex]b[\/latex] that make [latex]f(x)=\\begin{cases} ax+b & \\text{ if } \\, x < 3 \\\\ x^2 & \\text{ if } \\, x \\ge 3 \\end{cases}[\/latex] both continuous and differentiable at [latex]3[\/latex].<\/p>\n<p><div class=\"qa-wrapper\" style=\"display: block\"><button class=\"show-answer show-answer-button collapsed\" data-target=\"qfs-id1169738225596\">Show Solution<\/button><\/p>\n<div id=\"qfs-id1169738225596\" class=\"hidden-answer\" style=\"display: none\">\n<p id=\"fs-id1169738225596\">[latex]a=6[\/latex] and [latex]b=-9[\/latex]<\/p>\n<\/div>\n<\/div>\n<\/section>\n","protected":false},"author":15,"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":503,"module-header":"learn_it","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\/calculus1\/wp-json\/pressbooks\/v2\/chapters\/2841"}],"collection":[{"href":"https:\/\/content.one.lumenlearning.com\/calculus1\/wp-json\/pressbooks\/v2\/chapters"}],"about":[{"href":"https:\/\/content.one.lumenlearning.com\/calculus1\/wp-json\/wp\/v2\/types\/chapter"}],"author":[{"embeddable":true,"href":"https:\/\/content.one.lumenlearning.com\/calculus1\/wp-json\/wp\/v2\/users\/15"}],"version-history":[{"count":7,"href":"https:\/\/content.one.lumenlearning.com\/calculus1\/wp-json\/pressbooks\/v2\/chapters\/2841\/revisions"}],"predecessor-version":[{"id":2864,"href":"https:\/\/content.one.lumenlearning.com\/calculus1\/wp-json\/pressbooks\/v2\/chapters\/2841\/revisions\/2864"}],"part":[{"href":"https:\/\/content.one.lumenlearning.com\/calculus1\/wp-json\/pressbooks\/v2\/parts\/503"}],"metadata":[{"href":"https:\/\/content.one.lumenlearning.com\/calculus1\/wp-json\/pressbooks\/v2\/chapters\/2841\/metadata\/"}],"wp:attachment":[{"href":"https:\/\/content.one.lumenlearning.com\/calculus1\/wp-json\/wp\/v2\/media?parent=2841"}],"wp:term":[{"taxonomy":"chapter-type","embeddable":true,"href":"https:\/\/content.one.lumenlearning.com\/calculus1\/wp-json\/pressbooks\/v2\/chapter-type?post=2841"},{"taxonomy":"contributor","embeddable":true,"href":"https:\/\/content.one.lumenlearning.com\/calculus1\/wp-json\/wp\/v2\/contributor?post=2841"},{"taxonomy":"license","embeddable":true,"href":"https:\/\/content.one.lumenlearning.com\/calculus1\/wp-json\/wp\/v2\/license?post=2841"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}