Differentiability
Let , , and let be an accumulation point of .
Then the following statements are equivalent:
i) The function is differentiable in .
ii) There exists an and a function such that for all it holds that
If one of these conditions is fulfilled (and hence both of them), then the parameter
in Item ii) is uniquely determined and we have .
The he tangent touching the graph of at is given by:
and can be interpreted as the best linear approximation of at .
The error or remainder function we make when approximating by its tangent at :
The error becomes “arbitrarily small” when is near , i.e., . However, this condition can also be fulfilled by a “bad” linear approximation of . Therefore, it is more interesting to consider the relative error
as a measure for the quality of a linear approximation, and to call a linear approximation “good” if .
How to use the applet
- Drag the blue point on the curve to choose the base point .
- Move the slider to choose the slope of a candidate linear approximation
- Drag the orange point on the curve to choose a comparison point .
- The pink/green line is the linear function through with slope .
- The green dashed vertical segment labeled shows the remainder (approximation error) at :
- The faint gray dashed line is the secant through and (visual aid).
- If is chosen close to the true derivative , then is a good local approximation near , and becomes small when is close to .
- The applet highlights this situation by drawing in green (and thicker) when is close to .
- Hold Shift + scroll to zoom
- Hold Shift + drag to move
- Points shaped like <> act as sliders
Description
Reference: Lecture Notes Calculus 1 ( May22,2022 ) Figure6.3 and Theorem6.1 page 94
This interactive applet illustrates when a linear approximation of a function at a point can be considered a “good” one.
The tangent line at is the best linear approximation of at that point.
The theorem above states that if is differentiable at , then ,
where the remainder term satisfies .
A key insight is that the condition alone does not guarantee a good approximation: even a poorly chosen linear function can have a remainder that vanishes in absolute terms. What matters is the behaviour of the relative remainder.
In the applet, the student can adjust the slope using a slider. When differs from , the linear approximation is bad. By dragging the point toward , the sutudent can notice that, the remainder approaches as , but the relative error does not. When the chosen line coincides with the true tangent (i.e. ), it is highlighted in green, and both the absolute and relative remainders tend to zero as approaches .
const isBestApprox = () => Math.abs(getM() - df(getX0())) < 0.2;
Thus the relative error is the difference of twp slopes: (Slope of Secant Line) - (Slope )
The height of the purple line mantian this ratio, since start from the secant up to the linear approximation.