]> AP Calculus AB - Chapter 03 Notes

3: Derivatives

3.1: The Derivative of a Function

The Slope Function

So far, we've talked about finding the slope of a curve at a point. However, during some of those problems, we pretended that we didn't know the point—we put another variable in that spot. Thus, the process of finding a slope resulted in a function, rather than a number. This is an important result!

The derivative of a function f(x) is f ( x ) = lim h 0 f ( x + h ) f ( x ) h .

The derivative can be thought of as a slope function. f(x) gives the y-value of the graph for a given x, and f(x) gives the slope of the graph for a given x.

Since this definition requires a limit, it only works if the limit from the left equals the limit from the right. Thus, there will be times when we have a derivative on the left and a different derivative on the right—which means that there is no derivative at that point.

If you just want the value of the derivative at a point, then you can (and maybe you should) use your calculator. Under the MATH menu is the command nDeriv(.This stands for numeric derivative. Give it a function, tell it which variable is independent, and give it a value for that variable, and it will grind through some calculations to find the value of the derivative at that point—the slope of the function at that point.

 

There are many notations for the derivative of a function, but they fall into two basic camps: the "prime notation," and Leibniz's notation.

Prime notation: y or f(x).

Leibniz's notation:  dy dx d dx [ f ( x ) ] .

Each has its uses—you must be familiar with both.

 

There will be occasions where you don't actually know the function—where you only have a few points. From these, you can form secant lines, and you should be able to get some idea of what the tangent lines look like.

The Relationship Between a Function and its Derivative

It is important to think about how the graph of the function will affect the graph of its derivative, and vice versa. Some important items to remember:

Examples

[1.] If  g ( x ) = x , then find g(x).

Whew! Here goes.  g ( x ) = lim h 0 x + h x h . Watch this trick to work on this:  lim h 0 x + h x h = lim h 0 x + h x h x + h + x x + h + x = lim h 0 ( x + h ) ( x ) h ( x + h + x ) = lim h 0 h h ( x + h + x ) = lim h 0 1 x + h + x

At this point, it is okay to let h be zero!  g ( x ) = lim h 0 1 x + h + x = 1 x + x = 1 2 x .

 

[2.] Use the graph of h(x) below to sketch the graph of h(x).

An Image

So, I need to find the slope of the graph at each value of x. On the interval  [ -3 , 0 ] , the slope is 1. On the interval  [ 0 , 4 ] , the slope is zero. On the interval  [ 4 , 6 ] , the slope is  - 1 2 . Thus, I can now graph h(x):

An Image

(we'll talk about why those are open circles in the next section)

 

[3.] Use the graph of j(x) below to sketch the graph of j(x).

An Image

The slope of the function is constant at -2 for x-values between -4 and -2—that will make the function graph a line with slope -2. Then, the slope begins changing…it is still negative for x-values between -2 and -1, but it is getting closer to zero. This means that the function is going down, but in a curve, so that it flattens out at -1. The slopes are positive after that, and getting higher—again, a curve. At an x-value of zero, the slope (not the function) reaches a maximum value of two, and then begins heading back to a slope of zero. Think about that again: the slope is still positive, but as you move from left to right, the slopes are flattening back towards zero. When x is 1, the slope is zero, and then curves down.

Here's a possible answer:

An Image

(there are actually an infinite number of answers…more on that later)

3.2: Differentiability

Points Without Slopes

I've already mentioned one case where the derivative fails to exist at a point—when the left and right hand derivatives don't come out to the same the value. Graphically, this looks like a sharp point on the graph; a sudden change from one slope to another, without taking any slope values between the two. The classic example of this is the absolute value function at x=0.

The textbook actually divides this problem into three cases: corner, cusp and discontinuity. However, in all cases, the left hand derivative comes out to a different value than the right hand derivative.

The other instance where a derivative fails to exist is where the slope approaches infinity—graphically, a vertical tangent. This is best seen in the graph of  y = x 3  at x=0.

Local Linearity

Take a graph—any graph. Pick a point on that graph. Now, zoom in. Zoom in a lot. What do you see?

It should look like a line!

If you zoom in enough on a graph, then the graph starts to look like its tangent line. On very small intervals, the tangent line at a point is virtually indistinguishable from the function. On very small intervals, a line can be used to get approximate values of any function—you just need to know a bit about the function at a point in that interval.

Let's generalize: the slope of f(x) at the point  ( a , f ( a ) )  is  f ( a ) . Thus, the equation of the tangent line at that point is  y f ( a ) = f ( a ) ( x a ) y = f ( a ) + f ( a ) ( x a ) . On a very small interval, y(from the tangent line) and f(x) are virtually indistinguishable, so  f ( x ) f ( a ) + f ( a ) ( x a ) . If you want to approximate the value of the function just a tiny bit away from the point ( a , f ( a ) ) —say, at  x = a + h —then we can say that  f ( a + h ) f ( a ) + f ( a ) ( ( a + h ) a ) = f ( a ) + f ( a ) ( h ) .

Consequences of the Derivative

If the derivative exists, then the function it came from must be continuous—otherwise, the limit definition of the derivative wouldn't have come out. Thus, differentiability implies continuity.

Note that continuity does not imply differentiability—consider the absolute value function. It is continuous on the real numbers, but has no derivative at zero.

We already know that a function f(x) which is continuous on the interval  [ a , b ]  must take on every value between  f ( a )  and  f ( b ) . As a bonus, if f(x) is differentiable on [ a , b ] , then f(x) takes on every value between  f ( a )  and  f ( b ) .

Examples

[4.] Compute the left and right hand derivatives to show that g(x) is not differentiable at  x = 2 .

An Image

The derivative on the left—the slope of the graph to the left of x = 2  is -3; the derivative on the right is 3. Since the left and right hand derivatives are not equal, the function does not have a derivative (there is no tangent line) at  x = 2 .

 

[5.] Determine all values of x for which h ( x ) = e | x |  is differentiable.

Let's look at the graph.

An Image

This function appears to have a problem at x=0, Let's zoom in.

An Image

The left and right hand slopes don't appear to smoothly transition there…this function is differentiable for  x ( , 0 ) ( 0 , ) .

 

[6.] Find the slope of  y = ln | x | x 2  at  x = 1 2 .

The sheer nastiness of that function should have you running to the calculator at once! It reports the slope to be 1 at that point.

3.3: Rules for Differentiation

Constants

A constant function is of the form  y = k , where  k . Graphically, it's a flat line. Thus, what's the slope? Zero, of course!

d dx [ k ] = 0

Power Functions

A power function is of the form  y = x n , where n is some kind of number…for now, we'll assume that it is an integer other than zero ( n { 0 } ).

From the derivatives we've already computed, you probably have an idea of the derivative of a power function. We will prove the following result in class:

d dx [ x n ] = n x n 1

Constant Multiples

A constant multiple is a known function (power, exponential, etc.) multiplied by a real number:  2 x 3 5 cos ( x ) , etc. It should be a simple matter to realize that these constants get factored out of the limiting process that makes a derivative. Thus:

d dx [ k f ( x ) ] = k f ( x )

Sums and Differences

Again, simple…and so useful!

d dx [ f ( x ) ± g ( x ) ] = f ( x ) ± g ( x )

Products

We will not rigorously prove this…the hard part for you will be recognizing when it is appropriate to use this rule.

d dx [ f ( x ) g ( x ) ] = f ( x ) g ( x ) + f ( x ) g ( x )

Quotients

No proof. Realizing when to use it, and remembering how to use it will be sufficiently strenuous.

d dx [ f ( x ) g ( x ) ] = f ( x ) g ( x ) f ( x ) g ( x ) g 2 ( x )

Higher Order Derivatives

What we've been finding so far is only the first derivative. Of course, you can take the derivative of the derivative, resulting in the second derivative. And then, you can do it again…

The notations for the second derivative are (basically) y  or  d2 y d x 2 .

The notations for higher derivatives—the nth derivative—are  y ( n )  and  dn y d x n .

Examples

[7.] Find y if y = 4 x 2 5 x + 7 .

Using the first four rules, we get  y = 8 x 5 .

 

[8.] Find dy dx  if  y = ( 2 x 9 + 7 x 5 x 3 + 1 ) ( 5 x 7 7 x 4 6 x 2 17 ) .

Now, if you really, really want to, you can expand that 16th degree polynomial and avoid the product rule entirely…however, I'm not going to wait while you do that. I'm going to use the product rule.

dy dx = ( 18 x 7 + 35 x 4 3 x 2 ) ( 5 x 7 7 x 4 6 x 2 17 ) + ( 2 x 9 + 7 x 5 x 3 + 1 ) ( 35 x 6 18 x 3 12 x )

 

[9.] Find  d dx [ 2 x + 1 x 2 ] .

Unless you want to do some polynomial division, you're going to have to use the quotient rule.

d dx [ 2 x + 1 x 2 ] = ( 2 ) ( x 2 ) ( 2 x + 1 ) ( 1 ) ( x 2 ) 2

(you don't feel any need to simplify that, do you?)

 

[10.] Find  f ( x )  if  f ( x ) = 4 x 5 + 7 x 3 6 x + 10 .

f ( x ) = 20 x 4 + 21 x 2 6 , so  f ( x ) = 80 x 3 + 42 x .

3.4: Velocity and Other Rates of Change

We motivated the idea of derivatives through instantaneous speed, so there's no need to rehash the average/instantaneous stuff. Note, however, that all of the following items are instantaneous, and are for motion along a line (back and forth, or up and down). Problems relating to these definitions are called particle motion problems.

If  f ( t )  represents the position (distance, displacement) of an object at any time t, then  f ( t )  gives the velocity of the object, and  f ( t )  gives the acceleration.

To resolve the speed/velocity problem, here's a definition: the instantaneous speed of an object is  | v ( t ) | = | f ( t ) | .

Here are some useful formulas for objects undergoing constant acceleration—say, a falling object? Note that a falling object has a negative acceleration.

a ( t ) = g v ( t ) = g t + v 0 h ( t ) = 1 2 g t 2 + v 0 t + h 0

 

In economics, the term marginal refers to the derivative—marginal revenue is the derivative of revenue, etc.

 

In all word problems, keep track of units!

Examples

[11.] A particle moves along the x-axis so that its position (x-coordinate) at any time  t [ 0 , 10 ]  seconds is given by  f ( t ) = t 3 12 t 2 + 36 t . When is the particle at rest?

Being at rest means a velocity of zero—the equation for velocity is the derivative of position:  v ( t ) = f ( t ) = 3 t 2 24 t + 36 . So, when is this zero?

3 t 2 24 t + 36 = 0 t 2 8 t + 12 = 0 ( t 6 ) ( t 2 ) = 0

So, the particle is at rest at 2 seconds and 6 seconds.

 

[12.]A particle moves along the x-axis so that its position (x-coordinate) at any time  t [ 0 , 6 ]  seconds is given by  f ( t ) = t 3 9 t 2 + 15 t + 10 . When is the acceleration of the particle negative?

Derivative time!  f ( t ) = 3 t 2 18 t + 15 , and  f ( t ) = 6 t 18 6 t 18 < 0 6 t < 18 t < 3 . The acceleration is negative for times between 0 and 3 seconds.

 

[13.] The cost (in dollars) to produce x items of a certain product is  C ( x ) = 0.001 x 3 0.3 x 2 + 6 x + 900 . At what production level does the marginal cost of producing this product begin to increase?

First, the derivative of cost:  M ( x ) = C ( x ) = 0.003 x 2 0.6 x + 6 . Let's look at the graph:

An Image

A quick zoom will determine that this begins increasing at  x = 100  units.

3.5: Derivatives of Trigonometric Functions

Derivatives of Sine and Cosine

We'll prove these in class.

d dx [ sin ( x ) ] = cos ( x )

d dx [ cos ( x ) ] = sin ( x )

"Jerk"

The text defines a sudden change in acceleration to be a "jerk." The change in acceleration is given by the derivative of acceleration…acceleration is the second derivative of position, so "jerk" can be measured with the third derivative of position.

Wheee!

Derivatives of Other Trigonometric Functions

Again, we'll prove these in class.

d dx [ tan ( x ) ] = sec 2 ( x )

d dx [ cot ( x ) ] = csc 2 ( x )

d dx [ sec ( x ) ] = sec ( x ) tan ( x )

d dx [ csc ( x ) ] = csc ( x ) cot ( x )

Examples

[14.] Find f(x) if  f ( x ) = x cos ( x ) .

Product rule, anyone?  f ( x ) = ( 1 ) ( cos ( x ) ) + ( x ) ( sin ( x ) ) = cos ( x ) x sin ( x )

 

[15.] Find the equation of the line tangent to  y = cot ( x )  when  x = π 4 .

First, the equation for the slope of the tangent:  y = csc 2 ( x ) . Now let  x = π 4  to find the actual slope:  y = csc 2 ( π 4 ) = 2 . Next, the point on the graph:  y = cot ( π 4 ) = 1 . Finally, the equation of the tangent:  y 1 = 2 ( x π 4 ) .

3.6: The Chain Rule

There is probably no more important rule when it comes to taking derivatives!

The chain rule tells how to take the derivative of a composition of functions.

d dx [ f ( g ( x ) ) ] = f ( g ( x ) ) g ( x )

In words, you take the derivative of the outer function, leaving the inner function alone, then multiply by the derivative of the inner function.

Here's another way to think of it:  d( f ) dx = d( f ) d( g ) d( g ) dx . This says that we first take the derivative of f as if g(x) was an independent variable, then we take the derivative of g(x) with x as the independent variable.

The chain rule will not go away. Almost every derivative problem will require the use of the chain rule. Train yourself to see the composed functions!

Examples

[16.] Find y if y = ( x 2 + 3 x 2 ) 24 .

Hopefully you immediately see that we have one function ( x 2 + 3 x 2 ) inside of another (x24). The derivative of the outer function is 24x23; plug the inner function into that and multiply by the derivative of the inner function. y = 24 ( x 2 + 3 x 2 ) 23 ( 2 x + 3 ) .

 

[17.] Find  d dx [ x 3 + 4 x 2 5 x 7 ] .

Note that the function can be written as  ( x 3 + 4 x 2 5 x 7 ) 1 2 . The derivative is  1 2 ( x 3 + 4 x 2 5 x 7 ) 1 2 ( 3 x 2 + 8 x 5 ) = 3 x 2 + 8 x 5 2 x 3 + 4 x 2 5 x 7 .

 

[18.] Find f(x) if  f ( x ) = sin ( x 3 + 4 x ) .

f ( x ) = [ cos ( x 3 + 4 x ) ] [ 3 x 2 + 4 ]

3.7: Implicit Differentiation

An explicit equation has one variable isolated, and all other variables on the other side of the equals symbol. You've worked with lots of explicit functions over the years, and that's all we've used so far this year.

An implicit equation is not solved for a variable—all of the variables are all mixed up together. You are already familiar with some implicit functions, such as the equation of a circle. What we need to do is learn how to take the derivative of one variable (with respect to another) when the equation is implicitly defined.

There are two tricks: use Leibniz's notation, so that you know which variable is being considered dependent and which is independent; and treat the dependent variable as a function of the independent function.

This is difficult to explain…better to see some examples.

Examples

[19.] Find  dy dx  if  x 2 + y 2 = 16 .

It begins simply enough—the derivative of x2 is easy! However, the next item deserves some attention. The stem of the problem indicates that y is the dependent variable—thus, I should treat it as a function. However, note that the term is actually y2—a function raised to a power. That's a function within a function! I'll have to use the chain rule to take the derivative of x2.

So, here it is:  2 x + 2 y dy dx = 0 . However, the question implies that I need to solve for  dy dx 2 x + 2 y dy dx = 0 2 y dy dx = 2 x dy dx = x y .

 

[20.] Find  dv du  if  u 2 + u v v 3 = u + v .

This time, treat v as a function of u. Also, beware the product rule!

2 u + ( v + u dv du ) 3 v 2 dv du = 1 + dv du

2 u + v 1 = dv du + 3 v 2 dv du u dv du

2 u + v 1 = ( 1 + 3 v 2 u ) dv du

2 u + v 1 1 + 3 v 2 u = dv du

 

[21.] Find  d2 y d x 2  if  x + y = x y .

Take it one at a time.  1 + dy dx = y + x dy dx 1 y = x dy dx dy dx dy dx = 1 y x 1 .

Now, take the derivative again—since we've solved for  dy dx , that will make the left side easy (just what we did up until this section). The right side will result in some more  dy dx  terms, which you should substitute for the equation we found just above.

Oh, and…enjoy that quotient rule.

dy dx = 1 y x 1 d2 y d x 2 = ( x 1 ) ( dy dx ) ( 1 y ) ( x 1 ) 2

d2 y d x 2 = ( x 1 ) ( 1 y x 1 ) ( 1 y ) ( x 1 ) 2 = ( 1 y ) ( 1 y ) ( x 1 ) 2 = 2 2 y ( x 1 ) 2

3.8: Derivatives of Inverse Trigonometric Functions

Derivatives of Inverse Functions in General

So…you've got an inverse function, and you want to take its derivative. If it's the inverse of a nice polynomial or rational function, no problem—go right ahead. However, other functions will require some…finesse.

You've been given  y = f -1 ( x ) . Let's rearrange things so that the inverse isn't in the way:  f ( y ) = x . Now, take the (implicit) derivative as normal:  f ( y ) dy dx = 1 dy dx = 1 f ( y ) . However, remember that we know what y is—so we can write  dy dx = 1 f ( f -1 ( x ) ) .

Tada!

Derivatives of Inverse Trigonometric Functions

We'll show why these equations work in class.

d dx [ sin -1 ( x ) ] = 1 1 x 2

d dx [ cos -1 ( x ) ] = 1 1 x 2

d dx [ tan -1 ( x ) ] = 1 1 + x 2

d dx [ cot -1 ( x ) ] = 1 1 + x 2

d dx [ sec -1 ( x ) ] = 1 | x | x 2 1

d dx [ csc -1 ( x ) ] = 1 | x | x 2 1

The text provides some identities for the cosine, cotangent, and cosecant inverse functions—they could come in handy. The big three (the ones you should know) are sine, secant, and tangent.

Examples

[22.] Find  dy dt  if  y = sin -1 ( t ) .

Oooh—chain rule!  dy dt = 1 1 ( t ) 2 1 2 t = 1 1 t 1 2 t = 1 2 t ( 1 t ) .

 

[23.] Find  dx dθ  if  x = sec -1 ( π 2 θ ) .

Wheee!  dx dθ = 1 | π 2 θ | ( π 2 θ ) 2 1 ( -1 ) .

 

[24.] Find f(x) if  f ( x ) = tan -1 ( 1 x ) .

f ( x ) = 1 1 + ( 1 x ) 2 ( 1 x 2 ) = 1 x 2 + 1 x 2 ( 1 x 2 ) = 1 ( x 2 + 1 ) .

3.9: Derivatives of Exponential and Logarithmic Functions

The Natural Exponential

We'll explore the reasons for this in class…it turns out that d dx ( e x ) = e x !

Any Exponential

This is harder. We'll start with  y = n x . This can be rewritten as  y = e ln ( n x ) = e x ln ( n ) . Note that  ln ( n )  is just a constant; we can handle this with the chain rule.

d dx ( n x ) = d dx ( e x ln ( n ) ) = e x ln ( n ) ln ( n ) = n x ln ( n )

The Natural Logarithm

Logarithms are inverse functions of exponentials! Let's use that earlier result:  dy dx = 1 f ( f -1 ( x ) ) . In this case,  f ( x ) = e x , and  y = f -1 ( x ) = ln ( x ) . So, we get  dy dx = 1 e ln ( x ) = 1 x .

Any Logarithm

To take the derivative of any base logarithm, use the change of base formula to turn the logs into natural logs.

It's only natural!

Examples

[25.] Find the equation of the line tangent to  y = e x x  at the point  ( 1 , e ) .

First, the slope equation:  y = x e x e x x 2 . Plug in  x = 1  and we get zero! The tangent line is horizontal, at  y = e .

 

[26.] 24g of a radioactive substance decays according to the equation m ( t ) = 24 2 t 25 , where t is the time in years and the function produces the mass in grams. After 40 years, how fast is the amount of mass decreasing?

The rate of decrease in mass is the derivative of the mass function—the question asks for  m ( 40 ) m ( t ) = 24 ln ( 2 ) ( 2 t 25 ) ( 1 25 ) , so  m ( 40 ) = 24 ln ( 2 ) ( 2 40 25 ) ( 1 25 ) . The substance is decreasing at about 0.220 grams per year, after 40 years.

 

[27.] Find the derivative of  g ( x ) = cos ( ln ( x ) ) .

g ( x ) = sin ( ln ( x ) ) 1 x .

 

[28.] Differentiate  y = log 10 ( x x 1 ) .

First, convert:  y = 1 ln ( 10 ) ln ( x x 1 ) . Now, differentiate.

y = 1 ln ( 10 ) x 1 x ( x 1 ) x ( x 1 ) 2 = 1 ln ( 10 ) x 1 x 1 ( x 1 ) 2 = 1 ln ( 10 ) 1 x ( x 1 ) .


Valid MathML 2.0! Valid CSS Level 2!

Page last validated 2010-08-15