6. The Derivative

5.2 Derivatives and IVT

f(x)=limh0f(x+h)f(x)h

only works if x is an interior point

Derivative

f:DR, let xD be a limit point of D and yD

Then f is differentiable at x if

L=limyxf(y)f(x)yx exists 

Say f(x)=L

Example

f:RR,

f(x)={1xx00x=0

If x0

limh0f(x+h)f(x)h=limh01x+h1xh=limh0x(x+h)h(x)(x+h)=limh01x(x+h)=1x2

if x=0

limh0f(h)f(0)h=1hh=limh01h2DNE

Example

|x|:RR at 0

limh0|h|hDNE

(h>01,h<01)

Example

Differentiable but f is not continuous
f:RR

f(x)={(xsin(1x))2x00x=0

For x0,f(x)=2sin(1x)(xsin(1x)cos(1x)))

xn=4(8n+1)π1 apparently
yn=4(8n+3)π1 apparently

At 0,f(0)=0

|fb|

Lemma: Differentiable then Continuous

If f:IR is differentiable at x then f is continuous at x

Proof

Since f is diff. at c, limxcf(x)f(c)xc=f(c)

limxc((y)f(x))=limxcf(x)f(c)xc(xc)=f(c)(0)limxcf(x)=f(c)

So it is continuous

Lemma: Differentiable then Lipschitz

If f:IR is differentiable at xI then f is locally Lipschitz
L>0,δ>0,|f(x)f(y)|L|xy| for all yI,|xy|<δ

Thm: Rademacher

Lipschitz functions are differentiable everywhere except on a "small set"

Algebraic Properties:

f,g:IR differentiable at cI
i) (λf)=λf
ii) (f+g)=f+g
iii) (fg)=fg+gf
iv) (fg)=fgfgg2
v) f:JR,g:IR, g(I)J then (fg)=f(g)g

Thm: Fermat Interior Extremum

f:(a,b)R is diff. at c(a,b)
If f has a local max or min at c then f(c)=0

Proof

Assume c(a,b) is a local max.
Let δ0=min{ca,bc} and so c+h(a,b) for |h|<δ0
Since c is the local max there exists some δ1 so that:

f(y)f(c)0y(a,b),|cy|<δ

Set δ=12min{δ0,δ1} For h>0 and |h|<δ

f(c+h)f(c)h0

Since f is differentiable at c

For h>0 and |h|<δ

f(c)=limh0f(x+h)f(c)h0

For h<0 and |h|<δ

f(c)=limh0f(x+h)f(c)h0

f(c)=0

Thm: Darboux

f is differentiable on [a,b] and f(a)<α<f(b) then there exists some c(a,b) where f(c)=α

Proof

Let g(x)=f(x)αx on [a,b].
g is differentiable on [a,b] with g(x)=f(x)α. So g(a)<0<g(b).
g(a) and g(b) are not minima and by EVT it must be the case then that there's a c(a,b) such that g(c)=0

Example

g:[1,1],g(x)={10<x10x=011x<0

Is there a f=g? No will violate Darboux


5.3 Mean Value Theorem

Thm: Rolle's Theorem

Let f:[a,b]R be continuous on [a,b] and differentiable on (a,b). If f(a)=f(b) then there exists c(a,b) with f(c)=0

Proof

since f is continuous on [a,b] then there exists Cmax,Cmin[a,b]
Case 1: Cmax(a,b) , f(Cmax)=0

Case 2: Cmin(a,b) Set c=Cmax
f(Cmax)=0

Case 3: Neither Cmax or Cmin[a,b], but f(a)=f(b) therefore f is constant on [a,b] so f=0

Thm: Mean Value

If f:[a,b]R is continuous on [a,b] and differentiable on (a,b) then there exists a point c(a,b) where

f(c)=f(b)f(a)ba

Proof

Pasted image 20250311093526.webp|278

y=(f(b)f(a)ba)(xa)+f(a)d(x)=f(x)[(f(b)f(a)ba)(xa)+f(a)]y

d is continuous on [a,b], differentiable on (a,b) and we have the system of equations:

d(a)=0=d(b)

By Rolle's Theorem there exists a point c(a,b) where d(c)=0

d(x)=f(x)f(b)f(a)ba0=f(c)f(b)f(a)ba

Thm: Cauchy Mean Value

f,g:[a,b]R are continuous on [a,b] and differentiable on (a,b). Then there exists c(a,b) with

(g(b)g(a))f(c)=(f(b)f(a))g(c)

If g(b)g(a),g(x)0, then:

f(c)g(c)=f(b)f(a)g(b)g(a)

Pasted image 20250311100828.webp|216

dgdf|x=c=dg/dxdf/dc|x=c=g(c)f(c)

Thm L'Hospitals 0/0

f,g:(a,b)R differentiable and g(x) and g(x)0
For all x(a,b). Assume limxaf(x)=limxag(x)=0

If limxaf(x)g(x)=L then limxaf(x)g(x)=L

Thm L'Hospitals /

Assume f and g are differentiable on (a,b) and that g(x)0 for all x(a,b).If limxag(x)=(or ), then

limxaf(x)g(x)=Llimxaf(x)g(x)=L.