In mathematics, the mean value theorem (or Lagrange's mean value 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. 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. Statement. Let formula_1 be a continuous function on the closed interval and differentiable on the open interval where Then there exists some formula_2 in formula_3 such that: formula_4 The mean value theorem is a generalization of Rolle's theorem, which assumes formula_5, 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 formula_1 is continuous on formula_7, and that for every formula_8 in formula_3 the limit formula_10 exists as a finite number or equals formula_11 or formula_12. If finite, that limit equals formula_13. An example where this version of the theorem applies is given by the real-valued cube root function mapping formula_14, whose derivative tends to infinity at the origin. Proof. The expression formula_15 gives the slope of the line joining the points formula_16 and formula_17, which is a chord of the graph of formula_18, while formula_13 gives the slope of the tangent to the curve at the point formula_20. 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 formula_21, where formula_22 is a constant. Since formula_18 is continuous on formula_7 and differentiable on formula_3, the same is true for formula_26. We now want to choose formula_22 so that formula_26 satisfies the conditions of Rolle's theorem. Namely formula_29 By Rolle's theorem, since formula_26 is differentiable and formula_31, there is some formula_2 in formula_3 for which formula_34 , and it follows from the equality formula_21 that, formula_36 Implications. Theorem 1: Assume that formula_18 is a continuous, real-valued function, defined on an arbitrary interval formula_38 of the real line. If the derivative of formula_18 at every interior point of the interval formula_38 exists and is zero, then formula_18 is constant on formula_38. Proof: Assume the derivative of formula_18 at every interior point of the interval formula_38 exists and is zero. Let formula_45 be an arbitrary open interval in formula_38. By the mean value theorem, there exists a point formula_2 in formula_45 such that formula_49 This implies that . Thus, formula_18 is constant on the interior of formula_38 and thus is constant on formula_38 by continuity. (See below for a multivariable version of this result.) Remarks: Theorem 2: If formula_57 for all formula_8 in an interval formula_45 of the domain of these functions, then formula_60 is constant, i.e. formula_61 where formula_2 is a constant on formula_45. Proof: Let formula_64, then formula_65 on the interval formula_45, so the above theorem 1 tells that formula_64 is a constant formula_2 or formula_61. Theorem 3: If formula_70 is an antiderivative of formula_18 on an interval formula_38, then the most general antiderivative of formula_18 on formula_38 is formula_75 where formula_2 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 formula_18 and formula_26 are both continuous on the closed interval formula_7 and differentiable on the open interval formula_3, then there exists some formula_81, such that formula_82 Of course, if formula_83 and formula_84, this is equivalent to: formula_85 Geometrically, this means that there is some tangent to the graph of the curve formula_86 which is parallel to the line defined by the points formula_87 and formula_88. However, Cauchy's theorem does not claim the existence of such a tangent in all cases where formula_87 and formula_88 are distinct points, since it might be satisfied only for some value formula_2 with formula_92, 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 formula_93 which on the interval formula_94 goes from the point formula_95 to formula_96, yet never has a horizontal tangent; however it has a stationary point (in fact a cusp) at formula_97. 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 formula_98. Proof. The proof of Cauchy's mean value theorem is based on the same idea as the proof of the mean value theorem. Define formula_99, then we easily see formula_100. Since formula_18 and formula_26 are continuous on formula_7 and differentiable on formula_3, the same is true for formula_105. All in all, formula_105 satisfies the conditions of Rolle's theorem. Consequently, there is some formula_2 in formula_3 for which formula_109. Now using the definition of formula_105 we have: formula_111 The result easily follows. 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 formula_112 be an open subset of formula_113, and let formula_114 be a differentiable function. Fix points formula_115 such that the line segment between formula_116 lies in formula_112, and define formula_118. Since formula_26 is a differentiable function in one variable, the mean value theorem gives: formula_120 for some formula_2 between 0 and 1. But since formula_122 and formula_123, computing formula_124 explicitly we have: formula_125 where formula_126 denotes a gradient and formula_127 a dot product. This is an exact analog of the theorem in one variable (in the case formula_128 this "is" the theorem in one variable). By the Cauchy–Schwarz inequality, the equation gives the estimate: formula_129 In particular, when formula_112 is convex and the partial derivatives of formula_18 are bounded, formula_18 is Lipschitz continuous (and therefore uniformly continuous). As an application of the above, we prove that formula_18 is constant if the open subset formula_112 is connected and every partial derivative of formula_18 is 0. Pick some point formula_136, and let formula_137. We want to show formula_138 for every formula_139. For that, let formula_140. Then formula_141 is closed in formula_112 and nonempty. It is open too: for every formula_143 , formula_144 for every formula_145 in open ball centered at formula_8 and contained in formula_112. Since formula_112 is connected, we conclude formula_149. The above arguments are made in a coordinate-free manner; hence, they generalize to the case when formula_112 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: Mean value inequality. Jean Dieudonné in his classic treatise "Foundations of Modern Analysis" discards the mean value theorem and replaces it by mean inequality 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 formula_151 But generally there will not be a "single" point on the line segment satisfying formula_152 for all "simultaneously". For example, define: formula_153 Then formula_154, but formula_155 and formula_156 are never simultaneously zero as formula_8 ranges over formula_158. 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 formula_18 for formula_160 for readability.) Cases where the theorem cannot be applied. All conditions for the mean value theorem are necessary: When one of the above conditions is not satisfied, the mean value theorem is not valid in general, and so it cannot be applied. The necessity of the first condition can be seen by the counterexample where the function formula_166 on [-1,1] is not differentiable. The necessity of the second condition can be seen by the counterexample where the function formula_167 satisfies criteria 1 since formula_168 on formula_169 but not criteria 2 since formula_170 and formula_171 for all formula_172 so no such formula_173 exists. The theorem is false if a differentiable function is complex-valued instead of real-valued. For example, if formula_174 for all real formula_8, then formula_176 while formula_177 for any real formula_8. 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 formula_179 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 formula_180 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 formula_181 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 formula_182 is a positive monotonically decreasing function and formula_183 is an integrable function, then there exists a number "x" in ("a", "b"] such that formula_184 Here formula_185 stands for formula_186, 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 formula_182 is a monotonic (not necessarily decreasing and positive) function and formula_183 is an integrable function, then there exists a number "x" in ("a", "b") such that formula_189 If the function formula_112 returns a multi-dimensional vector, then the MVT for integration is not true, even if the domain of formula_112 is also multi-dimensional. For example, consider the following 2-dimensional function defined on an formula_192-dimensional cube: formula_193 Then, by symmetry it is easy to see that the mean value of formula_112 over its domain is (0,0): formula_195 However, there is no point in which formula_196, because formula_197 everywhere. Generalizations. Linear algebra. Assume that formula_198 and formula_105 are differentiable functions on formula_3 that are continuous on formula_7. Define formula_202 There exists formula_203 such that formula_204. Notice that formula_205 and if we place formula_206, we get Cauchy's mean value theorem. If we place formula_206 and formula_208 we get Lagrange's mean value theorem. The proof of the generalization is quite simple: each of formula_209 and formula_210 are determinants with two identical rows, hence formula_211. The Rolle's theorem implies that there exists formula_212 such that formula_213. Probability theory. Let "X" and "Y" be non-negative random variables such that E["X"] < E["Y"] < ∞ and formula_214 (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 formula_215 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 formula_216 Complex analysis. 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 formula_217 formula_218 Where Re() is the real part and Im() is the imaginary part of a complex-valued function.