Mean value theorem



In mathematics, the mean value theorem (or Lagrange theorem) states, roughly, that for a given planar arc between two endpoints, there is at least one point at which the tangent to the arc is parallel to the secant through its endpoints. It is one of the most important results in real analysis. This theorem is used to prove statements about a function on an interval starting from local hypotheses about derivatives at points of the interval.

More precisely, the theorem states that if $$f$$ is a continuous function on the closed interval $$[a, b]$$ and differentiable on the open interval $$(a,b)$$, then there exists a point $$c$$ in $$(a,b)$$ such that the tangent at $$c$$ is parallel to the secant line through the endpoints $$\big(a, f(a)\big)$$ and $$\big(b, f(b)\big)$$, that is,
 * $$f'(c)=\frac{f(b) - f(a)}{b - a}.$$

History
A special case of this theorem for inverse interpolation of the sine was first described by Parameshvara (1380–1460), from the Kerala School of Astronomy and Mathematics in India, in his commentaries on Govindasvāmi and Bhāskara II. A restricted form of the theorem was proved by Michel Rolle in 1691; the result was what is now known as Rolle's theorem, and was proved only for polynomials, without the techniques of calculus. The mean value theorem in its modern form was stated and proved by Augustin Louis Cauchy in 1823. Many variations of this theorem have been proved since then.

Formal statement
Let $$f:[a,b]\to\R$$ be a continuous function on the closed interval $[a,b]$, and differentiable on the open interval $(a,b)$, where $a < b$. Then there exists some $$c$$ in $$(a,b)$$ such that


 * $$f'(c)=\frac{f(b)-f(a)}{b-a}.$$

The mean value theorem is a generalization of Rolle's theorem, which assumes $$f(a)=f(b)$$, so that the right-hand side above is zero.

The mean value theorem is still valid in a slightly more general setting. One only needs to assume that $$f:[a,b]\to\R$$ is continuous on $$[a,b]$$, and that for every $$x$$ in $$(a,b)$$ the limit


 * $$\lim_{h\to 0}\frac{f(x+h)-f(x)}{h}$$

exists as a finite number or equals $$\infty$$ or $$-\infty$$. If finite, that limit equals $$f'(x)$$. An example where this version of the theorem applies is given by the real-valued cube root function mapping $$x \mapsto x^{1/3}$$, whose derivative tends to infinity at the origin.

The theorem, as stated, is false if a differentiable function is complex-valued instead of real-valued. For example, define $$f(x) = e^{xi}$$ for all real $x$. Then
 * $$f(2\pi)-f(0)=0=0(2\pi-0)$$

while $$f'(x)\ne 0$$ for any real $x$.

These formal statements are also known as Lagrange's Mean Value Theorem.

Proof
The expression $\frac{f(b)-f(a)}{b-a}$ gives the slope of the line joining the points $$(a,f(a))$$ and $$(b,f(b))$$, which is a chord of the graph of $$f$$, while $$f'(x)$$ gives the slope of the tangent to the curve at the point $$(x,f(x))$$. Thus the mean value theorem says that given any chord of a smooth curve, we can find a point on the curve lying between the end-points of the chord such that the tangent of the curve at that point is parallel to the chord. The following proof illustrates this idea.

Define $$g(x)=f(x)-rx$$, where $$r$$ is a constant. Since $$f$$ is continuous on $$[a,b]$$ and differentiable on $$(a,b)$$, the same is true for $$g$$. We now want to choose $$r$$ so that $$g$$ satisfies the conditions of Rolle's theorem. Namely


 * $$\begin{align}

g(a)=g(b)&\iff f(a)-ra=f(b)-rb\\ &\iff r(b-a)=f(b)-f(a) \\ &\iff r=\frac{f(b)-f(a)}{b-a}. \end{align}$$

By Rolle's theorem, since $$g$$ is differentiable and $$g(a)=g(b)$$, there is some $$c$$ in $$(a,b)$$ for which $$g'(c)=0$$, and it follows from the equality $$g(x)=f(x)-rx$$ that,


 * $$\begin{align}

&g'(x) = f'(x) -r \\ & g'(c) = 0\\ &g'(c) = f'(c) - r = 0 \\ &\Rightarrow f'(c) = r = \frac{f(b)-f(a)}{b-a} \end{align}$$

Implications
Theorem 1: Assume that $$f$$ is a continuous, real-valued function, defined on an arbitrary interval $$I$$ of the real line. If the derivative of $$f$$ at every interior point of the interval $$I$$ exists and is zero, then $$f$$ is constant in the interior.

Proof: Assume the derivative of $$f$$ at every interior point of the interval $$I$$ exists and is zero. Let $$(a, b)$$ be an arbitrary open interval in $$I$$. By the mean value theorem, there exists a point $$c$$ in $$(a, b)$$ such that


 * $$0=f'(c)=\frac{f(b)-f(a)}{b-a}.$$

This implies that $f(a) = f(b)$. Thus, $$f$$ is constant on the interior of $$I$$ and thus is constant on $$I$$ by continuity. (See below for a multivariable version of this result.)

Remarks: Theorem 2: If $$f'(x) = g'(x)$$ for all $$x$$ in an interval $$(a, b)$$ of the domain of these functions, then $$f - g$$ is constant, i.e. $$f = g + c$$ where $$c$$ is a constant on $$(a, b)$$.
 * Only continuity of $$f$$, not differentiability, is needed at the endpoints of the interval $$I$$. No hypothesis of continuity needs to be stated if $$I$$ is an open interval, since the existence of a derivative at a point implies the continuity at this point.  (See the section continuity and differentiability of the article derivative.)
 * The differentiability of $$f$$ can be relaxed to one-sided differentiability, a proof is given in the article on semi-differentiability.

Proof: Let $$F(x) = f(x) - g(x)$$, then $$F'(x)=f'(x)-g'(x)=0$$ on the interval $$(a, b)$$, so the above theorem 1 tells that $$F(x) = f(x) - g(x)$$ is a constant $$c$$ or $$f = g + c$$.

Theorem 3: If $$F$$ is an antiderivative of $$f$$ on an interval $$I$$, then the most general antiderivative of $$f$$ on $$I$$ is $$F(x) + c$$ where $$c$$ is a constant.

Proof: It directly follows from the theorem 2 above.

Cauchy's mean value theorem
Cauchy's mean value theorem, also known as the extended mean value theorem, is a generalization of the mean value theorem. It states: if the functions $$f$$ and $$g$$ are both continuous on the closed interval $$[a,b]$$ and differentiable on the open interval $$(a,b)$$, then there exists some $$c \in (a,b)$$, such that


 * $$(f(b)-f(a))g'(c)=(g(b)-g(a))f'(c).$$

Of course, if $$g(a) \neq g(b)$$ and $$g'(c) \neq 0$$, this is equivalent to:


 * $$\frac{f'(c)}{g'(c)}=\frac{f(b)-f(a)}{g(b)-g(a)}.$$

Geometrically, this means that there is some tangent to the graph of the curve


 * $$\begin{cases}[a,b] \to \R^2\\t\mapsto (f(t),g(t))\end{cases}$$

which is parallel to the line defined by the points $$(f(a), g(a))$$ and $$(f(b), g(b))$$. However, Cauchy's theorem does not claim the existence of such a tangent in all cases where $$(f(a), g(a))$$ and $$(f(b), g(b))$$ are distinct points, since it might be satisfied only for some value $$c$$ with $$f'(c) = g'(c) = 0$$, in other words a value for which the mentioned curve is stationary; in such points no tangent to the curve is likely to be defined at all. An example of this situation is the curve given by


 * $$t \mapsto \left(t^3,1-t^2\right),$$

which on the interval $$[-1,1]$$ goes from the point $$(-1, 0)$$ to $$(1, 0)$$, yet never has a horizontal tangent; however it has a stationary point (in fact a cusp) at $$t = 0$$.

Cauchy's mean value theorem can be used to prove L'Hôpital's rule. The mean value theorem is the special case of Cauchy's mean value theorem when $$g(t) = t$$.

Proof of Cauchy's mean value theorem
The proof of Cauchy's mean value theorem is based on the same idea as the proof of the mean value theorem.

  Suppose $$g(a) \neq g(b)$$. Define $$h(x) = f(x) - rg(x)$$, where $$r$$ is fixed in such a way that $$h(a) = h(b)$$, namely
 * $$\begin{align}h(a)=h(b)&\iff f(a)-rg(a)=f(b)-rg(b)\\ &\iff r (g(b)-g(a))=f(b)-f(a)\\ &\iff r=\frac{f(b)-f(a)}{g(b)-g(a)}.\end{align}$$

Since $$f$$ and $$g$$ are continuous on $$[a,b]$$ and differentiable on $$(a,b)$$, the same is true for $$h$$. All in all, $$h$$ satisfies the conditions of Rolle's theorem: consequently, there is some $$c$$ in $$(a,b)$$ for which $$h'(c) = 0$$. Now using the definition of $$h$$ we have:
 * $$0=h'(c)=f'(c)-rg'(c) = f'(c)- \left (\frac{f(b)-f(a)}{g(b)-g(a)} \right ) g'(c).$$

Therefore:
 * $$f'(c)= \frac{f(b)-f(a)}{g(b)-g(a)} g'(c),$$

which implies the result.   If $$g(a) = g(b)$$, then, applying Rolle's theorem to $$g$$, it follows that there exists $$c$$ in $$(a,b)$$ for which $$g'(c) = 0$$. Using this choice of $$c$$, Cauchy's mean value theorem (trivially) holds.  

Generalization for determinants
Assume that $$f, g,$$ and $$h$$ are differentiable functions on $$(a,b)$$ that are continuous on $$[a,b]$$. Define


 * $$ D(x) = \begin{vmatrix}

f(x) & g(x) & h(x)\\ f(a) & g(a) & h(a)\\ f(b) & g(b) & h(b) \end{vmatrix}$$

There exists $$c\in(a,b)$$ such that $$ D'(c)=0$$.

Notice that
 * $$ D'(x) = \begin{vmatrix}

f'(x) & g'(x)& h'(x)\\ f(a) & g(a) & h(a)\\ f(b) & g(b)& h(b) \end{vmatrix}$$ and if we place $$h(x)=1$$, we get Cauchy's mean value theorem. If we place $$h(x)=1$$ and $$g(x)=x$$ we get Lagrange's mean value theorem.

The proof of the generalization is quite simple: each of $$D(a)$$ and $$D(b)$$ are determinants with two identical rows, hence $$D(a)=D(b)=0$$. The Rolle's theorem implies that there exists $$c\in (a,b)$$ such that $$D'(c)=0$$.

Mean value theorem in several variables
The mean value theorem generalizes to real functions of multiple variables. The trick is to use parametrization to create a real function of one variable, and then apply the one-variable theorem.

Let $$G$$ be an open subset of $$\R^n$$, and let $$f:G\to\R$$ be a differentiable function. Fix points $$x,y\in G$$ such that the line segment between $$x, y$$ lies in $$G$$, and define $$g(t)=f\big((1-t)x+ty\big)$$. Since $$g$$ is a differentiable function in one variable, the mean value theorem gives:


 * $$g(1)-g(0)=g'(c)$$

for some $$c$$ between 0 and 1. But since $$g(1)=f(y)$$ and $$g(0)=f(x)$$, computing $$g'(c)$$ explicitly we have:


 * $$f(y)-f(x)=\nabla f\big((1-c)x+cy\big)\cdot (y-x)$$

where $$\nabla$$ denotes a gradient and $$\cdot$$ a dot product. This is an exact analog of the theorem in one variable (in the case $$n=1$$ this is the theorem in one variable). By the Cauchy–Schwarz inequality, the equation gives the estimate:


 * $$\Bigl|f(y)-f(x)\Bigr| \le \Bigl|\nabla f\big((1-c)x+cy\big)\Bigr|\ \Bigl|y - x\Bigr|.$$

In particular, when the partial derivatives of $$f$$ are bounded, $$f$$ is Lipschitz continuous (and therefore uniformly continuous).

As an application of the above, we prove that $$f$$ is constant if the open subset $$G$$ is connected and every partial derivative of $$f$$ is 0. Pick some point $$x_0\in G$$, and let $$g(x)=f(x)-f(x_0)$$. We want to show $$g(x)=0$$ for every $$x\in G$$. For that, let $$E=\{x\in G:g(x)=0\}$$. Then E is closed and nonempty. It is open too: for every $$x\in E$$ ,


 * $$\Big|g(y)\Big|=\Big|g(y)-g(x)\Big|\le (0)\Big|y-x\Big|=0$$

for every $$y$$ in some neighborhood of $$x$$. (Here, it is crucial that $$x$$ and $$y$$ are sufficiently close to each other.) Since $$G$$ is connected, we conclude $$E=G$$.

The above arguments are made in a coordinate-free manner; hence, they generalize to the case when $$G$$ is a subset of a Banach space.

Mean value theorem for vector-valued functions
There is no exact analog of the mean value theorem for vector-valued functions (see below). However, there is an inequality which can be applied to many of the same situations to which the mean value theorem is applicable in the one dimensional case:

$$

The theorem follows from the mean value theorem. Indeed, take $$\varphi(t) = (\textbf{f}(b) - \textbf{f}(a)) \cdot \textbf{f}(t)$$. Then $$\varphi$$ is real-valued and thus, by the mean value theorem,
 * $$\varphi(b) - \varphi(a) = \varphi'(c)(b-a)$$

for some $$c \in (a, b)$$. Now, $$\varphi(b) - \varphi(a) = |\textbf{f}(b) - \textbf{f}(a)|^2$$ and $$\varphi'(c) = (\textbf{f}(b) - \textbf{f}(a)) \cdot \textbf{f}'(c).$$ Hence, using the Cauchy–Schwarz inequality, from the above equation, we get:
 * $$|\textbf{f}(b) - \textbf{f}(a)|^2 \le |\textbf{f}(b) - \textbf{f}(a)| |\textbf{f}'(c) |(b-a).$$

If $$\textbf{f}(b) = \textbf{f}(a)$$, the theorem is trivial (any c works). Otherwise, dividing both sides by $$ |\textbf{f}(b) - \textbf{f}(a)|$$ yields the theorem. $$\square$$

Jean Dieudonné in his classic treatise Foundations of Modern Analysis discards the mean value theorem and replaces it by mean inequality (which is given below) as the proof is not constructive and one cannot find the mean value and in applications one only needs mean inequality. Serge Lang in Analysis I uses the mean value theorem, in integral form, as an instant reflex but this use requires the continuity of the derivative. If one uses the Henstock–Kurzweil integral one can have the mean value theorem in integral form without the additional assumption that derivative should be continuous as every derivative is Henstock–Kurzweil integrable.

The reason why there is no analog of mean value equality is the following: If $f : U → R^{m}$ is a differentiable function (where $U ⊂ R^{n}$ is open) and if $x + th$, $x, h ∈ R^{n}, t ∈ [0, 1]$ is the line segment in question (lying inside $U$), then one can apply the above parametrization procedure to each of the component functions $f_{i} (i = 1, …, m)$ of f (in the above notation set $y = x + h$). In doing so one finds points $x + t_{i}h$ on the line segment satisfying


 * $$f_i(x+h) - f_i(x) = \nabla f_i (x + t_ih) \cdot h.$$

But generally there will not be a single point $x + t*h$ on the line segment satisfying


 * $$f_i(x+h) - f_i(x) = \nabla f_i (x + t^* h) \cdot h.$$

for all $i$ simultaneously. For example, define:


 * $$\begin{cases}

f : [0, 2 \pi] \to \R^2 \\ f(x) = (\cos(x), \sin(x)) \end{cases}$$

Then $$f(2\pi) - f(0) = \mathbf{0} \in \R^2$$, but $$f_1'(x) = -\sin (x)$$ and $$f_2'(x) = \cos (x)$$ are never simultaneously zero as $$x$$ ranges over $$\left[0, 2 \pi\right]$$.

The above theorem implies the following:

In fact, the above statement suffices for many applications and can be proved directly as follows. (We shall write $$f$$ for $$\textbf{f}$$ for readability.) First assume $$f$$ is differentiable at $$a$$ too. If $$f'$$ is unbounded on $$(a, b)$$, there is nothing to prove. Thus, assume $$\sup_{(a, b)} |f'| < \infty$$. Let $$M > \sup_{(a, b)} |f'|$$ be some real number. Let
 * $$E = \{ 0 \le t \le 1 \mid |f(a + t(b-a)) - f(a)| \le Mt(b-a) \}.$$

We want to show $$1 \in E$$. By continuity of $$f$$, the set $$E$$ is closed. It is also nonempty as $$0$$ is in it. Hence, the set $$E$$ has the largest element $$s$$. If $$s = 1$$, then $$1 \in E$$ and we are done. Thus suppose otherwise. For $$1 > t > s$$,
 * $$\begin{align}

&|f(a + t(b-a)) - f(a)| \\ &\le |f(a + t(b-a)) - f(a+s(b - a)) - f'(a + s(b-a))(t-s)(b-a)| + |f'(a+s(b-a))|(t-s)(b-a) \\ &+|f(a + s(b-a)) - f(a)|. \end{align} $$

Let $$\epsilon > 0$$ be such that $$M - \epsilon > \sup_{(a, b)} |f'|$$. By the differentiability of $$f$$ at $$a + s(b-a)$$ (note $$s$$ may be 0), if $$t$$ is sufficiently close to $$s$$, the first term is $$\le \epsilon (t-s)(b-a)$$. The second term is $$\le (M - \epsilon) (t-s)(b-a)$$. The third term is $$\le Ms(b-a)$$. Hence, summing the estimates up, we get: $$|f(a + t(b-a)) - f(a)| \le tM|b-a|$$, a contradiction to the maximality of $$s$$. Hence, $$1 = s \in M$$ and that means:
 * $$|f(b) - f(a)| \le M(b-a).$$

Since $$M$$ is arbitrary, this then implies the assertion. Finally, if $$f$$ is not differentiable at $$a$$, let $$a' \in (a, b)$$ and apply the first case to $$f$$ restricted on $$[a', b]$$, giving us:
 * $$|f(b) - f(a')| \le (b-a')\sup_{(a, b)} |f'|$$

since $$(a', b) \subset (a, b)$$. Letting $$a' \to a$$ finishes the proof. $$\square$$

For some applications of mean value inequality to establish basic results in calculus, see also Calculus on Euclidean space.

A certain type of generalization of the mean value theorem to vector-valued functions is obtained as follows: Let $f$ be a continuously differentiable real-valued function defined on an open interval $I$, and let $x$ as well as $x + h$ be points of $I$. The mean value theorem in one variable tells us that there exists some $t*$ between 0 and 1 such that


 * $$f(x+h)-f(x) = f'(x + t^* h) \cdot h.$$

On the other hand, we have, by the fundamental theorem of calculus followed by a change of variables,


 * $$ f(x+h)-f(x) = \int_x^{x+h} f'(u) \, du = \left (\int_0^1 f'(x+th)\,dt \right) \cdot h.$$

Thus, the value $f′(x + t*h)$ at the particular point $t*$ has been replaced by the mean value


 * $$\int_0^1 f'(x + t h) \, dt.$$

This last version can be generalized to vector valued functions:

$$

Proof. Let f1, …, fm denote the components of $U ⊂ R^{n}$ and define:


 * $$\begin{cases}

g_i : [0,1] \to \R \\ g_i(t) = f_i (x +th) \end{cases} $$

Then we have



\begin{align} f_i(x+h)-f_i(x) &= g_i(1)-g_i(0) =\int_0^1 g_i'(t)\,dt \\ &= \int_0^1 \left (\sum_{j=1}^n \frac{\partial f_i}{\partial x_j} (x + t h) h_j\right) dt = \sum_{j=1}^n \left (\int_0^1 \frac{\partial f_i}{\partial x_j}(x + t h)\,dt\right) h_j. \end{align} $$

The claim follows since $f : U → R^{m}$ is the matrix consisting of the components $$\tfrac{\partial f_i}{\partial x_j}$$. $$\square$$

The mean value inequality can then be obtained as a corollary of the above proposition (though under the assumption the derivatives are continuous).

Cases where the theorem cannot be applied
Both conditions for the mean value theorem are necessary:


 * 1) $$\boldsymbol{f(x)} $$ is differentiable on $$\boldsymbol{(a,b)} $$
 * 2) $$\boldsymbol{f(x)} $$ is continuous on $$\boldsymbol{[a,b]} $$

Where one of the above conditions is not satisfied, the mean value theorem is not valid in general, and so it cannot be applied.

Function is differentiable on open interval a,b
The necessity of the first condition can be seen by the counterexample where the function $$f(x)=|x| $$ on [-1,1] is not differentiable.

Function is continuous on closed interval a,b
The necessity of the second condition can be seen by the counterexample where the function $$f(x) = \begin{cases} 1, & \text{at }x=0 \\ 0, & \text{if }x\in( 0,1] \end{cases} $$

$$f(x) $$ satisfies criteria 1 since $$f'(x)=0 $$ on $$(0,1) $$

But not criteria 2 since $$\frac{f(1)-f(0)}{1-0}=-1 $$ and $$-1\neq 0 =f'(x) $$ for all $$x\in (0,1) $$ so no such $$c $$ exists

First mean value theorem for definite integrals
Let f : [a, b] → R be a continuous function. Then there exists c in (a, b) such that


 * $$\int_a^b f(x) \, dx = f(c)(b - a).$$

This follows at once from the fundamental theorem of calculus, together with the mean value theorem for derivatives. Since the mean value of f on [a, b] is defined as


 * $$\frac{1}{b-a} \int_a^b f(x) \, dx,$$

we can interpret the conclusion as f achieves its mean value at some c in (a, b).

In general, if f : [a, b] → R is continuous and g is an integrable function that does not change sign on [a, b], then there exists c in (a, b) such that


 * $$\int_a^b f(x) g(x) \, dx = f(c) \int_a^b g(x) \, dx.$$

Proof that there is some c in [a, b]
Suppose f : [a, b] → R is continuous and g is a nonnegative integrable function on [a, b]. By the extreme value theorem, there exists m and M such that for each x in [a, b], $$m\leq f(x) \leq M $$ and $$f[a,b] = [m, M]$$. Since g is nonnegative,


 * $$m \int_a^b g(x) \, dx \leq \int^b_a f(x) g(x) \, dx \leq M \int_a^b g(x) \, dx.$$

Now let


 * $$I = \int_a^b g(x) \, dx.$$

If $$I = 0$$, we're done since


 * $$0 \leq \int_a^b f(x) g(x)\, dx \leq 0$$

means


 * $$\int_a^b f(x)g(x)\, dx=0,$$

so for any c in (a, b),


 * $$\int_a^b f(x)g(x)\, dx = f(c) I = 0.$$

If I ≠ 0, then


 * $$m \leq \frac{1}{I} \int_a^b f(x)g(x)\,dx \leq M.$$

By the intermediate value theorem, f attains every value of the interval [m, M], so for some c in [a, b]


 * $$f(c) = \frac1I\int^b_a f(x) g(x) \, dx,$$

that is,


 * $$\int_a^b f(x) g(x) \, dx = f(c) \int_a^b g(x) \, dx.$$

Finally, if g is negative on [a, b], then


 * $$M \int_a^b g(x) \, dx \leq \int^b_a f(x)g(x) \, dx \leq m \int_a^b g(x) \, dx,$$

and we still get the same result as above.

QED

Second mean value theorem for definite integrals
There are various slightly different theorems called the second mean value theorem for definite integrals. A commonly found version is as follows:


 * If $$G : [a,b]\to \mathbb{R}$$ is a positive monotonically decreasing function and $$\varphi : [a,b]\to \mathbb{R}$$ is an integrable function, then there exists a number x in (a, b] such that
 * $$ \int_a^b G(t)\varphi(t)\,dt = G(a^+) \int_a^x \varphi(t)\,dt. $$

Here $$G(a^+)$$ stands for ${\lim_{x\to a^+}G(x)}$, the existence of which follows from the conditions. Note that it is essential that the interval (a, b] contains b. A variant not having this requirement is:


 * If $$G : [a,b]\to \mathbb{R}$$ is a monotonic (not necessarily decreasing and positive) function and $$\varphi : [a,b]\to \mathbb{R}$$  is an integrable function, then there exists a number x in (a, b) such that
 * $$ \int_a^b G(t)\varphi(t)\,dt = G(a^+) \int_a^x \varphi(t)\,dt + G(b^-) \int_x^b \varphi(t)\,dt. $$

Mean value theorem for integration fails for vector-valued functions
If the function $$G$$ returns a multi-dimensional vector, then the MVT for integration is not true, even if the domain of $$G$$ is also multi-dimensional.

For example, consider the following 2-dimensional function defined on an $$n$$-dimensional cube:


 * $$\begin{cases}

G: [0,2\pi]^n \to \R^2 \\ G(x_1, \dots, x_n) = \left(\sin(x_1 + \cdots + x_n), \cos(x_1 + \cdots + x_n) \right) \end{cases} $$

Then, by symmetry it is easy to see that the mean value of $$G$$ over its domain is (0,0):


 * $$\int_{[0,2\pi]^n} G(x_1,\dots,x_n) dx_1 \cdots dx_n = (0,0)$$

However, there is no point in which $$G=(0,0)$$, because $$|G|=1$$ everywhere.

A probabilistic analogue of the mean value theorem
Let X and Y be non-negative random variables such that E[X] < E[Y] < ∞ and $$X \leq_{st} Y$$ (i.e. X is smaller than Y in the usual stochastic order). Then there exists an absolutely continuous non-negative random variable Z having probability density function


 * $$ f_Z(x)={\Pr(Y>x)-\Pr(X>x)\over {\rm E}[Y]-{\rm E}[X]}\,, \qquad x\geqslant 0.$$

Let g be a measurable and differentiable function such that E[g(X)], E[g(Y)] < ∞, and let its derivative g′ be measurable and Riemann-integrable on the interval [x, y] for all y ≥ x ≥ 0. Then, E[g′(Z)] is finite and


 * $$ {\rm E}[g(Y)]-{\rm E}[g(X)]={\rm E}[g'(Z)]\,[{\rm E}(Y)-{\rm E}(X)].$$

Mean value theorem in complex variables
As noted above, the theorem does not hold for differentiable complex-valued functions. Instead, a generalization of the theorem is stated such:

Let f : Ω → C be a holomorphic function on the open convex set Ω, and let a and b be distinct points in Ω. Then there exist points u, v on the interior of the line segment from a to b such that
 * $$\operatorname{Re}(f'(u)) = \operatorname{Re}\left ( \frac{f(b)-f(a)}{b-a} \right),$$
 * $$\operatorname{Im}(f'(v)) = \operatorname{Im}\left ( \frac{f(b)-f(a)}{b-a} \right).$$

Where Re is the real part and Im is the imaginary part of a complex-valued function.