Differentiation is the process of finding the derivative of a function.
Essentially, while we know how to find the slope of a straight line, the derivative allows us to find the slope of a curve at any point.
In other words, what is the speed right now? What is the rate of change of a function at a certain point?
Imagine a car moving along a road. The car's position at time is given by a function .
Let's say we graph the car's position as a function of time:
To find the car's velocity, , at time , we can find the slope of the line tangent to the graph of at .
In this case, since it is a straight line, we can simply take two points and find :
The slope of the line is , so the car's velocity at any given time is .
However, in most cases the function will not be a straight line, so we need a more general way to find the slope, which is where the derivative comes in.
Instead of thinking about the slope of a function as a whole, a derivative deals with the slope at a singular point.
Let's say we have a function :
Suppose we want to find the slope of the function at .
What this means is that if we construct line that's tangent to the graph of at , what is the slope of that line?
To find the slope of the tangent line at , we can take two points on the graph of that are very close to .
Let's say we take and :
From the above, we can see that the slope of the tangent line at can be expressed as follows:
As approaches , the slope of the tangent line approaches a certain value.
This value is the derivative of the function at .
As such, the derivative of a function at a point is defined as:
Another way to write this is to have the second point as some other variable , so that the derivative at is:
Symbols
Some textbooks use instead of for some reason.
The derivative of a function is often denoted as , pronounced "f prime of x".
is known as Leibniz notation, while is known as Lagrange notation.
In the above, we used to represent a small change in , and likewise for .
As the change approaches , another symbol is used to represent this infinitesimally small change: and .
When using , the concept of it approaching is "built-in" to the symbol, so we can write the derivative as:
If we want to differentiate, let's say, , we can write it as:
The fraction on the left is the differential operator.
Back in Newton's and Leibniz's time, the derivative was defined in terms of infinitesimals, which are quantities that are smaller than any finite quantity but not zero.
This led to the idea that the derivative was a fraction, with and being the numerator and denominator.
It is common in introductory calculus courses to treat the derivative as a ratio, especially due to its intuitive nature.
In the future, we will see that treating the derivative as a fraction is very beneficial in many cases, like implicit differentiation, related rates, substitution, separation of variables, and more.
However, this notion of the derivative as a fraction is not entirely accurate.
In modern mathematics, calculus is built on Analysis, which is the rigorous study of limits and continuity.
The derivative, as we've shown, is defined as a limit, not a fraction.
The concept of an infinitesimal also fell out of favor due to its lack of rigor,
and is replaced by the Epsilon-Delta definition of limits (except in non-standard analysis and smooth infinitesimal analysis).
When we manipulate them like fractions, what we're really doing "under the hood" is applying the rules of differentiation, like its linearity, chain rule, and product rule.
Limits often play nicely with these rules, which is why treating the derivative as a fraction works a lot of the time.
A really simple example of where this heuristic fails is in partial derivatives, but we're getting ahead of ourselves.
As we've seen, the derivative of a function at a point is the slope of the tangent line at that point.
Using that slope, as well as a point, we can find the equation of the tangent line.
Recall the point-slope form of a line:
where is the slope of the line, and is a point on the line.
Derivation of the Point-Slope Form
A geometric way to think about this is to consider any point on the line, and then measure the distance from that point to the specific point .
First, consider the point-slope form of a line:
Next, consider adding an arbitrary point on the line:
The vertical distance between the two points is .
The horizontal distance between the two points is .
Recall that the slope of a line is the ratio of the vertical change to the horizontal change:
Hence:
The (more boring) algebraic way to find the equation of the line is to use the slope formula:
Given a point and a slope , the equation of the line is:
We need to find the -intercept . Since the line passes through :
Therefore:
Thus, the equation of the line is:
And rearranging gives:
We can set the point to be some and , and the slope to be :
The derivative of a sum of functions is the sum of the derivatives of the functions. To demonstrate this, let's find the derivative of the function .
Once again, let's find the derivative at . Look at the figure below:
The straight line is the part, and the curve is the whole function.
The two arrows represent that at that point, the total value of the function is the sum of the two terms, with each arrow representing one term.
Recall that to take the slope, you imagine another point some distance away and measure how much changes:
The key idea is that this green can be "split" into two parts: one from the term and one from the term.
The derivative of a product of functions is a bit more complicated.
However there's still a neat visual way to understand it. Let's say we have two functions and :
Generally, to visualize products, we can think of the area of a rectangle.
Options
Now imagine that increases by a small amount . The change in the product, , can be thought of as the change in the area of the rectangle.
We can split the change in area into three parts:
Therefore, the change in the product can be expressed as:
The last term, , will approach because it is the product of two infinitesimally small changes.
Therefore, the derivative of the product of two functions is:
To show this, let's make a general power function and apply the limit to it:
The term is a binomial. In an expanded binomial, you're essentially choosing every possible combination of terms from the two binomials.
For example, expands to because:
There's one way to choose from and :
There are three ways to choose from and : , , and
There are three ways to choose from and : , , and
There's one way to choose from and :
The formalization of this is the binomial theorem:
Where is the binomial coefficient, which is what you get when you choose items from items.
Applying this to the limit:
The key part is that after canceling out the terms, the only term that remains is the one where .
This is because the other terms have a in them, which will go to as approaches .
Therefore, the derivative of is:
What about non-integers?
The power rule works for all real powers, not just integers. Here's a proof.
Let's say we have a power function:
To find the derivative, we can use the chain rule:
A few things to note:
This relies on the fact that the derivative of is .
This also relies on the fact that the derivative of is itself .
Implicit differentiation is a way to differentiate functions that are not explicitly defined.
For example, consider the equation of a circle:
To differentiate this, we can treat as some constant and as some function .
Just like how we took small changes in to find the derivative of , we can take small changes in and to find the derivative of .
Remember that should be constant, so .
We can also use implicit differentiation to find the derivative of the natural logarithm.
Given , we can rewrite this as . Then, we can once again think of moving along both the and axes and find the derivative of with respect to .
The quotient rule is a way to differentiate functions that are the ratio of two functions.
It can be derived using information from the above sections.