girgit.org

Continuity and Differentiability

Smooth or sharp? Differentiability and continuity

The big ideaA function is differentiable at \( c \) when its left hand and right hand derivatives there are finite and equal; every differentiable function is continuous, but a continuous function can still fail to be differentiable at a corner.

In simple words

Zoom in very close on a point of a graph. If it looks like one straight, tilted line, the graph is smooth there and has a clear steepness. If it still looks like a sharp corner however close you zoom, there is no single steepness. A smooth spot can never be a broken spot. But an unbroken spot can still be a sharp one.

What you already know

From Class 11, the derivative of \( f \) at a point \( c \) of its domain is

\[ f'(c) = \lim_{h \to 0} \frac{f(c + h) - f(c)}{h} \]

provided this limit exists. It is the slope of the tangent at \( (c, f(c)) \). The derivative as a function is written \( f'(x) \), \( \frac{d}{dx}(f(x)) \), or, if \( y = f(x) \), \( \frac{dy}{dx} \) or \( y' \). Finding it is called differentiation. You also know the rules:

  • \( (u \pm v)' = u' \pm v' \)
  • \( (uv)' = u'v + uv' \) (Leibnitz or product rule)
  • \( \left( \frac{u}{v} \right)' = \frac{u'v - uv'}{v^2} \), where \( v \ne 0 \) (quotient rule)
\( f(x) \)\( x^n \)\( \sin x \)\( \cos x \)\( \tan x \)
\( f'(x) \)\( nx^{n-1} \)\( \cos x \)\( -\sin x \)\( \sec^2 x \)

Try it: zoom in on a smooth point and on a corner. One straightens; one never does.

When the limit does not exist

Now we ask: what if that limit does not exist? Then \( f \) is not differentiable at \( c \). To check, split the limit into its two sides:

\[ \text{LHD} = \lim_{h \to 0^-} \frac{f(c + h) - f(c)}{h}, \qquad \text{RHD} = \lim_{h \to 0^+} \frac{f(c + h) - f(c)}{h} \]

These are the left hand derivative and right hand derivative: the slope coming in from the left and the slope coming in from the right. \( f \) is differentiable at c when both are finite and equal.

\( f \) is differentiable in an open interval \( (a, b) \) if it is differentiable at every point of it. In a closed interval \( [a, b] \), at the end points we only use the one side that exists: the right hand derivative at \( a \) and the left hand derivative at \( b \).

Theorem 3: differentiable means continuous

If \( f \) is differentiable at \( c \), then \( f \) is continuous at \( c \). Here is why. For \( x \ne c \),

\[ f(x) - f(c) = \frac{f(x) - f(c)}{x - c} \cdot (x - c) \]

Let \( x \to c \). The fraction tends to \( f'(c) \), a finite number, and \( (x - c) \) tends to 0. So the right side tends to \( f'(c) \cdot 0 = 0 \). That means \( \lim_{x \to c} f(x) = f(c) \): continuous.

Corollary: every differentiable function is continuous. Turned around: if a function is not continuous at \( c \), it cannot be differentiable at \( c \). For example, \( [x] \) jumps at every integer, so it has no derivative at any integer.

Guess first: is |x| differentiable at 0?

We showed \( |x| \) is continuous at 0: no break. Guess: does it have a derivative at 0? Many students say "yes, 0, because it is the lowest point".

Commit to an answer, then walk the two chords in towards the corner.

See what happens
No. \( \frac{|0 + h| - |0|}{h} = \frac{|h|}{h} \). For \( h \gt 0 \) this is \( \frac{h}{h} = 1 \); for \( h \lt 0 \) it is \( \frac{-h}{h} = -1 \). So RHD = 1 and LHD = −1. They are finite but not equal, so the derivative at 0 does not exist. The right arm of the V climbs at slope 1, the left arm at slope −1, and at the corner there is no single slope. So the converse of Theorem 3 is false: continuous does not mean differentiable.

Worked example 1: a shifted corner

Show that \( f(x) = |x - 3| \) is not differentiable at 3. Here \( f(3 + h) - f(3) = |h| \). So the quotient is \( \frac{|h|}{h} \): RHD = 1, LHD = −1. Not equal, so no derivative at 3. It is continuous there, though.

Worked example 2: a corner that has been smoothed

Is \( g(x) = x|x| \) differentiable at 0? \( \frac{g(h) - g(0)}{h} = \frac{h|h|}{h} = |h| \to 0 \) from both sides. LHD = RHD = 0, so yes: \( g'(0) = 0 \). The extra factor \( x \) flattens the corner.

Don't mix these up

  • Differentiable ⇒ continuous is always true. Continuous ⇒ differentiable is false (|x| at 0).
  • Not continuous ⇒ not differentiable is true (it is the same theorem, turned around).
  • A corner is where LHD and RHD are both finite but different. A break is where the function values themselves jump.

Not in the current textbook, but JEE asks it: a curve can also fail to be differentiable where its tangent stands vertical. For \( f(x) = x^{1/3} \) at 0, \( \frac{h^{1/3}}{h} = h^{-2/3} \to +\infty \) from both sides. It is continuous, and the two sides agree, but the derivative is not finite. JEE also likes "how many points of non-differentiability": a sum like \( |x - 1| + |x - 2| \) is continuous everywhere but has corners at exactly two points, 1 and 2.

Try it. (a) Is \( |x + 2| \) differentiable at −2? (b) Is \( f(x) = x^2 \) for \( x \le 1 \), \( f(x) = 2x - 1 \) for \( x \gt 1 \) differentiable at 1?

Answer
(a) No: LHD = −1, RHD = 1, a corner. (b) Continuous at 1 (both pieces give 1). LHD: slope of \( x^2 \) at 1 is 2. RHD: slope of \( 2x - 1 \) is 2. Equal, so yes, \( f'(1) = 2 \). The line is exactly the tangent to the parabola at 1, so there is no corner.

Words to know

Differentiable at c
LHD and RHD at \( c \) exist, are finite and equal; the curve has one tangent slope there.
Left hand derivative (LHD)
\( \lim_{h \to 0^-} \frac{f(c + h) - f(c)}{h} \): the slope arriving from the left.
Right hand derivative (RHD)
\( \lim_{h \to 0^+} \frac{f(c + h) - f(c)}{h} \): the slope arriving from the right.
Corner
A point where the function is continuous but LHD ≠ RHD.
Corollary
A result that follows straight away from a theorem; here: every differentiable function is continuous.

A function is not continuous at \( x = 5 \). What can you say about \( f'(5) \)?

  1. It might still exist
  2. It does not exist
  3. It equals 0

For \( f(x) = |x| \) at 0, what are LHD and RHD?

  1. LHD = RHD = 0
  2. LHD = −1, RHD = 1
  3. LHD = 1, RHD = −1

Which statement is true for every real function?

  1. If it is continuous at c, it is differentiable at c
  2. If LHL = RHL at c, then it is differentiable at c
  3. If it is differentiable at c, it is continuous at c