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}
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.

  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?

  3. Ex. 59.3

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

  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?

  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.

  6. Ex. 59.6

    Let f(x)={x2,x0x2,x<0f(x) = \begin{cases} x^2, & x \geq 0 \\ -x^2, & x < 0 \end{cases}. Calculate f+(0)f'_+(0) and f(0)f'_-(0). Is ff differentiable at 00?

  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.

  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.

  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?

  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.

  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?

  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.

  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.

  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.

  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.

  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?

  17. Ex. 59.17

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

  18. Ex. 59.18

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

  19. Ex. 59.19Answer key

    Find a,ba, b such that f(x)={ax+b,x0sinx,x>0f(x) = \begin{cases} ax + b, & x \leq 0 \\ \sin x, & x > 0 \end{cases} is C1C^1 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.

  21. Ex. 59.21Answer key

    Let f(x)={x2,x<0sinx,x0f(x) = \begin{cases} x^2, & x < 0 \\ \sin x, & x \geq 0 \end{cases}. Is ff C0C^0 at 00? Is it C1C^1 at 00?

  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?

  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.

  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.

  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.

  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.

  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?

  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.

  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?

  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?

  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?

  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?

  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?

  34. Ex. 59.34

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

  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.

  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?

  37. Ex. 59.37

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

  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?

  39. Ex. 59.39

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

  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.)

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.