In mathematical analysis, a real or complex function of a single variable is differentiable if its derivative exists at each point in its domain. For real-valued functions of a real variable, the graph of a differentiable function has a non-vertical tangent line at each interior point in its domain. A differentiable function is locally approximable by a linear function at each interior point, and does not contain any break, angle, or cusp. If x0 is an interior point in the domain of a real function f, then f is said to be differentiable at x0 if there exists an L∈ℝ such that for all ϵ>0, there exists a δ>0 such that for all x∈(x0−δ,x0)∪(x0,x0+δ), f(x)−f(x0)x−x0∈(L−ϵ,L+ϵ). In other words, the graph of f has a non-vertical tangent line at the point (x0,f(x0)). The function f is said to be differentiable on a subset U⊆ℝ if it is differentiable at every point in U, and f is said to be continuously differentiable if its derivative is also a continuous function over the domain of f. Continuous functions may be nowhere differentiable in their domain, such as the Weierstrass function. Taking successive antiderivatives of such a function allows one to obtain a function that is differentiable only a finite number of times, the finite number being any positive integer. Given a positive integer k, f is said to be of class Ck if its first k derivatives f′,f″,…,f(k) exist and are continuous over the domain of f. For a multivariable function, as shown here, the differentiability of it is something more complex than the existence of the partial derivatives of it. However, the idea is fundamentally the same: a function that is locally approximable by a linear map at a particular point is said to be differentiable at that point.
Differentiability of real functions of one variable A function f:U→ℝ, defined on an open set U⊂ℝ, is said to be differentiable at a∈U if the derivative f′(a)=limh→0f(a+h)−f(a)h=limx→af(x)−f(a)x−a exists. This implies that the function is continuous at a. This function f is said to be differentiable on U if it is differentiable at every point of U. In this case, the derivative of f is thus a function from U into ℝ. A continuous function is not necessarily differentiable, but a differentiable function is necessarily continuous (at every point where it is differentiable) as is shown below (in the section Differentiability and continuity). A function is said to be continuously differentiable if its derivative is also a continuous function; there exist functions that are differentiable but not continuously differentiable (an example is given in the section Differentiability classes).
Semi-differentiability
The above definition can be extended to define the derivative at boundary points of the domain that also belong to the domain. The derivative of a function f:A→ℝ defined on a closed subset A⊊ℝ of the real numbers, evaluated at a boundary point c, can be defined as the following one-sided limit, where the argument x approaches c such that it is always within A: f′(c)=limx→cx∈Af(x)−f(c)x−c. For x to remain within A, which is a subset of the reals, it follows that this limit will be defined as either f′(c)=limx→c+f(x)−f(c)x−corf′(c)=limx→c−f(x)−f(c)x−c.
Differentiability and continuity
If f is differentiable at a point x0, then f must also be continuous at x0. In particular, any differentiable function must be continuous at every point in its domain. The converse does not hold: a continuous function need not be differentiable. For example, a function with a bend, cusp, or vertical tangent may be continuous, but fails to be differentiable at the location of the anomaly. Most functions that occur in practice have derivatives at all points or at almost every point. However, a result of Stefan Banach states that the set of functions that have a derivative at some point is a meagre set in the space of all continuous functions. Informally, this means that differentiable functions are very atypical among continuous functions. The first known example of a function that is continuous everywhere but differentiable nowhere is the Weierstrass function.
Differentiability classes
A function f is said to be continuously differentiable if the derivative f′(x) exists and is itself a continuous function. Although the derivative of a differentiable function never has a jump discontinuity, it is possible for the derivative to have an essential discontinuity. For example, the function f(x)={x2sin(1/x) if x≠00 if x=0 is differentiable at 0, since f′(0)=limε→0(ε2sin(1/ε)−0ε)=0 exists. However, for x≠0, differentiation rules imply f′(x)=2xsin(1/x)−cos(1/x), which has no limit as x→0. Thus, this example shows the existence of a function that is differentiable but not continuously differentiable (i.e., the derivative is not a continuous function). Nevertheless, Darboux's theorem implies that the derivative of any function satisfies the conclusion of the intermediate value theorem. Similarly to how continuous functions are said to be of class C0, continuously differentiable functions are sometimes said to be of class C1. A function is of class C2 if the first and second derivative of the function both exist and are continuous. More generally, a function is said to be of class Ck if the first k derivatives f′(x),f″(x),…,f(k)(x) all exist and are continuous. If derivatives f(n) exist for all positive integers n, the function is smooth or equivalently, of class C∞.
Differentiability in higher dimensions
… excerpt ends here. Continue reading the full article.





