Lesson 1 · 35 min

Derivatives: A Calculus Refresher

Dynamics describes how things change, and the derivative is the mathematics of change. Velocity is the derivative of position and acceleration is the derivative of velocity, so every lesson after this one uses the rules collected here. This lesson reviews what a derivative means, the derivatives of the functions you meet most often, and the product, quotient and chain rules.

Learning objectives

What a derivative measures

Suppose a quantity \(f\) depends on time \(t\). Over a short interval \(\Delta t\) it changes by \(\Delta f = f(t + \Delta t) - f(t)\), so its average rate of change is \(\Delta f/\Delta t\). On a graph of \(f\) against \(t\), that ratio is the slope of the secant, the straight line through the two points. Let \(\Delta t\) shrink toward zero and the secant turns into the tangent at \(t\); its slope is the derivative.

The derivative

\[ \frac{df}{dt} = f\,'(t) = \lim_{\Delta t \to 0} \frac{f(t + \Delta t) - f(t)}{\Delta t} \]

The instantaneous rate of change of \(f\), and the slope of the tangent to the graph of \(f\) at \(t\). A dot over a symbol is the same derivative with respect to time: \(\dot s = ds/dt\).

In dynamics the quantity is usually the position \(s\) of a particle, and its rate of change is the velocity: \(v = ds/dt\). Where the graph of \(s\) rises, \(v\) is positive; where it falls, \(v\) is negative; at a peak or a valley the tangent is level and \(v = 0\). The derivative also has units: meters per second when \(s\) is in meters and \(t\) in seconds.

Figure 1.1 The derivative as a slope. The upper graph shows \(\colPos{f(t)}\) with the tangent at the point you choose (amber) and a secant to a second point \(\Delta t\) later (violet, dashed). The lower graph plots the derivative \(f\,'(t)\): the tangent slope at every instant. Shrink \(\Delta t\) and the secant slope approaches the tangent slope. Choose other functions to see the rules of this lesson at work.

Derivatives of the basic functions

You rarely use the limit itself. Instead, you combine a short table of known derivatives with a few rules. The table below holds every function you need in this course. In it, \(c\), \(k\) and \(n\) are constants, and angles are in radians: the derivative of \(\sin t\) is \(\cos t\) only when \(t\) is measured in radians.

Derivatives of the basic functions
Function \(f(t)\)Derivative \(f\,'(t)\)Note
\(c\)\(0\)a constant does not change
\(t^n\)\(n\,t^{n-1}\)power rule; any real \(n\), so \(\sqrt t = t^{1/2}\) and \(1/t = t^{-1}\)
\(\sin kt\)\(k\cos kt\)\(t\) in radians
\(\cos kt\)\(-k\sin kt\)note the minus sign
\(\tan kt\)\(k\sec^2 kt = k/\cos^2 kt\)
\(e^{kt}\)\(k\,e^{kt}\)the exponential is its own derivative when \(k = 1\)
\(\ln t\)\(1/t\)natural logarithm, for \(t > 0\)
\(\ln(kt)\)\(1/t\)because \(\ln(kt) = \ln k + \ln t\)

Two properties let you work term by term. The derivative of a sum is the sum of the derivatives, and a constant factor stays put:

Sums and constant multiples

\[ \frac{d}{dt}\big[f(t) + g(t)\big] = f\,'(t) + g'(t) \qquad\qquad \frac{d}{dt}\big[c\,f(t)\big] = c\,f\,'(t) \]

Proofs of these results are in any calculus textbook [2]. With these and the power rule you can differentiate any polynomial. The derivative of the derivative is the second derivative, written \(d^2f/dt^2\), \(f\,''(t)\) or \(\ddot f\). For a position \(s(t)\), the first derivative is the velocity and the second is the acceleration.

Example 1.1 — Velocity and acceleration from a polynomial

A particle moves along a straight line with position \(s = 2t^3 - 4t^2 + 5\), where \(s\) is in meters and \(t\) in seconds. Find its position, velocity and acceleration at \(t = 2\ \text{s}\).

Show solution

Apply the power rule to each term. The constant 5 drops out.

\[ v = \frac{ds}{dt} = 6t^2 - 8t \qquad\qquad a = \frac{dv}{dt} = 12t - 8 \]

At \(t = 2\ \text{s}\):

\[ \begin{aligned} s &= 2(8) - 4(4) + 5 = 5\ \text{m} \\ v &= 6(4) - 8(2) = 8\ \text{m/s} \\ a &= 12(2) - 8 = 16\ \text{m/s}^2 \end{aligned} \]

Units follow from the coefficients: the 6 in \(6t^2\) is in \(\text{m/s}^3\), so that \(6t^2\) comes out in \(\text{m/s}\).

The product, quotient and chain rules

Most functions in dynamics are built from the basic ones: multiplied together, divided, or nested one inside another. Three rules cover all three cases.

Product, quotient and chain rules

\[ \frac{d}{dt}\big[f\,g\big] = f\,'g + f\,g' \qquad\qquad \frac{d}{dt}\left[\frac{f}{g}\right] = \frac{f\,'g - f\,g'}{g^2} \]\[ \frac{d}{dt}\,f\big(u(t)\big) = \frac{df}{du}\,\frac{du}{dt} \]

The chain rule: differentiate the outer function, leave its inside alone, then multiply by the derivative of the inside.

The chain rule is the one you will use most. It is already hidden in the table: \(\sin kt\) is \(\sin u\) with \(u = kt\), so its derivative is \(\cos u \cdot k\). In the same way, \(e^{-t^2}\) has derivative \(e^{-t^2} \cdot (-2t)\), and \(\ln(1 + 3t)\) has derivative \(3/(1 + 3t)\).

Example 1.2 — The product rule

A small cart is pushed out along a track and drifts back. Its position is \(s = 5t\,e^{-0.4t}\) in meters, with \(t\) in seconds. Find its velocity, and its largest distance from the origin.

Show solution

With \(f = 5t\) and \(g = e^{-0.4t}\), the product rule and the chain rule give

\[ v = \frac{ds}{dt} = 5\,e^{-0.4t} + 5t\,(-0.4)\,e^{-0.4t} = e^{-0.4t}\,(5 - 2t)\ \text{m/s} \]

The exponential is never zero, so \(v = 0\) only when \(5 - 2t = 0\), at \(t = 2.5\ \text{s}\). There the cart turns back, at

\[ s_{\max} = 5(2.5)\,e^{-1} = 4.60\ \text{m} \]

Figure 1.2 animates this motion. Watch the velocity arrow shrink to zero at the turning point and then point back.

Figure 1.2 The cart of Example 1.2, \(s = 5t\,e^{-0.4t}\). The velocity graph is the slope of the position graph at every instant, and the acceleration graph is the slope of the velocity graph. The dashed amber line marks \(v = 0\), where the position graph peaks.

Example 1.3 — The quotient rule

A car pulls away from a stop sign with velocity \(v = \dfrac{20t}{t + 4}\ \text{m/s}\). Find its acceleration at \(t = 0\) and at \(t = 4\ \text{s}\).

Show solution

With \(f = 20t\) (so \(f\,' = 20\)) and \(g = t + 4\) (so \(g' = 1\)):

\[ a = \frac{dv}{dt} = \frac{20(t + 4) - 20t(1)}{(t + 4)^2} = \frac{80}{(t + 4)^2}\ \text{m/s}^2 \] \[ a(0) = \frac{80}{16} = 5.00\ \text{m/s}^2 \qquad\qquad a(4) = \frac{80}{64} = 1.25\ \text{m/s}^2 \]

The velocity approaches \(20\ \text{m/s}\) but never reaches it, so the acceleration fades toward zero.

Example 1.4 — The chain rule

A machine part vibrates with \(s = 0.2\sin 4t\ \text{m}\). Find its velocity and acceleration at \(t = 0.5\ \text{s}\).

Show solution

The inside function is \(u = 4t\), with \(du/dt = 4\):

\[ v = 0.2(4)\cos 4t = 0.8\cos 4t \qquad\qquad a = -0.8(4)\sin 4t = -3.2\sin 4t \]

At \(t = 0.5\ \text{s}\) the angle is \(4t = 2\) radians, not degrees:

\[ v = 0.8\cos 2 = -0.333\ \text{m/s} \qquad\qquad a = -3.2\sin 2 = -2.91\ \text{m/s}^2 \]

Notice that \(a = -16s\): the acceleration is proportional to the position and opposite to it, the signature of a vibration. Lesson 5 returns to this.

The chain rule in dynamics

The chain rule gives one of the most useful relations in this module. If the velocity is known as a function of position, \(v(s)\), then as the particle moves, \(s\) changes with time and so does \(v\). By the chain rule,

Acceleration from v(s)

\[ a = \frac{dv}{dt} = \frac{dv}{ds}\,\frac{ds}{dt} = v\,\frac{dv}{ds} \qquad\text{or}\qquad a\,ds = v\,dv \]

Use it when position, not time, is the variable you know. Lesson 3 derives it again from the definitions, and Lessons 5 and 6 use it to integrate.

The chain rule also differentiates equations that tie two coordinates together. If two collars on perpendicular rods are joined by a link of fixed length \(L\), then \(x^2 + y^2 = L^2\) at every instant. Differentiating both sides with respect to time, with \(x\) and \(y\) both functions of \(t\),

\[ 2x\,\dot x + 2y\,\dot y = 0 \]

which links the two velocities. Lesson 7 uses the same step for cords and pulleys.

Check your understanding

The first two questions take an expression: type the derivative using \(t\) as the variable, such as 3t^2 - 12t + 9, e^(3t), sin(2t) or ln(t).

Key takeaways