Making a function differentiable
A piecewise-defined function with a parameter in the definition may only be continuous and differentiable for a certain value of the parameter. This applet explores what this means graphically.
Try the following:
- The first example shows the piecewise function
. For the initial value of k = 0, the function is not continuous at x = 1, as is clear from the graph. Is there a value of k that will make the function continuous at x = 1? Try moving the k slider, or type in a guess for k. How would you use algebra to compute this k from the definition of the function? Think about what you did graphically (tried to make the two parts of the function connect at x = 1); how could you express that in an equation that could then be solved for k? You can also zoom in near the point where the two pieces need to connect by clicking on that spot.
- Select the second example, which shows another piecewise function
. This function is continuous at x = 1, but is not differentiable there when k = 0, as you can see from looking at the first derivative graph. Is there a value for k that makes the function differentiable at x = 1? Move the slider to try and find one. Is there a way using calculus and algebra to compute this k from the function's definition? Think about what you did graphically (tried to make the two parts have the same slope at x = 1); how could you express that in an equation that could then be solved for k?
For more information on rights and downloading, refer to http://www.calculusapplets.com/download.html.
© Copyright 2001 David J. Eck
© Copyright 2007 Thomas S. Downey
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
You must cause any files that you modify to carry prominent notices stating that you changed the files and the date of any change, and modified files must be put into a Java package different from edu.hws.
THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.






















