Skip to content

Twice Continuous Differentiability on Rn\mathbb{R}^n

Definition

Let E⊆RnE\subseteq \mathbb{R}^n be open and let f ⁣:E→Rk\boldsymbol{f}\colon E\to\mathbb{R}^k be a function.

The function f\boldsymbol{f} is continuously differentiable, or C1C^1, on EE if all first-order partial derivatives of f\boldsymbol{f} exist on EE and are continuous on EE.

The function f\boldsymbol{f} is twice continuously differentiable, or C2C^2, on EE if all second-order partial derivatives of f\boldsymbol{f} exist on EE and are continuous on EE.


Interpretation

A C1C^1 function has first-order partial derivatives that change without jumps, so its slopes in the coordinate directions at nearby points are close to each other. C2C^2 asks the same one level deeper, of the second-order partial derivatives.

Three graphs: |x|, continuous but not differentiable at 0; x|x|, continuously differentiable but not twice; and x^2, twice continuously differentiable.

The three graphs show the classes for n=1n=1. ∣x∣|x| is continuous but has a corner at 00, so it is not differentiable there; x∣x∣x|x| has derivative 2∣x∣2|x|, continuous but again with a corner at 00, so it is C1C^1 but not C2C^2. Each class lies inside the previous one: C2⊆C1⊆C0C^2\subseteq C^1\subseteq C^0.

Continuity of the partial derivatives is required, not just their existence: the function f(x,y)=xy/(x2+y2)f(x,y)=xy/(x^2+y^2) with f(0,0)=0f(0,0)=0 has both partial derivatives at every point, yet it equals 12\tfrac{1}{2} on the line y=xy=x away from the origin, so it is not even continuous at the origin. Continuous partial derivatives rule this out: a C1C^1 function is totally differentiable, as the Key Results state.

This is the nn-variable form of the differentiability class from Math I, with partial derivatives in place of f′f' and f′′f''. C2C^2 is the assumption behind the symmetry of mixed partial derivatives, hence of a symmetric Hessian, and of the second-order Taylor approximation.

A common slip is to read "differentiable everywhere" as C1C^1. In one variable, f(x)=x2sin⁡(1/x)f(x)=x^2\sin(1/x) with f(0)=0f(0)=0 is differentiable at every point, but f′(x)=2xsin⁡(1/x)−cos⁡(1/x)f'(x)=2x\sin(1/x)-\cos(1/x) for x≠0x\neq0 has no limit at 00, so ff is not C1C^1.


Key Results


Examples

  • The function f(x,y)=x2+sin⁡yf(x,y)=x^2+\sin y is C2C^2 on R2\mathbb{R}^2.
  • The function f(x)=∣x∣f(x)=|x| is not C1C^1 on R\mathbb{R}, because it is not differentiable at 00.

Prerequisites

Sources

Aliases: twice continuously differentiable Keywords: twice continuously differentiable, C2 function on Rn, C1 function on Rn Symbols: real numbers, subset

Last updated: 20 October 2026 03:02