In mathematics, the **Schwarzian derivative** is an operator similar to the derivative which is invariant under Möbius transformations. Thus, it occurs in the theory of the complex projective line, and in particular, in the theory of modular forms and hypergeometric functions. It plays an important role in the theory of univalent functions, conformal mapping and Teichmüller spaces. It is named after the German mathematician Hermann Schwarz.

The Schwarzian derivative of a holomorphic function f of one complex variable z is defined by

The same formula also defines the Schwarzian derivative of a *C*^{3} function of one real variable.
The alternative notation

is frequently used.

The Schwarzian derivative of any Möbius transformation

is zero. Conversely, the Möbius transformations are the only functions with this property. Thus, the Schwarzian derivative precisely measures the degree to which a function fails to be a Möbius transformation.

If *g* is a Möbius transformation, then the composition *g* o *f* has the same Schwarzian derivative as *f*; and on the other hand, the Schwarzian derivative of *f* o *g* is given by the chain rule

More generally, for any sufficiently differentiable functions *f* and *g*

When *f* and *g* are smooth real-valued functions, this implies that all iterations of a function with negative (or positive) Schwarzian will remain negative (resp. positive), a fact of use in the study of one-dimensional dynamics.^{[1]}

Introducing the function of two complex variables^{[2]}

its second mixed partial derivative is given by

and the Schwarzian derivative is given by the formula:

The Schwarzian derivative has a simple inversion formula, exchanging the dependent and the independent variables. One has

which follows from the inverse function theorem, namely that

The Schwarzian derivative has a fundamental relation with a second-order linear ordinary differential equation in the complex plane.^{[3]} Let and be two linearly independent holomorphic solutions of

Then the ratio satisfies

over the domain on which and are defined, and The converse is also true: if such a *g* exists, and it is holomorphic on a simply connected domain, then two solutions and can be found, and furthermore, these are unique up to a common scale factor.

When a linear second-order ordinary differential equation can be brought into the above form, the resulting *Q* is sometimes called the **Q-value** of the equation.

Note that the Gaussian hypergeometric differential equation can be brought into the above form, and thus pairs of solutions to the hypergeometric equation are related in this way.

If *f* is a holomorphic function on the unit disc, **D**, then W. Kraus (1932) and Nehari (1949) proved that a necessary condition for *f* to be univalent is^{[4]}

Conversely if *f*(*z*) is a holomorphic function on **D** satisfying

then Nehari proved that *f* is univalent.^{[5]}

In particular a sufficient condition for univalence is^{[6]}

The Schwarzian derivative and associated second-order ordinary differential equation can be used to determine the Riemann mapping between the upper half-plane or unit circle and any bounded polygon in the complex plane, the edges of which are circular arcs or straight lines. For polygons with straight edges, this reduces to the Schwarz–Christoffel mapping, which can be derived directly without using the Schwarzian derivative. The *accessory parameters* that arise as constants of integration are related to the eigenvalues of the second-order differential equation. Already in 1890 Felix Klein had studied the case of quadrilaterals in terms of the Lamé differential equation.^{[7]}^{[8]}^{[9]}

Let Δ be a circular arc polygon with angles π*α*_{1}, ..., π*α*_{n} in clockwise order. Let *f* : **H** → Δ be a holomorphic map extending continuously to a map between the boundaries. Let the vertices correspond to points *a*_{1}, ..., *a _{n}* on the real axis. Then

The real numbers *β*_{i} are called *accessory parameters*. They are subject to three linear constraints:

which correspond to the vanishing of the coefficients of and in the expansion of *p*(*z*) around *z* = ∞. The mapping *f*(*z*) can then be written as

where and are linearly independent holomorphic solutions of the linear second-order ordinary differential equation

There are *n*−3 linearly independent accessory parameters, which can be difficult to determine in practise.

For a triangle, when *n* = 3, there are no accessory parameters. The ordinary differential equation is equivalent to the hypergeometric differential equation and *f*(*z*) is the Schwarz triangle function, which can be written in terms of hypergeometric functions.

For a quadrilateral the accessory parameters depend on one independent variable *λ*. Writing *U*(*z*) = *q*(*z*)*u*(*z*) for a suitable choice of *q*(*z*), the ordinary differential equation takes the form

Thus are eigenfunctions of a Sturm–Liouville equation on the interval . By the Sturm separation theorem, the non-vanishing of forces *λ* to be the lowest eigenvalue.

Universal Teichmüller space is defined to be the space of real analytic quasiconformal mappings of the unit disc **D**, or equivalently the upper half-plane **H**, onto itself, with two mappings considered to be equivalent if on the boundary one is obtained from the other by composition with a Möbius transformation. Identifying **D** with the lower hemisphere of the Riemann sphere, any quasiconformal self-map *f* of the lower hemisphere corresponds naturally to a conformal mapping of the upper hemisphere onto itself. In fact is determined as the restriction to the upper hemisphere of the solution of the Beltrami differential equation

where μ is the bounded measurable function defined by

on the lower hemisphere, extended to 0 on the upper hemisphere.

Identifying the upper hemisphere with **D**, Lipman Bers used the Schwarzian derivative to define a mapping

which embeds universal Teichmüller space into an open subset *U* of the space of bounded holomorphic functions *g* on **D** with the uniform norm. Frederick Gehring showed in 1977 that *U* is the interior of the closed subset of Schwarzian derivatives of univalent functions.^{[10]}^{[11]}^{[12]}

For a compact Riemann surface *S* of genus greater than 1, its universal covering space is the unit disc **D** on which its fundamental group Γ acts by Möbius transformations. The Teichmüller space of *S* can be identified with the subspace of the universal Teichmüller space invariant under Γ. The holomorphic functions *g* have the property that

is invariant under Γ, so determine quadratic differentials on *S*. In this way, the Teichmüller space of *S* is realized as an open subspace of the finite-dimensional complex vector space of quadratic differentials on *S*.

The transformation property

allows the Schwarzian derivative to be interpreted as a continuous 1-cocycle or crossed homomorphism of the diffeomorphism group of the circle with coefficients in the module of densities of degree 2 on the circle.^{[13]}
Let *F*_{λ}(**S**^{1}) be the space of tensor densities of degree *λ* on **S**^{1}. The group of orientation-preserving diffeomorphisms of **S**^{1}, Diff(**S**^{1}), acts on *F*_{λ}(**S**^{1}) via pushforwards. If *f* is an element of Diff(**S**^{1}) then consider the mapping

In the language of group cohomology the chain-like rule above says that this mapping is a 1-cocycle on Diff(**S**^{1}) with coefficients in *F*_{2}(**S**^{1}). In fact

and the 1-cocycle generating the cohomology is *f* → *S*(*f*^{−1}). The computation of 1-cohomology is a particular case of the more general result

Note that if *G* is a group and *M* a *G*-module, then the identity defining a crossed homomorphism *c* of *G* into *M* can be expressed in terms of standard homomorphisms of groups: it is encoded in a homomorphism 𝜙 of *G* into the semidirect product such that the composition of 𝜙 with the projection onto *G* is the identity map; the correspondence is by the map *C*(*g*) = (*c*(*g*), *g*). The crossed homomorphisms form a vector space and containing as a subspace the coboundary crossed homomorphisms *b*(*g*) = *g* ⋅ *m* − *m* for *m* in *M*. A simple averaging argument shows that, if *K* is a compact group and *V* a topological vector space on which *K* acts continuously, then the higher cohomology groups vanish *H*^{m}(*K*, *V*) = (0) for *m* > 0. In particular for 1-cocycles χ with

averaging over *y*, using left invariant of the Haar measure on *K* gives

with

Thus by averaging it may be assumed that *c* satisfies the normalisation condition *c*(*x*) = 0 for *x* in Rot(**S**^{1}). Note that if any element *x* in *G* satisfies *c*(*x*) = 0 then *C*(*x*) = (0,*x*). But then, since *C* is a homomorphism,
*C*(*xgx*^{−1}) = *C*(*x*)*C*(*g*)*C*(*x*)^{−1}, so that *c* satisfies the equivariance condition *c*(*xgx*^{−1}) = *x* ⋅ *c*(*g*). Thus it may be assumed that the cocycle satisfies these normalisation conditions for Rot(**S**^{1}). The Schwarzian derivative in fact vanishes whenever *x* is a Möbius transformation corresponding to SU(1,1). The other two 1-cycles discussed below vanish only on Rot(**S**^{1}) (*λ* = 0, 1).

There is an infinitesimal version of this result giving a 1-cocycle for Vect(**S**^{1}), the Lie algebra of smooth vector fields, and hence for the Witt algebra, the subalgebra of trigonometric polynomial vector fields. Indeed, when *G* is a Lie group and the action of *G* on *M* is smooth, there is a Lie algebraic version of crossed homomorphism obtained by taking the corresponding homomorphisms of the Lie algebras (the derivatives of the homomorphisms at the identity). This also makes sense for Diff(**S**^{1}) and leads to the 1-cocycle

which satisfies the identity

In the Lie algebra case, the coboundary maps have the form *b*(*X*) = *X* ⋅ *m* for *m* in *M*. In both cases the 1-cohomology is defined as the space of crossed homomorphisms modulo coboundaries. The natural correspondence between group homomorphisms and Lie algebra homomorphisms leads to the "van Est inclusion map"

In this way the calculation can be reduced to that of Lie algebra cohomology. By continuity this reduces to the computation of crossed homomorphisms 𝜙 of the Witt algebra into *F*_{λ}(**S**^{1}). The normalisations conditions on the group crossed homomorphism imply the following additional conditions for 𝜙:

for *x* in Rot(**S**^{1}).

Following the conventions of Kac & Raina (1987), a basis of the Witt algebra is given by

so that [*d*_{m},*d*_{n}] = (*m* – *n*) *d*_{m + n}. A basis for the complexification of *F*_{λ}(**S**^{1}) is given by

so that

for *g*_{ζ} in Rot(**S**^{1}) = **T**. This forces 𝜙(*d*_{n}) = *a*_{n} ⋅ *v*_{n } for suitable coefficients *a*_{n}. The crossed homomorphism condition
𝜙([*X*,*Y*]) = *X*𝜙(*Y*) – *Y*𝜙(*X*) gives a recurrence relation for the *a*_{n}:

The condition 𝜙(*d*/*d*θ) = 0, implies that *a*_{0} = 0. From this condition and the recurrence relation, it follows that up to scalar multiples, this has a unique non-zero solution when *λ* equals 0, 1 or 2 and only the zero solution otherwise. The solution for *λ* = 1 corresponds to the group 1-cocycle . The solution for *λ* = 0 corresponds to the group 1-cocycle 𝜙_{0}(*f*) = log *f' *. The corresponding Lie algebra 1-cocycles for *λ* = 0, 1, 2 are given up to a scalar multiple by

The crossed homomorphisms in turn give rise to the central extension of Diff(**S**^{1}) and of its Lie algebra Vect(**S**^{1}), the so-called Virasoro algebra.

The group Diff(**S**^{1}) and its central extension also appear naturally in the context of Teichmüller theory and string theory.^{[14]} In fact the homeomorphisms of **S**^{1} induced by quasiconformal self-maps of **D** are precisely the quasisymmetric homeomorphisms of **S**^{1}; these are exactly homeomorphisms which do not send four points with cross ratio 1/2 to points with cross ratio near 1 or 0. Taking boundary values, universal Teichmüller can be identified with the quotient of the group of quasisymmetric homeomorphisms QS(**S**^{1}) by the subgroup of Möbius transformations Moeb(**S**^{1}). (It can also be realized naturally as the space of quasicircles in **C**.) Since

the homogeneous space Diff(**S**^{1})/Moeb(**S**^{1}) is naturally a subspace of universal Teichmüller space. It is also naturally a complex manifold and this and other natural geometric structures are compatible with those on Teichmüller space. The dual of the Lie algebra of Diff(**S**^{1}) can be identified with the space of Hill's operators on **S**^{1}

and the coadjoint action of Diff(**S**^{1}) invokes the Schwarzian derivative. The inverse of the diffeomorphism *f* sends the Hill's operator to

The Schwarzian derivative and the other 1-cocycle defined on Diff(**S**^{1}) can be extended to biholomorphic between open sets in the complex plane. In this case the local description leads to the theory of analytic pseudogroups, formalizing the theory of infinite-dimensional groups and Lie algebras first studied by Élie Cartan in the 1910s. This is related to affine and projective structures on Riemann surfaces as well as the theory of Schwarzian or projective connections, discussed by Gunning, Schiffer and Hawley.

A holomorphic pseudogroup Γ on **C** consists of a collection of biholomorphisms *f* between open sets *U* and *V* in **C** which contains the identity maps for each open *U*, which is closed under restricting to opens, which is closed under composition (when possible), which is closed under taking inverses and such that if a biholomorphisms is locally in Γ, then it too is in Γ. The pseudogroup is said to be *transitive* if, given *z* and *w* in **C**, there is a biholomorphism *f* in Γ such that *f*(*z*) = *w*. A particular case of transitive pseudogroups are those which are *flat*, i.e. contain all complex translations *T*_{b}(*z*) = *z* + *b*. Let *G* be the group, under composition, of formal power series transformations *F*(z) = *a*_{1}*z* + *a*_{2}*z*^{2} + .... with *a*_{1} ≠ 0. A holomorphic pseudogroup Γ defines a subgroup *A* of *G*, namely the subgroup defined by the Taylor series expansion about 0 (or "jet") of elements *f* of Γ with *f*(0) = 0. Conversely if Γ is flat it is uniquely determined by *A*: a biholomorphism *f* on *U* is contained in Γ in if and only if the power series of *T*_{–f(a)} ∘ *f* ∘ *T*_{a} lies in *A* for every *a* in *U*: in other words the formal power series for *f* at *a* is given by an element of *A* with *z* replaced by *z* − *a*; or more briefly all the jets of *f* lie in *A*.^{[15]}

The group *G* has a natural homomorphisms onto the group *G*_{k} of *k*-jets obtained by taking the truncated power series taken up to the term *z*^{k}. This group acts faithfully on the space of polynomials of degree *k* (truncating terms of order higher than *k*). Truncations similarly define homomorphisms of *G*_{k} onto *G*_{k − 1}; the kernel consists of maps *f* with *f*(*z*) = *z* + *bz*^{k}, so is Abelian. Thus the group *G*_{k} is solvable, a fact also clear from the fact that it is in triangular form for the basis of monomials.

A flat pseudogroup Γ is said to be * "defined by differential equations"* if there is a finite integer

The only possibilities in this case are that *k* = 1 and *A* = {*az*: *a* ≠ 0}; or that *k* = 2 and *A* = {*az*/(1−*bz*) : *a* ≠ 0}. The former is the pseudogroup defined by affine subgroup of the complex Möbius group (the *az* + *b* transformations fixing ∞); the latter is the pseudogroup defined by the whole complex Möbius group.

This classification can easily be reduced to a Lie algebraic problem since the formal Lie algebra of *G* consists of formal vector fields *F*(*z*) *d*/*dz* with *F* a formal power series. It contains the polynomial vectors fields with basis *d*_{n} = *z*^{n+1} *d*/*dz* (*n* ≥ 0), which is a subalgebra of the Witt algebra. The Lie brackets are given by [*d*_{m},*d*_{n}] = (*n* − *m*)*d*_{m+n}. Again these act on the space of polynomials of degree ≤ *k* by differentiation—it can be identified with **C**[[*z*]]/(*z*^{k+1})—and the images of *d*_{0}, ..., *d*_{k – 1} give a basis of the Lie algebra of *G*_{k}. Note that Ad(*S*_{a}) *d*_{n}= *a*^{–n} *d*_{n}. Let denote the Lie algebra of *A*: it is isomorphic to a subalgebra of the Lie algebra of *G*_{k}. It contains *d*_{0} and is invariant under Ad(*S*_{a}). Since is a Lie subalgebra of the Witt algebra, the only possibility is that it has basis *d*_{0} or basis *d*_{0}, *d*_{n} for some *n* ≥ 1. There are corresponding group elements of the form *f*(*z*)= *z* + *bz*^{n+1} + .... Composing this with translations yields *T*_{–f(ε)} ∘ *f* ∘ *T*_{ ε}(*z*) = *cz* + *dz*^{2} + ... with *c*, *d* ≠ 0. Unless *n* = 2, this contradicts the form of subgroup *A*; so *n* = 2.^{[16]}

The Schwarzian derivative is related to the pseudogroup for the complex Möbius group. In fact if *f* is a biholomorphism defined on *V* then 𝜙_{2}(*f*) = *S*(*f*) is a quadratic differential on *V*. If *g* is a bihomolorphism defined on *U* and *g*(*V*) ⊆ *U*, *S*(*f* ∘ *g*) and *S*(*g*) are quadratic differentials on *U*; moreover *S*(*f*) is a quadratic differential on *V*, so that *g*_{∗}*S*(f) is also a quadratic differential on *U*. The identity

is thus the analogue of a 1-cocycle for the pseudogroup of biholomorphisms with coefficients in holomorphic quadratic differentials. Similarly and are 1-cocycles for the same pseudogroup with values in holomorphic functions and holomorphic differentials. In general 1-cocycle can be defined for holomorphic differentials of any order so that

Applying the above identity to inclusion maps *j*, it follows that 𝜙(*j*) = 0; and hence that if *f*_{1} is the restriction of *f*_{2}, so that *f*_{2} ∘ *j* = *f*_{1}, then 𝜙(*f*_{1}) = 𝜙 (*f*_{2}). On the other hand, taking the local holomororphic flow defined by holomorphic vector fields—the exponential of the vector fields—the holomorphic pseudogroup of local biholomorphisms is generated by holomorphic vector fields. If the 1-cocycle 𝜙 satisfies suitable continuity or analyticity conditions, it induces a 1-cocycle of holomorphic vector fields, also compatible with restriction. Accordingly, it defines a 1-cocycle on holomorphic vector fields on **C**:^{[17]}

Restricting to the Lie algebra of polynomial vector fields with basis *d*_{n} = *z*^{n+1} *d*/*dz* (*n* ≥ −1), these can be determined using the same methods of Lie algebra cohomology (as in the previous section on crossed homomorphisms). There the calculation was for the whole Witt algebra acting on densities of order *k*, whereas here it is just for a subalgebra acting on holomorphic (or polynomial) differentials of order *k*. Again, assuming that 𝜙 vanishes on rotations of **C**, there are non-zero 1-cocycles, unique up to scalar multiples. only for differentials of degree 0, 1 and 2 given by the same derivative formula

where *p*(*z*) is a polynomial.

The 1-cocycles define the three pseudogroups by 𝜙_{k}(*f*) = 0: this gives the scaling group (*k* = 0); the affine group (*k* = 1); and the whole complex Möbius group (*k* = 2). So these 1-cocycles are the special ordinary differential equations defining the pseudogroup. More significantly they can be used to define corresponding affine or projective structures and connections on Riemann surfaces. If Γ is a pseudogroup of smooth mappings on **R**^{n}, a topological space *M* is said to have a Γ-structure if it has a collection of charts *f* that are homeomorphisms from open sets *V*_{i} in *M* to open sets *U*_{i} in **R**^{n} such that, for every non-empty intersection, the natural map from *f*_{i} (*U*_{i} ∩ *U*_{j}) to *f*_{j} (*U*_{i} ∩ *U*_{j}) lies in Γ. This defines the structure of a smooth *n*-manifold if Γ consists of local diffeomorphims and a Riemann surface if *n* = 2—so that **R**^{2} ≡ **C**—and Γ consists of biholomorphisms. If Γ is the affine pseudogroup, *M* is said to have an affine structure; and if Γ is the Möbius pseudogroup, *M* is said to have a projective structure. Thus a genus one surface given as **C**/Λ for some lattice Λ ⊂ **C** has an affine structure; and a genus *p* > 1 surface given as the quotient of the upper half plane or unit disk by a Fuchsian group has a projective structure.^{[18]}

Gunning in 1966 describes how this process can be reversed: for genus *p* > 1, the existence of a projective connection, defined using the Schwarzian derivative 𝜙_{2} and proved using standard results on cohomology, can be used to identify the universal covering surface with the upper half plane or unit disk (a similar result holds for genus 1, using affine connections and 𝜙_{1}).^{[18]}