Salick Academy

Differentiation II

No calculator

Unit 1 differentiated y=f(x)y = f(x). Here the function may be tangled up with yy, or defined through a parameter, or exponential — and each case has its own technique.

Exponential and logarithmic derivatives

ddx(ex)=ex\frac{d}{dx}\left(e^x\right) = e^x

The exponential function is its own derivative — the property that defines ee.

With the chain rule:

ddx(ekx)=kekxddx(ef(x))=f(x)ef(x)\frac{d}{dx}\left(e^{kx}\right) = ke^{kx} \qquad \frac{d}{dx}\left(e^{f(x)}\right) = f'(x)e^{f(x)}

ddx(e3x)=3e3xddx(ex2)=2xex2\frac{d}{dx}\left(e^{3x}\right) = 3e^{3x} \qquad \frac{d}{dx}\left(e^{x^2}\right) = 2xe^{x^2}

For logarithms:

ddx(lnx)=1xddx(lnf(x))=f(x)f(x)\frac{d}{dx}(\ln x) = \frac1x \qquad \frac{d}{dx}\big(\ln f(x)\big) = \frac{f'(x)}{f(x)}

ddxln(3x2+1)=6x3x2+1\frac{d}{dx}\ln(3x^2+1) = \frac{6x}{3x^2+1}

And for a general base:

ddx(ax)=axlna\frac{d}{dx}\left(a^x\right) = a^x\ln a

Combining rules. For y=xlnxy = x\ln x, the product rule gives

dydx=(1)(lnx)+(x)(1x)=lnx+1\frac{dy}{dx} = (1)(\ln x) + (x)\left(\frac1x\right) = \ln x + 1

Implicit differentiation

Some curves cannot be written as y=f(x)y = f(x) — a circle fails the vertical line test. Differentiate every term with respect to xx, using the chain rule whenever yy appears:

ddx(y2)=2ydydxddx(y3)=3y2dydx\frac{d}{dx}\left(y^2\right) = 2y\frac{dy}{dx} \qquad \frac{d}{dx}\left(y^3\right) = 3y^2\frac{dy}{dx}

Differentiate x2+y2=25x^2 + y^2 = 25 implicitly.

2x+2ydydx=0dydx=xy2x + 2y\frac{dy}{dx} = 0 \quad \Rightarrow \quad \frac{dy}{dx} = -\frac{x}{y}

At (3,4)(3,4) the gradient is 34-\frac34. Check geometrically: the radius to that point has gradient 43\frac43, and a tangent is perpendicular to the radius ✓

A product of xx and yy needs the product rule.

ddx(xy)=y+xdydx\frac{d}{dx}(xy) = y + x\frac{dy}{dx}

So for x2+xy+y2=7x^2 + xy + y^2 = 7:

2x+y+xdydx+2ydydx=02x + y + x\frac{dy}{dx} + 2y\frac{dy}{dx} = 0 dydx(x+2y)=(2x+y)\frac{dy}{dx}\big(x + 2y\big) = -(2x + y) dydx=2x+yx+2y\frac{dy}{dx} = -\frac{2x+y}{x+2y}

Parametric differentiation

When xx and yy are both given in terms of a parameter tt:

dydx=dy/dtdx/dt\frac{dy}{dx} = \frac{dy/dt}{dx/dt}

For x=t2x = t^2 and y=t3y = t^3:

dxdt=2tdydt=3t2\frac{dx}{dt} = 2t \qquad \frac{dy}{dt} = 3t^2 dydx=3t22t=3t2\frac{dy}{dx} = \frac{3t^2}{2t} = \frac{3t}{2}

For x=2costx = 2\cos t, y=3sinty = 3\sin t (an ellipse):

dydx=3cost2sint=32cott\frac{dy}{dx} = \frac{3\cos t}{-2\sin t} = -\frac32\cot t

Inverse trigonometric derivatives

ddx(sin1x)=11x2\frac{d}{dx}\left(\sin^{-1}x\right) = \frac{1}{\sqrt{1-x^2}} ddx(cos1x)=11x2\frac{d}{dx}\left(\cos^{-1}x\right) = -\frac{1}{\sqrt{1-x^2}} ddx(tan1x)=11+x2\frac{d}{dx}\left(\tan^{-1}x\right) = \frac{1}{1+x^2}

Notice that the first two differ only in sign, and that none of the three contains a trigonometric function — which is why they turn up as answers to integration questions involving surds and quadratics.

With the chain rule:

ddxtan1(2x)=21+4x2\frac{d}{dx}\tan^{-1}(2x) = \frac{2}{1+4x^2}

Higher derivatives

Differentiate repeatedly:

y=e2x  dydx=2e2x  d2ydx2=4e2xy = e^{2x} \ \Rightarrow \ \frac{dy}{dx} = 2e^{2x} \ \Rightarrow \ \frac{d^2y}{dx^2} = 4e^{2x}

Each differentiation of ekxe^{kx} brings down another factor of kk, so dnydxn=knekx\frac{d^ny}{dx^n} = k^ne^{kx}.

For y=lnxy = \ln x:

dydx=x1d2ydx2=x2d3ydx3=2x3\frac{dy}{dx} = x^{-1} \qquad \frac{d^2y}{dx^2} = -x^{-2} \qquad \frac{d^3y}{dx^3} = 2x^{-3}

Applications

Everything from Unit 1 still applies — the new derivatives simply widen the range of curves.

Stationary points. For y=xexy = xe^{-x}:

dydx=exxex=ex(1x)=0\frac{dy}{dx} = e^{-x} - xe^{-x} = e^{-x}(1-x) = 0

Since exe^{-x} is never zero, x=1x = 1, giving y=e1y = e^{-1}. The second derivative is ex(x2)e^{-x}(x-2), which at x=1x=1 is e1<0-e^{-1} < 0 — a maximum at (1,1e)\left(1, \frac1e\right).

Tangents to implicit curves. Find dydx\frac{dy}{dx} implicitly, substitute the point's coordinates (both of them), and use yy1=m(xx1)y - y_1 = m(x-x_1) as usual.