- 1 What is Differentiation?
- 2 The Definition of Slope
- 3 The Rate of Change of a Function at a Point
- 4 The Definition of the Derivative
- 5 Differentiation Rules
- 5.1 Derivative of a constant function
- 5.2 Derivative of a linear function
- 5.3 Constant multiple and addition rules
- 5.4 The Power Rule
- 5.5 Derivatives of polynomials
- 5.6 Exercises
What is Differentiation?
Differentiation is an operation that allows us to find a function that outputs the rate of change of one variable with respect to another variable.
Informally, we may suppose that we're tracking the position of a car on a two-lane road with no passing lanes. Assuming the car never pulls off the road, we can abstractly study the car's position by assigning it a variable, . Since the car's position changes as the time changes, we say that is dependent on time, or . This tells where the car is at each specific time. Differentiation gives us a function which represents the car's speed, that is the rate of change of its position with respect to time.
Equivalently, differentiation gives us the slope at any point of the graph of a non-linear function. For a linear function, of form , is the slope. For non-linear functions, such as , the slope can depend on ; differentiation gives us a function which represents this slope.
The Definition of Slope
Historically, the primary motivation for the study of differentiation was the tangent line problem: for a given curve, find the slope of the straight line that is tangent to the curve at a given point. The word tangent comes from the Latin word tangens, which means touching. Thus, to solve the tangent line problem, we need to find the slope of a line that is "touching" a given curve at a given point, or, in modern language, that has the same slope. But what exactly do we mean by "slope" for a curve?
The solution is obvious in some cases: for example, a line is its own tangent; the slope at any point is . For the parabola , the slope at the point is ; the tangent line is horizontal.
But how can you find the slope of, say, at ? This is in general a nontrivial question, but first we will deal carefully with the slope of lines.
Of a line
The slope of a line, also called the gradient of the line, is a measure of its inclination. A line that is horizontal has slope 0, a line from the bottom left to the top right has a positive slope and a line from the top left to the bottom right has a negative slope.
The slope can be defined in two (equivalent) ways. The first way is to express it as how much the line climbs for a given motion horizontally. We denote a change in a quantity using the symbol (pronounced "delta"). Thus, a change in is written as . We can therefore write this definition of slope as:
An example may make this definition clearer. If we have two points on a line, and , the change in from to is given by:
Likewise, the change in from to is given by:
This leads to the very important result below.
Alternatively, we can define slope trigonometrically, using the tangent function:
where is the angle from the rightward-pointing horizontal to the line, measured counter-clockwise. If you recall that the tangent of an angle is the ratio of the y-coordinate to the x-coordinate on the unit circle, you should be able to spot the equivalence here.
Of a graph of a function
The graphs of most functions we are interested in are not straight lines (although they can be), but rather curves. We cannot define the slope of a curve in the same way as we can for a line. In order for us to understand how to find the slope of a curve at a point, we will first have to cover the idea of tangency. Intuitively, a tangent is a line which just touches a curve at a point, such that the angle between them at that point is zero. Consider the following four curves and lines:
- The line crosses, but is not tangent to at .
- The line crosses, and is tangent to at .
- The line crosses at two points, but is tangent to only at .
- There are many lines that cross at , but none are tangent. In fact, this curve has no tangent at .
A secant is a line drawn through two points on a curve. We can construct a definition of a tangent as the limit of a secant of the curve taken as the separation between the points tends to zero. Consider the diagram below.
As the distance tends to zero, the secant line becomes the tangent at the point . The two points we draw our line through are:
As a secant line is simply a line and we know two points on it, we can find its slope, , using the formula from before:
(We will refer to the slope as because it may, and generally will, depend on .) Substituting in the points on the line,
This simplifies to
This expression is called the difference quotient. Note that can be positive or negative — it is perfectly valid to take a secant through any two points on the curve — but cannot be .
The definition of the tangent line we gave was not rigorous, since we've only defined limits of numbers — or, more precisely, of functions that output numbers — not of lines. But we can define the slope of the tangent line at a point rigorously, by taking the limit of the slopes of the secant lines from the last paragraph. Having done so, we can then define the tangent line as well. Note that we cannot simply set to zero as this would imply division of zero by zero which would yield an undefined result. Instead we must find the limit of the above expression as tends to zero:
This last equation is just the point-slope form for the line through with slope .
The Rate of Change of a Function at a Point
Consider the formula for average velocity in the direction, , where is the change in over the time interval . This formula gives the average velocity over a period of time, but suppose we want to define the instantaneous velocity. To this end we look at the change in position as the change in time approaches 0. Mathematically this is written as: , which we abbreviate by the symbol . (The idea of this notation is that the letter denotes change.) Compare the symbol with . The idea is that both indicate a difference between two numbers, but denotes a finite difference while denotes an infinitesimal difference. Please note that the symbols and have no rigorous meaning on their own, since , and we can't divide by 0.
(Note that the letter is often used to denote distance, which would yield . The letter is often avoided in denoting distance due to the potential confusion resulting from the expression .)
The Definition of the Derivative
You may have noticed that the two operations we've discussed — computing the slope of the tangent to the graph of a function and computing the instantaneous rate of change of the function — involved exactly the same limit. That is, the slope of the tangent to the graph of is . Of course, can, and generally will, depend on , so we should really think of it as a function of . We call this process (of computing ) differentiation. Differentiation results in another function whose value for any value is the slope of the original function at . This function is known as the derivative of the original function.
Since lots of different sorts of people use derivatives, there are lots of different mathematical notations for them. Here are some:
- (read "f prime of x") for the derivative of ,
- for the derivative of as a function of or
- , which is more useful in some cases.
Most of the time the brackets are not needed, but are useful for clarity if we are dealing with something like , where we want to differentiate the product of two functions, and .
The first notation has the advantage that it makes clear that the derivative is a function. That is, if we want to talk about the derivative of at , we can just write .
In any event, here is the formal definition:
The derivative of is
no matter what is. This is consistent with the definition of the derivative as the slope of a function.
What is the slope of the graph of at ? We can do it "the hard (and imprecise) way", without using differentiation, as follows, using a calculator and using small differences below and above the given point:
When , .
When , .
Then the difference between the two values of is .
Then the difference between the two values of is .
Thus, the slope at the point of the graph at which .
But, to solve the problem precisely, we compute
= = = = = = .
We were lucky this time; the approximation we got above turned out to be exactly right. But this won't always be so, and, anyway, this way we didn't need a calculator.
In general, the derivative of is
= = = = = = = .
If (the absolute value function) then , which can also be stated as Finding this derivative is a bit complicated, so we won't prove it at this point.
Here, is not smooth (though it is continuous) at and so the limits and (the limits as 0 is approached from the right and left respectively) are not equal. From the definition, , which does not exist. Thus, is undefined, and so has a discontinuity at 0. This sort of point of non-differentiability is called a cusp. Functions may also not be differentiable because they go to infinity at a point, or oscillate infinitely frequently.
Understanding the derivative notation
The derivative notation is special and unique in mathematics. The most common notation for derivatives you'll run into when first starting out with differentiating is the Leibniz notation, expressed as . You may think of this as "rate of change in with respect to ". You may also think of it as "infinitesimal value of divided by infinitesimal value of ". Either way is a good way of thinking, although you should remember that the precise definition is the one we gave above. Often, in an equation, you will see just , which literally means "derivative with respect to x". This means we should take the derivative of whatever is written to the right; that is, means where .
As you advance through your studies, you will see that we sometimes pretend that and are separate entities that can be multiplied and divided, by writing things like . Eventually you will see derivatives such as , which just means that the input variable of our function is called and our output variable is called ; sometimes, we will write , to mean the derivative with respect to of whatever is written on the right. In general, the variables could be anything, say .
All of the following are equivalent for expressing the derivative of
The process of differentiation is tedious for complicated functions. Therefore, rules for differentiating general functions have been developed, and can be proved with a little effort. Once sufficient rules have been proved, it will be fairly easy to differentiate a wide variety of functions. Some of the simplest rules involve the derivative of linear functions.
Derivative of a constant function
For any fixed real number ,
The graph of the function is a horizontal line, which has a constant slope of zero. Therefore, it should be expected that the derivative of this function is zero, regardless of the values of and .
The definition of a derivative is
Let for all . (That is, is a constant function.) Then . Therefore
Let . To prove that , we need to find a positive such that, for any given positive , whenever . But , so for any choice of .
Note that, in the second example, is just a constant.
Derivative of a linear function
For any fixed real numbers and ,
The special case shows the advantage of the notation—rules are intuitive by basic algebra, though this does not constitute a proof, and can lead to misconceptions to what exactly and actually are.
The graph of is a line with constant slope .
If , then . So,
= = = = =
Constant multiple and addition rules
Since we already know the rules for some very basic functions, we would like to be able to take the derivative of more complex functions by breaking them up into simpler functions. Two tools that let us do this are the constant multiple rule and the addition rule.
The Constant Rule
For any fixed real number ,
The reason, of course, is that one can factor out of the numerator, and then of the entire limit, in the definition. The details are left as an exercise.
We already know that
Suppose we want to find the derivative of
= = =
Another simple rule for breaking up functions is the addition rule.
The Addition and Subtraction Rules
From the definition:
By definition then, this last term is
What is the derivative of ?
= = = =
The fact that both of these rules work is extremely significant mathematically because it means that differentiation is linear. You can take an equation, break it up into terms, figure out the derivative individually and build the answer back up, and nothing odd will happen.
We now need only one more piece of information before we can take the derivatives of any polynomial.
The Power Rule
For example, in the case of the derivative is as was established earlier. A special case of this rule is that .
Since polynomials are sums of monomials, using this rule and the addition rule lets you differentiate any polynomial. A relatively simple proof for this can be derived from the binomial expansion theorem.
This rule also applies to fractional and negative powers. Therefore
= = =
Derivatives of polynomials
With these rules in hand, you can now find the derivative of any polynomial you come across. Rather than write the general formula, let's go step by step through the process.
The first thing we can do is to use the addition rule to split the equation up into terms:
We can immediately use the linear and constant rules to get rid of some terms:
Now you may use the constant multiplier rule to move the constants outside the derivatives:
Then use the power rule to work with the individual monomials:
And then do some algebra to get the final answer:
These are not the only differentiation rules. There are other, more advanced, differentiation rules, which will be described in a later chapter.
- Find the derivatives of the following equations: