Skip to content

Mathematics · Ch 10 — Differential Calculus – Differentiability and Methods of Differentiation

Differentiation of one function with respect to another function

10.4.7

Differentiation of one function with respect to another function

The chain rule (Theorem 10.5) differentiates a composite function with respect to the independent variable xx. A closely related — and equally useful — question is: given two functions f(x)f(x) and g(x)g(x) of the same variable xx, how does ff change as gg changes, i.e. what is dfdg\dfrac{df}{dg}?

If ff and gg are both differentiable functions of xx and g′(x)=dgdx≠0g'(x)=\dfrac{dg}{dx}\ne0, then

dfdg=df/dxdg/dx=f′(x)g′(x).\frac{df}{dg} = \frac{df/dx}{dg/dx} = \frac{f'(x)}{g'(x)}.

This is proved exactly like the parametric-derivative formula of §10.4.6, treating xx itself as the connecting "parameter" between ff and gg: dfdg=df/dxdg/dx\dfrac{df}{dg}=\dfrac{df/dx}{dg/dx} is just the chain rule read the other way around, dividing one derivative-with-respect-to-xx by another.

Note

When g(x)=xg(x)=x (the identity function, g′(x)=1g'(x)=1), the formula collapses to dfdg=dfdx=f′(x)\dfrac{df}{dg}=\dfrac{df}{dx}=f'(x) — the ordinary derivative is simply the special case of "differentiating ff with respect to gg" when gg happens to be xx itself.

Worked illustration. Find the derivative of xxx^x with respect to xlog⁡xx\log x. Let u=xxu=x^x and v=xlog⁡xv=x\log x. From §10.4.4, log⁡u=xlog⁡x\log u = x\log x, so (by the same logarithmic-differentiation step) dudx=u(1+log⁡x)=xx(1+log⁡x)\dfrac{du}{dx} = u(1+\log x) = x^x(1+\log x); and directly, dvdx=1⋅log⁡x+x⋅1x=1+log⁡x\dfrac{dv}{dx}=1\cdot\log x+x\cdot\dfrac1x = 1+\log x (product rule). Then

dudv=du/dxdv/dx=xx(1+log⁡x)1+log⁡x=xx\frac{du}{dv} = \frac{du/dx}{dv/dx} = \frac{x^x(1+\log x)}{1+\log x} = x^x

— the (1+log⁡x)(1+\log x) factors cancel exactly, leaving a strikingly clean result.

Worked illustration — inverse-trig pair. Find the derivative of tan⁡−1 ⁣(1+x2)\tan^{-1}\!\left(1+x^2\right) with respect to x2+1\sqrt{x^2+1}. Let f(x)=tan⁡−1(1+x2)f(x)=\tan^{-1}(1+x^2) and g(x)=x2+1g(x)=\sqrt{x^2+1}. By the chain rule, f′(x)=2x1+(1+x2)2f'(x) = \dfrac{2x}{1+(1+x^2)^2} and g′(x)=xx2+1g'(x) = \dfrac{x}{\sqrt{x^2+1}}. Then …