Week 4 - The Beginning of Derivatives #
Derivatives #
Definition #
The derivative of
f
at pointx
is defined to be $\displaystyle\lim_{h -> 0}\frac{f(x + h) - f(x)}{h}$If the derivative of
f
exists atx
, we say that the function is differentiable atx
.The derivative is measuring how changing the input affects the output. In other words, how wiggling the input to
f
changesf
.Other notations $f’(x) = \frac{d}{dx}f(x) = D_{x}f(x) = \frac{dy}{dx}$.
- $f’(x)=\displaystyle\lim_{h -> 0}\frac{f(x + h) - f(x)}{h}$
Different definitions:
- $f’(x)=\displaystyle\lim_{w -> x}\frac{f(w) - f(x)}{w - x}$
- $f’(a)=\displaystyle\lim_{x -> a}\frac{f(x) - f(a)}{x - a}$
- Notice the variable is
a
notx
, cause we are approachinga
notx
.
- Notice the variable is
If the derivative of
f
exists atx
wheneverx
betweena
andb
, then we say thatf
is differentiable on(a, b)
.- open interval
(a, b)
can be $(a, \infty)$ or $(-\infty, a)$ or $(-\infty, +\infty)$ (a, b)
does NOT includea
andb
.
- open interval
Tangent Line
- the tangent line is the limiting position of the secant line PQ as Q approaches P.
- The tangent line to the curve
y = f(x)
at the pointP(a, f(a))
is the line throughP
with slope $t=\displaystyle\lim_{x -> a}\frac{f(x) - f(a)}{x - a}$ provided that this limit exists. - Example: Find an equation of the tangent line to the parabola $y=x^2$ at the point
P(1, 1)
.
- the tangent line is the limiting position of the secant line PQ as Q approaches P.
How Can A Function Fail To Be Differentiable (Three situations)? #
- First: the left and right limits are different.
- Why is
f(x) = |x|
not differentiable atx = 0
?- $f(x) = |x|$
- $f’(0) = \displaystyle\lim_{h->0}\frac{|0+h| - |0|}{h}$
- $f’(0) = \displaystyle\lim_{h->0}\frac{|h|}{h}$ <- DNE(does not exist)
- Because $\displaystyle\lim_{h->0^{+}}\frac{|h|}{h} = 1 \ne -1 = \displaystyle\lim_{h->0^{-}}\frac{|h|}{h}$
- Why is
- Second: if
f
is not continuous ata
, thenf
is not differentiable ata
. - Third: the curve has a vertical tangent line when
x = a
; that is,f
is continuous ata
and $\displaystyle\lim_{x->a}|f(x)|=\infty$- e.g. $f(x) = \frac{1}{x}$, let x -> 0. check week 2-3’s note to find out what the function look like.
Why Would I Care To Find The Derivative? #
- Why is sqrt(9999) so close to 99.995?
- Let’s assume(will prove later):
- $\frac{d}{dx}x^{n}=nx^{n-1}$
- Then we can get
- $\frac{d}{dx}x^{1/2}=\frac{1}{2}x^{-\frac{1}{2}}$, same as: $\frac{d}{dx}\sqrt{x}=\frac{1}{2\sqrt{x}}$
- we know $\sqrt{10000} = 100$, and $\sqrt{9999} = \sqrt{10000 - 1} \approx 100 - 1 \times (\text{derivative at 10000)}$
- so what is the derivative at 10000? use the derivative function we got above.
- $f’(10000) = \frac{1}{2\sqrt{10000}} = \frac{1}{2 \times 100} = 0.005$
- then we got $\sqrt{9999} \approx 100 - 1 * 0.005 = 99.995$
- in other words, $\sqrt{9999} \approx 100 - 1 * (\text{derivative at}\\ 10000) = 99.995$
- Conclusion:
- $f(x+h) \approx f(x)+h*f’(x)$
Rules #
- $\frac{d}{dx}x^{n}=nx^{n-1}$
- $\frac{d}{dx}nf(x)=n\frac{d}{dx}f(x)$
- $\frac{d}{dx}(f(x)+g(x))=\frac{d}{dx}f(x)+\frac{d}{dx}g(x)$
- More in next week
Review Questions #
- definition of derivatives
- what does derivatives measure?
- what is the notion for derivatives?
- How Can A Function Fail To Be Differentiable?
- Calculate $\sqrt{9999}$