¡@

Tangent Lines and
Definition of the Derivative

 Previous   Download Maple Worksheet

Now let's look at another problem: how do we define the instantaneous velocity of a moving object?  To be precise, let's suppose that we have an object moving along the x-axis so that its position at any time tis given by the expression s(t).  For example, we might haves(t) = t^2, or s(t) = sin(t). (  How does the object move in these two cases?  )

¡@

We can start by observing that there is no difficulty in defining the average velocity of the object during some time interval [t[0], t[1]], using the elementary formula "Distance = Rate times Time".   The distance traveled during the interval [t[0], t[1]]is s(t[1])-s(t[0]), and dividing by the elapsed time gives  Average velocity during the time interval [t[0], t[1]]= (s(t[1])-s(t[0]))/(t[1]-t[0]).

Here is a simple procedure to compute (decimal approximations to) average velocities:

> av := proc(s,t0,t1) evalf((s(t1) - s(t0))/(t1 - t0)) end proc:

¡@

We can now define a position function and compute average velocities. 

Example:

> s := t-> t^2 :
> av(s,1,5);

6.

¡@

(You should check this result by hand.)  Of course, our problem is not to compute the average velocity over some time interval [t[0], t[1]], but to compute the instantaneous velocity at some time t[0]. The solution is to compute the average velocities over shorter and shorter time intervals near t[0].   Here are some examples with our last position function s(t) = t^2.

t1 2 1.5 1.1 1.01
av( s, 1, t1 ) 3 2.5 2.1 2.01


Experiment with a few more intervals, and convince yourself that the average
velocity over a short time interval near t[0] = 1is very close to 2.  Of course, we can never actually let t[1] = t[0].

Example:

> av(s,1,1);

Error, (in av) division by zero

¡@

but the point is that the average velocities behave nicely as t[1]approaches t[0]. We say that the average velocities have a limit  as t[1]approaches t[0],  and it makes sense to define the instantaneous velocity at t[0]to be this limit: 

Instantaneous velocity at time t[0]=limit((s(t[1])-s(t[0]))/(t[1]-t[0]),t[1] = t[0])  .

¡@

Now, this is exactly the same limit we saw in the tangent line problem. You can see this with a simple substitution: define a new variable hby h = t[1]-t[0],  so that t[1] = t[0]+h, and the limit becomes Instantaneous velocity at time t[0]  = limit((s(t[0]+h)-s(t[0]))/h,h = 0).

¡@

This suggests that we might be able to interpret the instantaneous velocity as the slope of the tangent line to some graph.  In fact, comparing the limits from our two problems, it is clear that the instantaneous velocity is the slope of the tangent line to the graph of the position function s. Here is the picture for the position function s(t) = t^2that we were using above.  You should be able to see that the tangent line (red) at the point (1,1) has slope 2, as we would expect from our calculations of average velocity.

[Maple Plot]

¡@

We say  fis differentiable at x[0], if limit((f(x[0]+h)-f(x[0]))/h,h = 0) exists, and the limit is called the derivative of f(at x[0]), and is denoted  f'( x[0]).

(  Maple uses the symbol D(f)  instead of f'  )   Its geometric interpretation is the slope of the tangent line to graph of  fat the point ( x[0] f(x[0])). 

If  frepresents the position of an object, then this limit represents the instantaneous velocity at time x[0]. These are both examples of the same idea:  the limit represents the instantaneous rate of change of the function f.

Since the value of the limit will depend on x[0], it is actually a function, and we will emphasis this by dropping the subscript and just writing

f'( x) = limit((f(x+h)-f(x))/h,h = 0).

¡@

Remark :  If  limit((f(x[0]+h)-f(x[0]))/h,h = 0) = infinity( or -infinity), by definition, fis not differentiable at x[0]. However, the graph of  fstill has a tangent line at the point (  x[0],f(x[0])). In fact, the tangent line is vertical.

[Maple Plot]

¡@

In the figure below, we can see that the graph of the function lies very close to the tangent line near the point of tangency.

[Maple Plot]

¡@

In fact, by zooming in toward a point on the graph of a differentiable function,

we notice that the graph looks more and more like its tangent line.

[Maple Plot]

¡@

Hence, it is reasonable to use the tangent line at ( a, f(a)) as an approximation to the graph of y = f(x)when xis near a. This means that if it is easy to calculate a value f(a)of a function  f, but difficult to compute nearby values of  f, then we settle for the easily computed values of the linear function

L(x) = f(a) + f '(a)(x-a)

whose graph is the tangent line of  fat ( a, f(a)).  This approximation is called the linear approximation of fat a, and L(x) is called the linearization of  fat a.

For example, we may use the linearization of f(x) = sqrt(x+3)to estimate sqrt(3.98).

¡@

f(1) = 2       f '(x) =        f '(1) = 1/4

=>  L(x) = f(1) + f '(1)(x-1) = (7+x)/4


=>
sqrt(3.98)= L(0.98) = 1.995

In the following table we compare the estimates from the linear approximation in the example above with the true values. Notice from this table that the linear approximation gives good estimates when xclose to 1but the accuracy of the approximation deteriorates when xis farther from 1.

matrix([[x, L(x), f(x), f(x)-L(x)], [1., 2.000000000, 2.000000000, 0.], [.9900000000, 1.997500000, 1.997498436, -.1564e-5], [.9800000000, 1.995000000, 1.994993734, -.6266e-5], [.9700000000, 1.992500000...


Previous   Download Maple Worksheet