May 8 Lecture. Links to the board and the recording.
What does this stuff do?
If you have a function y=f(x), we want to be able to calculate the slope of a line that is tangent to a point on the graph.
We seek a derivative functionf′(x) such that f′(x0)= slope of line tangent to graph (y=f(x)) at the point (x0,f(x0)).
Why are we interested, and how do we find this?
Background:
What is a tangent line to a graph?
Let’s take the following example:
Let x=time.
Let f(x)= distance traveled by time x.
Speed = timedistance.
If f(2)=1,f(3)=4, then my speed over time interval [2,3] is 3−2f(3)−f(2).
I.E. ΔxΔy=3⇒ slope of line connecting (2,f(2)) and (3,f(3)).
Slope represents the rate of change as in this example.
What would the speedometer show at x=3?
Idea: let’s take shorter and shorter intervals around x=3 and see what the slope for that line is. Each slope is a rate of change (ROC) of f over a smaller and smaller interval [x,3]. Define the Instantaneous Rate of Change (IRoC) at x=3 to be the limit of these slopes.
x→x0limΔxΔy=x→x0limx0−xf(x0)−f(x)
Or, if we express x=x0+h, IRoC at x0=limh→0hf(h0+h)−f(x0)
The tangent line to y=f(x) at x=x0 is defined as the line through (x0,f(x0)) with this slope.
Definitions:
f(x) is differentiable at the point x=x0 if the limit limh→0hf(x0+h)−f(x0) exists.
f(x) is differentiable from the left if limh→0−hf(x0+h)−f(x0) exists.
f(x) is differentiable from the right if limh→0+hf(h0+h)−f(x0) exists.
f is differentiable at x0⟺f is differentiable from left and from right at x0and these limits are equivalent.
Example: Graph y=∣x∣. Is x differentiable at x=0?
From the left: limh→0−hf(h)−f(0) = limh→0h−h=−1. Note, h<0, so ∣h∣=−h
From the right: limh→0+hf(h)−f(0)=1
Hence, f(x)=∣x∣ is differentiable from each side at x0=0, but is not differentiable there.
f is differentiable in open interval (a,b) if f is differentiable at each pt. in that interval
If f is differentiable in (a,b) then the derivative of f on (a,b) is defined as (for x0∈(a,b)):f′(x0)=limh→0hf(x0+h)−f(x0)
One sided derivatives are defined similarly to definitions 2 & 3.
The derivative function f′ is defined for any x0 in this manner:
f′(x)=h→0limhf(x+h)−f(x)
Theorem 31:
Theorem
If x is differentiable at x0, then x is continuous at x0. The reverse is not true. Intuitively, f′(x)=ΔxΔy as Δx→0 Since denominator is going to zero, this fraction has a limit only if Δy→0 too, i.e. f is continuous at x0.
Linear Approximation using derivatives:
If one would want to calulate (1.0123)2
f′(x)=limh→0hf(x+h)−f(x).
I.e., for small h:f′(x)≈hf(x+h)−f(x)
For smaller h, the approximation is more exact.
f(x+h)≈f(x)+h⋅f′(x).
In our example: (1.0123)2≈12+(0.0123)⋅2Real Answer: (1.0123)2=1.0246=1.02457
(We multiply by 2, because the derivative of f is 2x)
Differentiation Rules
Derivative of a constant function f(x)=c is zero.
f(x)=c is differentiable everywhere, and f′(x)=0
If f and g are differentiable at x0, so is the function f+g, and (f+g)′(x0) = f′(x0)+g′(x0).
The derivative of a sum of functions at a point is the sum of the derivatives of functions at a point.
if f is differentiable at x=x0 and c is any real number, then cf is diff. at x0, and (c⋅f)′=c⋅f′.
f(x)=x3 (in general, f(x)=xn for n∈N) f′(x)=limh→0h(x+h)3−x3 =limh→0hx3+3x2h+3xh2+h3−x3 =limh→0h3x2h+3xh2+h3 =limh→0hh⋅(3x2+3xh+h2) =limh→03x2+3xh+h2 =3x2⇒f′(x)=3x2
In general
if f(x)=xn for n∈N,
f′(x)=h→0limh(x+h)n−xn=h→0limhnxn−1+terms where power of h ≥ 2=h→0limhnxn−1+h⋅[terms where power of h ≥ 2]=h→0limnxn−1+[terms where power of h ≥ 1]=h→0limnxn−1+[terms → 0 as h→0]=nxn−1
f(x)=2x (in general: f(x)=ax∣(a>0))
Recall: 2=eln2⇒2x=(eln2)x=exln2
This is a composed function (g∘h)(x) where h(x)=x⋅ln2 and g(x)=ex.
So, we apply the Chain Rule to get ex⋅ln2⋅ln2⇒ln2⋅2x
In general:
f(x)=ax⇒f′(x)=(lna)⋅ax f(x)=log2(x) (in general: f(x)=loga(x)∣(a>0,a=1))
Use the Inverse Function Rule:
Let f(x)=ax, so that f−1(x)=logax. (logax)′=f′(f−1(x))1=lna⋅alogax1=lna⋅x1 f(x)=∣g(x)∣ f′(x)=∣g(x)∣g(x)⋅g′(x) f(x)=ln(g(x)) f′(x)=g(x)1⋅g′(x)=g(x)g′(x)
Definition: The second derivative of f at x=a is the derivative of f′(a), evaluated at x=a. We’ll learn later the graphical significance of f′′(x).
Example
f(x)=5x3. Find f′′(x),f′′(3): f′(x)=15x2 f′′(x)=30x⇒f′′(3)=90 In “physical” terms, if f(x) denotes distance, then f′(x) denotes velocity (change of distance over time), and f′′(x) denotes acceleration (change of velocity over time)
May 15 Tirgul. Links to the board and the recording. [Incomplete]
May 17 Lecture. Links to the board and the recording. [Incomplete]