Mean value theorem explained

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

(a,f(a))

and

(b,f(b))

, that is,
f'(c)=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.[1] 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.[2] Many variations of this theorem have been proved since then.[3] [4]

Formal statement

Let

f:[a,b]\to\R

be a continuous function on the closed interval and differentiable on the open interval where Then there exists some

c

in

(a,b)

such that
f'(c)=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

\limh\to

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\mapstox1/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)=exi

for all real Then

f(2\pi)-f(0)=0=0(2\pi-0)

while

f'(x)\ne0

for any real

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

Proof

The expression \frac 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)&\ifff(a)-ra=f(b)-rb\\ &\iffr(b-a)=f(b)-f(a)\\ &\iffr=

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\\ &f'(c)=r=

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)=f(b)-f(a)
b-a

.

This implies that . 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:

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.)

f

can be relaxed to one-sided differentiability, a proof is given in the article on semi-differentiability.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)

.

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,[6] 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)g(b)

and

g'(c)0

, this is equivalent to:
f'(c)=
g'(c)
f(b)-f(a)
g(b)-g(a)

.

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

\begin{cases}[a,b]\to\R2\\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(t3,1-t2\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.

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

\Rn

, and let

f:G\to\R

be a differentiable function. Fix points

x,y\inG

such that the line segment between

x,y

lies in

G

, and define

g(t)=f((1-t)x+ty)

. 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)=\nablaf((1-c)x+cy)(y-x)

where

\nabla

denotes a gradient and

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:

l|f(y)-f(x)r|\lel|\nablaf((1-c)x+cy)r|l|y-xr|.

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

x0\inG

, and let

g(x)=f(x)-f(x0)

. We want to show

g(x)=0

for every

x\inG

. For that, let

E=\{x\inG:g(x)=0\}

. Then E is closed and nonempty. It is open too: for every

x\inE

,

|g(y)|=|g(y)-g(x)|\le(0)|y-x|=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:[8]

The theorem follows from the mean value theorem. Indeed, take

\varphi(t)=(bf{f}(b)-bf{f}(a))bf{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)=|bf{f}(b)-bf{f}(a)|2

and

\varphi'(c)=(bf{f}(b)-bf{f}(a))bf{f}'(c).

Hence, using the Cauchy–Schwarz inequality, from the above equation, we get:

|bf{f}(b)-bf{f}(a)|2\le|bf{f}(b)-bf{f}(a)||bf{f}'(c)|(b-a).

If

bf{f}(b)=bf{f}(a)

, the theorem is trivial (any c works). Otherwise, dividing both sides by

|bf{f}(b)-bf{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 is a differentiable function (where is open) and if, is the line segment in question (lying inside), then one can apply the above parametrization procedure to each of the component functions of f (in the above notation set). In doing so one finds points on the line segment satisfying

fi(x+h)-fi(x)=\nablafi(x+tih)h.

But generally there will not be a single point on the line segment satisfying

fi(x+h)-fi(x)=\nablafi(x+t*h)h.

for all simultaneously. For example, define:

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

Then

f(2\pi)-f(0)=0\in\R2

, but

f1'(x)=-\sin(x)

and

f2'(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

bf{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,|f'|<infty

. Let

M>\sup(a,|f'|

be some real number. Let

E=\{0\let\le1\mid|f(a+t(b-a))-f(a)|\leMt(b-a)\}.

We want to show

1\inE

. 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\inE

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,|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

\leMs(b-a)

. Hence, summing the estimates up, we get:

|f(a+t(b-a))-f(a)|\letM|b-a|

, a contradiction to the maximality of

s

. Hence,

1=s\inM

and that means:

|f(b)-f(a)|\leM(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,|f'|

since

(a',b)\subset(a,b)

. Letting

a'\toa

finishes the proof.

\square

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

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

f(x+h)-f(x)=f'(x+t*h)h.

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

f(x+h)-f(x)=

x+h
\int
x

f'(u)du=\left

1
(\int
0

f'(x+th)dt\right)h.

Thus, the value at the particular point has been replaced by the mean value

1
\int
0

f'(x+th)dt.

This last version can be generalized to vector valued functions:

Proof. Let f1, …, fm denote the components of and define:

\begin{cases} gi:[0,1]\to\R\\ gi(t)=fi(x+th) \end{cases}

Then we have

\begin{align} fi(x+h)-fi(x) &=gi(1)-gi(0) =\int

1
0

gi'(t)dt\\ &=

1
\int
0

\left

n
(\sum
j=1
\partialfi
\partialxj

(x+th)hj\right)dt =

n
\sum
j=1

\left

1
(\int
0
\partialfi
\partialxj

(x+th)dt\right)hj. \end{align}

The claim follows since is the matrix consisting of the components

\tfrac{\partialfi}{\partialxj}

.

\square

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

Cases where the theorem cannot be applied

Both conditions for the mean value theorem are necessary:

\boldsymbol{f(x)}

is differentiable on

\boldsymbol{(a,b)}

\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,&atx=0\ 0,&ifx\in(0,1]\end{cases}

f(x)

satisfies criteria 1 since

f'(x)=0

on

(0,1)

But not criteria 2 since

f(1)-f(0)
1-0

=-1

and

-1 ≠ 0=f'(x)

for all

x\in(0,1)

so no such

c

exists

Mean value theorems for definite integrals

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

b
\int
a

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

1
b-a
b
\int
a

f(x)dx,

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

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

b
\int
a

f(x)g(x)dx=f(c)

b
\int
a

g(x)dx.

Proof that there is some c in [''a'', ''b''][11]

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\leqf(x)\leqM

and

f[a,b]=[m,M]

. Since g is nonnegative,

m

b
\int
a

g(x)dx\leq

b
\int
a

f(x)g(x)dx\leqM

b
\int
a

g(x)dx.

Now let

I=

b
\int
a

g(x)dx.

If

I=0

, we're done since

0\leq

b
\int
a

f(x)g(x)dx\leq0

means

b
\int
a

f(x)g(x)dx=0,

so for any c in (a, b),

b
\int
a

f(x)g(x)dx=f(c)I=0.

If I ≠ 0, then

m\leq

1
I
b
\int
a

f(x)g(x)dx\leqM.

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

f(c)=

1I\int
b

af(x)g(x)dx,

that is,

b
\int
a

f(x)g(x)dx=f(c)

b
\int
a

g(x)dx.

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

M

b
\int
a

g(x)dx\leq

b
\int
a

f(x)g(x)dx\leqm

b
\int
a

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]\toR

is a positive monotonically decreasing function and

\varphi:[a,b]\toR

is an integrable function, then there exists a number x in (a, b] such that
b
\int
a

G(t)\varphi(t)dt=G(a+)

x
\int
a

\varphi(t)dt.

Here

G(a+)

stands for , 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:[12]

If

G:[a,b]\toR

is a monotonic (not necessarily decreasing and positive) function and

\varphi:[a,b]\toR

is an integrable function, then there exists a number x in (a, b) such that
b
\int
a

G(t)\varphi(t)dt=G(a+)

x
\int
a

\varphi(t)dt+G(b-)

b
\int
x

\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\R2\\ G(x1,...,xn)=\left(\sin(x1++xn),\cos(x1++xn)\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(x1,...,xn)dx1dxn=(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\leqstY

(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

fZ(x)={\Pr(Y>x)-\Pr(X>x)\over{\rmE}[Y]-{\rmE}[X]},    x\geqslant0.

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 yx ≥ 0. Then, E[''g′''(''Z'')] is finite and[13]

{\rmE}[g(Y)]-{\rmE}[g(X)]={\rmE}[g'(Z)][{\rmE}(Y)-{\rmE}(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:[14]

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(

f(b)-f(a)
b-a

\right),

\operatorname{Im}(f'(v))=\operatorname{Im}\left(

f(b)-f(a)
b-a

\right).

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

See also: Voorhoeve index and Mean value problem.

See also

External links

Notes and References

  1. J. J. O'Connor and E. F. Robertson (2000). Paramesvara, MacTutor History of Mathematics archive.
  2. Web site: Ádám Besenyei. Historical development of the mean value theorem.
  3. Lozada-Cruz. German. 2020-10-02. Some variants of Cauchy's mean value theorem. International Journal of Mathematical Education in Science and Technology. en. 51. 7. 1155–1163. 10.1080/0020739X.2019.1703150. 2020IJMES..51.1155L. 213335491. 0020-739X.
  4. Book: Sahoo, Prasanna.. Mean value theorems and functional equations. 1998. World Scientific. Riedel, T. (Thomas), 1962-. 981-02-3544-5. Singapore. 40951137.
  5. Book: Kirshna's Real Analysis: (General). Krishna Prakashan Media. en.
  6. Web site: Extended Mean-Value Theorem. W.. Weisstein, Eric. mathworld.wolfram.com. en. 2018-10-08.
  7. News: Cauchy's Mean Value Theorem. Math24. 2018-10-08. en-US.
  8. Book: Rudin, Walter. Principles of Mathematical Analysis (3rd ed.). McGraw-Hill. 1976. 978-0-07-054235-8. New York. 113. Theorem 5.19.
  9. Proof. Let u in Rm denote the value of the integral

    b
    u:=\int
    a

    v(t)dt.

    Now we have (using the Cauchy–Schwarz inequality):

    \|u\|2=\langleu,u\rangle =\left\langle

    b
    \int
    a

    v(t)dt,u\right\rangle =

    b
    \int
    a

    \langlev(t),u\rangledt\leq

    b
    \int
    a

    \|v(t)\|\|u\|dt =\|u\|

    b
    \int
    a

    \|v(t)\|dt

    Now cancelling the norm of u from both ends gives us the desired inequality.

    Proof.

    \|f(x+h)-f(x)\|=\left

    1
    \|\int
    0

    (Df(x+th)h)dt\right\|\leq

    1
    \int
    0

    \|Df(x+th)\|\|h\|dt\leqM\|h\|.

  10. Book: Michael Comenetz. Calculus: The Elements. 2002. World Scientific. 978-981-02-4904-5. 159.
  11. Editorial note: the proof needs to be modified to show there is a c in (a, b)
  12. E. W. . Hobson . 1909 . On the Second Mean-Value Theorem of the Integral Calculus . . S2–7 . 1 . 14–23 . 1575669 . 10.1112/plms/s2-7.1.14 . 1909PLMS...27...14H .
  13. A. . Di Crescenzo . 1999 . A Probabilistic Analogue of the Mean Value Theorem and Its Applications to Reliability Theory . . 36 . 3 . 706–719 . 3215435 . 10.1239/jap/1032374628 . 250351233 .
  14. 1 J.-Cl. Evard, F. Jafari, A Complex Rolle’s Theorem, American Mathematical Monthly, Vol. 99, Issue 9, (Nov. 1992), pp. 858-861.