Proof of (i) . Since a < b a<b a < b , 0 < b β a 0<b-a 0 < b β a (Difference and Quotient Identities in β (i) ), so b β a β 0 b-a\ne0 b β a ξ = 0 ; let
m = f ( b ) β f ( a ) b β a β R , m=\frac{f(b)-f(a)}{b-a}\in\mathbb{R}, m = b β a f ( b ) β f ( a ) β β R ,
so that m β ( b β a ) = f ( b ) β f ( a ) m\,(b-a)=f(b)-f(a) m ( b β a ) = f ( b ) β f ( a ) (Difference and Quotient Identities in β (ii) ). Let h : [ a , b ] β R h:[a,b]\to\mathbb{R} h : [ a , b ] β R be the map t β¦ f ( t ) β f ( a ) β m β ( t β a ) t\mapsto f(t)-f(a)-m\,(t-a) t β¦ f ( t ) β f ( a ) β m ( t β a ) (Values, Restriction and Equality of a Map, and the Map u β¦ t ( u ) u\mapsto t(u) u β¦ t ( u ) as a Defined Set Symbol (v) ). For s , t β [ a , b ] s,t\in[a,b] s , t β [ a , b ] ,
h ( t ) β h ( s ) = ( f ( t ) β f ( s ) ) β m β ( t β s ) . h(t)-h(s)=\bigl(f(t)-f(s)\bigr)-m\,(t-s). h ( t ) β h ( s ) = ( f ( t ) β f ( s ) ) β m ( t β s ) .
h h h is continuous on [ a , b ] [a,b] [ a , b ] . Continuity is read in ( R , d R ) (\mathbb{R},d_{\mathbb{R}}) ( R , d R β ) relative to [ a , b ] [a,b] [ a , b ] , as in The Real Line: Standing Notation and Background for Calculus on Intervals (vi) . Let ΞΉ : [ a , b ] β R \iota:[a,b]\to\mathbb{R} ΞΉ : [ a , b ] β R be the map t β¦ t t\mapsto t t β¦ t ; it is continuous on [ a , b ] [a,b] [ a , b ] by Continuity of Identity Maps, Compositions and Reciprocals (i) , with ( X , d ) = ( R , d R ) (X,d)=(\mathbb{R},d_{\mathbb{R}}) ( X , d ) = ( R , d R β ) and A = [ a , b ] A=[a,b] A = [ a , b ] . Put c = m β a β f ( a ) β R c=m\,a-f(a)\in\mathbb{R} c = m a β f ( a ) β R , and let k c : [ a , b ] β R k_{c}:[a,b]\to\mathbb{R} k c β : [ a , b ] β R be the constant map with value c c c . For t β [ a , b ] t\in[a,b] t β [ a , b ] , h ( t ) = f ( t ) + ( β m ) β ΞΉ ( t ) + k c ( t ) h(t)=f(t)+(-m)\,\iota(t)+k_{c}(t) h ( t ) = f ( t ) + ( β m ) ΞΉ ( t ) + k c β ( t ) , so h h h is the map ( f + ( β m ) ΞΉ ) + k c \bigl(f+(-m)\iota\bigr)+k_{c} ( f + ( β m ) ΞΉ ) + k c β formed as in Continuity of Sums and Products of Real-Valued Functions on a Metric Space (Values, Restriction and Equality of a Map, and the Map u β¦ t ( u ) u\mapsto t(u) u β¦ t ( u ) as a Defined Set Symbol (iv) ). Let s β [ a , b ] s\in[a,b] s β [ a , b ] . Then f f f and ΞΉ \iota ΞΉ are continuous at s s s relative to [ a , b ] [a,b] [ a , b ] (Continuous Map Between Metric Spaces (ii) ), k c k_{c} k c β is by Continuity of Sums and Products of Real-Valued Functions on a Metric Space (i) , ( β m ) ΞΉ (-m)\iota ( β m ) ΞΉ is by Continuity of Sums and Products of Real-Valued Functions on a Metric Space (iv) , and h h h is by Continuity of Sums and Products of Real-Valued Functions on a Metric Space (ii) , applied twice. As s s s was arbitrary, h h h is continuous on [ a , b ] [a,b] [ a , b ] , by Continuous Map Between Metric Spaces (ii) .
h h h is differentiable at every s β ( a , b ) s\in(a,b) s β ( a , b ) , with h β² ( s ) = f β² ( s ) β m h'(s)=f'(s)-m h β² ( s ) = f β² ( s ) β m . Let s β ( a , b ) s\in(a,b) s β ( a , b ) , and let L = f β² ( s ) L=f'(s) L = f β² ( s ) , the derivative of f f f at s s s as in Derivative of a Real Function on an Interval (ii) . For t β [ a , b ] t\in[a,b] t β [ a , b ] with t β s t\ne s t ξ = s , t β s β 0 t-s\neq0 t β s ξ = 0 , and the identity above gives h ( t ) β h ( s ) t β s = f ( t ) β f ( s ) t β s β m \frac{h(t)-h(s)}{t-s}=\frac{f(t)-f(s)}{t-s}-m t β s h ( t ) β h ( s ) β = t β s f ( t ) β f ( s ) β β m (Difference and Quotient Identities in β (ii) , with f ( t ) β f ( s ) f(t)-f(s) f ( t ) β f ( s ) , m m m and t β s t-s t β s for its a a a , m m m and b b b ); hence
h ( t ) β h ( s ) t β s β ( L β m ) = f ( t ) β f ( s ) t β s β L . \frac{h(t)-h(s)}{t-s}-(L-m)=\frac{f(t)-f(s)}{t-s}-L . t β s h ( t ) β h ( s ) β β ( L β m ) = t β s f ( t ) β f ( s ) β β L .
Let Ξ΅ > 0 \varepsilon>0 Ξ΅ > 0 . By Derivative of a Real Function on an Interval (i) there is Ξ΄ > 0 \delta>0 Ξ΄ > 0 such that every t β [ a , b ] t\in[a,b] t β [ a , b ] with 0 < β£ t β s β£ < Ξ΄ 0<|t-s|<\delta 0 < β£ t β s β£ < Ξ΄ satisfies β£ f ( t ) β f ( s ) t β s β L β£ < Ξ΅ \bigl|\frac{f(t)-f(s)}{t-s}-L\bigr|<\varepsilon β t β s f ( t ) β f ( s ) β β L β < Ξ΅ , hence β£ h ( t ) β h ( s ) t β s β ( L β m ) β£ < Ξ΅ \bigl|\frac{h(t)-h(s)}{t-s}-(L-m)\bigr|<\varepsilon β t β s h ( t ) β h ( s ) β β ( L β m ) β < Ξ΅ . So L β m L-m L β m is a derivative of h h h at s s s relative to [ a , b ] [a,b] [ a , b ] , by Derivative of a Real Function on an Interval (i) ; h h h is differentiable at s s s by Derivative of a Real Function on an Interval (ii) , and h β² ( s ) = L β m = f β² ( s ) β m h'(s)=L-m=f'(s)-m h β² ( s ) = L β m = f β² ( s ) β m , the derivative being unique by Uniqueness of the Derivative of a Real Function on an Interval (i) .
Conclusion. h ( a ) = f ( a ) β f ( a ) β m β
0 = 0 h(a)=f(a)-f(a)-m\cdot0=0 h ( a ) = f ( a ) β f ( a ) β m β
0 = 0 and h ( b ) = f ( b ) β f ( a ) β m β ( b β a ) = 0 h(b)=f(b)-f(a)-m\,(b-a)=0 h ( b ) = f ( b ) β f ( a ) β m ( b β a ) = 0 , so h ( a ) = h ( b ) h(a)=h(b) h ( a ) = h ( b ) . By Rolle's Theorem on a Closed Real Interval (i) applied to h h h there is ΞΎ β ( a , b ) \xi\in(a,b) ΞΎ β ( a , b ) with h β² ( ΞΎ ) = 0 h'(\xi)=0 h β² ( ΞΎ ) = 0 , that is f β² ( ΞΎ ) = m f'(\xi)=m f β² ( ΞΎ ) = m . Then f β² ( ΞΎ ) β ( b β a ) = m β ( b β a ) = f ( b ) β f ( a ) f'(\xi)\,(b-a)=m\,(b-a)=f(b)-f(a) f β² ( ΞΎ ) ( b β a ) = m ( b β a ) = f ( b ) β f ( a ) .
Proof of (ii) . Let x , y β I x,y\in I x , y β I with x < y x<y x < y , and let J = [ x , y ] J=[x,y] J = [ x , y ] . By Basic Facts about Intervals of the Real Line (ii) , J β I J\subseteq I J β I , and by Basic Facts about Intervals of the Real Line (v) , J J J is an interval containing two distinct points, with ( x , y ) β J (x,y)\subseteq J ( x , y ) β J . Let g = f β£ J : J β R g=f|_{J}:J\to\mathbb{R} g = f β£ J β : J β R be the restriction of f f f to J J J , with g ( t ) = f ( t ) g(t)=f(t) g ( t ) = f ( t ) for every t β J t\in J t β J (Domains and Restrictions of Maps (iii) ).
Since f f f is continuous on I I I , it is continuous at every point of I I I relative to I I I , in particular at every t β J t\in J t β J , as J β I J\subseteq I J β I . So for every t β J t\in J t β J , g g g is continuous at t t t relative to J J J by Restriction Stability of Continuity and of the Derivative (i) ; hence g g g is continuous on J J J , by The Real Line: Standing Notation and Background for Calculus on Intervals (vi) .
Let t β ( x , y ) t\in(x,y) t β ( x , y ) . Then t β J t\in J t β J , as ( x , y ) β J (x,y)\subseteq J ( x , y ) β J , so t β I t\in I t β I , as J β I J\subseteq I J β I . Since moreover x < t < y x<t<y x < t < y with x , y β I x,y\in I x , y β I , f f f is differentiable at t t t relative to I I I by hypothesis. By Restriction Stability of Continuity and of the Derivative (ii) , g g g is differentiable at t t t relative to J J J and g β² ( t ) = f β² ( t ) g'(t)=f'(t) g β² ( t ) = f β² ( t ) .
So g g g satisfies the hypotheses of (i) with a = x a=x a = x and b = y b=y b = y , which gives ΞΎ β ( x , y ) \xi\in(x,y) ΞΎ β ( x , y ) with g ( y ) β g ( x ) = g β² ( ΞΎ ) β ( y β x ) g(y)-g(x)=g'(\xi)\,(y-x) g ( y ) β g ( x ) = g β² ( ΞΎ ) ( y β x ) . Here x < ΞΎ < y x<\xi<y x < ΞΎ < y , ΞΎ β J β I \xi\in J\subseteq I ΞΎ β J β I , g ( y ) = f ( y ) g(y)=f(y) g ( y ) = f ( y ) , g ( x ) = f ( x ) g(x)=f(x) g ( x ) = f ( x ) and g β² ( ΞΎ ) = f β² ( ΞΎ ) g'(\xi)=f'(\xi) g β² ( ΞΎ ) = f β² ( ΞΎ ) , so f ( y ) β f ( x ) = f β² ( ΞΎ ) β ( y β x ) f(y)-f(x)=f'(\xi)\,(y-x) f ( y ) β f ( x ) = f β² ( ΞΎ ) ( y β x ) .