Math ClubMath Club
v1 · padrão canônico

Lesson 59 — Differentiability and Smoothness

Differentiable implies continuous. Corner points, cusps, vertical tangents. C^k and C^∞ classes. Weierstrass function.

Used in: 2nd year advanced HS (calculus) · Japanese Equiv. Math III · German Klasse 12 Leistungskurs Equiv.

f(a)=limh0f(a+h)f(a)hf'(a) = \lim_{h \to 0} \frac{f(a+h) - f(a)}{h}

Differentiability at aa: The function ff is differentiable at aa if and only if this limit exists as a finite real number. If it exists, its value is the derivative f(a)f'(a) — the slope of the tangent line to the graph at the point (a,f(a))(a, f(a)).

Choose your door

Rigorous notation, full derivation, hypotheses

Definitions and Theorems

Differentiability at a Point

"If f(a)f'(a) exists, we say that ff is differentiable at aa. If ff is differentiable at every number in an open interval (a,b)(a, b), then ff is differentiable on (a,b)(a, b)." — OpenStax Calculus Volume 1, §3.2

Fundamental Theorem (Differentiability Implies Continuity)

"If ff is differentiable at aa, then ff is continuous at aa." — Active Calculus, §1.7, Boelkins 2024 (Theorem 1.7.1)

Types of Non-Differentiability Points

Corner (|x|)0Cusp (x²/³)0Vertical Tangent (x¹/³)0Jump (sgn)0

The four main types of non-differentiable points. From left: corner (finite, distinct one-sided derivatives), cusp (opposite infinite one-sided derivatives), vertical tangent (derivative = +∞ from both sides), jump (function not continuous).

TypeExample at 00What Occurs
Cornerx\lvert x \rvertf+(0)=11=f(0)f'_+(0) = 1 \neq -1 = f'_-(0)
Cuspx2/3x^{2/3}f±(0)=±f'_\pm(0) = \pm\infty
Vertical Tangentx1/3x^{1/3}f(0)=+f'(0) = +\infty
Jump Discontinuitysgn(x)\text{sgn}(x)ff is not continuous
Non-removable Oscillationxsin(1/x), f(0)=0x\sin(1/x),\ f(0)=0limit of quotient does not exist

CkC^k Hierarchy

Example: CC^\infty but not CωC^\omega (Cauchy)

f(x)={e1/x2,x>00,x0f(x) = \begin{cases} e^{-1/x^2}, & x > 0 \\ 0, & x \leq 0 \end{cases}

This function is C(R)C^\infty(\mathbb{R}) and f(n)(0)=0f^{(n)}(0) = 0 for all n0n \geq 0, but f≢0f \not\equiv 0. Thus fCωf \notin C^\omega — it definitively separates the smooth and analytic classes.

Weierstrass Function

W(x)=n=0ancos(bnπx),0<a<1, b an odd integer, ab>1+32π.W(x) = \sum_{n=0}^{\infty} a^n \cos(b^n \pi x), \quad 0 < a < 1,\ b \text{ an odd integer},\ ab > 1 + \tfrac{3}{2}\pi.

Solved Examples

Exercise list

40 exercises · 10 with worked solution (25%)

22 9 5 2 2
  1. Ex. 59.1

    Let f(x)=xf(x) = |x|. Calculate the one-sided derivatives f+(0)f'_+(0) and f(0)f'_-(0) from the definition. Conclude about differentiability at 00.

    Show solution
    Right-hand derivative: f+(0)=limh0+h/h=1f'_+(0) = \lim_{h\to 0^+} h/h = 1. Left-hand derivative: f(0)=limh0(h)/h=1f'_-(0) = \lim_{h\to 0^-} (-h)/h = -1. Since f+(0)f(0)f'_+(0) \neq f'_-(0), the two-sided derivative does not exist at 00: corner, not differentiable.
    Show step-by-step (with the why)
    See the referenced source for the step-by-step walkthrough.
  2. Ex. 59.2Answer key

    Let f(x)=x3f(x) = |x - 3|. Calculate f+(3)f'_+(3) and f(3)f'_-(3). Is ff differentiable at x=3x = 3?

    Show solution
    f(x)=x3f(x) = |x-3|: the argument of x3|x-3| is shifted: corner at x=3x = 3. f+(3)=1f'_+(3) = 1 and f(3)=1f'_-(3) = -1. Corner at x=3x = 3: not differentiable.
  3. Ex. 59.3

    Let f(x)=xxf(x) = x|x|. Determine f(0)f'(0) using the definition.

    Show solution
    f(0)=limh0hh/h=limh0h=0f'(0) = \lim_{h\to 0} h|h|/h = \lim_{h\to 0}|h| = 0. The extra factor hh smooths out the corner of x|x|.
    Show step-by-step (with the why)
    1. Apply the definition: f(0)=limh0hh0hf'(0) = \lim_{h\to 0}\frac{h|h| - 0}{h}. Why: f(0)=00=0f(0) = 0\cdot|0| = 0.
    2. Cancel hh (remember: h0h \neq 0 in the limit): =limh0h= \lim_{h\to 0}|h|.
    3. limh0h=0\lim_{h\to 0}|h| = 0. Therefore f(0)=0f'(0) = 0. Differentiable.

    Note: The extra factor hh multiplies the corner of x|x| and "smooths" it — a general pattern for xnxx^n|x|.

  4. Ex. 59.4

    Let f(x)=x1/3f(x) = x^{1/3}. Calculate f(0)f'(0) from the definition. What does the answer indicate geometrically?

    Show solution
    f(0)=limh0h1/3/h=limh0h2/3f'(0) = \lim_{h\to 0}h^{1/3}/h = \lim_{h\to 0}h^{-2/3}. As h0+h\to 0^+ or h0h\to 0^-: h2/3+h^{-2/3}\to +\infty (always positive). Vertical tangent — not differentiable. Geometrically: the tangent line becomes increasingly vertical as it approaches 00.
  5. Ex. 59.5Answer key

    Let f(x)=x2/3f(x) = x^{2/3}. Analyze differentiability at 00 by calculating the one-sided derivatives from the definition.

    Show solution
    f(0)=limh0h2/3/h=limh0h1/3f'(0) = \lim_{h\to 0}h^{2/3}/h = \lim_{h\to 0}h^{-1/3}. For h0+h\to 0^+: ++\infty. For h0h\to 0^-: h1/3-|h|^{-1/3}\to -\infty. Cusp pointing upwards — one-sided derivatives go to opposite infinities. Not differentiable.
  6. Ex. 59.6

    Let f(x)=f(x) =, x^2, & x \geq 0, -x^2, & x < 0. Calculate f+(0)f'_+(0) and f(0)f'_-(0). Is ff differentiable at 00?

    Show solution
    For h>0h>0: f(h)=h2f(h)=h^2, difference quotient h2/h=h0h^2/h = h \to 0. For h<0h<0: f(h)=h2f(h)=-h^2, difference quotient h2/h=h0-h^2/h = -h \to 0. Equal one-sided derivatives: f(0)=0f'(0)=0.
    Show step-by-step (with the why)
    1. f+(0)=limh0+h20h=limh0+h=0f'_+(0) = \lim_{h\to 0^+} \frac{h^2-0}{h} = \lim_{h\to 0^+} h = 0. Why: the branch for x0x\geq 0 is x2x^2.
    2. f(0)=limh0h20h=limh0(h)=0f'_-(0) = \lim_{h\to 0^-} \frac{-h^2-0}{h} = \lim_{h\to 0^-} (-h) = 0. Why: the branch for x<0x < 0 is x2-x^2.
    3. One-sided derivatives are equal: f(0)=0f'(0) = 0. Differentiable.

    Note: Despite the graph having a "smooth" shape for this function, always check the one-sided derivatives at points where a function is defined piecewise.

  7. Ex. 59.7

    Let f(x)=xsin(1/x)f(x) = x\sin(1/x) for x0x \neq 0 and f(0)=0f(0) = 0. Check if ff is continuous at 00 and if it is differentiable at 00.

    Show solution
    f(x)=xsin(1/x)f(x) = |x\sin(1/x)|: xsin(1/x)x0|x\sin(1/x)| \leq |x| \to 0 as x0x\to 0, so ff is continuous at 0. Differentiability: f(0)=limh0hsin(1/h)h=limh0sin(1/h)f'(0) = \lim_{h\to 0}\frac{h\sin(1/h)}{h} = \lim_{h\to 0}\sin(1/h). This limit does not exist (oscillates between -1 and 1). Not differentiable at 0.
  8. Ex. 59.8

    Let f(x)=x2sin(1/x)f(x) = x^2\sin(1/x) for x0x \neq 0 and f(0)=0f(0) = 0. Show that f(0)=0f'(0) = 0 using the Squeeze Theorem.

    Show solution
    f(0)=limh0h2sin(1/h)/h=limh0hsin(1/h)f'(0) = \lim_{h\to 0} h^2\sin(1/h)/h = \lim_{h\to 0}h\sin(1/h). Since hsin(1/h)h0|h\sin(1/h)| \leq |h| \to 0 (Squeeze Theorem), the limit is 00. Differentiable, f(0)=0f'(0) = 0.
  9. Ex. 59.9

    Let f(x)=max(0,x)f(x) = \max(0, x) (ReLU function). Calculate f+(0)f'_+(0) and f(0)f'_-(0). Is ff differentiable at 00?

    Show solution
    f(x)=max(x,0)f(x) = \max(x, 0): for x>0x > 0, f=xf = x; for x<0x < 0, f=0f = 0. Right-hand derivative: f+(0)=limh0+h/h=1f'_+(0) = \lim_{h\to 0^+}h/h = 1. Left-hand derivative: f(0)=limh00/h=0f'_-(0) = \lim_{h\to 0^-}0/h = 0. Different: corner, not differentiable.
  10. Ex. 59.10

    Let f(x)=min(x,1x)f(x) = \min(x, 1-x). At what point does ff have a corner? Verify by calculating the one-sided derivatives at that point.

    Show solution
    f(x)=min(x,1x)f(x) = \min(x, 1-x): for x<1/2x < 1/2, f=xf = x; for x>1/2x > 1/2, f=1xf = 1-x. At 1/21/2: f+(1/2)=1f'_+(1/2) = -1 and f(1/2)=1f'_-(1/2) = 1. Corner at x=1/2x = 1/2.
  11. Ex. 59.11

    Let sgn(x)=x/x\text{sgn}(x) = x/|x| for x0x \neq 0 and sgn(0)=0\text{sgn}(0) = 0. Is it continuous at 00? Is it differentiable at 00?

    Show solution
    sgn(x)=x/x\text{sgn}(x) = x/|x|: sgn(0+)=1\text{sgn}(0^+) = 1 and sgn(0)=1\text{sgn}(0^-) = -1. Jump from -1 to 1 at x=0x=0: discontinuity. Thus not differentiable.
  12. Ex. 59.12

    Where is the floor function f(x)=xf(x) = \lfloor x \rfloor differentiable? Where is it not? Justify in each case.

    Show solution
    At integers, x\lfloor x\rfloor has jumps: discontinuity, thus not differentiable at integers. Outside integers, x\lfloor x\rfloor is locally constant, so f=0f' = 0 at those points. Differentiable on RZ\mathbb{R} \setminus \mathbb{Z}.
  13. Ex. 59.13

    Let f(x)=x3f(x) = |x|^3. Calculate f(0)f'(0) and f(0)f''(0) using the limit definition.

    Show solution
    For h>0h > 0: difference quotient at 0 is h3/h=h20h^3/h = h^2 \to 0. For h<0h < 0: h3/h=h20|h|^3/h = -h^2 \to 0. Thus f(0)=0f'(0) = 0. For x0x \neq 0: f(x)=3xxf'(x) = 3x|x|. Applying the definition of f(0)f''(0): limh03hh/h=3limh=0\lim_{h\to 0} 3h|h|/h = 3\lim|h| = 0. Thus f(0)=0f''(0) = 0.
  14. Ex. 59.14Answer key

    Let f(x)=x2f(x) = x^2 if xQx \in \mathbb{Q} and f(x)=0f(x) = 0 if xQx \notin \mathbb{Q}. Determine if ff is differentiable at 00.

    Show solution
    The difference quotient at 0: f(h)/h|f(h)/h|. If hQh \in \mathbb{Q}: h2/h=h0|h^2/h| = |h| \to 0. If hQh \notin \mathbb{Q}: 0/h=00|0/h| = 0 \to 0. In both cases, the quotient goes to 0. Therefore f(0)=0f'(0) = 0. Differentiable at 0.
  15. Ex. 59.15

    Let f(x)=xf(x) = \sqrt{|x|}. Calculate f(0)f'(0) from the definition. Identify the type of non-differentiable point.

    Show solution
    f(0)=limh0hh=limh0h1/2hf'(0) = \lim_{h\to 0}\frac{\sqrt{|h|}}{h} = \lim_{h\to 0}\frac{|h|^{1/2}}{h}. For h0+h\to 0^+: h1/2+h^{-1/2}\to +\infty. Vertical tangent. Not differentiable.
  16. Ex. 59.16

    Let f(x)=x2sin(1/x)f(x) = x^2\sin(1/x) for x0x \neq 0 and f(0)=0f(0) = 0. Show that ff is differentiable at 00, but that fC0f' \notin C^0. What is the maximum CkC^k class of ff?

    Show solution
    f(0)=0f'(0) = 0 by definition (Squeeze Theorem, since h2sin(1/h)/hh|h^2\sin(1/h)/h| \leq |h|). For x0x \neq 0: f(x)=2xsin(1/x)cos(1/x)f'(x) = 2x\sin(1/x) - \cos(1/x). The term cos(1/x)\cos(1/x) oscillates without limit as x0x\to 0. Therefore fC0f'\notin C^0 and fC1f\notin C^1: differentiable but not C1C^1.
    Show step-by-step (with the why)
    1. f(0)=limh0h2sin(1/h)h=limh0hsin(1/h)f'(0) = \lim_{h\to 0}\frac{h^2\sin(1/h)}{h} = \lim_{h\to 0}h\sin(1/h). Why: definition applied with f(0)=0f(0) = 0.
    2. Squeeze Theorem: hhsin(1/h)h-|h| \leq h\sin(1/h) \leq |h|, and h0|h|\to 0. Thus f(0)=0f'(0) = 0.
    3. For x0x \neq 0, product and chain rules: f(x)=2xsin(1/x)cos(1/x)f'(x) = 2x\sin(1/x) - \cos(1/x).
    4. limx0cos(1/x)\lim_{x\to 0}\cos(1/x) does not exist — oscillates between -1 and 1. Thus fC0f' \notin C^0.

    Curiosity: This is the canonical example of differentiable-but-not-C1C^1: a gap exists between the classes.

  17. Ex. 59.17

    Find aa and bb such that f(x)=f(x) =, ax + b, & x \leq 1, x^2, & x > 1 is C1C^1 on R\mathbb{R}.

    Show solution
    Continuity at 1: a1+b=12=1a\cdot 1 + b = 1^2 = 1, so a+b=1a + b = 1 (I). Derivatives: f(1)=af'_-(1) = a and f+(1)=21=2f'_+(1) = 2\cdot 1 = 2. Equating: a=2a = 2 (II). From (I): b=12=1b = 1 - 2 = -1.
    Show step-by-step (with the why)
    1. Continuity at x=1x=1: a1+b=12=1a\cdot 1 + b = 1^2 = 1, i.e., a+b=1a + b = 1. Why: the two branches must match at the junction point.
    2. Left-hand derivative: (ax+b)=a(ax+b)' = a, so f(1)=af'_-(1) = a.
    3. Right-hand derivative: (x2)=2x(x^2)' = 2x, so f+(1)=2f'_+(1) = 2.
    4. For C1C^1: a=2a = 2. Substituting: b=12=1b = 1 - 2 = -1.

    Mental shortcut: For piecewise linear+polynomial functions, the tangent line equation to the curve at the junction point gives the linear branch directly.

  18. Ex. 59.18

    Find c,dc, d such that f(x)=f(x) =, cx + d, & x \leq 1, 3x^2 - 2, & x > 1 is C1C^1 at 11.

    Show solution
    Continuity at 1: c+d=3122=1c + d = 3\cdot 1^2 - 2 = 1. Derivatives: c=612=6c = 6\cdot 1^2 = 6. So d=16=5d = 1 - 6 = -5.
  19. Ex. 59.19Answer key

    Find a,ba, b such that f(x)=f(x) =, ax + b, & x \leq 0, \sin x, & x > 0 is C1C^1 at 00.

    Show solution
    Continuity at 0: b=sin0=0b = \sin 0 = 0. Derivatives: a=(sinx)x=0=cos0=1a = (\sin x)'|_{x=0} = \cos 0 = 1. Check: a=1,b=0a = 1, b = 0 gives f(x)=xf(x) = x for x0x \leq 0, which is the tangent line to sinx\sin x at 00.
  20. Ex. 59.20

    Where is f(x)=(x2)1/3f(x) = (x-2)^{1/3} not differentiable? Identify the type of point.

    Show solution
    f(x)=(x2)1/3f(x) = (x-2)^{1/3}: translation of x1/3x^{1/3} to x=2x=2. At x=2x=2: f(2)=limh0h1/3/h=limh2/3=+f'(2) = \lim_{h\to 0}h^{1/3}/h = \lim h^{-2/3} = +\infty. Vertical tangent at x=2x=2: not differentiable.
  21. Ex. 59.21Answer key

    Let f(x)=f(x) =, x^2, & x < 0, \sin x, & x \geq 0. Is ff C0C^0 at 00? Is it C1C^1 at 00?

    Show solution
    Continuity at 0: f(0)=x2x=0=0f(0^-) = x^2|_{x=0} = 0 and f(0+)=sin0=0f(0^+) = \sin 0 = 0. Continuous. Derivatives: f(0)=2xx=0=0f'_-(0) = 2x|_{x=0} = 0 and f+(0)=cos0=1f'_+(0) = \cos 0 = 1. Different: C0C^0 but not C1C^1. Corner at 0.
  22. Ex. 59.22

    A cubic polynomial p(x)=ax3+bx2+cx+dp(x) = ax^3 + bx^2 + cx + d belongs to which CkC^k class? Why is the answer not C3C^3?

    Select the correct option
    Select an option first
    Show solution
    Every polynomial $p(x) = a_n x^n + \ldots + a_0$ is $C^\infty$: differentiating $n$ times gives a constant; beyond that, the derivative is zero — both are continuous. All derivatives exist and are continuous.
  23. Ex. 59.23

    Where does f(x)=x21f(x) = |x^2 - 1| have corners? Calculate the one-sided derivatives at each point to confirm.

    Show solution
    f(x)=x21f(x) = |x^2-1|: corner where x21=0x^2-1=0, i.e., x=±1x = \pm 1. At x=1x=1: f(1)=(2x)x=1=2f'_-(1) = -(2x)|_{x=1} = -2 and f+(1)=2xx=1=2f'_+(1) = 2x|_{x=1} = 2. Different: corner at x=1x=1. By symmetry, corner at x=1x=-1 as well.
  24. Ex. 59.24Answer key

    A cubic spline is formed by S1(x)S_1(x) on [0,1][0,1] and S2(x)S_2(x) on [1,2][1,2]. What conditions at x=1x = 1 guarantee the combined spline is C2C^2? List all equations.

    Show solution
    For a cubic spline to be C2C^2: (1) S1(1)=S2(1)S_1(1) = S_2(1) (continuity of function), (2) S1(1)=S2(1)S_1'(1) = S_2'(1) (continuity of first derivative), (3) S1(1)=S2(1)S_1''(1) = S_2''(1) (continuity of second derivative). Three compatibility equations at the node x=1x=1.
  25. Ex. 59.25Answer key

    Let f(x)=xsinxf(x) = x|\sin x|. At which points does ff have corners? Sketch the argument for the points x=nπx = n\pi.

    Show solution
    sinx|\sin x| has corners where sinx=0\sin x = 0: at x=nπx = n\pi, nZn \in \mathbb{Z}. At x=nπx = n\pi: one-sided derivatives are +cos(nπ)+\cos(n\pi) and cos(nπ)-\cos(n\pi) — opposites. Corners at {nπ:nZ}\{n\pi : n\in\mathbb{Z}\}.
  26. Ex. 59.26

    Let f(x)=xxf(x) = x|x|. Calculate f(x)f'(x) for all xx and show that fC1f \in C^1.

    Show solution
    f(0)=limh0hh/h=limh=0f'(0) = \lim_{h\to 0}h|h|/h = \lim|h|=0. For x0x\neq 0: f(x)=2xsgn(x)=2xf'(x) = 2|x| \cdot \text{sgn}(x) = 2x... Actually, using the product rule for x>0x > 0: f(x)=2xf'(x) = 2x; for x<0x < 0: f(x)=2x=2xf'(x) = -2x = 2|x|. In both cases f(x)=2xf'(x) = 2|x|. Since limx02x=0=f(0)\lim_{x\to 0}2|x| = 0 = f'(0), ff' is continuous and fC1f \in C^1.
  27. Ex. 59.27

    Analyze the differentiability of f(x)=sinxf(x) = |\sin x| on all of R\mathbb{R}. At which points does ff have corners?

    Show solution
    sinx|\sin x| has corners at x=nπx = n\pi where sinx\sin x changes sign (crosses zero). At all other points, sinx0\sin x \neq 0 and the function is locally ±sinx\pm\sin x, which is CC^\infty. Therefore: continuous everywhere (C0C^0), but not differentiable at x=nπx = n\pi.
  28. Ex. 59.28

    Let p(x)=3x42x2+7p(x) = 3x^4 - 2x^2 + 7. What is the CkC^k regularity class of pp on R\mathbb{R}? Justify.

    Show solution
    Each term akxka_k x^k is CC^\infty. A finite sum of CC^\infty functions is CC^\infty. Therefore pCp \in C^\infty. It is not CC^\infty "just near 0" — it is on all of R\mathbb{R}.
  29. Ex. 59.29

    The payoff of a European call option at expiration is V(S)=max(SK,0)V(S) = \max(S - K, 0). (a) Identify the non-differentiable point. (b) Calculate V(K)V'_-(K) and V+(K)V'_+(K). (c) What happens to the Greek Delta Δ=V/S\Delta = \partial V/\partial S at this point?

    Show solution
    Call payoff: V(S)=max(SK,0)V(S) = \max(S-K,0). Corner at S=KS=K: V(K)=0V'_-(K)=0 and V+(K)=1V'_+(K)=1. The Greek Delta Δ=V/S\Delta = \partial V/\partial S jumps from 0 to 1 at KK. Not differentiable at S=KS = K.
  30. Ex. 59.30

    In machine learning, the ReLU activation function is f(x)=max(0,x)f(x) = \max(0, x). Why does the SGD algorithm work even though ReLU is not differentiable at 00?

    Show solution
    ReLU is not differentiable at 0, but the set {0}\{0\} has Lebesgue measure zero. SGD uses subgradients (typically 0 or 1 at 0 by implementation convention). In practice, the stochastic gradient descent algorithm rarely hits exactly 0 with floating-point precision; and when it does, any subgradient from the interval [0,1][0, 1] suffices to ensure convergence.
  31. Ex. 59.31Answer key

    In structural engineering, a knotted elastic cable has continuous displacement u(x)u(x) but a jump in slope u(x)u'(x) at the knot. (a) What is the regularity class of uu? (b) What does the corner in the graph of uu represent physically?

    Show solution
    Cable with a knot: displacement uu is continuous (no physical tearing — no point on the cable breaks), but uu' (proportional to internal tension) has a jump at the knot. Thus uC0u \in C^0 but uC1u \notin C^1. The corner in the displacement graph corresponds to the jump in tension.
  32. Ex. 59.32

    A natural cubic spline on [0,1][0,1] with a node at 1/21/2 imposes what regularity conditions? What is the resulting CkC^k class? Why C2C^2 and not C3C^3?

    Show solution
    Natural cubic spline imposes continuity of ff, ff', and ff'' at interior nodes. At the boundary nodes, f=0f'' = 0 (natural spline condition — "no curvature at the ends"). Thus fC2f \in C^2 on the entire interval.
  33. Ex. 59.33

    For a wave equation utt=c2uxxu_{tt} = c^2 u_{xx} with a discontinuous initial condition (step function), what regularity is expected for the solution u(x,t)u(x,t)? Why does a C2C^2 solution not exist?

    Show solution
    A discontinuous initial condition (step function) for the wave equation: the solution u(x,t)u(x,t) is C0C^0 but has derivative discontinuities propagating along characteristics. The classical solution (which requires C2C^2) does not exist; a weak formulation (distributional solution) is needed.
  34. Ex. 59.34

    Is the converse of "differentiable \Rightarrow continuous" true? What is the simplest counterexample?

    Select the correct option
    Select an option first
    Show solution
    The converse is false. The standard counterexample: $f(x) = |x|$ is continuous everywhere on R\mathbb{R} but not differentiable at $x = 0$. In fact, the Weierstrass function is continuous everywhere on R\mathbb{R} and is not differentiable at *any* point.
  35. Ex. 59.35

    Let f(x)=xxf(x) = x|x|. What is the maximum CkC^k class of ff? Calculate f(x)f'(x) for all xx to justify.

    Select the correct option
    Select an option first
    Show solution
    f(0)=limhh/h=limh=0f'(0) = \lim h|h|/h = \lim|h|=0. For x>0x > 0: f(x)=2xf'(x) = 2x. For x<0x < 0: f(x)=2xf'(x) = -2x. In both cases: f(x)=2xf'(x) = 2|x|. limx02x=0=f(0)\lim_{x\to 0}2|x| = 0 = f'(0). Therefore ff' is continuous and fC1f\in C^1.
  36. Ex. 59.36

    The Cantor function satisfies: continuous on [0,1][0,1], f(0)=0f(0) = 0, f(1)=1f(1) = 1, and f(x)=0f'(x) = 0 almost everywhere. Why does the Fundamental Theorem of Calculus not apply?

    Show solution
    The Cantor function is continuous, non-decreasing, f(0)=0f(0)=0, f(1)=1f(1)=1, and f=0f'=0 almost everywhere (on the set complement of the Cantor set, measure 1). FTC fails because 010dx=01=f(1)f(0)\int_0^1 0\,dx = 0 \neq 1 = f(1)-f(0). FTC with Riemann integral requires absolute continuity of ff — the Cantor function is not absolutely continuous.
  37. Ex. 59.37

    Does a continuous function exist that is not differentiable at any point? Describe the main construction.

    Show solution
    Yes. The Weierstrass function W(x)=n=0ancos(bnπx)W(x) = \sum_{n=0}^\infty a^n \cos(b^n\pi x) (with 0<a<10<a<1 and ab>1+3π/2ab > 1 + 3\pi/2) is continuous on all of R\mathbb{R} (uniformly convergent series, dominated by geometric series an\sum a^n) and not differentiable at any point. Weierstrass, 1872. Hardy improved the criterion to ab1ab \geq 1 in 1916.
  38. Ex. 59.38Answer key

    Let f(x)=e1/x2f(x) = e^{-1/x^2} for x0x \neq 0 and f(0)=0f(0) = 0. Show that fCf \in C^\infty and that f(n)(0)=0f^{(n)}(0) = 0 for all n0n \geq 0. What does this imply about the Taylor series of ff at 00?

    Show solution
    See the referenced source for the detailed solution.
  39. Ex. 59.39

    Prove: if ff is differentiable at aa, then ff is continuous at aa.

    Show solution
    Let ff be differentiable at aa. For h0h \neq 0, write f(a+h)f(a)=f(a+h)f(a)hhf(a+h)-f(a) = \frac{f(a+h)-f(a)}{h}\cdot h. As h0h\to 0, the first factor tends to f(a)f'(a) (finite by hypothesis) and the second tends to 00. Thus the product tends to 00, proving limh0f(a+h)=f(a)\lim_{h\to 0}f(a+h) = f(a). Therefore ff is continuous at aa. \square
    Show step-by-step (with the why)
    1. Algebraic identity for h0h \neq 0: f(a+h)f(a)=f(a+h)f(a)hhf(a+h) - f(a) = \frac{f(a+h)-f(a)}{h} \cdot h. Why: multiplying and dividing by hh is valid when h0h \neq 0.
    2. By hypothesis of differentiability: limh0f(a+h)f(a)h=f(a)\lim_{h\to 0}\frac{f(a+h)-f(a)}{h} = f'(a), which is finite.
    3. Trivially: limh0h=0\lim_{h\to 0} h = 0.
    4. Limit of product = product of limits: limh0[f(a+h)f(a)]=f(a)0=0\lim_{h\to 0}[f(a+h)-f(a)] = f'(a)\cdot 0 = 0.
    5. Therefore limh0f(a+h)=f(a)\lim_{h\to 0}f(a+h) = f(a): definition of continuity at aa. \square

    Note: The key is factoring the increment — a simple algebraic trick with profound consequences. Memorize this proof; it reappears in multivariable calculus.

  40. Ex. 59.40Answer key

    Prove that if fC1[a,b]f \in C^1[a,b], then ff is Lipschitz on [a,b][a,b]. (Hint: use the Mean Value Theorem and the fact that ff' is bounded on a compact set.)

    Show solution
    If fC1[a,b]f \in C^1[a,b], then ff' is continuous on the compact set [a,b][a,b], hence bounded: M>0\exists M > 0 such that f(x)M|f'(x)| \leq M for all x[a,b]x \in [a,b]. By the Mean Value Theorem: for any x,y[a,b]x, y \in [a,b], there exists cc between them with f(x)f(y)=f(c)(xy)f(x)-f(y) = f'(c)(x-y). Therefore f(x)f(y)=f(c)xyMxy|f(x)-f(y)| = |f'(c)||x-y| \leq M|x-y|. Thus ff is Lipschitz with constant MM. \square
    Show step-by-step (with the why)
    1. fC1[a,b]f \in C^1[a,b] implies ff' is continuous on a compact set. Why: compact + continuous implies bounded (Weierstrass Theorem for functions).
    2. M>0\exists M > 0 such that f(x)M|f'(x)| \leq M for all x[a,b]x \in [a,b].
    3. By MVT: f(x)f(y)=f(c)(xy)f(x)-f(y) = f'(c)(x-y) for some cc between xx and yy.
    4. f(x)f(y)=f(c)xyMxy|f(x)-f(y)| = |f'(c)||x-y| \leq M|x-y|. Therefore Lipschitz. \square

    Mnemonic: C1C^1 implies Lipschitz implies C0C^0 — the full hierarchy flowing downwards.

Sources

  • Active Calculus — Boelkins, 2024 · §1.7 "Limits, Continuity, and Differentiability" · CC-BY-NC-SA. Primary source.
  • Calculus Volume 1 — OpenStax, 2016 · §3.2 "The Derivative as a Function" · CC-BY-NC-SA.
  • APEX Calculus — Hartman et al., 2024 · v5 · §2.1 "Instantaneous Rates of Change: The Derivative" · CC-BY-NC.

Updated on 2024-05-15 · Author(s): Clube da Matemática

Found an error? Open an issue on GitHub or submit a PR — open source forever.