Physclips is funded by The Australian Learning and Teaching Council
Calculus: differentials and integrals. A simple introduction from Physclips
Calculus is easier than you think. Here's a simple example: the bucket at right integrates the flow from the tap. The flow is the time derivative of the water in the bucket. The basic ideas are not more difficult than that. Calculus analyses things that change, and physics is much concerned with changes. For physics, you'll need at least some of the simplest and most important concepts from calculus. Fortunately, one can do a lot of introductory physics with just a few of the basic principles.
So stick with us: differentiation really is just subtracting and dividing, and integration really is just multiplying and adding. This short introduction is no substitute, however, for a good high school calculus course: we are going to take some short cuts of which mathematicians may disapprove.
When the clock strikes zero, he is at x = 3 m. We call this his initial displacement and write x0 = 3 m.
When the clock reads t = 2 s, he is at x = 5 m. So what is v? Displacement has increased by 2 m, time has increased by 2 s, so v is
Now this is a special case, because in this example he is travelling at constant speed. Let's see how special: What if he travelled at 2 m/s for half a second, stopped for one second, then travelled at 2 m/s for another half second? He would still have travelled two metres in two seconds, so his average speed is 1 m/s, even if he was never travelling at this speed. We signify the average of something by putting a bar over it. His average speed is written , pronounced 'v bar'.
That fraction above looks long and clumsy when written in words. We'll write x for displacement and t for time. "change in" occurs so often in physics that we replace it with the Greek letter delta, whose upper and lower case forms are Δ and δ. (In a word, δ sounds similar to the 'd' in English, so you can think of it as standing for 'difference'.) With that substitution, and remembering to use average velocity, we write:
Now, don't get too excited, but what we have just done is called 'differentiation' or 'taking a derivative'. Yes, that's all there is too it: we subtracted to obtain a difference, and divided it by another difference. That process is called numerical differentiation, and most differentiation is numerical.
Note the geometrical significance of taking the derivative: looking at the triangle drawn on that graph, the height is 2 m, and the base is 2 s, so the derivative is the slope of the graph. Often it is said to be the rise (here Δx) over the run (here Δt). Note, too, that for this case, it doesn't matter how big or where we draw the triangle. If we made the run 0.3 s, the rise would be 0.3 m, and so on. That, however, is just for this special case, where v is constant, and so v and are the same. The derivative of x in this case is constant, as we show in the v(t) graph above.
If we want the slope at t = 0 s, we might take t = 0 s and t + Δt = 2 s. So Δt is two seconds, using the notation introduced above. But the trouble is that that gives us a triangle whose slope (the black line) is somewhat greater than the slope at t = 0 s (the red line). In fact, the slope of the black line gives us the average velocity between 0 and 2 seconds, but that is not what we want. We can do better, in this case at least, by drawing our triangle on either side of t = 0 s. Try it, but you'll find that that gives an overestimate, too.
We can do better by taking a smaller value of Δt. In principle, we might expect the estimate to improve as we take smaller and smaller Δt. Here arises a practical problem: If we are measuring the values, there is inevitably a limit to the precision of each measurement and, as the Δt and Δx get smaller, this error becomes proportionately more important. If we are calculating x and t numerically, we face the same problem. So, in practice, we make a compromise on the size of Δt: small enough to give the local shape of the curve but large enough that the measurement or calculation errors are small. There are other tricks that we'll see below.
Sine and cos functions are important, especially in circular motion, simple harmonic motion, components of forces and other cases involving components of vectors. Fortunately, the derivatives here are simple. Let's work them out, using this diagram, which shows a segment of a circle whose radius is one unit. (We say a circle of unit radius.)
The definition of sine of an angle uses a right angled triangle. It is the ratio of the side opposite the angle to the hypotenuse of the triangle. The definition of cosine is the other side (that adjacent to the angle) divided by the hypotenuse.
In this diagram, first look at the triangle with blue sides. The radius is drawn at the angle θ. The vertical side is, by definition, sin θ and the horizontal side is cos θ.
Now let's change θ by an amount Δθ: we get another radius and another triangle, shown here with two of its sides in green. By how much have we changed sin θ? In other words, what is Δ(sin θ)?
By definition, Δ(sin θ) is the amount that in θ increases when θ increases by Δθ). So it must be (sin(θ+Δθ) - sin θ). On this diagram, Δ(sin θ) is shown as the rise of the small triangle, shown in red. (For clarity, this triangle is repeated outside the main diagram.) The run of this triangle is -Δ(cos θ). The run goes to the left in this case, so it has a negative sign. This negative sign arises because, as θ increases in this quadrant, cos θ decreases.
Now look at the small right triangle in red. We call its hypotenuse h. Applying the definition of sine and cos, and remembering that the cos θ is decreasing, we have
Δ(sin θ) = h cos φ and Δ(cos θ) = - h sin φ.
Now let's imagine what happens to the little red triangle as Δθ becomes very small. The hypotenuse approaches more and more closely the length of the arc of the circle between the two radii (the radii are the blue hypotenuse and the green hypotenuse). From the definition* of angle (angle in radians ≡ arc/radius) and the fact that radius is one, this arc has a length Δθ. It follows that, as Δθ becomes very small, h becomes approximately Δθ. Further, h becomes closer and closer to being at a right angle to the radius. Further, the angle φ becomes closer and closer to being equal to θ.
Again, we use the convention that dx means a value of Δx small enough to make the approximations better than our measurements. So, in this limit, and using the results of the previous paragraph (θ = φ and h = dθ for small enough values of Δθ), the equations above become
d(sin θ) = dθ cos θ and d(cos θ) = − dθ sin θ
Dividing both sides of these two equations by dθ gives two very useful results:
* Note the use of the definition: angle in radians = arc/radius. Consequently, the dθ in these equations must be expressed in radians. To convert degrees into radians, multiply by π and divide by 180°.
Let's leave displacement time graphs for a moment, because my favourite example of an integrator is a bucket. A bucket integrates the flow of water from a tap above it. In our example, someone is turning the tap on an off in an erratic way, so that the volume flow f (measured in litres/second) is varying with time. That function f(t) is shown as the red curve in the figure.
Let's say that the bucket already has in it a volume V0 of water and that we put the bucket under the tap (we start integrating) at time t = 0. The tap is already on, with a flow rate f0, called the initial flow rate. Consider the first short interval Δt. The flow rate is by definition the volume per second so, in the first time Δt, a volume of approximately f0.Δt pours into the bucket. f0.Δt is shown by the first red rectangle on the top graph. "Approximately" is there because, during Δt, the flow is not constant, but varying -- in our example it is increasing.
Similarly, at any time later, the volume going into the bucket in the short interval Δt is approximately f.Δt. So, for each Δt we add a step of f.Δt to the height of the purple curve representing the volume in the bucket, as shown in the lower curve. Notice that, when the flow is high, the area f.Δt is large, so that is when the volume in the bucket increases rapidly. Note that, when the flow falls to zero (tap off), the volume is no longer increasing. And of course a fall in the V(t) curve would mean water flowing out of the bucket, which we should call negative flow into the bucket. (For example, the bucket might have a leak.)
What is the volume Vf in the bucket at a final time tf? (The subscript f here stands for 'final', not flow.) We can find the approximate volume as
Vf ≈ V0 + f0.Δt + f1.Δt + f2.Δt + etc
until we get to tf.
The "approximately" appears because the flow varies over the time Δt. However, if we make Δt small enough, this variation becomes smaller than the limit of our precision*. As above, when Δt is small enough, we call it dt. So the equation above becomes:
Vf = V0 + f0.dt + f1.dt + f2.dt + etc until we get to tf.
So the right hand side has the initial volume, plus a long sum of terms like f.&dt. That sum is called the integral of f with respect to t. We saw earlier that differentiating was subtracting and dividing. We've now seen that integration is just multiplying and adding. So integration is the opposite of differentiation. The language we've used above includes "+ etc until we get to tf and where dt is small enough to achieve the required precision". We'd waste time (and look a bit silly) writing this every time. So instead we write it like this:
The last term is pronounced "The integral from t = 0 to tf of f with respect to t". The integral sign is s shaped, which can stand for 'sum' and remind us that's all it is. We say we are integrating "with respect to t", because t is varying during our sum. The limits of integration (t = 0 and t = tf) tell us when we start and stop integrating -- when we put the bucket under the tap and when we pull it away from the tap.
In the way I've presented this example, V0 is a constant of integration. Integration doesn't tell you the complete answer, it only tells you how much something has changed during the process. In this case, to know the final volume in the bucket, we need to know not only the integral of the flow, but also how much was in the bucket before it started to integrate the flow. In most cases, you will need to find the constant of integration -- very often by using the initial conditions, as we did here.
Perhaps now is a good time to go back to the animations above and check that integrating the velocity (finding the area under the curve) gives the displacement.
There was an exception above, and there is one here. Obviously this can't work for m = −1, because that would give an integral that doesn't depend on t. The integral of 1/x is ln (x). (To revise, see What is a logarithm? A brief introduction, below.)
So, in this plot, the slope of the purple curve is given by the red curve (differentiation finds the rate at which it is increasing). The purple curve rises at a rate given by the red curve (integration of a function means successively adding its value).
For this and the next section, the example will use numbers x and y, rather than displacements as a function of time. Quantities with dimensions add extra constants, as we see below, and it is easier to begin without them.
And finally, one very useful integral and differential: the exponential function.
The function ex is chosen and the value of e defined so that the derivative of e x is e x. In other words, ex is a curve whose slope equals its values at all points. So it is also its own integral.
On the graph, the curve (purple) shows e xvs x. In this the derivative is not shown in red, because the function and its derivative are equal. The straight line (green) is y = e .x. At t = 1, the slope of the curve is e 1 = e . This is also the value of y at x = 1. Notice that, at x= 0, the slope of the curve is one. At x = −1, the slope is 1/e , etc.
Using the chain rule tells us that
The derivative of eax is a.eax, where a is a constant, and
The integral of eax is eax/a.
To return to our point about numbers and physical quantities: Be careful about dimensions: the argument of the exponential function must be a number. Consequently, in physics, we shall often see the exponential function in equations like this one for an exponentially decreasing displacement:
x = x0.e −t/τ
where x0 is the displacement at t = 0 and τ, which must have the units of time, is the characteristic time that appears due to parameters in the physical system.
This example suggests a nice problem: what is the relation ship between force and velocity for a particle of mass m whose velocity is given by
v = v0.e −t/τ
where v0 is the initial velocity? And how far does it travel before coming to rest? (This situation occurs for an object moving slowly and horizontally without friction in a viscous medium.)