<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://calculus.subwiki.org/w/index.php?action=history&amp;feed=atom&amp;title=Continuous_not_implies_differentiable</id>
	<title>Continuous not implies differentiable - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://calculus.subwiki.org/w/index.php?action=history&amp;feed=atom&amp;title=Continuous_not_implies_differentiable"/>
	<link rel="alternate" type="text/html" href="https://calculus.subwiki.org/w/index.php?title=Continuous_not_implies_differentiable&amp;action=history"/>
	<updated>2026-05-22T12:47:52Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.41.2</generator>
	<entry>
		<id>https://calculus.subwiki.org/w/index.php?title=Continuous_not_implies_differentiable&amp;diff=3283&amp;oldid=prev</id>
		<title>Vipul: Created page with &quot;{{function property non-implication| stronger = continuous function| weaker = differentiable function}}  ==Statement==  It is possible to have a function &lt;math&gt;f: \R \to \R&lt;/m...&quot;</title>
		<link rel="alternate" type="text/html" href="https://calculus.subwiki.org/w/index.php?title=Continuous_not_implies_differentiable&amp;diff=3283&amp;oldid=prev"/>
		<updated>2021-09-25T01:42:55Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;{{function property non-implication| stronger = continuous function| weaker = differentiable function}}  ==Statement==  It is possible to have a function &amp;lt;math&amp;gt;f: \R \to \R&amp;lt;/m...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{function property non-implication|&lt;br /&gt;
stronger = continuous function|&lt;br /&gt;
weaker = differentiable function}}&lt;br /&gt;
&lt;br /&gt;
==Statement==&lt;br /&gt;
&lt;br /&gt;
It is possible to have a function &amp;lt;math&amp;gt;f: \R \to \R&amp;lt;/math&amp;gt; that is a [[continuous function]] everywhere but is &amp;#039;&amp;#039;not&amp;#039;&amp;#039; a [[differentiable function]] everywhere, i.e., it has points where it is not differentiable.&lt;br /&gt;
&lt;br /&gt;
Further, it is possible to construct an example where the function does not have a well-defined left-hand derivative or right-hand derivative.&lt;br /&gt;
&lt;br /&gt;
==Proof==&lt;br /&gt;
&lt;br /&gt;
===Example where one-sided derivatives exist and are not equal===&lt;br /&gt;
&lt;br /&gt;
A [[piecewise definition by interval]] can be used to construct examples (see [[differentiation rule for piecewise definition by interval]]). The simplest example is the [[absolute value function]]:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;|x| := \left\lbrace \begin{array}{rl}x, &amp;amp; x \ge 0 \\ -x, &amp;amp; x &amp;lt; 0 \\\end{array} \right.&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[File:Absolutevalue.png|500px]]&lt;br /&gt;
&lt;br /&gt;
The function is continuous at 0. The left-hand derivative at 0 is -1 and the right-hand derivative is 1. These are not equal, so the function is not differentiable at 0.&lt;br /&gt;
&lt;br /&gt;
Intuitively, the function is continuous at the point 0 where its definition changes, but it is not differentiable because it turns sharply (from moving down to moving up). There is no well-defined tangent line at (0,0) where it turns.&lt;br /&gt;
&lt;br /&gt;
===Example where no one-sided derivatives exist===&lt;br /&gt;
&lt;br /&gt;
Consider the function:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;g(x) := \left\lbrace\begin{array}{rl} x \sin(1/x), &amp;amp; x \ne 0 \\ 0, &amp;amp; x = 0 \\\end{array}\right.&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The expression for the function is continuous and differentiable for &amp;lt;math&amp;gt;x \ne 0&amp;lt;/math&amp;gt;. The expression does not extend to &amp;lt;math&amp;gt;x = 0&amp;lt;/math&amp;gt;, so we need to calculate the limit at 0 manually to determine if it is continuous and differentiable.&lt;br /&gt;
&lt;br /&gt;
=== Proof of continuity at 0 ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\lim_{x \to 0} g(x) = \lim_{x \to 0} x \sin (1/x)&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
We have a bound on absolute value:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;0 \le |x \sin (1/x)| = |x||\sin(1/x)| \le |x|&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Thus:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;-|x| \le x\sin (1/x) \le |x|&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Both the leftmost and rightmost expressions approach 0 as &amp;lt;math&amp;gt;x \to 0&amp;lt;/math&amp;gt;, so by the [[sandwich theorem]], we get:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\lim_{x \to 0} x \sin (1/x) = 0&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Proof of non-differentiability at 0 ===&lt;br /&gt;
&lt;br /&gt;
The derivative at zero is the limit:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\lim_{x \to 0} \frac{x \sin (1/x) - 0}{x - 0}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This works out to:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\lim_{x \to 0} \sin(1/x)&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The [[sine of reciprocal function]] does not have a limit as &amp;lt;math&amp;gt;x \to 0&amp;lt;/math&amp;gt;, so this expression is not defined. In fact, even restricting to a one-sided limit gives an undefined expression (for more on this, see the explanation at [[intermediate value property not implies continuous]]).&lt;br /&gt;
&lt;br /&gt;
== Related facts ==&lt;br /&gt;
&lt;br /&gt;
* [[Intermediate value property not implies continuous]]: This uses the [[sine of reciprocal function]] directly, i.e., just &amp;lt;math&amp;gt;\sin(1/x)&amp;lt;/math&amp;gt;.&lt;br /&gt;
* [[Derivative of differentiable function need not be continuous]]: This uses &amp;lt;math&amp;gt;x^2 \sin (1/x)&amp;lt;/math&amp;gt;.&lt;/div&gt;</summary>
		<author><name>Vipul</name></author>
	</entry>
</feed>