Login

Concepts

Read through concept notes with worked explanations and diagrams, chapter by chapter.

Concept 08 / 12Limits, Continuity and Differentiability

Implicit, Parametric and Logarithmic Differentiation and Higher Derivatives

Differentiating relations F(x, y) = 0 implicitly, parametric derivatives dy/dx = (dy/dt)/(dx/dt) and the correct second derivative, logarithmic differentiation for products, quotients and variable powers, and second derivatives including d2y/dx2 from implicit and parametric forms.

Figure 1
Implicit differentiation. When yy is defined by a relation F(x,y)=0F(x, y) = 0 rather than an explicit formula, differentiate both sides with respect to xx, treating yy as a function of xx and applying the chain rule to every term containing yy: ddxy2=2ydydx\frac{d}{dx}y^{2} = 2y\frac{dy}{dx}, ddx(xy)=y+xdydx\frac{d}{dx}(xy) = y + x\frac{dy}{dx}, ddxsin⁡y=cos⁡ydydx\frac{d}{dx}\sin y = \cos y\frac{dy}{dx}. Then solve the resulting linear equation for dydx\frac{dy}{dx}. For the circle x2+y2=1x^{2} + y^{2} = 1, 2x+2yy′=02x + 2yy' = 0 gives y′=−xyy' = -\frac{x}{y}, as the figure confirms: the tangent is perpendicular to the radius, whose slope is yx\frac{y}{x}. A useful formula: dydx=−FxFy\frac{dy}{dx} = -\frac{F_{x}}{F_{y}}, where FxF_{x} and FyF_{y} are partial derivatives (differentiate with respect to one variable, treating the other as a constant). Parametric differentiation. If x=f(t)x = f(t) and y=g(t)y = g(t), then dydx=dy/dtdx/dt\frac{dy}{dx} = \frac{dy/dt}{dx/dt} where dxdt≠0\frac{dx}{dt} \neq 0. For the circle x=cos⁡tx = \cos t, y=sin⁡ty = \sin t, this gives −cot⁡t-\cot t, matching −xy-\frac{x}{y}. Where dxdt=0\frac{dx}{dt} = 0 and dydt≠0\frac{dy}{dt} \neq 0, the tangent is vertical. The second derivative in parametric form is a classic trap. d2ydx2\frac{d^{2}y}{dx^{2}} is not d2y/dt2d2x/dt2\frac{d^{2}y/dt^{2}}{d^{2}x/dt^{2}}. Instead, differentiate dydx\frac{dy}{dx} (a function of tt) with respect to xx, using the chain rule once more: d2ydx2=ddt(dydx)⋅dtdx=ddt(dy/dx)dx/dt\frac{d^{2}y}{dx^{2}} = \frac{d}{dt}\left(\frac{dy}{dx}\right) \cdot \frac{dt}{dx} = \frac{\frac{d}{dt}(dy/dx)}{dx/dt}. For the circle, ddt(−cot⁡t)=csc⁡2t\frac{d}{dt}(-\cot t) = \csc^{2}t and dxdt=−sin⁡t\frac{dx}{dt} = -\sin t, so d2ydx2=−csc⁡3t=−1y3\frac{d^{2}y}{dx^{2}} = -\csc^{3}t = -\frac{1}{y^{3}}. Logarithmic differentiation. For products and quotients of many factors, or for variable powers f(x)g(x)f(x)^{g(x)}, take logarithms first: ln⁡y=g(x)ln⁡f(x)\ln y = g(x)\ln f(x). Differentiating, y′y=g′ln⁡f+gf′f\frac{y'}{y} = g'\ln f + g\frac{f'}{f}, so ddxfg=fg(g′ln⁡f+gf′f)\frac{d}{dx}f^{g} = f^{g}\left(g'\ln f + \frac{gf'}{f}\right). This is the only way to differentiate expressions like xxx^{x}: ddxxx=xx(1+ln⁡x)\frac{d}{dx}x^{x} = x^{x}(1 + \ln x). Treating xxx^{x} as a power (x⋅xx−1x \cdot x^{x-1}) or as an exponential (xxln⁡xx^{x}\ln x) alone each captures only half of the answer; the correct derivative is their sum. For sums of such terms, differentiate each term separately: ddx(xx+xsin⁡x)\frac{d}{dx}(x^{x} + x^{\sin x}) needs two logarithmic differentiations. Higher derivatives. d2ydx2=ddx(dydx)\frac{d^{2}y}{dx^{2}} = \frac{d}{dx}\left(\frac{dy}{dx}\right). For implicit relations, differentiate the first-derivative equation again and substitute y′y'. Standard nnth derivatives: dndxneax=aneax\frac{d^{n}}{dx^{n}}e^{ax} = a^{n}e^{ax}; dndxnsin⁡(ax+b)=ansin⁡(ax+b+nπ2)\frac{d^{n}}{dx^{n}}\sin(ax + b) = a^{n}\sin(ax + b + \frac{n\pi}{2}); dndxn1ax+b=(−1)nn! an(ax+b)n+1\frac{d^{n}}{dx^{n}}\frac{1}{ax + b} = \frac{(-1)^{n}n!\,a^{n}}{(ax + b)^{n+1}}. Leibniz's rule for products: (uv)(n)=∑k(nk)u(k)v(n−k)(uv)^{(n)} = \sum_{k}\binom{n}{k}u^{(k)}v^{(n-k)}. Second-derivative relations are often asked in the form 'show that yy satisfies a differential equation'. The method is to differentiate, then eliminate constants and awkward terms using the original relation. For y=sin⁡−1xy = \sin^{-1}x: y′1−x2=1y'\sqrt{1 - x^{2}} = 1; squaring and differentiating again gives (1−x2)y′′−xy′=0(1 - x^{2})y'' - xy' = 0. Key Takeaways: - Implicit: differentiate every term, with ddxϕ(y)=ϕ′(y)y′\frac{d}{dx}\phi(y) = \phi'(y)y'; y′=−FxFyy' = -\frac{F_{x}}{F_{y}}. - Parametric: dydx=y˙x˙\frac{dy}{dx} = \frac{\dot y}{\dot x}; d2ydx2=ddt(dy/dx)x˙\frac{d^{2}y}{dx^{2}} = \frac{\frac{d}{dt}(dy/dx)}{\dot x}, not y¨x¨\frac{\ddot y}{\ddot x}. - ddxfg=fg(g′ln⁡f+gf′f)\frac{d}{dx}f^{g} = f^{g}(g'\ln f + \frac{gf'}{f}); ddxxx=xx(1+ln⁡x)\frac{d}{dx}x^{x} = x^{x}(1 + \ln x). - Logarithmic differentiation handles long products and quotients. - dndxnsin⁡(ax+b)=ansin⁡(ax+b+nπ2)\frac{d^{n}}{dx^{n}}\sin(ax + b) = a^{n}\sin(ax + b + \frac{n\pi}{2}). - Leibniz: (uv)(n)=∑(nk)u(k)v(n−k)(uv)^{(n)} = \sum\binom{n}{k}u^{(k)}v^{(n-k)}. - Pitfall: in y=xx+xsin⁡xy = x^{x} + x^{\sin x}, taking the log of the whole sum. Brain-Teaser 1: If xy=ex−yx^{y} = e^{x - y}, show that dydx=ln⁡x(1+ln⁡x)2\frac{dy}{dx} = \frac{\ln x}{(1 + \ln x)^{2}}. Solution: Take logs: yln⁡x=x−yy\ln x = x - y, so y(1+ln⁡x)=xy(1 + \ln x) = x and y=x1+ln⁡xy = \frac{x}{1 + \ln x}. Now differentiate this explicit form: y′=(1+ln⁡x)−x⋅1x(1+ln⁡x)2=ln⁡x(1+ln⁡x)2y' = \frac{(1 + \ln x) - x \cdot \frac{1}{x}}{(1 + \ln x)^{2}} = \frac{\ln x}{(1 + \ln x)^{2}}. Taking logarithms turned an implicit exponential relation into one that could be solved for yy, which made the differentiation straightforward. Brain-Teaser 2: For x=a(t−sin⁡t)x = a(t - \sin t), y=a(1−cos⁡t)y = a(1 - \cos t) (a cycloid), find dydx\frac{dy}{dx} and d2ydx2\frac{d^{2}y}{dx^{2}} at t=π2t = \frac{\pi}{2}. Solution: dxdt=a(1−cos⁡t)\frac{dx}{dt} = a(1 - \cos t) and dydt=asin⁡t\frac{dy}{dt} = a\sin t, so dydx=sin⁡t1−cos⁡t=cot⁡t2\frac{dy}{dx} = \frac{\sin t}{1 - \cos t} = \cot\frac{t}{2}. At t=π2t = \frac{\pi}{2} it equals 11. Then ddtcot⁡t2=−12csc⁡2t2\frac{d}{dt}\cot\frac{t}{2} = -\frac{1}{2}\csc^{2}\frac{t}{2}, so d2ydx2=−12csc⁡2(t/2)a(1−cos⁡t)=−14acsc⁡4t2\frac{d^{2}y}{dx^{2}} = \frac{-\frac{1}{2}\csc^{2}(t/2)}{a(1 - \cos t)} = -\frac{1}{4a}\csc^{4}\frac{t}{2} (using 1−cos⁡t=2sin⁡2t21 - \cos t = 2\sin^{2}\frac{t}{2}). At t=π2t = \frac{\pi}{2}, csc⁡4π4=4\csc^{4}\frac{\pi}{4} = 4, giving −1a-\frac{1}{a}. Dividing d2ydt2=acos⁡t=0\frac{d^{2}y}{dt^{2}} = a\cos t = 0 by d2xdt2=asin⁡t\frac{d^{2}x}{dt^{2}} = a\sin t would wrongly give 00. Brain-Teaser 3: If y=emsin⁡−1xy = e^{m\sin^{-1}x}, show that (1−x2)y′′−xy′−m2y=0(1 - x^{2})y'' - xy' - m^{2}y = 0. Solution: y′=my1−x2y' = \frac{my}{\sqrt{1 - x^{2}}}, so 1−x2 y′=my\sqrt{1 - x^{2}}\,y' = my. Square: (1−x2)y′2=m2y2(1 - x^{2})y'^{2} = m^{2}y^{2}. Differentiate: −2xy′2+2(1−x2)y′y′′=2m2yy′-2xy'^{2} + 2(1 - x^{2})y'y'' = 2m^{2}yy'. Divide by 2y′2y' (non-zero): (1−x2)y′′−xy′=m2y(1 - x^{2})y'' - xy' = m^{2}y. Squaring before the second differentiation removes the square root, which is the standard trick for inverse trigonometric functions.