Contact
CoCalc Logo Icon
StoreFeaturesDocsShareSupport News AboutSign UpSign In
| Download
Views: 4898

The Definition of the Derivative

As you saw in the last section, the derivative of a function measures the function's rate of change, or its slope. To give you a better idea of what a derivative is, imagine that Bob The Crash Test Dummy is driving a car. Bob's car is on fire, which is why his driving is somewhat erratic. The function

x(t)=32t2+20tx(t)=\dfrac{3}{2}t^2+20t

models the number of miles driven after t hours has elapsed. After one hour has passed, Bob looks at his melting odometer to see that he has driven 21.5 miles. According to his speedometer, Bob is traveling at a measly 23 miles per hour, which spurs him to wonder audibly how much he'll be paid for this "invigorating yet harmless driving stunt" that Stunt Dummies International signed him up for. Five hours later (t = 6 hours), Bob finds that he has covered a total of 174 miles and is currently moving at 38 miles per hour. Since 174 miles was all Bob had to drive, he slams on the brakes, gets out of the car and telephones mission control on his tungsten cellphone.

In this example, the speed that Bob was traveling at any point in time could be described as the rate of change of his position at that point -- also known as the derivative of his position function. The change in the speed of Bob's car over time was his acceleration, or the rate of change of his rate of change throughout the journey. His acceleration can also be described as the second derivative of his position function, though we will mostly be concerned with the first derivative for now.

Do you see now how derivatives relate to motion and position? This is very much the same as with the functions of the last section; you can think of the slope of a tangent line as the function's speed at that point. Just as a speedometer gives a vehicle's instantaneous speed, the derivative gives a function's instantaneous rate of change. Since finding derivatives via the limit process of the last section can be rather tedious, though, it is time to introduce a much faster method.

The Rules of Differentiation

Differentiation is the process of finding derivatives, a process that becomes much faster once you have master the upcoming rules! Most calculus books have a chart of such rules on the inside front or back cover for easy viewing, though this worksheet should also serve as a faithful reference. I'll start with just a few of the rules here, and explain them as I go.

Constant Rule

If f(x)=af(x)=a and aa is a real number, then f(x)=0f'(x)=0.

Constant Multiple Rule

If f(x)=axf(x)=ax and aa is a real number, then f(x)=af'(x)=a

Power Rule

If f(x)=xnf(x)=x^n and nn is a real number, then f(x)=nxn1f'(x)=nx^{n-1}.

The function f(x)f'(x) (pronounced 'f prime of x') signifies the first derivative of f(x)f(x). To explain the Constant Rule, think of a function that is equal to a constant, perhaps the number 33, 5\sqrt{5}, the number ee, or just a constant 'aa'. The graph of such a function will necessarily be flat, and thus have a slope of zero. It is natural, therefore, that:

If f(x)=af(x)=a, then f(x)=limh0aah=0f'(x)=\underset{h\to0}{\rm{lim}}\dfrac{a-a}{h}=0

In order to save space, I won't use 'lim' in the other examples. The variable 'hh' is assumed to be approaching zero. For the Constant Multiple Rule:

If f(x)=axf(x)=ax , then f(x)=a(x+h)axh=ax+ahaxh=ahh=af'(x)=\dfrac{a(x+h)-ax}{h}=\dfrac{ax+ah-ax}{h}=\dfrac{ah}{h}=a

I used 'aa' again instead of an actual number just to show that it works for a general case. The Power Rule is more difficult to prove for xnx^n, though, so I'll use an actual number in tandem with the Constant Multiple Rule.

If f(x)=3x2f(x)=3x^2, then f(x)=3(x+h)23x2h=3x2+6xh+3h23x2h=6xh+3h2h=6x+3h=6x+0=6xf'(x)=\dfrac{3(x+h)^2-3x^2}{h}=\dfrac{3x^2+6xh+3h^2-3x^2}{h}=\dfrac{6xh+3h^2}{h}=6x+3h=6x+0=6x

Keep in mind that if the variable's power is a negative number, you will have to multiply through the negative sign. So if f(x)=4x3f(x) = 4x^{-3}, then f(x)=12x4f'(x) = -12x^{-4}. Negative exponents also 'get bigger', since the Power Rule dictates that you must subtract 1 from the exponent's power.

Going back to the example about Bob in his car, let's take the derivative of his position function to see how fast he was moving at any point in time.

Since x(t)=32t2+20tx(t)=\dfrac{3}{2}t^2+20t, v(t)=3t+20v(t)=3t+20

The function v(t)v(t) is a better representation for instantaneous velocity than x(t)x'(t), which explains the above. Based on the newly-found formula for Bob's velocity, we can confirm his observations that v(1)=23v(1) = 23 and that v(6)=38v(6) = 38. If we take the derivative of the velocity function, now:

Since v(t)=3t+20v(t)=3t+20, a(t)=3a(t)=3

Bob was accelerating at a rate of 3 miles per hour per hour, which explains why he was moving more quickly toward the end of his journey than at the start. Compare the position, velocity, and acceleration functions in the following graph:

var('t') # Initialize t plot(3*t^2/2+20*t, t, 0, 6)+plot(3*t+20, t, 0, 6, rgbcolor='red')+line([(0, 3), (6, 3)], rgbcolor='green') # Plot Bob's position, velocity, and acceleration for his six-hour drive.
t

You can see that as Bob's velocity gradually increased (the red line), his distance traveled (the blue line) began to rise more quickly. His acceleration remained constant (the green line), which caused his velocity to increase linearly.

The next two differentiation rules are not as easy to apply as the first three, so pay attention. What makes them less straightforward is that both usually involve a fair amount of work.

Product Rule

If ff and gg are differentiable at xx, then (fg)(x)=f(x)g(x)+g(x)f(x)(f*g)'(x)=f(x)g'(x)+g(x)f'(x)

Quotient Rule

If ff is the quotient g(x)h(x)\dfrac{g(x)}{h(x)} and h(x)0h(x)\neq0, then f(x)=g(x)h(x)g(x)h(x)[h(x)]2f'(x)=\dfrac{g'(x)h(x)-g(x)h'(x)}{[h(x)]^2}

As an example of the product rule, think of two expressions, x2+1x^2+1 and 4x32x+34x^3-2*x+3 that are multiplied together. To take the derivative of their combination, one could either multiply through (which would be somewhat of a hassle) or apply the product rule, which is the much better alternative.

If f(x)=(x2+1)(4x32x+3)f(x) = (x^2+1)(4x^3-2x+3), then f(x)=(x2+1)(12x22)+(2x)(4x32x+3)=12x4+12x22x22+8x44x2+6x=20x4+6x2+6x2f'(x)=(x^2+1)(12x^2-2)+(2x)(4x^3-2x+3)=12x^4+12x^2-2x^2-2+8x^4-4x^2+6x=20x^4+6x^2+6x-2

I wouldn't recommend simplifying the result of the product rule unless you have to; it's much safer just to leave it as it is, especially if you are going for the second derivative as well. The quotient rule is another case where you don't always want to simplify, since generally leaving the denominator as it is (without squaring) looks much cleaner and is still a valid answer. In this case, though, simplifying turns out to be a valid option.

If f(x)=5x+22xf(x)=\dfrac{5x+2}{2x}, then f(x)=(5x+2)(2x)(5x+2)(2x)(2x)2=(5)(2x)(5x+2)(2)(2x)2=10x10x4(2x)2=44x2=1x2f'(x)=\dfrac{(5x+2)'(2x)-(5x+2)(2x)'}{(2x)^2}=\dfrac{(5)(2x)-(5x+2)(2)}{(2x)^2}=\dfrac{10x-10x-4}{(2x)^2}=\dfrac{-4}{4x^2}=-\dfrac{1}{x^2}

Practice Problems

Manually differentiate the following functions, then use SageMath to confirm your result.* Remember to initialize variables that you haven't referred to previously using var('t') or whatever the variable's name is.

  1. f(x)=5x2+5x+5f(x)=5x^2+5x+5

  2. s(v)=(3v2+5v+2)(v21)s(v)=(3v^2+5v+2)(v^2-1)

  3. x(t)=4t23t2x(t)=\dfrac{4t^2}{3t-2}

*If you were to differentiate x2x^2 in SageMath, for example, you would use:

derivative(x^2, x)
2*x

To view answers, select this cell and paste it into your own sagews, and then double click on it

[Previous: Tangent Lines](Tangent_Lines.sagews) | [To Main](Introduction.sagews) | [Next: Differentiability](Differentiability.sagews)