Derivatives
A derivative just describes how much one quantity changes as you vary another quantity that it depends on. Graphically, if you have a curve, the derivative at a point gives the slope of the line touching the curve (tangent) at that point. Here we'll just describe how to compute most of the cases you'll ever need.
Formula
ddxxn=nxn−1
Proof
Use definition of derivative as the limit of a difference:
ddxxn=limΔx→0(x+Δx)n−xnΔx.
Since we are taking the limit as Δx→0, we can treat it as very small compared to x, and rewrite the above as
limΔx→0xn(1+Δx/x)n−xnΔx≈limΔx→0nxnΔx/xΔx
=nxn−1.
The approximate equality comes from using the "most useful approximation ever" we showed in the Basic Math Review:
[1+ϵ]n≈1+nϵ.
Formula
ddxex=ex
Proof
Write
ex=∞∑n=0xnn! and differentiate each term using the previous formula to find
ddxex=∞∑n=1xn−1(n−1)!+0
where the 0 comes from the n=0 term in the original series, which has derivative zero.
Then re-index the sum to again start at 0, by transforming n−1ton. The result then follows.
Note: the formula for e as a sum above is super-useful!
It immediately gives you the approximation for e at small x by just dropping terms that are quadratic or above in x:
ex≈1+x
as well as an approximation for ln[1+x]
by taking the natural log of both sides of ex≈1+x
to get
x≈ln[1+x] for small x.
Incidentally, the series for e can also be used, by comparison with the series expansions for sine and cosine, to prove Euler's formula! (substitute in x=iθ and just algebra it out!)
Chain Rule
A very useful way to do derivatives of compositions of functions. What is a composition of functions? Well, [1+x]2 is one example! Inside the brackets, you take x to 1+x. That's one function:
f(x)=1+x. Then outside the brackets, you take that function, f, to its square: g(f)=f2.
So we can write the initial expression as g of f. What if we want to do the derivative of something of that form? It is
ddx[g∘f]=dgdfdfdx
An easy way to remember this is to imagine the df's canceling out, much like how one would write out unit conversions, e.g. meters to feet as 1m×3ftm=3ft. We won't prove this formula here---maybe you can think of a proof!
Formula
dlnxdx=1x
Proof
Write x as
x=elnx, which is true by the definition of ln. Then differentiate both sides, using Chain Rule for the righthand side:
1=elnxdlnxdx.
Then simplify using that elnx=x, and divide both sides by x:
1x=dlnxdx.
Formula
dsinxdx=cosx,dcosxdx=−sinx.
Proof
Use Euler's formula to write sin and cos as complex exponentials.
Then
dsinxdx=ddx(12i[eix−e−ix])=12i[ieix+ie−ix].
The second equality above is using Chain Rule to differentiate eix.
Simplifying the righthand side, we have
12[eix+e−ix]=cosx.
It's nearly the same to compute the derivative of cos: try it for yourself!
No comments:
Post a Comment