Differentiation
Physical Interpretation of the Derivative
The primary concept of calculus deals with the rate of change of one variable with respect to another.
Instantaneous Speed
Let’s imagine a person who travels 90 km in 3 hours. Their average speed (rate of change of distance with respect to time) is 30 km/h. Of course, they don’t need to travel at that fixed speed; they may slow down or speed up at different times during their travel. For many purposes, it suffices to know the average speed.
However, in many daily happenings, the average speed is not a significant quantity. If a person traveling in an automobile strikes a tree, the quantity that matters is the speed at the instant of collision (this quantity might determine if they survive or not).
| Concept | Description |
|---|---|
| Interval | Happens over a period of time |
| Instant | Happens so fast that no time elapses |
Calculating the average speed is simple. By definition, it’s the rate of change of distance with respect to time.
The same computation process can’t be applied to get the instantaneous speed at some point in time. Since instantaneous means that the event happened in an infinitesimal or very short space of time, then distance and time might both be zero. Hence, using the average speed definition won’t help because is meaningless. We know that this is a physical reality, but if we can’t calculate it, it’s impossible to work with it mathematically.
We can’t compute it with the knowledge we have right now, but we can surely approximate it. Let’s say that a ball is dropped near the surface of the Earth, and we want to know its instantaneous speed after 4 seconds. To calculate the instantaneous speed at any point in time, we need to know the distance it travels after some period of time. This relation can be expressed as a formula that relates distance and time traveled. The formula that relates the distance (in feet) to the time elapsed is:
We can calculate the distance the ball traveled after 4 seconds by replacing with 4:
Let’s also compute the distance the ball traveled after 5 seconds:
The average speed for this interval of time is then:
So the average speed during the fifth second is . This quantity is no more than an approximation of the instantaneous speed, but we may improve the approximation by calculating the average speed in the interval of time from 4 to 4.1 seconds, which is:
Let’s register more computations of the above process with smaller and smaller intervals of time in a table:
|time elapsed after 4 seconds| 1| 0.1| 0.01| 0.001| 0.0001|
|average speed (in feet/s) |144|129.6|128.16|128.016|128.0016|
Of course, no matter how small the interval is, the result is not the instantaneous speed at the instant . However, we now see that the average speed for the intervals seems to be approaching the fixed number 128 feet/s.
Method of Increments
Let’s redo the process described above over an arbitrary interval of time. To do so, let’s introduce a quantity , which represents an interval of time beginning at and extending before or after . ( is called an increment in because it’s some interval of time.)
The formula for the example above is:
When calculated once by the end of the fourth second, it is:
When substituted with the interval , it is:
Where is the additional distance the object falls seconds after the initial seconds. To obtain , we have to subtract from . The result is:
The average speed in this interval of time is then . Dividing both sides by :
To compute the instantaneous speed, the interval must become smaller and smaller until it reaches 0. If approaches 0, then also approaches 0. We can conclude that the instantaneous speed when approaches 128 feet/s.
Generalization
Let’s generalize the process above for for any value of . To do so, let’s apply the method of increments when is substituted with the interval :
Subtracting from the equation above:
Dividing both sides by :
Just as stated above, to compute the instantaneous speed, the interval must become smaller and smaller until it reaches 0. If approaches 0, then the instantaneous speed approaches , which is a function that will tell us the instantaneous speed of the falling object at any time !
It has been customary since the days of Euler to use (delta t) for the increment of . means a “change in the value of ”. Thus, has the same meaning as ; likewise, has the same meaning as . We can rewrite as:
It’s desirable to have some short notation for the statement that we have evaluated the limit of as the values of approach 0, which can be expressed as:
Where lim is an abbreviation for limit, replacing with this new notation:
To some mathematicians, this notation is somewhat lengthy; hence, mathematicians replaced it with different variations:
The rate of change is not always related to time or distances. A generalization of the formulas above is needed. Instead of the symbols and , let’s use and without specifying what and mean physically.
Let’s calculate the instantaneous rate of change of with respect to (the word instantaneous does not really apply because doesn’t represent time), using the method of increments on a function which depends on :
Subtracting from :
Dividing both sides by :
The instantaneous rate of change of with respect to is reached when approaches 0:
We can also use the variations for the notation of the rate of change:
What we did with the process above was to find the instantaneous rate of change of with respect to . We call this rate the derivative of with respect to . The process of applying the method of increments to obtain the derivative is called differentiation.
Geometric Interpretation of the Derivative
Let’s graph the following formula:
<div id=“geometric-representation”></div>
A point belonging to this geometrical representation of has the form ; e.g., when and when .
<div id=“geometric-representation-two-points”></div>
Let’s say that is a fixed point on the curve (for the sake of this example, the point will be ). Any other point that belongs to the curve can make a line with the fixed point.
<div id=“geometric-representation-secant”></div>
The slope is a quantity that describes the direction and steepness of a line and is calculated by finding the ratio of the vertical change to the horizontal change between any two distinct points on the line. The previous statement expressed as a formula is:
What if the movable point gets closer and closer to the fixed point such that reaches 0? That’s exactly the definition of the derivative, which means that the derivative of a function will tell us the slope of the [tangent line][tangent-line] to the function (represented geometrically as a curve) at any derivable point!
Let’s find the instantaneous rate of change of this function evaluated at , using :
This fixed number is the value of the slope of the line tangent to the derivative function when it’s evaluated with . Let’s find out the Point–slope form of the tangent line whose slope is :
Substituting , , and computed above:
If we graph this line next to the geometric representation of , we see that it’s actually touching the curve at the point .
<div id=“slope-static-x-1”></div>
Before finding the equation of the slope for any value of , let’s imagine the graph produced by the slope function. If we take a look at the graph produced by , we can see that for any point that belongs to the curve whose coordinate is negative, the slope will be negative, and for any point that belongs to the curve whose coordinate is positive, the slope will be positive, expressed mathematically:
Now that we have an idea of the values of the slope, let’s find the value of for any value of that is the derivative of with respect to , using :
<div id=“slope-graph”></div>
By looking at the line, we confirm our expectation of the values. Any point which belongs to the line whose coordinate is negative has its coordinate (the value of the slope) negative as well, and any coordinate belonging to the line whose coordinate is positive has its coordinate positive as well.
There are infinite tangent lines to the curve that represents . In the following graph, the equation of the line is computed dynamically based on the position of the mouse pointer (computed by doing substitutions on ):
<div id=“slope-dynamic”></div>
Second Derivative
Going back to the falling object formula ( is the distance the object moved after seconds have elapsed):
The instantaneous rate of change of the distance with respect to time is:
represents speed, and it is customary to use (the first letter of velocity) instead of :
Now is a function of , and we can ask for the rate of change of with respect to . This is called instantaneous acceleration. Acceleration is a change of speed that takes place during an interval of time. If there weren’t acceleration in a moving object, the moving object would be moving for the rest of its life with a constant speed. If the speed is given as a function of time, then we can calculate the instantaneous rate of change of the velocity with respect to time:
The instantaneous acceleration obtained above is the derived function of the instantaneous speed, which is the derived function of the distance function. Then we can relate the instantaneous acceleration and the distance function with the following notation:
The function above is called the second derived function of . This notation applied to the generalized version using the variables and is:
The Chain Rule
Physical problems lead to more complicated algebraic functions, for example, , which arises when one wants to work with the upper half of the parabola . We can express this function as a combination of two functions:
If is a function of and is a function of , then:
Expressed in the function notation:
Then:
Returning to the original problem, let’s find the derivative of with respect to using the chain rule:
Let and .
Differentiation of Implicit Functions
Going back to the definition of a function, it’s a relation between two variables such that given a value of one in some domain, there’s a unique value determined for the second variable. However, functions often occur in forms where giving the independent variable some value will not result in a unique value. For example, the equation of a circle of radius equal to 5 is:
Here, is not expressed in terms of . Solving for , we have two equations:
represents the circle implicitly, and represents the equation explicitly.
We know that in represents some function of . If we recognize that the left side of is only a set of terms in , then we can differentiate it. The problem is to find the derivative of , which should remind us of the chain rule ( plays the role of in the chain rule):
Applying a differentiation process to :
Solving for :
Theorems on Differentiation
Read “Calculus: An Intuitive and Physical Approach”.
Applications of the Derivative
- Determination of the velocity and acceleration of a particle given its distance as a function of time.
- Concentrate light, sound, and radio waves in a particular direction (see the reflective property of the parabola).
- Finding the maximum/minimum value of a function, i.e., find the largest/smallest value of when . A well-described solution to this problem can be found here.
- Approximation of the roots of a polynomial with Newton’s method, described here.
Maxima/Minima
Let’s say that we throw an object into the air and we want to know the maximum height it acquires. As it rises, its velocity decreases, and when it reaches the highest point, its velocity is zero. We also know that the velocity is the instantaneous rate of change of height with respect to time; hence, the derivative is involved in this process, and therefore we expect it to be involved in other maxima/minima problems.
More generally, if is a function of , it seems that to find the maximum value of , we must find and set it to 0.
Let’s see an example. The following function has a maximum value of near and a minimum value of near .
If we analyze the slope of the function near those points, we will see that on the left of , the slope is positive, and on the
right of , the slope is negative. Since we know that the derivative represents the slope of a function, we can also expect that
the derivative of this function near will go from a positive value to a negative value, intersecting the x-axis.
If we analyze the slope near , we will see the same behavior with the slope, but it’s going from a negative value to a positive one.
<div class=“tw-flex tw-flex-col md:tw-flex-row”>
<div class=“md:tw-w-1/2 tw-relative”>
$$
y = x^3/3 - 2x^2 + 3x + 2
$$
<div id=“maxima-minima-f”></div>
</div>
<div class=“md:tw-w-1/2 tw-relative”>
$$
y’ = x^2 - 4x + 3
$$
<div id=“maxima-minima-f-derivative”></div>
</div>
</div>
Now the problem reduces to finding the points where in the derivative function. Finding them will tell us exactly the maximum/minimum value of . Finding the values of when :
And we see that:
The process didn’t actually find the maximum/minimum values since for , the function increases indefinitely. The same goes for when , but in this case, the function decreases indefinitely. These values are called the relative maxima/minima because near or , these points are the minimum/maximum that can be found.
Applications of Maxima/Minima
- Refraction of light: we can build a function of time which relates the velocity/distance the light travels in different mediums. Finding the derivative and making it equal to will find the relative minimum time needed to go from one point in medium to a point in medium .
- Finding the sides of the rectangle with the maximum perimeter.
Newton-Raphson Method
The slope of the tangent line of a function at any derivable point is given by . Let be a derivable point; then the slope of the tangent line at is . The Point–slope form of the tangent line whose slope is is:
Newton found out that if we find the intercept of this tangent line with the -axis at some initial guess , the value found approaches one of the roots of , i.e., when (obviously, given that it has roots).
If , then the equation of the line is:
Solving for :
in the last equation is the abscissa of the next approximation of one of the roots of . If we run the algorithm above a few times with an acceptable initial guess, then we’ll obtain a better approximation of one of the roots of .
<div id=“newton-raphson”></div>
<div class=“tw-text-center tw-mb-4”>
<button id=“run-newton-raphson” class=“tw-inline-block tw-p-2 tw-rounded-md tw-border-2 tw-border-primary”>Approximate with Newton-Raphson</button>
</div>
Finding the Square Root of a Number
Let’s say that we want to find the square root of a number . This is equivalent to finding the solution to:
The function to use is then:
whose derivative is:
Substituting in :