Linear Algebra
10.177 min read

Continuously Differentiable Functions (C¹)

A function is continuously differentiable (class C1C^1) if its derivative f(x)f'(x) exists at every point AND the derivative function f(x)f'(x) is itself continuous. This is a stronger requirement than merely being differentiable — the derivative must vary smoothly without jumps.

Why does it matter that the derivative be continuous? If ff' has a jump discontinuity at some point, then locally the function has "different slopes from the left and right" — a kink. Kinks cause problems in optimization algorithms. C1C^1 functions are "smooth enough" for most gradient-based methods to work reliably.

Notation: C1(D)C^1(D) denotes the class of functions with continuous first derivative on domain DD. Ck(D)C^k(D) means the first kk derivatives all exist and are continuous. CC^\infty means all derivatives exist and are continuous — these are called "smooth" functions.

Formal View

Definition 10.12 — Class C¹
A function f:DRf: D \to \mathbb{R} is of class C1C^1 (or continuously differentiable) on DD if f(x)f'(x) exists for all xDx \in D and ff' is continuous on DD. More generally, fCkf \in C^k if all derivatives f,f,,f(k)f', f'', \ldots, f^{(k)} exist and are continuous.

CC^\infty (smooth) functions include polynomials, sin\sin, cos\cos, exe^x, lnx\ln x. x|x| is C0C^0 but not C1C^1 (derivative has a jump at 0). xxx|x| is C1C^1 but not C2C^2.

Why This Matters

C1C^1 is the standard regularity assumption for gradient-based optimization — it ensures the gradient is well-defined and varies predictably.

  • Gradient descent requires fC1f \in C^1: the gradient must be defined and continuous for standard convergence guarantees.
  • Finite element methods: solution regularity (CkC^k) determines approximation error rates.
  • PDE theory: elliptic equations have CC^\infty solutions under smoothness assumptions on coefficients.

Quiz

Question 1

Which statement correctly describes a C1C^1 function?

Question 2

f(x)=xf(x) = |x| is in class C1C^1.

Common Mistakes

  • Thinking differentiable everywhere implies C1C^1 — the derivative must also be CONTINUOUS for C1C^1.
  • Confusing CkC^k (first kk derivatives continuous) with having kk derivatives that are just bounded.