We discuss and justify computing derivatives with variable input and introduce the idea of derivatives as functions.
Video Lecture
In this video we aim to adhere to the number one mathematician’s rule: Embrace Laziness!
Text and Additional Details
Up until now, we have computed derivatives at specific (concrete) -values via the difference quotient, but this can be a time consuming, not to mention tedious, process. Often we need to know rates of change at several points for a given function, or you may be looking for when the derivative has a specific property (like when the derivative is zero). Doing this one point at a time would be, at best, incredibly annoying... at worst (and almost surely in many cases) it isn’t even possible. Luckily, there is a better way!
One of the mathematician’s credos is to solve problems in as much generality and abstraction as you can generally manage. This may seem like an unnecessary and confusing practice - after all, why solve for all the possible configurations of a problem, when you are only presented with a specific example to solve originally? But this kind of thinking is actually embraced for a practical reason (and also because mathematicians are a quirky bunch, but mostly the practical thing).
One the one hand, solving for things in general for a mathematician is a way to get at the underlying structure and the heart of “why” something is true, or “how it works” at a truly fundamental level. This is often a key component to the “beauty” that mathematicians describe as finding in their work. Being able to boil something incredibly complex and detailed down to only one or two key concepts and still capture the entire essence of the problem they started with is one of the true sources of joy for a research mathematician.
However, as I’m sure you are saying by now; you are not a research mathematician, and you probably don’t agree (or at least don’t especially care) about what mathematicians think is beautiful in mathematics. Nonetheless, I would argue there is still a good reason for you to embrace this way of thinking - one born of pure self interest and nothing so abstract or ephemeral as beauty or joy.
I know... bold claim right? But let me make my case before you roll your eyes so hard you detach a retina...
Using the correct level of abstraction results in slightly more work up front, and massively less work later on. It allows you to abide by the old adage; “Work smart, not hard.” Put another way, this brings us back to our original mantra - embrace laziness!
Instead of solving derivatives at specific points, we want to start solving the limit in terms of a general point, . To do this, we will need to do marginally more work initially (although, fair warning, even though it isn’t a lot more effort, it can look more intimidating, at least initially) but the payoff will be worth it. Consider, for example, the function . If we wanted to determine the derivative of this function at , and we could either;
- (a)
- Solve each of: , , and .
Or
- (b)
- Solve .
Let’s start by solving the initial three cases - note that this is presented mostly for comparison against the following second version, so you needn’t worry about following it super closely.
First we wanted the derivative at .
Definition of | ||
Compute . | ||
Combine Like Terms. | ||
Factor the numerator. | ||
Cancel the common factor . | ||
Evaluate the Limit. | ||
Simplify. | ||
Now we want the derivative at .
Definition of | ||
Compute . | ||
Combine Like Terms. | ||
Factor the numerator. | ||
Cancel the common factor . | ||
Evaluate the Limit. | ||
Simplify. | ||
And finally, the derivative at .
Definition of | ||
Compute . | ||
Combine Like Terms. | ||
Factor the numerator. | ||
Cancel the common factor . | ||
Evaluate the Limit. | ||
Simplify. | ||
So we have done the computations 3 times and gotten that the derivative at is , at it is , and at it is . Now, let’s see how our second version works:
Definition of | ||
Expand everything. | ||
Distribute negative. | ||
Combine like terms | ||
Factor out in top. | ||
Cancel . | ||
Evaluate limit | ||
Ok, so the calculation was pretty involved, but not exactly difficult so much as there was just lots of stuff we needed to track carefully to avoid errors. But notice that the length of the calculation is about on par with any one of the previous calculations (indeed, if you look closely, the steps are actually very similar as well) and now, using this second approach, we have reduced the limit all the way down to . Importantly, we have actually technically “evaluated the limit” (meaning that we no longer have the “” in front), so we don’t even have to worry about calculating a limit anymore.
So what does this mean? This function represents the derivative of at the point , for any input ! In other words, if we want to know what the derivative is at , , and , we can simply plug in those values as the value into to get , , and respectively; a quick and easy computation. So instead of doing a slightly easier difference quotient several times like we did above, we do a slightly harder one once to get a function that represents the derivative at any point!
Noticing that we can now plug in any value we need the derivative for into this function shows us why it’s more efficient to solve this more abstract version... but that’s not even the most useful part! What if we want to know something like, “where is the derivative equal to zero?” (a question we will ask so many times in the application section that it will begin to haunt your dreams!) It isn’t really clear how we could even begin to figure that out if we are using concrete values in the difference quotient. But now that we have a function that represents the derivative at any point , we can simply set this function equal to zero and solve for .
Nice and easy!
This way of solving for a function that represents the derivative of is so common and so useful that we even have a conventional notation! When we solve for this derivative function of some function we typically denote it as (pronounced “-prime of ”). Similarly if we find a derivative function of functions denoted by other letters, say or or , we would denote the derivative function by , , and respectively. There are other notations associated with taking derivatives in this abstract sense, but we will cover those as they come up.
So we have now seen that it is often slightly harder to solve the difference quotient limit in a general way (to get the derivative function), but the payoff is huge; specifically it is a function - which means it represents the derivative at any point. This allows us to solve the derivative for lots of inputs easily, without having to redo the difference quotient computation, and it also lets us solve for which inputs yield a desired derivative value (like when the derivative equals zero), which is not at all clear when just looking at the difference quotient. Finally, this kind of thing is so common and useful, that it has it’s own conventional notation, sometimes referred to as “prime” notation; for example, the derivative function of is written .