Inverting the chain rule. Sometimes, you want to find fβ(x)ο»Ώ but you can find some gο»Ώ such that (gβf)ο»Ώ is easily differentiable and gο»Ώ is also differentiable. Then, you can let fβ(x)=(gβf)β/gβ(f(x))ο»Ώ.
If you want to show something general across all derivatives, the MVT is a good bet (epsilon-delta definitions may be too tedious)
Generally, when youβre given a limit of a function, try to use general limit rule sand higher abstractions before you try delta epsilon, as delta-epsilon can get ugly
If you want to relate a function to its derivative, MVT is a good bet
Basic Properties
What is the derivative? π§
We define the derivative of a function to be
A slightly easier definition is
Examples of derivatives from definition π§Έ
Derivative of cο»Ώ is 0
Proof (easy)
If f(x)=cο»Ώ, then f(x+h)βf(x)=0ο»Ώ, and we are done.
Derivative of xnο»Ώ is nxnβ1ο»Ώ
Proof (binomial expansion)
We want to compute (x+h)nβxnο»Ώ, which we can do with binomial expansion. We wonβt write it all out here, but itβs xn+(1nβ)xnβ1h+(2nβ)xnβ2h2+β¦hnβxnο»Ώ, and if we divide the whole thing by hο»Ώ in the limit definition, we get (1nβ)xnβ1+β¦ο»Ώ and all the other terms have hο»Ώ, so as hβ0ο»Ώ, they go to 0ο»Ώ. We know that (1nβ)=nο»Ώ, so the derivative is nxnβ1ο»Ώ as desired.
Derivative of sin(x)=cos(x)ο»Ώ.
Proof (trig identities)
We want to compute sin(x+h)βsin(x)ο»Ώ, which we can do through the angle sum formula: sin(x)cos(h)+sin(h)cos(x)βsin(x)ο»Ώ and we can group and divide by hο»Ώ (as per the limit setup) to get
Now we know that limsin(h)/h=1ο»Ώ. This fact can be shown geometrically but we wonβt bother here. What remains is to show that limcos(h)β1)/h=0ο»Ώ. To do this, we recognize that cos(h)=1β2sin2(h/2)ο»Ώ, which means that we have (cos(h)β1)/h=2sin2(h/2)/h=sin(h/2)βh/2sin(h/2)βο»Ώ. We know that the second term goes to 1, and the first term goes to 0, so the whole thing goes to zero. As such, only the second term remains: limcos(x)sin(h)/h=cos(x)ο»Ώ, as desired.
Derivative of exο»Ώ is exο»Ώ.
Proof (definition of eο»Ώ)
Right away, we get (ex+hβex)/h=ex(ehβ1)/hο»Ώ. What remains is to compute lim(ehβ1)/hο»Ώ.
Let y=ehβ1ο»Ώ. Therefore our limit becomes limyβ0βln(y+1)yβ=limln((y+1)1/y)1βο»Ώ.
Now, recall that e=limnβββ(1+1/n)nο»Ώ. So, let n=1/yο»Ώ. Furthermore, as lnο»Ώ is a continuous function, we can just apply the lnο»Ώ to the definition. Therefore, we have limln((y+1)1/y)1β=ln(e)1β=1ο»Ώ.
As such, the whole limit becomes exβ1=exο»Ώ, which is what we wanted to show.
Differentiability implies continuity π
Theorem: if a function is differentiable at a point aο»Ώ, then it must be continuous
This does NOT go the other way! Continuous functions may not be differentiable.
Proof (definitions) [this does NOT show uniformly continuous. For that, you need to also assume that the derivative is bounded]
Letβs show the official defiitions. We know that for any Ο΅ο»Ώ, there exists some δϡβο»Ώ such that β£(f(x)βf(x0β))/(xβx0β)βfβ(x0β)β£<Ο΅ο»Ώ for β£xβx0ββ£<δϡβο»Ώ. Let Ο΅=β£fβ(x0β)β£/2ο»Ώ.
Under this setup, we can create the looser bound β23ββ£fβ(x0β)β€(f(x)βf(x0β))/(xβx0β)β€23ββ£fβ(x0β)ο»Ώ
but this means that β£f(x)βf(x0β)β£<23ββ£xβx0ββ£β£fβ(x0β)β£ο»Ώ. Therefore, we can solve for some new Ξ΄βΟ΅β=Ο΅/(23ββ£f(x0β)β£)ο»Ώ.
As our original string of logic follows from β£xβx0ββ£<δϡderivβο»Ώ, we claim that our δϡβ=min(δϡderivβ,deltaβΟ΅β)ο»Ώ. Because such a δϡβο»Ώ exists for all Ο΅ο»Ώ, we are done.
This was a more rigorous workup. Hereβs an alternative proof:
We can express f(x)=(xβa)xβaf(x)βf(a)β+f(a)ο»Ώ, and because limxβaβ(xβa)=0ο»Ώ and xβaf(x)βf(a)βο»Ώ is finite as xβaο»Ώ, we have limf(x)=f(a)ο»Ώ, which means that it is continuous.
Derivative rules π
Scalar rule: (cf)β(a)=cfβ(a)ο»Ώ
Proof
This is trivial. Just use the definition of the derivative, factor out a cο»Ώ, and you have your answer.
Sum rule: (f+g)β(a)=fβ(a)+gβ(a)ο»Ώ
Proof
This is also trivial; just use the derivative definitions and split up the numerator into f(x)βf(a)+g(x)+g(a)ο»Ώ.
We do the classic add and subtract trick: f(x+h)g(x+h)βf(x)g(x)=f(x+h)g(x+h)+g(x)f(x+h)βg(x)f(x+h)βf(x)g(x)ο»Ώ.
From this, we can break up the segments:
And because fο»Ώ is continuous, then limhβ0βf(x+h)=f(x)ο»Ώ. This yields the f(x)gβ(x)+g(x)fβ(x)ο»Ώ form as desired.
Quotient rule: (f/g)β(a)=(g(a)fβ(a)βf(a)gβ(a))/g2(a)ο»Ώ. [low-dee-high minus high-dee-low is a good way of remembering it].
Proof
This one is less beautiful. You basically combine the numerator and denominator
and do a classic add-one-subtract-one trick. Now, when we divide by xβaο»Ώ, we can factor like the following:
and then we take the limit, and using continuity properties of g,fο»Ώ, we get our formula.
Chain rule: (gβf)β(a)=gβ(f(a))fβ(a)ο»Ώ.
Proof (multiply by 1)
The trick here is to express it as
and we just move the numerators around to get
The second part is just fβ(x)ο»Ώ, but what about the first part? Well, let h~=f(x+h)βf(x)ο»Ώ as a variable substitution. Now, we have
And this is just gβ(f(x))ο»Ώ. We implicitly use the continuity of fο»Ώ here: as hβ0ο»Ώ, we have that f(x+h)βf(x)β0ο»Ώ.
Soβ¦we have gβ(f(x))βfβ(x)ο»Ώ, as desired.
Theorems of Derivatives
Increasing, decreasing π§
Given some interval Iο»Ώ
fο»Ώ strictly increases if x1β<x2ββf(x1β)<f(x2β)ο»Ώ, vice versa for strictly decreases
fο»Ώ increasing if x1β<x2ββf(x1β)β€f(x2β)ο»Ώ
Extrema zero-derivative theorem π
Theorem: if fο»Ώ is defined on (a,b)ο»Ώ and f(x0β)ο»Ώ is the maximum or minimum value (not the infimum or supremum), then fβ(x0β)=0ο»Ώ
Proof (contradiction)
INTUITION: At a maximum, if the derivative is positive, we can follow the derivative forward to get a higher number. If the derivative is negative, we can follow it backwards to get a higher number.
Without loss of generality, assume that f(x0β)ο»Ώ is a maximum. Now, suppose that fβ(x0β)>0ο»Ώ. Then, set Ο΅=fβ(x0β)/2ο»Ώ, and you get some Ξ΄ο»Ώ such that β£xβx0ββ£<Ξ΄ο»Ώ implies that β£(f(x)βf(x0β))/(xβx0β)βfβ²(x0β)β£<fβ²(x0β)/2ο»Ώ.
Now, we can use one half of the absolute value definition to get f(x)βf(x0β)>(xβx0β)fβ(x0β)/2ο»Ώ.
Now, consider the case where x>x0βο»Ώ (i.e. half of the bound Ξ΄)ο»Ώ. Then, we have f(x)>f(x0β)ο»Ώ, which contradicts the original definition that f(x0β)ο»Ώ is the maximum.
Similarly, if fβ(x0β)<0ο»Ώ, we can construct a similar setting where we get a contradiction with f(x)>f(x0β)ο»Ώ.
Therefore, we must conclude that fβ(x0β)=0ο»Ώ
Rolleβs Theorem π
Theorem: if fο»Ώ is continuous on [a,b]ο»Ώ and differentiable on (a,b)ο»Ώ an dsatisfies f(a)=f(b)ο»Ώ, then there is at least one xβ(a,b)ο»Ώ such that fβ(x)=0ο»Ώ. In other words, βwhat goes up must come down.β
Proof (maxima in a closed interval, extrema zero-derivative)
Any function in a closed interval has x0β,x1βο»Ώ such that f(x0β)β€f(x)β€f(x1β)ο»Ώ. We proved this previously. If x0β,x1β=a,bο»Ώ respectively, then f(x)ο»Ώ is constant, so fβ(x)=0ο»Ώ all throughout.
Otherwise, some x0ββ(a,b)ο»Ώ, and we proved in the extrema zero-derivative theorem that fβ(x0β)=0ο»Ώ.
Mean Value Theorem π
Theorem: If fο»Ώ is continuous on [a,b]ο»Ώ and differentiable on (a,b)ο»Ώ, then there exists at least one xβ(a,b)ο»Ώ such that fβ(x)=(f(b)βf(a))/(bβa)ο»Ώ.
Proof (construction of a secant line)
The intuition is that we want to βrotateβ the function such that g(b)=g(a)ο»Ώ for this new function, and somehow reason from it. Consider the following function:
We see that g(a)=f(a)ο»Ώ (itβs the untouched function) and g(b)=f(a)ο»Ώ. The funciton still follows the curve of fο»Ώ, but it is βrotated.β
All elements of gο»Ώ are continuous and differentiable. Because g(a)=g(b)ο»Ώ, there exists some cβ(a,b)ο»Ώ such that gβ(c)=0ο»Ώ. And if we expand the definition of gο»Ώ again, this fact means that fβ(c)=bβaf(b)βf(a)βο»Ώ as desired.
Corollaries of the MVT
Corollary: if fβ(x)=0ο»Ώ in an interval, it must be a constant function
Proof
Pick any cξ =dβ[a,b]ο»Ώ. By the mean value theorem, we know that there exists some eβ(c,d)ο»Ώ such that (f(c)βf(d))/(cβd)=fβ(e)ο»Ώ, and because fβ(e)=0ο»Ώ and cξ =dο»Ώ, we conclude that f(c)=f(d)ο»Ώ. This is true for any c,dο»Ώ so we conclude that f(x)ο»Ώ is constant.
Corollary: if fβ(x)>0ο»Ώ in an interval, the function fο»Ώ must be strictly increasing (and vice versa)
Proof
Similar setup as above with c>dο»Ώ and eβ(d,c)ο»Ώ. If this were the case, then we have (f(c)βf(d))/(cβd)=fβ(e)>0ο»Ώ, which means taht f(c)βf(d)>0ο»Ώ whenever c>dο»Ώ, which is what we wanted to show
Corollary: if β£fβ(x)β£β€Mο»Ώ for some finite Mο»Ώ, then fο»Ώ is uniformly continuous.
Proof
Do a similar setup with c,dο»Ώ and eβ(c,d)ο»Ώ. If this is the case, then we have β£f(c)βf(d)β£=β£fβ(e)β£β£cβdβ£ο»Ώ. We
And so if we pick some Ο΅ο»Ώ, we can just let β£cβdβ£<Ο΅/M=δϡβο»Ώ. NOw, we note that this works for any c,dο»Ώ, and the δϡβο»Ώ doesnβt depend on c,dο»Ώ, so we conclude that it is uniformly continuous.
Corollary: If fβ=gβο»Ώ, then f=g+cο»Ώ.
This is actually pretty important, as it shows that antiderivatives with the same derivative are related by some Cο»Ώ.
Proof
If this is not the case, then fβgο»Ώ contradicts the MVT (write it out and you will see why)
Intermediate Value Theorem for Derivatives (bonus) π
Theorem: If fο»Ώ is differentiable in (a,b)ο»Ώ. If a<x1β<x2β<bο»Ώ and cο»Ώ is between fβ(x1β)ο»Ώ and fβ(x2β)ο»Ώ, then there exists some xβ(x1β,x2β)ο»Ώ such that f(x)=cο»Ώ.
Derivative of an inverse (bonus)π
Theorem: if fο»Ώ is one-to-one, and let J=f(I)ο»Ώ. If fο»Ώ is differentiable in Iο»Ώ and all fβ(x0β)ξ =0ο»Ώ, then
where y=f(x)ο»Ώ.
Local Extrema π§
We define a local extrema of a function x0βο»Ώ to be a point such that there exists some Ξ΄>0ο»Ώ where f(x0β)>f(x)ο»Ώ for all β£xβx0ββ£<Ξ΄ο»Ώ (or vice versa for a minimum)
We wonβt prove this, but to see if x0βο»Ώ is a local maximum, minimum, or neither, we can use a general version of the second derivative test.
If fο»Ώ is infinitely differentiable, start with points where fβ(x0β)=0ο»Ώ. Then, keep on taking derivatives such that f(n)(x0β)=0ο»Ώ and f(n+1)(x0β)ξ =0ο»Ώ
If nο»Ώ is even, then x0βο»Ώ is neither local max or min
If nο»Ώ is odd, then if f(n+1)(x0β)>0ο»Ώ, then x0βο»Ώ is a local minimum. Else, local maximum.
LβHospitalβs Rule π
To find limf(x)/g(x)ο»Ώ when f(x0β)=g(x0β)=0ο»Ώ or when f(x0β)=g(x0β)=βο»Ώ, it is sufficient to calculate limfβ(x)/gβ(x)ο»Ώ.
Intuition (MVT)
For sake of simplicity, assume that f(x0β)=0ο»Ώ. Then, f(x)=f(x)βf(x0β)ο»Ώ, and by the MVT, we have that f(x)βf(x0β)=fβ(c)(xβx0β)ο»Ώ for some cβ(x,x0β)ο»Ώ. A similar thing can be said for gο»Ώ. Therefore, we have f(x)/g(x)=fβ(cfβ)(xβx0β)/gβ(cgβ)(xβx0β)=fβ(cfβ)/gβ(cgβ)ο»Ώ. Now, this would have been a sufficient proof if we are able to show that cfβ=cgβο»Ώ, which at the moment is non-trivial.
From the intuition, we understand that we somehow need to get these points to be the same. To help, we propose the following lemma:
Lemma: if f,gο»Ώ are differentiable in (a,b)ο»Ώ, then there exists some cβ(a,b)ο»Ώ such that
Proof (Workup from Rolleβs theorem)
Intuitively, we want to expand our proof of the MVT to a general line. In our previous proof, we βrotatedβ the fο»Ώ by a secant line. Now, we want to βrotateβ it by gο»Ώ. Consider the function
We see that h(a)=f(a)ο»Ώ (untouched) and h(b)=f(a)ο»Ώ. By rolleβs theorem, there must exists some cβ(a,b)ο»Ώ such that hβ(c)=0ο»Ώ. If we use the above definition, this means that fβ(c)βgβ(c)g(b)βg(a)f(b)βf(a)β=0ο»Ώ, and we can easily solve to get the original expression.
Finally, we will introduce a simple concept: the one-sided limit. We say that limxβx0+ββf(x)=Lο»Ώ if for all Ο΅>0ο»Ώ, we have β£f(x)βLβ£<Ο΅ο»Ώ for all xβ(x0β,x0β+δϡβ)ο»Ώ. Vice versa for the other side.
A true limit exists if and only if the left and right sided limits exist and are equal.
Now, we are ready for the actual proof.
Proof (working from fβ/gβο»Ώ to the limit of f/gο»Ώ.
Letβs say that f(x0β)=0ο»Ώ for simplicity; we can prove the βο»Ώ form in a similar way.
Suppose that we know that limfβ(x)/gβ(x)=Lο»Ώ. Letβs show that limf(x)/g(x)=Lο»Ώ.
Letβs use the initial limit definitions. We know that for all Ο΅ο»Ώ, we have β£fβ(x)/gβ(x)βLβ£<Ο΅ο»Ώ for all xβ(x0ββδϡβ,x0β+δϡβ)ο»Ώ. Now, consider (a,b)β(x0β,x0β+δϡβ)ο»Ώ and (f(b)βf(a))/(g(b)βg(a))ο»Ώ.
By the our modified MVT lemma, we know that there exists some cο»Ώ such that fβ(c)/gβ(c)=(f(b)βf(a))/(g(b)βg(a))ο»Ώ. But we also know that cβ(a,b)ο»Ώ, which means that cβ(x0ββδϡβ,x0β+δϡβ)ο»Ώ.
Because we know this, we can use our limit definitions and say that
Hmm! Weβre getting somewhere.
Now, letβs just close the bound and let aβx0βο»Ώ from the positive side. As we are doing this, we not violating any of our above constructions, so the inequality still holds (i.e. there still exists some cο»Ώ, so we can use this same reasoning).
As we have fο»Ώ is continuous, we know that limaβx0ββf(a)=f(x0β)=0ο»Ώ. Same thing with gο»Ώ. Therefore, we have
Therefore, we conclude by limit definitions that limxβx0+ββg(x)f(x)β=Lο»Ώ. We can apply the same proof method to show that the other side works.
Therefore, we conclude that limxβx0ββg(x)f(x)β=Lο»Ώ, as desired.
What we did is show that if the derivative quotient limit is Lο»Ώ, then the function quotient limit is also Lο»Ώ.
As a side note, if f(x0β)=βο»Ώ, then we need to rewrite the expression as
and as aβx0βο»Ώ, the f(b)/f(a)β0ο»Ώ. This is the hand-wavy version of it.