Chapter VI · Derivatives and integrals

The notation dy/dx

§116 20 min

Why the derivative is written dy/dx, what that symbol does and does not mean, and the rules of differentiation restated in Leibniz’s notation.

Why this matters

Most books, and most people, write the derivative of y=ϕ(x)y = \phi(x) as dydx\dfrac{dy}{dx}. The notation is extraordinarily convenient: the chain rule looks like cancelling fractions, and the inverse-function rule looks like turning a fraction upside down. It is also misleading, because dy/dxdy/dx is not a fraction. In §116 Hardy explains where the notation comes from, warns against reading too much into it, and restates the rules of §114 in it. This lesson makes sure you can use the notation freely without being misled by it.

The idea

When xx changes from xx to x+hx + h, the dependent variable y=ϕ(x)y = \phi(x) changes from ϕ(x)\phi(x) to ϕ(x+h)\phi(x + h). The two changes are called increments and written

δx=h,δy=ϕ(x+h)−ϕ(x).\delta x = h, \qquad \delta y = \phi(x + h) - \phi(x).

The chord slope is then δy/δx\delta y / \delta x, a genuine quotient of two numbers. The derivative is its limit as δx→0\delta x \to 0, and Leibniz’s notation writes this limit as dy/dxdy/dx, with Latin dd in place of Greek δ\delta, as a reminder of where it came from.

Explore Both increments vanish, their ratio does not

Try this. Drag δx\delta x down towards 0.00010.0001 and watch the three numbers in the read-out. Then switch on the zoom, which keeps the little triangle the same size on screen, and do it again.

y=x2y = x^2 at x=1x = 1
  • δx (increment of x)
  • δy (increment of y)
  • chord, slope δy/δx
  • tangent, slope dy/dx
δx=0.8,δy=2.24,δyδx=2.8\delta x = 0.8,\quad \delta y = 2.24,\quad \frac{\delta y}{\delta x} = 2.8
As δx→0\delta x \to 0, δy→0\delta y \to 0 as well, but the ratio tends to dydx=2\frac{dy}{dx} = 2. The symbol dy/dxdy/dx names this limit of a ratio; it is not a ratio of the limits, which would be 0/00/0.
What to notice

δx\delta x and δy\delta y both shrink to 00, while δy/δx\delta y/\delta x settles on the derivative (22 for x2x^2 at x=1x = 1). With the zoom on, the triangle keeps its shape and the curve straightens onto the tangent: what survives in the limit is the shape of the triangle, its slope, not its size.

So dy/dxdy/dx is the limit of a ratio. It is not a ratio of limits: lim⁡δy=0\lim \delta y = 0 and lim⁡δx=0\lim \delta x = 0, and “0/00/0” means nothing. Hardy insists that at this stage dydy and dxdx have no meaning on their own; the symbol dy/dxdy/dx must be read as a whole.

Precise statements

Definition Notations for the derivative Hardy: §116

If y=ϕ(x)y = \phi(x), its derivative is written in any of the ways

ϕ′(x),y′,Dxy,dydx,ddxϕ(x).\phi'(x), \qquad y', \qquad D_x y, \qquad \frac{dy}{dx}, \qquad \frac{d}{dx}\phi(x).

Here DxD_x, or ddx\dfrac{d}{dx}, denotes the operation of forming {ϕ(x+h)−ϕ(x)}/h\{\phi(x + h) - \phi(x)\}/h and letting h→0h \to 0. The symbol dydx\dfrac{dy}{dx} means “the result of applying ddx\dfrac{d}{dx} to yy”. It is not a quotient.

Translation The rules of §114 in Leibniz’s notation Hardy: §116 (1)–(7)

If y1y_1, y2y_2 are differentiable functions of xx and kk is a constant:

  • (1) d(y1+y2)dx=dy1dx+dy2dx\dfrac{d(y_1 + y_2)}{dx} = \dfrac{dy_1}{dx} + \dfrac{dy_2}{dx}, and (2) d(ky1)dx=kdy1dx\dfrac{d(ky_1)}{dx} = k\dfrac{dy_1}{dx};
  • (3) d(y1y2)dx=y2dy1dx+y1dy2dx\dfrac{d(y_1y_2)}{dx} = y_2\dfrac{dy_1}{dx} + y_1\dfrac{dy_2}{dx};
  • (4) ddx(1y1)=−1y12dy1dx\dfrac{d}{dx}\left(\dfrac{1}{y_1}\right) = -\dfrac{1}{y_1^2}\dfrac{dy_1}{dx}, and (5) ddx(y1y2)=1y22(y2dy1dx−y1dy2dx)\dfrac{d}{dx}\left(\dfrac{y_1}{y_2}\right) = \dfrac{1}{y_2^2}\left(y_2\dfrac{dy_1}{dx} - y_1\dfrac{dy_2}{dx}\right);
  • (6) if yy is a function of xx and zz a function of yy, then dzdx=dzdy dydx\dfrac{dz}{dx} = \dfrac{dz}{dy}\,\dfrac{dy}{dx};
  • (7) if xx and yy are inverse functions of each other, then dydx=1/dxdy\dfrac{dy}{dx} = 1 \Big/ \dfrac{dx}{dy} (where dx/dy≠0dx/dy \ne 0).

Rules (6) and (7) are where the notation earns its keep. It suggests the right formula: “cancel the dydy” in (6), “invert the fraction” in (7). But the suggestion is not a proof. The proof of (6) is the careful one in §114, which had to deal with δy=0\delta y = 0 for small δx≠0\delta x \ne 0, exactly the case in which “δz/δy⋅δy/δx\delta z/\delta y \cdot \delta y/\delta x” is meaningless.

Proofs

There is nothing new to prove: each line above is the corresponding rule of §114 in new clothes. It is worth doing the translation once, slowly, for the chain rule, because that is where readers are most often misled.

Proof Leibniz’s chain rule is §114 (6)
Strategy

Name the functions behind the letters, write the rule in Hardy’s functional notation, and check that the two statements say the same thing at the same points.

Name the functions

“yy is a function of xx” means y=f(x)y = f(x); “zz is a function of yy” means z=F(y)z = F(y). Then zz, as a function of xx, is ϕ(x)=F{f(x)}\phi(x) = F\{f(x)\}.

Translate each symbol

dzdx\dfrac{dz}{dx} means ϕ′(x)\phi'(x). dydx\dfrac{dy}{dx} means f′(x)f'(x). And dzdy\dfrac{dz}{dy} means F′(y)F'(y), evaluated at y=f(x)y = f(x). This last point is the one the notation hides: dz/dydz/dy is computed as a function of yy and then evaluated at the current value of yy.

Compare

The statement dzdx=dzdydydx\dfrac{dz}{dx} = \dfrac{dz}{dy}\dfrac{dy}{dx} therefore reads ϕ′(x)=F′{f(x)}f′(x)\phi'(x) = F'\{f(x)\}f'(x), which is exactly §114 (6), with the same hypotheses: ff differentiable at xx, FF differentiable at f(x)f(x).

Proof dy/dxdy/dx and dx/dydx/dy are reciprocals
Strategy

Use rule (7) and keep track of where each derivative is evaluated.

The functions

Let x=ψ(y)x = \psi(y) be strictly monotonic and continuous, with inverse y=ϕ(x)y = \phi(x).

The rule

By §114 (7), if ψ′(y)≠0\psi'(y) \ne 0 then ϕ′(x)=1/ψ′(y)\phi'(x) = 1/\psi'(y), where xx and yy correspond, that is, x=ψ(y)x = \psi(y).

Translate

ϕ′(x)\phi'(x) is dy/dxdy/dx and ψ′(y)\psi'(y) is dx/dydx/dy, so dydx⋅dxdy=1\dfrac{dy}{dx} \cdot \dfrac{dx}{dy} = 1 at corresponding points. When dx/dy=0dx/dy = 0 the rule is silent, and yy has a vertical tangent as a function of xx.

Worked examples and exercises

Exercise The chain rule in practice ●○○ Hardy: §116 (6)

Let z=sin⁡yz = \sin y and y=1+x2y = 1 + x^2. Find dz/dxdz/dx, and say at which point dz/dydz/dy must be evaluated.

Hint
dz/dy=cos⁡ydz/dy = \cos y and dy/dx=2xdy/dx = 2x.

Solution

dzdx=dzdydydx=cos⁡y⋅2x=2xcos⁡(1+x2)\dfrac{dz}{dx} = \dfrac{dz}{dy}\dfrac{dy}{dx} = \cos y \cdot 2x = 2x\cos(1 + x^2). The factor cos⁡y\cos y is dz/dydz/dy evaluated at y=1+x2y = 1 + x^2, the value of yy that corresponds to the current xx. Leaving the answer as 2xcos⁡y2x\cos y is correct but incomplete: the answer should be a function of xx.

Exercise ●●○ Hardy: Examples XL, 2

If y=y1y2⋯yny = y_1 y_2 \cdots y_n, write the formula for 1ydydx\dfrac{1}{y}\dfrac{dy}{dx} in Leibniz notation, and deduce that if y=zny = z^n then 1ydydx=nzdzdx\dfrac{1}{y}\dfrac{dy}{dx} = \dfrac{n}{z}\dfrac{dz}{dx}.

Solution

From the product of nn factors, 1ydydx=1y1dy1dx+⋯+1yndyndx\dfrac{1}{y}\dfrac{dy}{dx} = \dfrac{1}{y_1}\dfrac{dy_1}{dx} + \dots + \dfrac{1}{y_n}\dfrac{dy_n}{dx} (where no yry_r vanishes). With every yr=zy_r = z, the nn equal terms add up to nzdzdx\dfrac{n}{z}\dfrac{dz}{dx}.

Exercise Curves given by a parameter ●●○ Hardy: Examples XLIV, 19

A curve is given by x=ϕ(t)x = \phi(t), y=ψ(t)y = \psi(t). Show that, where ϕ′(t)≠0\phi'(t) \ne 0, the slope of the curve is dydx=ψ′(t)ϕ′(t)\dfrac{dy}{dx} = \dfrac{\psi'(t)}{\phi'(t)}, and deduce the equation of the tangent at the point with parameter tt. Apply it to the circle x=acos⁡tx = a\cos t, y=asin⁡ty = a\sin t.

Hint
Near a point where ϕ′(t)≠0\phi'(t) \ne 0 (and ϕ′\phi' keeps its sign), tt is a function of xx, the inverse of ϕ\phi. Then yy is a function of tt, which is a function of xx.

Solution

Suppose ϕ′\phi' keeps a fixed sign, say positive, on an interval around tt, so that ϕ\phi is strictly increasing there (this is Cor. 1 of §122). Then tt is a function of xx with dtdx=1/dxdt=1ϕ′(t)\dfrac{dt}{dx} = 1\Big/\dfrac{dx}{dt} = \dfrac{1}{\phi'(t)} by (7), and by (6)

dydx=dydt dtdx=ψ′(t)ϕ′(t).\frac{dy}{dx} = \frac{dy}{dt}\,\frac{dt}{dx} = \frac{\psi'(t)}{\phi'(t)}.

The tangent at (ϕ(t),ψ(t))(\phi(t), \psi(t)) is therefore Y−ψ(t)=ψ′(t)ϕ′(t){X−ϕ(t)}Y - \psi(t) = \dfrac{\psi'(t)}{\phi'(t)}\{X - \phi(t)\}, or, clearing the denominator, {X−ϕ(t)}ψ′(t)−{Y−ψ(t)}ϕ′(t)=0\{X - \phi(t)\}\psi'(t) - \{Y - \psi(t)\}\phi'(t) = 0. This last form also makes sense when ϕ′(t)=0≠ψ′(t)\phi'(t) = 0 \ne \psi'(t), where it gives a vertical tangent. For the circle, ϕ′=−asin⁡t\phi' = -a\sin t and ψ′=acos⁡t\psi' = a\cos t. The tangent is (X−acos⁡t) acos⁡t+(Y−asin⁡t) asin⁡t=0(X - a\cos t)\,a\cos t + (Y - a\sin t)\,a\sin t = 0, that is, Xcos⁡t+Ysin⁡t=aX\cos t + Y\sin t = a, the familiar tangent to a circle.

Exercise Not a quotient of limits ●○○ Hardy: §116

For y=x2y = x^2 at x=1x = 1, compute lim⁡δy\lim \delta y and lim⁡δx\lim \delta x as δx→0\delta x \to 0, and the limit of δy/δx\delta y/\delta x. Explain in one sentence why dy/dxdy/dx cannot be defined as lim⁡δy/lim⁡δx\lim\delta y / \lim \delta x.

Solution

δy=(1+δx)2−1=2δx+(δx)2\delta y = (1 + \delta x)^2 - 1 = 2\delta x + (\delta x)^2. As δx→0\delta x \to 0, δy→0\delta y \to 0 and δx→0\delta x \to 0, while δy/δx=2+δx→2\delta y/\delta x = 2 + \delta x \to 2. The quotient of the limits would be 0/00/0, which is not a number. The derivative is the limit of the quotient, taken before either increment reaches 00.

Check yourself

Check yourself True or false?

In the notation dy/dxdy/dx, the symbol dydy stands for lim⁡δx→0δy\lim_{\delta x \to 0} \delta y.

Why

False. That limit is 00 for every continuous function, so “dydy” would always be 00. In Hardy’s treatment here dydy has no meaning of its own; the symbol dy/dxdy/dx is read as a whole. (In Chapter VII Hardy gives dxdx and dydy a separate meaning, as differentials, chosen so that their quotient is the derivative; but they are still not limits of increments.)

Check yourself Enter a number

Let y=x3y = x^3. What is dx/dydx/dy when y=8y = 8?

Why

At y=8y = 8, x=2x = 2 and dy/dx=3x2=12dy/dx = 3x^2 = 12. So dx/dy=1/12≈0.0833dx/dy = 1/12 \approx 0.0833. Directly: x=y1/3x = y^{1/3} gives dx/dy=13y−2/3=13⋅14=112dx/dy = \tfrac13 y^{-2/3} = \tfrac13 \cdot \tfrac14 = \tfrac1{12}.

Check yourself Enter a number

Let y=u3y = u^3 and u=1+x2u = 1 + x^2. What is dy/dxdy/dx at x=1x = 1?

Why

dydx=dydududx=3u2⋅2x\dfrac{dy}{dx} = \dfrac{dy}{du}\dfrac{du}{dx} = 3u^2 \cdot 2x. At x=1x = 1, u=2u = 2, so this is 3⋅4⋅2=243 \cdot 4 \cdot 2 = 24. Forgetting to evaluate dy/dudy/du at u=2u = 2 (rather than at x=1x = 1) gives the wrong answer 66.

Check yourself Choose one

For y=ϕ(x)y = \phi(x), which of these does not denote the derivative of yy with respect to xx?

Why

δy/δx\delta y/\delta x is the chord slope for a particular increment δx\delta x: a genuine quotient, but only an approximation to the derivative. The other three are different names for the limit.

Hardy’s language

The reader must however be careful to remember that dy/dx does not mean ‘a certain number dy divided by another number dx’.

— G. H. Hardy, §116

Summary

Summary
  • δx\delta x and δy\delta y are increments; δy/δx\delta y/\delta x is a chord slope; dy/dxdy/dx is its limit.
  • dy/dxdy/dx is a single symbol, the result of the operation d/dxd/dx applied to yy. It is not a quotient, and dydy is not lim⁡δy\lim \delta y, which is 00.
  • The notation makes rules (6) and (7) look like algebra with fractions: dzdx=dzdydydx\dfrac{dz}{dx} = \dfrac{dz}{dy}\dfrac{dy}{dx} and dydx=1/dxdy\dfrac{dy}{dx} = 1\Big/\dfrac{dx}{dy}. These are good mnemonics but not proofs.
  • Always evaluate dz/dydz/dy at the value of yy corresponding to the current xx.