The Derivative as a Limit (CED Unit 2) The derivative of f f f at x = a x = a x = a is defined as:
Adjust the parameters in the graph above to explore the relationships between variables.
F ′ ( a ) = lim { h → 0 } { f ( a + h ) − f ( a ) } { h } F'(a) = \lim_\{h \to 0\} \frac\{f(a+h) - f(a)\}\{h\} F ′ ( a ) = { lim h → 0 } f { ( a + h ) − f ( a )} { h } Equivalently, using an alternate form:
F ′ ( a ) = lim { x → a } { f ( x ) − f ( a ) } { x − a } F'(a) = \lim_\{x \to a\} \frac\{f(x) - f(a)\}\{x - a\} F ′ ( a ) = { lim x → a } f { ( x ) − f ( a )} { x − a } If this limit exists, f f f is said to be differentiable at a a a .
Physical intuition. If s ( t ) s(t) s ( t ) is position at time t t t Then s ′ ( t ) s'(t) s ′ ( t ) is the instantaneous Velocity. The derivative answers: “how fast is f f f changing right now?”
Geometric intuition. The derivative f ′ ( a ) f'(a) f ′ ( a ) equals the slope of the tangent line to the graph of f f f at the point ( a , f ( a ) ) (a, f(a)) ( a , f ( a )) .
Interpretations of the Derivative Geometric: f ′ ( a ) f'(a) f ′ ( a ) is the slope of the tangent line to y = f ( x ) y = f(x) y = f ( x ) at the point ( a , f ( a ) ) (a, f(a)) ( a , f ( a )) .Physical: If s ( t ) s(t) s ( t ) is position, then s ′ ( t ) s'(t) s ′ ( t ) is instantaneous velocity.Rate of change: f ′ ( a ) f'(a) f ′ ( a ) gives the instantaneous rate of change of f f f with respect to x x x at x = a x = a x = a . Example
Find f ′ ( x ) f'(x) f ′ ( x ) for f ( x ) = x f(x) = \sqrt{x} f ( x ) = x using the limit definition.
F'(x) = \lim_\{h \to 0\} \frac\{\sqrt\{x+h\} - \sqrt\{x\}\}\{h\} Multiply numerator and denominator by x + h + x \sqrt{x+h} + \sqrt{x} x + h + x :
= lim { h → 0 } { x + h − x } { h ( { x + h } + { x } ) } = lim { h → 0 } { 1 } { { x + h } + { x } } = { 1 } { 2 { x } } = \lim_\{h \to 0\} \frac\{x + h - x\}\{h(\sqrt\{x+h\} + \sqrt\{x\})\} = \lim_\{h \to 0\} \frac\{1\}\{\sqrt\{x+h\} + \sqrt\{x\}\} = \frac\{1\}\{2\sqrt\{x\}\} = { lim h → 0 } x { + h − x } { h ( { x + h } + { x })} = { lim h → 0 } 1 { } { { x + h } + { x }} = 1 { } { 2 { x }} This confirms the power rule for n = 1 2 n = \frac{1}{2} n = 2 1 : d d x [ x 1 / 2 ] = 1 2 x − 1 / 2 = 1 2 x \frac{d}{dx}[x^{1/2}] = \frac{1}{2}x^{-1/2} = \frac{1}{2\sqrt{x}} d x d [ x 1/2 ] = 2 1 x − 1/2 = 2 x 1 . ■ \blacksquare ■
Differentiability and Continuity Theorem. If f f f is differentiable at a a a Then f f f is continuous at a a a .
Proof. We need to show lim x → a f ( x ) = f ( a ) \displaystyle\lim_{x \to a} f(x) = f(a) x → a lim f ( x ) = f ( a ) . Consider:
lim { x → a } [ f ( x ) − f ( a ) ] = lim { x → a } { f ( x ) − f ( a ) } { x − a } ⋅ ( x − a ) = f ′ ( a ) ⋅ 0 = 0 \lim_\{x \to a\} [f(x) - f(a)] = \lim_\{x \to a\} \frac\{f(x) - f(a)\}\{x - a\} \cdot (x - a) = f'(a) \cdot 0 = 0 { lim x → a } [ f ( x ) − f ( a )] = { lim x → a } f { ( x ) − f ( a )} { x − a } ⋅ ( x − a ) = f ′ ( a ) ⋅ 0 = 0 Therefore, lim x → a f ( x ) = f ( a ) \displaystyle\lim_{x \to a} f(x) = f(a) x → a lim f ( x ) = f ( a ) So f f f is continuous at a a a . ■ \blacksquare ■
The converse is false: f ( x ) = ∣ x ∣ f(x) = |x| f ( x ) = ∣ x ∣ is continuous at x = 0 x = 0 x = 0 but not differentiable there Because the left-hand and right-hand derivatives disagree.
Where Differentiability Fails A function fails to be differentiable at a point if:
There is a corner (left and right derivatives differ), e.g., ∣ x ∣ |x| ∣ x ∣ at x = 0 x = 0 x = 0 . There is a cusp , e.g., f ( x ) = x 2 / 3 f(x) = x^{2/3} f ( x ) = x 2/3 at x = 0 x = 0 x = 0 . There is a vertical tangent , e.g., f ( x ) = x 3 f(x) = \sqrt[3]{x} f ( x ) = 3 x at x = 0 x = 0 x = 0 . There is a discontinuity . Proof that ∣ x ∣ |x| ∣ x ∣ is not differentiable at x = 0 x = 0 x = 0 .
Left-hand derivative: lim h → 0 − ∣ h ∣ h = lim h → 0 − − h h = − 1 \displaystyle\lim_{h \to 0^-} \frac{|h|}{h} = \lim_{h \to 0^-} \frac{-h}{h} = -1 h → 0 − lim h ∣ h ∣ = h → 0 − lim h − h = − 1 .
Right-hand derivative: lim h → 0 + ∣ h ∣ h = lim h → 0 + h h = 1 \displaystyle\lim_{h \to 0^+} \frac{|h|}{h} = \lim_{h \to 0^+} \frac{h}{h} = 1 h → 0 + lim h ∣ h ∣ = h → 0 + lim h h = 1 .
Since − 1 ≠ 1 -1 \neq 1 − 1 = 1 The derivative does not exist. ■ \blacksquare ■
Proof that f ( x ) = x 2 / 3 f(x) = x^{2/3} f ( x ) = x 2/3 has a cusp at x = 0 x = 0 x = 0 .
F ′ ( x ) = { 2 } { 3 } x { − 1 / 3 } = { 2 } { 3 { 3 x } } F'(x) = \frac\{2\}\{3\}x^\{-1/3\} = \frac\{2\}\{3\sqrt[3]\{x\}\} F ′ ( x ) = 2 { } { 3 } x { − 1/3 } = 2 { } { 3 3 { x }} As x \to 0^+$$f'(x) \to +\infty . As x \to 0^-$$f'(x) \to -\infty .
The left and right derivatives are both infinite but with opposite signs, creating a cusp. The Tangent line approaches vertical from both sides. ■ \blacksquare ■
Differentiation Rules Basic Rules Let c c c be a constant and n n n a real number:
Constant rule: d d x [ c ] = 0 \displaystyle\frac{d}{dx}[c] = 0 d x d [ c ] = 0 Power rule: d d x [ x n ] = n x n − 1 \displaystyle\frac{d}{dx}[x^n] = nx^{n-1} d x d [ x n ] = n x n − 1 Constant multiple rule: d d x [ c f ( x ) ] = c f ′ ( x ) \displaystyle\frac{d}{dx}[cf(x)] = cf'(x) d x d [ c f ( x )] = c f ′ ( x ) Sum/Difference rule: d d x [ f ( x ) ± g ( x ) ] = f ′ ( x ) ± g ′ ( x ) \displaystyle\frac{d}{dx}[f(x) \pm g(x)] = f'(x) \pm g'(x) d x d [ f ( x ) ± g ( x )] = f ′ ( x ) ± g ′ ( x ) Product Rule { d } { d x } [ f ( x ) ⋅ g ( x ) ] = f ′ ( x ) g ( x ) + f ( x ) g ′ ( x ) \frac\{d\}\{dx\}[f(x) \cdot g(x)] = f'(x)g(x) + f(x)g'(x) d { } { d x } [ f ( x ) ⋅ g ( x )] = f ′ ( x ) g ( x ) + f ( x ) g ′ ( x ) Proof sketch. Write F ( x ) = f ( x ) g ( x ) F(x) = f(x)g(x) F ( x ) = f ( x ) g ( x ) and expand the difference quotient F ( x + h ) − F ( x ) h \frac{F(x+h) - F(x)}{h} h F ( x + h ) − F ( x ) by adding and subtracting f ( x + h ) g ( x ) f(x+h)g(x) f ( x + h ) g ( x ) :
{ f ( x + h ) g ( x + h ) − f ( x ) g ( x ) } { h } = f ( x + h ) { g ( x + h ) − g ( x ) } { h } + g ( x ) { f ( x + h ) − f ( x ) } { h } \frac\{f(x+h)g(x+h) - f(x)g(x)\}\{h\} = f(x+h)\frac\{g(x+h) - g(x)\}\{h\} + g(x)\frac\{f(x+h) - f(x)\}\{h\} f { ( x + h ) g ( x + h ) − f ( x ) g ( x )} { h } = f ( x + h ) g { ( x + h ) − g ( x )} { h } + g ( x ) f { ( x + h ) − f ( x )} { h } Taking limits as h → 0 h \to 0 h → 0 gives the result. ■ \blacksquare ■
Quotient Rule { d } { d x } [ { f ( x ) } { g ( x ) } ] = { g ( x ) f ′ ( x ) − f ( x ) g ′ ( x ) } { [ g ( x ) ] 2 } \frac\{d\}\{dx\}\!\left[\frac\{f(x)\}\{g(x)\}\right] = \frac\{g(x)f'(x) - f(x)g'(x)\}\{[g(x)]^2\} d { } { d x } [ f { ( x )} { g ( x )} ] = g { ( x ) f ′ ( x ) − f ( x ) g ′ ( x )} {[ g ( x ) ] 2 } Proof. Let F ( x ) = f ( x ) g ( x ) F(x) = \frac{f(x)}{g(x)} F ( x ) = g ( x ) f ( x ) So f ( x ) = F ( x ) g ( x ) f(x) = F(x)g(x) f ( x ) = F ( x ) g ( x ) . Differentiating using the product Rule:
F ′ ( x ) = F ′ ( x ) g ( x ) + F ( x ) g ′ ( x ) F'(x) = F'(x)g(x) + F(x)g'(x) F ′ ( x ) = F ′ ( x ) g ( x ) + F ( x ) g ′ ( x ) F ′ ( x ) g ( x ) = f ′ ( x ) − F ( x ) g ′ ( x ) = f ′ ( x ) − { f ( x ) } { g ( x ) } g ′ ( x ) F'(x)g(x) = f'(x) - F(x)g'(x) = f'(x) - \frac\{f(x)\}\{g(x)\}g'(x) F ′ ( x ) g ( x ) = f ′ ( x ) − F ( x ) g ′ ( x ) = f ′ ( x ) − f { ( x )} { g ( x )} g ′ ( x ) F ′ ( x ) = { f ′ ( x ) } { g ( x ) } − { f ( x ) g ′ ( x ) } { [ g ( x ) ] 2 } = { f ′ ( x ) g ( x ) − f ( x ) g ′ ( x ) } { [ g ( x ) ] 2 } F'(x) = \frac\{f'(x)\}\{g(x)\} - \frac\{f(x)g'(x)\}\{[g(x)]^2\} = \frac\{f'(x)g(x) - f(x)g'(x)\}\{[g(x)]^2\} F ′ ( x ) = f { ′ ( x )} { g ( x )} − f { ( x ) g ′ ( x )} {[ g ( x ) ] 2 } = f { ′ ( x ) g ( x ) − f ( x ) g ′ ( x )} {[ g ( x ) ] 2 } ■ \blacksquare ■
Mnemonic: “Low d-High minus High d-Low, draw a line and square below.”
Chain Rule { d } { d x } [ f ( g ( x ) ) ] = f ′ ( g ( x ) ) ⋅ g ′ ( x ) \frac\{d\}\{dx\}[f(g(x))] = f'(g(x)) \cdot g'(x) d { } { d x } [ f ( g ( x ))] = f ′ ( g ( x )) ⋅ g ′ ( x ) Why the chain rule works. If y = f ( u ) y = f(u) y = f ( u ) and u = g ( x ) u = g(x) u = g ( x ) Then d y d x = d y d u ⋅ d u d x \frac{dy}{dx} = \frac{dy}{du} \cdot \frac{du}{dx} d x d y = d u d y ⋅ d x d u . This is a cancellation of the d u du d u terms (formalised by limits).
Proof of the chain rule. Let u = g ( x ) u = g(x) u = g ( x ) and define:
K ( h ) = { f ( u + h ) − f ( u ) } { h } − f ′ ( u ) { w h e n h ≠ 0 , k ( 0 ) = 0 K(h) = \frac\{f(u + h) - f(u)\}\{h\} - f'(u) \quad \mathrm\{when h \ne 0, \quad k(0) = 0 K ( h ) = f { ( u + h ) − f ( u )} { h } − f ′ ( u ) { w h e nh = 0 , k ( 0 ) = 0 Then lim h → 0 k ( h ) = 0 \displaystyle\lim_{h \to 0} k(h) = 0 h → 0 lim k ( h ) = 0 and f ( u + h ) − f ( u ) = [ f ′ ( u ) + k ( h ) ] ⋅ h f(u+h) - f(u) = [f'(u) + k(h)] \cdot h f ( u + h ) − f ( u ) = [ f ′ ( u ) + k ( h )] ⋅ h for all h h h .
Let Δ u = g ( x + h ) − g ( x ) \Delta u = g(x+h) - g(x) Δ u = g ( x + h ) − g ( x ) . Then:
{ f ( g ( x + h ) ) − f ( g ( x ) ) } { h } = { f ( u + Δ u ) − f ( u ) } { h } = [ f ′ ( u ) + k ( Δ u ) ] ⋅ { Δ u } { h } \frac\{f(g(x+h)) - f(g(x))\}\{h\} = \frac\{f(u + \Delta u) - f(u)\}\{h\} = [f'(u) + k(\Delta u)] \cdot \frac\{\Delta u\}\{h\} f { ( g ( x + h )) − f ( g ( x ))} { h } = f { ( u + Δ u ) − f ( u )} { h } = [ f ′ ( u ) + k ( Δ u )] ⋅ Δ { u } { h } Taking h → 0 h \to 0 h → 0 : Δ u → 0 \Delta u \to 0 Δ u → 0 (since g g g is differentiable, hence continuous), so k ( Δ u ) → 0 k(\Delta u) \to 0 k ( Δ u ) → 0 Giving:
F ′ ( g ( x ) ) ⋅ g ′ ( x ) F'(g(x)) \cdot g'(x) F ′ ( g ( x )) ⋅ g ′ ( x ) ■ \blacksquare ■
Example
Find d d x [ e 3 x + 1 ] \displaystyle\frac{d}{dx}\left[e^{\sqrt{3x+1}}\right] d x d [ e 3 x + 1 ] .
Apply the chain rule twice:
{ d } { d x } [ e { { 3 x + 1 } } ] = e { { 3 x + 1 } } ⋅ { d } { d x } [ ( 3 x + 1 ) { 1 / 2 } ] = e { { 3 x + 1 } } ⋅ { 1 } { 2 } ( 3 x + 1 ) { − 1 / 2 } ⋅ 3 = { 3 e { { 3 x + 1 } } } { 2 { 3 x + 1 } } \frac\{d\}\{dx\}\left[e^\{\sqrt\{3x+1\}\}\right] = e^\{\sqrt\{3x+1\}\} \cdot \frac\{d\}\{dx\}\!\left[(3x+1)^\{1/2\}\right] = e^\{\sqrt\{3x+1\}\} \cdot \frac\{1\}\{2\}(3x+1)^\{-1/2\} \cdot 3 = \frac\{3e^\{\sqrt\{3x+1\}\}\}\{2\sqrt\{3x+1\}\} d { } { d x } [ e { { 3 x + 1 }} ] = e { { 3 x + 1 }} ⋅ d { } { d x } [ ( 3 x + 1 ) { 1/2 } ] = e { { 3 x + 1 }} ⋅ 1 { } { 2 } ( 3 x + 1 ) { − 1/2 } ⋅ 3 = 3 { e { { 3 x + 1 }}} { 2 { 3 x + 1 }} Derivatives of Trigonometric Functions { d } { d x } [ sin x ] = cos x { d } { d x } [ cos x ] = − sin x \frac\{d\}\{dx\}[\sin x] = \cos x \qquad \frac\{d\}\{dx\}[\cos x] = -\sin x d { } { d x } [ sin x ] = cos x d { } { d x } [ cos x ] = − sin x { d } { d x } [ tan x ] = sec 2 x { d } { d x } [ cot x ] = − csc 2 x \frac\{d\}\{dx\}[\tan x] = \sec^2 x \qquad \frac\{d\}\{dx\}[\cot x] = -\csc^2 x d { } { d x } [ tan x ] = sec 2 x d { } { d x } [ cot x ] = − csc 2 x { d } { d x } [ sec x ] = sec x tan x { d } { d x } [ csc x ] = − csc x cot x \frac\{d\}\{dx\}[\sec x] = \sec x \tan x \qquad \frac\{d\}\{dx\}[\csc x] = -\csc x \cot x d { } { d x } [ sec x ] = sec x tan x d { } { d x } [ csc x ] = − csc x cot x Proof that d d x [ sin x ] = cos x \displaystyle\frac{d}{dx}[\sin x] = \cos x d x d [ sin x ] = cos x { d } { d x } [ sin x ] = lim { h → 0 } { sin ( x + h ) − sin x } { h } = lim { h → 0 } { sin x cos h + cos x sin h − sin x } { h } \frac\{d\}\{dx\}[\sin x] = \lim_\{h \to 0\} \frac\{\sin(x+h) - \sin x\}\{h\} = \lim_\{h \to 0\} \frac\{\sin x \cos h + \cos x \sin h - \sin x\}\{h\} d { } { d x } [ sin x ] = { lim h → 0 } sin { ( x + h ) − sin x } { h } = { lim h → 0 } sin { x cos h + cos x sin h − sin x } { h } = lim { h → 0 } [ sin x ⋅ { cos h − 1 } { h } + cos x ⋅ { sin h } { h } ] = sin x ⋅ 0 + cos x ⋅ 1 = cos x = \lim_\{h \to 0\}\!\left[\sin x \cdot \frac\{\cos h - 1\}\{h\} + \cos x \cdot \frac\{\sin h\}\{h\}\right] = \sin x \cdot 0 + \cos x \cdot 1 = \cos x = { lim h → 0 } [ sin x ⋅ cos { h − 1 } { h } + cos x ⋅ sin { h } { h } ] = sin x ⋅ 0 + cos x ⋅ 1 = cos x Proof that d d x [ tan x ] = sec 2 x \displaystyle\frac{d}{dx}[\tan x] = \sec^2 x d x d [ tan x ] = sec 2 x { d } { d x } [ tan x ] = { d } { d x } [ { sin x } { cos x } ] = { cos x ⋅ cos x − sin x ⋅ ( − sin x ) } { cos 2 x } = { cos 2 x + sin 2 x } { cos 2 x } = { 1 } { cos 2 x } = sec 2 x \frac\{d\}\{dx\}[\tan x] = \frac\{d\}\{dx\}\!\left[\frac\{\sin x\}\{\cos x\}\right] = \frac\{\cos x \cdot \cos x - \sin x \cdot (-\sin x)\}\{\cos^2 x\} = \frac\{\cos^2 x + \sin^2 x\}\{\cos^2 x\} = \frac\{1\}\{\cos^2 x\} = \sec^2 x d { } { d x } [ tan x ] = d { } { d x } [ sin { x } { cos x } ] = cos { x ⋅ cos x − sin x ⋅ ( − sin x )} { cos 2 x } = cos { 2 x + sin 2 x } { cos 2 x } = 1 { } { cos 2 x } = sec 2 x ■ \blacksquare ■
Derivatives of Exponential and Logarithmic Functions { d } { d x } [ e x ] = e x { d } { d x } [ a x ] = a x ln a \frac\{d\}\{dx\}[e^x] = e^x \qquad \frac\{d\}\{dx\}[a^x] = a^x \ln a d { } { d x } [ e x ] = e x d { } { d x } [ a x ] = a x ln a { d } { d x } [ ln x ] = { 1 } { x } { d } { d x } [ log a x ] = { 1 } { x ln a } \frac\{d\}\{dx\}[\ln x] = \frac\{1\}\{x\} \qquad \frac\{d\}\{dx\}[\log_a x] = \frac\{1\}\{x \ln a\} d { } { d x } [ ln x ] = 1 { } { x } d { } { d x } [ log a x ] = 1 { } { x ln a } Proof that d d x [ e x ] = e x \displaystyle\frac{d}{dx}[e^x] = e^x d x d [ e x ] = e x { d } { d x } [ e x ] = lim { h → 0 } { e { x + h } − e x } { h } = e x lim { h → 0 } { e h − 1 } { h } = e x ⋅ 1 = e x \frac\{d\}\{dx\}[e^x] = \lim_\{h \to 0\} \frac\{e^\{x+h\} - e^x\}\{h\} = e^x \lim_\{h \to 0\} \frac\{e^h - 1\}\{h\} = e^x \cdot 1 = e^x d { } { d x } [ e x ] = { lim h → 0 } e { { x + h } − e x } { h } = e x { lim h → 0 } e { h − 1 } { h } = e x ⋅ 1 = e x Where we used lim h → 0 e h − 1 h = 1 \displaystyle\lim_{h \to 0} \frac{e^h - 1}{h} = 1 h → 0 lim h e h − 1 = 1 .
Proof that d d x [ ln x ] = 1 x \displaystyle\frac{d}{dx}[\ln x] = \frac{1}{x} d x d [ ln x ] = x 1 Let y = ln x y = \ln x y = ln x So e y = x e^y = x e y = x . Differentiating implicitly: e y d y d x = 1 e^y \frac{dy}{dx} = 1 e y d x d y = 1 So d y d x = 1 e y = 1 x \frac{dy}{dx} = \frac{1}{e^y} = \frac{1}{x} d x d y = e y 1 = x 1 . ■ \blacksquare ■
Proof that d d x [ a x ] = a x ln a \displaystyle\frac{d}{dx}[a^x] = a^x \ln a d x d [ a x ] = a x ln a Write a x = e x ln a a^x = e^{x \ln a} a x = e x l n a . Then:
{ d } { d x } [ a x ] = { d } { d x } [ e { x ln a } ] = e { x ln a } ⋅ ln a = a x ln a \frac\{d\}\{dx\}[a^x] = \frac\{d\}\{dx\}[e^\{x \ln a\}] = e^\{x \ln a\} \cdot \ln a = a^x \ln a d { } { d x } [ a x ] = d { } { d x } [ e { x ln a }] = e { x ln a } ⋅ ln a = a x ln a ■ \blacksquare ■
Inverse Trigonometric Derivatives { d } { d x } [ arcsin x ] = { 1 } { { 1 − x 2 } } { d } { d x } [ arccos x ] = { − 1 } { { 1 − x 2 } } \frac\{d\}\{dx\}[\arcsin x] = \frac\{1\}\{\sqrt\{1 - x^2\}\} \qquad \frac\{d\}\{dx\}[\arccos x] = \frac\{-1\}\{\sqrt\{1 - x^2\}\} d { } { d x } [ arcsin x ] = 1 { } { { 1 − x 2 }} d { } { d x } [ arccos x ] = − { 1 } { { 1 − x 2 }} { d } { d x } [ arctan x ] = { 1 } { 1 + x 2 } \frac\{d\}\{dx\}[\arctan x] = \frac\{1\}\{1 + x^2\} d { } { d x } [ arctan x ] = 1 { } { 1 + x 2 } Derivation of arcsin x \arcsin x arcsin x . Let y = arcsin x y = \arcsin x y = arcsin x So x = sin y x = \sin y x = sin y . Differentiating: 1 = cos y ⋅ { d y } { d x } 1 = \cos y \cdot \frac\{dy\}\{dx\} 1 = cos y ⋅ d { y } { d x } , so { d y } { d x } = { 1 } { cos y } = { 1 } { { 1 − sin 2 y } } = { 1 } { { 1 − x 2 } } \frac\{dy\}\{dx\} = \frac\{1\}\{\cos y\} = \frac\{1\}\{\sqrt\{1 - \sin^2 y\}\} = \frac\{1\}\{\sqrt\{1 - x^2\}\} d { y } { d x } = 1 { } { cos y } = 1 { } { { 1 − sin 2 y }} = 1 { } { { 1 − x 2 }} .
Derivation of arctan x \arctan x arctan x . Let y = arctan x y = \arctan x y = arctan x So x = tan y x = \tan y x = tan y . Differentiating: 1 = sec 2 y ⋅ d y d x 1 = \sec^2 y \cdot \frac{dy}{dx} 1 = sec 2 y ⋅ d x d y So d y d x = 1 sec 2 y = cos 2 y \frac{dy}{dx} = \frac{1}{\sec^2 y} = \cos^2 y d x d y = s e c 2 y 1 = cos 2 y .
Since sec 2 y = 1 + tan 2 y = 1 + x 2 \sec^2 y = 1 + \tan^2 y = 1 + x^2 sec 2 y = 1 + tan 2 y = 1 + x 2 We get cos 2 y = 1 1 + x 2 \cos^2 y = \frac{1}{1 + x^2} cos 2 y = 1 + x 2 1 So d y d x = 1 1 + x 2 \frac{dy}{dx} = \frac{1}{1 + x^2} d x d y = 1 + x 2 1 . ■ \blacksquare ■
Implicit Differentiation When y y y is defined implicitly as a function of x x x Differentiate both sides with respect to x x x And solve for d y d x \frac{dy}{dx} d x d y .
Example
Find the equation of the tangent line to x 2 + y 2 = 25 x^2 + y^2 = 25 x 2 + y 2 = 25 at the point ( 3 , 4 ) (3, 4) ( 3 , 4 ) .
From the previous example, d y d x = − x y \displaystyle\frac{dy}{dx} = -\frac{x}{y} d x d y = − y x . At ( 3 , 4 ) (3, 4) ( 3 , 4 ) :
{ d y } { d x } ∣ { ( 3 , 4 ) } = − { 3 } { 4 } \left.\frac\{dy\}\{dx\}\right|_\{(3,4)\} = -\frac\{3\}\{4\} d { y } { d x } { ( 3 , 4 )} = − 3 { } { 4 } The tangent line is y − 4 = − 3 4 ( x − 3 ) y - 4 = -\frac{3}{4}(x - 3) y − 4 = − 4 3 ( x − 3 ) Or 3 x + 4 y = 25 3x + 4y = 25 3 x + 4 y = 25 .
Example
Find d y d x \displaystyle\frac{dy}{dx} d x d y for e x y + y = x 2 e^{xy} + y = x^2 e x y + y = x 2 .
Differentiate implicitly with respect to x x x :
E { x y } ( y + x { d y } { d x } ) + { d y } { d x } = 2 x E^\{xy\}\!\left(y + x\frac\{dy\}\{dx\}\right) + \frac\{dy\}\{dx\} = 2x E { x y } ( y + x d { y } { d x } ) + d { y } { d x } = 2 x E { x y } ⋅ y + e { x y } ⋅ x { d y } { d x } + { d y } { d x } = 2 x E^\{xy\} \cdot y + e^\{xy\} \cdot x \frac\{dy\}\{dx\} + \frac\{dy\}\{dx\} = 2x E { x y } ⋅ y + e { x y } ⋅ x d { y } { d x } + d { y } { d x } = 2 x { d y } { d x } ( x e { x y } + 1 ) = 2 x − y e { x y } \frac\{dy\}\{dx\}(xe^\{xy\} + 1) = 2x - ye^\{xy\} d { y } { d x } ( x e { x y } + 1 ) = 2 x − y e { x y } { d y } { d x } = { 2 x − y e { x y } } { x e { x y } + 1 } \frac\{dy\}\{dx\} = \frac\{2x - ye^\{xy\}\}\{xe^\{xy\} + 1\} d { y } { d x } = 2 { x − y e { x y }} { x e { x y } + 1 } Higher-Order Derivatives The second derivative is the derivative of the first derivative:
F ′ ′ ( x ) = { d } { d x } [ f ′ ( x ) ] = { d 2 y } { d x 2 } F''(x) = \frac\{d\}\{dx\}[f'(x)] = \frac\{d^2y\}\{dx^2\} F ′′ ( x ) = d { } { d x } [ f ′ ( x )] = d { 2 y } { d x 2 } Similarly, f'''(x)$$f^{(4)}(x) Etc. Denote higher-order derivatives.
Interpretation of the Second Derivative If f''(x) \gt 0$$f is concave up at x x x . If f''(x) \lt 0$$f is concave down at x x x . If f ′ ′ ( x ) f''(x) f ′′ ( x ) changes sign at x = c x = c x = c Then ( c , f ( c ) ) (c, f(c)) ( c , f ( c )) is an inflection point . Theorem. If f f f has a local maximum at c c c and f ′ ′ ( c ) f''(c) f ′′ ( c ) exists, then f ′ ′ ( c ) ≤ 0 f''(c) \leq 0 f ′′ ( c ) ≤ 0 . If f f f has A local minimum at c c c and f ′ ′ ( c ) f''(c) f ′′ ( c ) exists, then f ′ ′ ( c ) ≥ 0 f''(c) \geq 0 f ′′ ( c ) ≥ 0 .
This is the second derivative test for concavity at critical points.
Notation Common notations for derivatives include:
f'(x)$$f''(x)$$f'''(x) (prime notation)\frac{df}{dx}$$\frac{d^2f}{dx^2} (Leibniz notation)\dot{x}$$\ddot{x} (Newton’s dot notation for time derivatives)Applications of Derivatives (CED Unit 5) When two or more quantities are related by an equation, their rates of change are also related.
Example
A ladder 10 ft long rests against a vertical wall. If the bottom slides away at 1 ft/s, how fast is the top sliding down when the bottom is 6 ft from the wall?
Let x x x = distance from wall to bottom, y y y = height of top on wall. Then x 2 + y 2 = 100 x^2 + y^2 = 100 x 2 + y 2 = 100 .
Differentiate with respect to t t t :
2 x { d x } { d t } + 2 y { d y } { d t } = 0 2x\frac\{dx\}\{dt\} + 2y\frac\{dy\}\{dt\} = 0 2 x d { x } { d t } + 2 y d { y } { d t } = 0 When x = 6 x = 6 x = 6 : y = 100 − 36 = 8 y = \sqrt{100 - 36} = 8 y = 100 − 36 = 8 . Given d x d t = 1 \frac{dx}{dt} = 1 d t d x = 1 :
2 ( 6 ) ( 1 ) + 2 ( 8 ) { d y } { d t } = 0 ⟹ { d y } { d t } = − { 1 2 } { 16 } = − { 3 } { 4 } { f t / s 2(6)(1) + 2(8)\frac\{dy\}\{dt\} = 0 \implies \frac\{dy\}\{dt\} = -\frac\{12\}\{16\} = -\frac\{3\}\{4\} \mathrm\{ ft/s 2 ( 6 ) ( 1 ) + 2 ( 8 ) d { y } { d t } = 0 ⟹ d { y } { d t } = − 1 { 2 } { 16 } = − 3 { } { 4 } { f t / s The negative sign confirms the top is sliding down.
Example
A 15 ft ladder leans against a wall. The bottom slides away at 2 ft/s. How fast is the angle between the ladder and the ground changing when the bottom is 9 ft from the wall?
Let θ \theta θ be the angle between the ladder and the ground. Then cos θ = x 15 \cos\theta = \frac{x}{15} cos θ = 15 x So x = 15 cos θ x = 15\cos\theta x = 15 cos θ .
Differentiating with respect to t t t :
{ d x } { d t } = − 15 sin θ { d θ } { d t } \frac\{dx\}\{dt\} = -15\sin\theta \frac\{d\theta\}\{dt\} d { x } { d t } = − 15 sin θ d { θ } { d t } When x = 9 x = 9 x = 9 : cos θ = 9 15 = 3 5 \cos\theta = \frac{9}{15} = \frac{3}{5} cos θ = 15 9 = 5 3 So sin θ = 4 5 \sin\theta = \frac{4}{5} sin θ = 5 4 .
2 = − 15 ⋅ { 4 } { 5 } ⋅ { d θ } { d t } = − 12 { d θ } { d t } 2 = -15 \cdot \frac\{4\}\{5\} \cdot \frac\{d\theta\}\{dt\} = -12 \frac\{d\theta\}\{dt\} 2 = − 15 ⋅ 4 { } { 5 } ⋅ d { θ } { d t } = − 12 d { θ } { d t } { d θ } { d t } = − { 2 } { 12 } = − { 1 } { 6 } { r a d / s \frac\{d\theta\}\{dt\} = -\frac\{2\}\{12\} = -\frac\{1\}\{6\} \mathrm\{ rad/s d { θ } { d t } = − 2 { } { 12 } = − 1 { } { 6 } { r a d / s The angle is decreasing at 1 6 \frac{1}{6} 6 1 rad/s.
Linear Approximation and Differentials The tangent line at x = a x = a x = a gives a linear approximation:
F ( x ) ≈ f ( a ) + f ′ ( a ) ( x − a ) F(x) \approx f(a) + f'(a)(x - a) F ( x ) ≈ f ( a ) + f ′ ( a ) ( x − a ) This is useful for estimating values of functions near known points.
Example
Use linear approximation to estimate 4.1 \sqrt{4.1} 4.1 .
Let f(x) = \sqrt{x}$$a = 4 .
F ′ ( x ) = { 1 } { 2 { x } } ⟹ f ( 4 ) = 2 , f ′ ( 4 ) = { 1 } { 4 } F'(x) = \frac\{1\}\{2\sqrt\{x\}\} \implies f(4) = 2, \quad f'(4) = \frac\{1\}\{4\} F ′ ( x ) = 1 { } { 2 { x }} ⟹ f ( 4 ) = 2 , f ′ ( 4 ) = 1 { } { 4 } { 4.1 } ≈ 2 + { 1 } { 4 } ( 4.1 − 4 ) = 2 + 0.025 = 2.025 \sqrt\{4.1\} \approx 2 + \frac\{1\}\{4\}(4.1 - 4) = 2 + 0.025 = 2.025 { 4.1 } ≈ 2 + 1 { } { 4 } ( 4.1 − 4 ) = 2 + 0.025 = 2.025 (The actual value is approximately 2.02485.)
Example
Use linear approximation to estimate ( 1.02 ) 10 (1.02)^{10} ( 1.02 ) 10 .
Let f(x) = x^{10}$$a = 1 .
F ′ ( x ) = 10 x 9 ⟹ f ( 1 ) = 1 , f ′ ( 1 ) = 10 F'(x) = 10x^9 \implies f(1) = 1, \quad f'(1) = 10 F ′ ( x ) = 10 x 9 ⟹ f ( 1 ) = 1 , f ′ ( 1 ) = 10 ( 1.02 ) { 10 } ≈ 1 + 10 ( 0.02 ) = 1.20 (1.02)^\{10\} \approx 1 + 10(0.02) = 1.20 ( 1.02 ) { 10 } ≈ 1 + 10 ( 0.02 ) = 1.20 (The actual value is approximately 1.21899, showing that linear approximation is less accurate when x x x is farther from a a a .)
Mean Value Theorem (MVT) If f f f is continuous on [ a , b ] [a, b] [ a , b ] and differentiable on ( a , b ) (a, b) ( a , b ) Then there exists at least one c ∈ ( a , b ) c \in (a, b) c ∈ ( a , b ) such that:
F ′ ( c ) = { f ( b ) − f ( a ) } { b − a } F'(c) = \frac\{f(b) - f(a)\}\{b - a\} F ′ ( c ) = f { ( b ) − f ( a )} { b − a } This means the instantaneous rate of change equals the average rate of change at some interior Point.
Geometric interpretation. The MVT guarantees the existence of a tangent line parallel to the Secant line joining ( a , f ( a ) ) (a, f(a)) ( a , f ( a )) and ( b , f ( b ) ) (b, f(b)) ( b , f ( b )) .
Proof of the MVT. Let g ( x ) = f ( x ) − f ( b ) − f ( a ) b − a ( x − a ) − f ( a ) g(x) = f(x) - \frac{f(b) - f(a)}{b-a}(x - a) - f(a) g ( x ) = f ( x ) − b − a f ( b ) − f ( a ) ( x − a ) − f ( a ) . Then g ( a ) = g ( b ) = 0 g(a) = g(b) = 0 g ( a ) = g ( b ) = 0 . By Rolle’s Theorem, there exists c ∈ ( a , b ) c \in (a, b) c ∈ ( a , b ) with g ′ ( c ) = 0 g'(c) = 0 g ′ ( c ) = 0 Which gives f ′ ( c ) = f ( b ) − f ( a ) b − a f'(c) = \frac{f(b) - f(a)}{b-a} f ′ ( c ) = b − a f ( b ) − f ( a ) . ■ \blacksquare ■
Rolle’s Theorem If f f f is continuous on [ a , b ] [a, b] [ a , b ] Differentiable on ( a , b ) (a, b) ( a , b ) And f ( a ) = f ( b ) f(a) = f(b) f ( a ) = f ( b ) Then there exists At least one c ∈ ( a , b ) c \in (a, b) c ∈ ( a , b ) such that f ′ ( c ) = 0 f'(c) = 0 f ′ ( c ) = 0 .
Rolle’s Theorem is a special case of the MVT where f ( a ) = f ( b ) f(a) = f(b) f ( a ) = f ( b ) .
Application of Rolle’s Theorem. Rolle’s Theorem is used to prove that a differentiable function Has at most one root in an interval. If it had two roots, Rolle’s Theorem would give a point where the derivative is zero, leading to a contradiction.
Example
Show that f ( x ) = x 3 − 3 x + 1 f(x) = x^3 - 3x + 1 f ( x ) = x 3 − 3 x + 1 has exactly one real root.
Note that f ( 0 ) = 1 f(0) = 1 f ( 0 ) = 1 and f ( − 2 ) = − 8 + 6 + 1 = − 1 f(-2) = -8 + 6 + 1 = -1 f ( − 2 ) = − 8 + 6 + 1 = − 1 . By the IVT, there is at least one root in ( − 2 , 0 ) (-2, 0) ( − 2 , 0 ) .
Suppose there are two distinct roots a < b a \lt b a < b . Then f ( a ) = f ( b ) = 0 f(a) = f(b) = 0 f ( a ) = f ( b ) = 0 And by Rolle’s Theorem, There exists c ∈ ( a , b ) c \in (a, b) c ∈ ( a , b ) with f ′ ( c ) = 0 f'(c) = 0 f ′ ( c ) = 0 . But f ′ ( x ) = 3 x 2 − 3 = 3 ( x + 1 ) ( x − 1 ) f'(x) = 3x^2 - 3 = 3(x+1)(x-1) f ′ ( x ) = 3 x 2 − 3 = 3 ( x + 1 ) ( x − 1 ) Which is zero Only at x = ± 1 x = \pm 1 x = ± 1 . This does not lead to a contradiction on its own, so we must examine further.
In fact, f(-2) = -1$$f(0) = 1$$f(1) = -1$$f(2) = 3 . So f f f has at least one root in ( − 2 , 0 ) (-2, 0) ( − 2 , 0 ) At least one in ( 0 , 1 ) (0, 1) ( 0 , 1 ) And possibly one in ( 1 , 2 ) (1, 2) ( 1 , 2 ) . Rolle’s Theorem applied to Consecutive roots shows that each pair of roots must bracket either x = − 1 x = -1 x = − 1 or x = 1 x = 1 x = 1 .
Testing: f ( − 1 ) = − 1 + 3 + 1 = 3 > 0 f(-1) = -1 + 3 + 1 = 3 \gt 0 f ( − 1 ) = − 1 + 3 + 1 = 3 > 0 . So the root in ( − 2 , 0 ) (-2, 0) ( − 2 , 0 ) is in ( − 2 , − 1 ) (-2, -1) ( − 2 , − 1 ) And the root in ( 0 , 1 ) (0, 1) ( 0 , 1 ) is in ( 0 , 1 ) (0, 1) ( 0 , 1 ) . These bracket different critical points. In fact, f f f has three real roots, And Rolle’s Theorem confirms this is consistent since the critical points at x = ± 1 x = \pm 1 x = ± 1 bracket the Three roots.
Curve Sketching and Analysis Critical Points A critical number of f f f is a value c c c in the domain of f f f where f ′ ( c ) = 0 f'(c) = 0 f ′ ( c ) = 0 or f ′ ( c ) f'(c) f ′ ( c ) does not exist.
First Derivative Test Let c c c be a critical number:
If f ′ f' f ′ changes from positive to negative at c c c Then f ( c ) f(c) f ( c ) is a local maximum . If f ′ f' f ′ changes from negative to positive at c c c Then f ( c ) f(c) f ( c ) is a local minimum . If f ′ f' f ′ does not change sign at c c c Then f ( c ) f(c) f ( c ) is neither. Second Derivative Test Let f ′ ′ ( c ) f''(c) f ′′ ( c ) exist with f ′ ( c ) = 0 f'(c) = 0 f ′ ( c ) = 0 :
If f ′ ′ ( c ) > 0 f''(c) \gt 0 f ′′ ( c ) > 0 Then f ( c ) f(c) f ( c ) is a local minimum . If f ′ ′ ( c ) < 0 f''(c) \lt 0 f ′′ ( c ) < 0 Then f ( c ) f(c) f ( c ) is a local maximum . If f ′ ′ ( c ) = 0 f''(c) = 0 f ′′ ( c ) = 0 The test is inconclusive . When to use which test. The first derivative test always works. The second derivative test is Faster but sometimes inconclusive. When f ′ ′ ( c ) = 0 f''(c) = 0 f ′′ ( c ) = 0 You must fall back to the first derivative Test.
Example where the second derivative test is inconclusive. Consider f ( x ) = x 4 f(x) = x^4 f ( x ) = x 4 . f ′ ( x ) = 4 x 3 = 0 f'(x) = 4x^3 = 0 f ′ ( x ) = 4 x 3 = 0 gives x = 0 x = 0 x = 0 And f ′ ′ ( x ) = 12 x 2 f''(x) = 12x^2 f ′′ ( x ) = 12 x 2 So f ′ ′ ( 0 ) = 0 f''(0) = 0 f ′′ ( 0 ) = 0 — the test is inconclusive. But f ′ ( x ) = 4 x 3 f'(x) = 4x^3 f ′ ( x ) = 4 x 3 changes from negative to positive at x = 0 x = 0 x = 0 So f f f has a local minimum at x = 0 x = 0 x = 0 by the first derivative test.
Optimization To solve optimization problems:
Identify the quantity to optimize and the constraint. Write an equation relating the variables. Express the quantity as a function of a single variable. Find critical points and apply the first or second derivative test. Verify the result answers the original question. Example
A farmer has 200 ft of fencing. Find the dimensions of the rectangular pen that maximizes the area.
Let x x x and y y y be the dimensions. Then 2 x + 2 y = 200 2x + 2y = 200 2 x + 2 y = 200 So y = 100 − x y = 100 - x y = 100 − x .
A = x y = x ( 100 − x ) = 100 x − x 2 A = xy = x(100 - x) = 100x - x^2 A = x y = x ( 100 − x ) = 100 x − x 2 { d A } { d x } = 100 − 2 x = 0 ⟹ x = 50 \frac\{dA\}\{dx\} = 100 - 2x = 0 \implies x = 50 d { A } { d x } = 100 − 2 x = 0 ⟹ x = 50 { d 2 A } { d x 2 } = − 2 < 0 { ( c o n f i r m s m a x i m u m ) \frac\{d^2A\}\{dx^2\} = -2 \lt 0 \quad \mathrm\{(confirms maximum) d { 2 A } { d x 2 } = − 2 < 0 {( co n f i r m s ma x im u m ) So x = 50$$y = 50 And the maximum area is 2500 f t 2 2500 \mathrm{ ft^2} 2500 f t 2 .
Example
A rectangular box with a square base has volume 500 c m 3 500 \mathrm{ cm^3} 500 c m 3 . The material for the base costs Twice as much as the material for the sides. Minimise the cost of the material.
Let the base have side length x x x cm and height h h h cm. Let the cost per unit area of the sides be c c c . Then the base costs 2 c 2c 2 c per unit area.
Volume: x 2 h = 500 x^2 h = 500 x 2 h = 500 So h = 500 x 2 h = \frac{500}{x^2} h = x 2 500 .
Cost: C = 2 c ⋅ x 2 + 4 c ⋅ x h = 2 c x 2 + 4 c x ⋅ 500 x 2 = 2 c x 2 + 2000 c x C = 2c \cdot x^2 + 4c \cdot xh = 2cx^2 + 4cx \cdot \frac{500}{x^2} = 2cx^2 + \frac{2000c}{x} C = 2 c ⋅ x 2 + 4 c ⋅ x h = 2 c x 2 + 4 c x ⋅ x 2 500 = 2 c x 2 + x 2000 c .
{ d C } { d x } = 4 c x − { 2 000 c } { x 2 } = 0 \frac\{dC\}\{dx\} = 4cx - \frac\{2000c\}\{x^2\} = 0 d { C } { d x } = 4 c x − 2 { 000 c } { x 2 } = 0 4 x 3 = 2000 ⟹ x 3 = 500 ⟹ x = { 3 500 } ≈ 7.937 { c m 4x^3 = 2000 \implies x^3 = 500 \implies x = \sqrt[3]\{500\} \approx 7.937 \mathrm\{ cm 4 x 3 = 2000 ⟹ x 3 = 500 ⟹ x = 3 { 500 } ≈ 7.937 { c m H = { 5 00 } { 500 { 2 / 3 } } = 500 { 1 / 3 } = { 3 500 } ≈ 7.937 { c m H = \frac\{500\}\{500^\{2/3\}\} = 500^\{1/3\} = \sqrt[3]\{500\} \approx 7.937 \mathrm\{ cm H = 5 { 00 } { 50 0 { 2/3 }} = 50 0 { 1/3 } = 3 { 500 } ≈ 7.937 { c m The cost is minimised when the box is a cube. d 2 C d x 2 = 4 c + 4000 c x 3 > 0 \frac{d^2C}{dx^2} = 4c + \frac{4000c}{x^3} \gt 0 d x 2 d 2 C = 4 c + x 3 4000 c > 0 Confirming a minimum.
Optimization on Closed Intervals When the domain is a closed interval [ a , b ] [a, b] [ a , b ] The absolute maximum and minimum occur at critical Points or at endpoints.
Procedure:
Find all critical points in ( a , b ) (a, b) ( a , b ) . Evaluate f f f at all critical points and at both endpoints. The largest value is the absolute max; the smallest is the absolute min. Example
Find the absolute maximum and minimum of f ( x ) = x 3 − 3 x 2 + 4 f(x) = x^3 - 3x^2 + 4 f ( x ) = x 3 − 3 x 2 + 4 on [ − 1 , 4 ] [-1, 4] [ − 1 , 4 ] .
F ′ ( x ) = 3 x 2 − 6 x = 3 x ( x − 2 ) = 0 ⟹ x = 0 { o r x = 2 F'(x) = 3x^2 - 6x = 3x(x - 2) = 0 \implies x = 0 \mathrm\{ or x = 2 F ′ ( x ) = 3 x 2 − 6 x = 3 x ( x − 2 ) = 0 ⟹ x = 0 { or x = 2 f(-1) = -1 - 3 + 4 = 0$$f(0) = 4$$f(2) = 8 - 12 + 4 = 0$$f(4) = 64 - 48 + 4 = 20 .
Absolute minimum: 0 0 0 at x = − 1 x = -1 x = − 1 and x = 2 x = 2 x = 2 . Absolute maximum: 20 20 20 at x = 4 x = 4 x = 4 .
Common Pitfalls Forgetting the chain rule. When differentiating a composition, always account for the inner function’s derivative. For example, d d x [ sin ( x 2 ) ] ≠ cos ( x 2 ) \frac{d}{dx}[\sin(x^2)] \ne \cos(x^2) d x d [ sin ( x 2 )] = cos ( x 2 ) .Incorrect sign in the quotient rule. Remember: “Low d-High minus High d-Low, draw a line and square below.”Confusing d d x [ e x ] \frac{d}{dx}[e^x] d x d [ e x ] with d d x [ x e ] \frac{d}{dx}[x^e] d x d [ x e ] . The former is e x e^x e x ; the latter is e x e − 1 ex^{e-1} e x e − 1 .Implicit differentiation: forgetting to apply the chain rule to y y y terms. When differentiating y 2 y^2 y 2 with respect to x x x The result is 2 y d y d x 2y\frac{dy}{dx} 2 y d x d y Not 2 y 2y 2 y .Units in related rates. Always include units and check that they make dimensional sense.Not checking endpoints in optimization problems on closed intervals.Using the second derivative test when it is inconclusive (f ′ ′ ( c ) = 0 f''(c) = 0 f ′′ ( c ) = 0 ). Fall back to the first derivative test.Confusing the second derivative with the first. The second derivative tells you about concavity, not the slope.Dropping negative signs in implicit differentiation. Be systematic: write every y y y term with d y d x \frac{dy}{dx} d x d y attached.Linear approximation overreach. The approximation f ( x ) ≈ f ( a ) + f ′ ( a ) ( x − a ) f(x) \approx f(a) + f'(a)(x-a) f ( x ) ≈ f ( a ) + f ′ ( a ) ( x − a ) is accurate only near x = a x = a x = a . Using it far from a a a can give wildly inaccurate results.Practice Questions Find d y d x \displaystyle\frac{dy}{dx} d x d y for e x y + y = x 2 e^{xy} + y = x^2 e x y + y = x 2 using implicit differentiation.
A spherical balloon is inflated at a rate of 10 c m 3 / s 10 \mathrm{ cm^3/\mathrm{s}} 10 c m 3 /s . How fast is the radius increasing when the radius is 5 cm? (V = 4 3 π r 3 V = \frac{4}{3}\pi r^3 V = 3 4 π r 3 )
Find all critical points of f ( x ) = x 4 − 4 x 3 + 6 x 2 − 4 x + 1 f(x) = x^4 - 4x^3 + 6x^2 - 4x + 1 f ( x ) = x 4 − 4 x 3 + 6 x 2 − 4 x + 1 and classify them using the second derivative test.
Use the Mean Value Theorem to show that ∣ sin b − sin a ∣ ≤ ∣ b − a ∣ |\sin b - \sin a| \le |b - a| ∣ sin b − sin a ∣ ≤ ∣ b − a ∣ for all a , b a, b a , b .
Find the equation of the tangent line to y = ln ( x 2 + 1 ) y = \ln(x^2 + 1) y = ln ( x 2 + 1 ) at x = 1 x = 1 x = 1 .
A 15 ft ladder leans against a wall. The bottom slides away at 2 ft/s. How fast is the angle between the ladder and the ground changing when the bottom is 9 ft from the wall?
Find the absolute maximum and minimum of f ( x ) = x 3 − 3 x 2 + 4 f(x) = x^3 - 3x^2 + 4 f ( x ) = x 3 − 3 x 2 + 4 on [ − 1 , 4 ] [-1, 4] [ − 1 , 4 ] .
Use linear approximation to estimate ( 1.02 ) 10 (1.02)^{10} ( 1.02 ) 10 .
Find d d x [ x 2 + 1 e 2 x ] \displaystyle\frac{d}{dx}\left[\frac{x^2 + 1}{e^{2x}}\right] d x d [ e 2 x x 2 + 1 ] and find all stationary points.
Find d 2 y d x 2 \displaystyle\frac{d^2y}{dx^2} d x 2 d 2 y for x 3 + y 3 = 6 x y x^3 + y^3 = 6xy x 3 + y 3 = 6 x y at the point ( 3 , 3 ) (3, 3) ( 3 , 3 ) .
A rectangular box with a square base has volume 500 c m 3 500 \mathrm{ cm^3} 500 c m 3 . The material for the base costs twice as much as the material for the sides. Minimise the cost of the material.
Prove that the derivative of f ( x ) = x 3 f(x) = x^3 f ( x ) = x 3 is f ′ ( x ) = 3 x 2 f'(x) = 3x^2 f ′ ( x ) = 3 x 2 from first principles.
Find d y d x \displaystyle\frac{dy}{dx} d x d y for sin ( x + y ) = x cos y \sin(x + y) = x \cos y sin ( x + y ) = x cos y .
Find the inflection points of f ( x ) = x 4 − 6 x 2 + 4 f(x) = x^4 - 6x^2 + 4 f ( x ) = x 4 − 6 x 2 + 4 .
A conical tank (vertex pointing down) has radius 5 ft at the top and height 10 ft. Water is pumped in at 3 f t 3 / m i n \mathrm{ft^3/\mathrm{min}} f t 3 / min . How fast is the water level rising when the water is 6 ft deep?
Find the dimensions of the rectangle of maximum area that can be inscribed in a semicircle of radius r r r .
Practice Problems Question 1: Implicit differentiation Find d y d x \frac{dy}{dx} d x d y for the curve x 3 + y 3 = 6 x y x^3 + y^3 = 6xy x 3 + y 3 = 6 x y . Then find the equation of the tangent line at the point ( 3 , 3 ) (3, 3) ( 3 , 3 ) .
Answer Differentiate implicitly: 3 x 2 + 3 y 2 d y d x = 6 y + 6 x d y d x 3x^2 + 3y^2 \frac{dy}{dx} = 6y + 6x \frac{dy}{dx} 3 x 2 + 3 y 2 d x d y = 6 y + 6 x d x d y .
3 y 2 d y d x − 6 x d y d x = 6 y − 3 x 2 3y^2 \frac{dy}{dx} - 6x \frac{dy}{dx} = 6y - 3x^2 3 y 2 d x d y − 6 x d x d y = 6 y − 3 x 2 .
d y d x = 6 y − 3 x 2 3 y 2 − 6 x = 2 y − x 2 y 2 − 2 x \frac{dy}{dx} = \frac{6y - 3x^2}{3y^2 - 6x} = \frac{2y - x^2}{y^2 - 2x} d x d y = 3 y 2 − 6 x 6 y − 3 x 2 = y 2 − 2 x 2 y − x 2 .
At ( 3 , 3 ) (3, 3) ( 3 , 3 ) : d y d x = 6 − 9 9 − 6 = − 3 3 = − 1 \frac{dy}{dx} = \frac{6 - 9}{9 - 6} = \frac{-3}{3} = -1 d x d y = 9 − 6 6 − 9 = 3 − 3 = − 1 .
Tangent line: y − 3 = − 1 ( x − 3 ) y - 3 = -1(x - 3) y − 3 = − 1 ( x − 3 ) So y = − x + 6 y = -x + 6 y = − x + 6 .
Question 2: Related rates A spherical balloon is being inflated at a rate of 100 c m 3 / s 100 \mathrm{ cm^3/s} 100 c m 3 /s . How fast is the radius increasing when the radius is 10 c m 10 \mathrm{ cm} 10 cm ?
Answer V = 4 3 π r 3 V = \frac{4}{3}\pi r^3 V = 3 4 π r 3 . Differentiate with respect to time: d V d t = 4 π r 2 d r d t \frac{dV}{dt} = 4\pi r^2 \frac{dr}{dt} d t d V = 4 π r 2 d t d r .
100 = 4 π ( 10 ) 2 d r d t = 400 π d r d t 100 = 4\pi(10)^2 \frac{dr}{dt} = 400\pi \frac{dr}{dt} 100 = 4 π ( 10 ) 2 d t d r = 400 π d t d r .
d r d t = 100 400 π = 1 4 π ≈ 0.080 c m / s \frac{dr}{dt} = \frac{100}{400\pi} = \frac{1}{4\pi} \approx 0.080 \mathrm{ cm/s} d t d r = 400 π 100 = 4 π 1 ≈ 0.080 cm/s .
Question 3: L’Hopital’s rule Evaluate lim x → 0 e x − 1 − x x 2 \displaystyle\lim_{x \to 0} \frac{e^x - 1 - x}{x^2} x → 0 lim x 2 e x − 1 − x .
Answer This is 0 / 0 0/0 0/0 . Apply L’Hopital’s rule:
lim x → 0 e x − 1 2 x \displaystyle\lim_{x \to 0} \frac{e^x - 1}{2x} x → 0 lim 2 x e x − 1 .
Still 0 / 0 0/0 0/0 . Apply again:
lim x → 0 e x 2 = 1 2 \displaystyle\lim_{x \to 0} \frac{e^x}{2} = \frac{1}{2} x → 0 lim 2 e x = 2 1 .
Alternatively, this is the coefficient of x 2 / 2 ! x^2/2! x 2 /2 ! in the Taylor series of e x e^x e x Confirming the answer.
Question 4: Optimisation with constraint A rectangular box with a square base and no top is to have a volume of 108 c m 3 108 \mathrm{ cm^3} 108 c m 3 . Find the dimensions that minimise the surface area.
Answer Let base side = x x x Height = h h h . Volume: x 2 h = 108 x^2 h = 108 x 2 h = 108 So h = 108 / x 2 h = 108/x^2 h = 108/ x 2 .
Surface area: S = x 2 + 4 x h = x 2 + 4 x ( 108 / x 2 ) = x 2 + 432 / x S = x^2 + 4xh = x^2 + 4x(108/x^2) = x^2 + 432/x S = x 2 + 4 x h = x 2 + 4 x ( 108/ x 2 ) = x 2 + 432/ x .
d S d x = 2 x − 432 / x 2 = 0 \frac{dS}{dx} = 2x - 432/x^2 = 0 d x d S = 2 x − 432/ x 2 = 0 So 2x = 432/x^2$$x^3 = 216$$x = 6 \mathrm{ cm} .
h = 108 / 36 = 3 c m h = 108/36 = 3 \mathrm{ cm} h = 108/36 = 3 cm .
d 2 S d x 2 = 2 + 864 / x 3 > 0 \frac{d^2S}{dx^2} = 2 + 864/x^3 \gt 0 d x 2 d 2 S = 2 + 864/ x 3 > 0 at x = 6 x = 6 x = 6 Confirming minimum.
Dimensions: 6 × 6 × 3 c m 6 \times 6 \times 3 \mathrm{ cm} 6 × 6 × 3 cm Minimum surface area = 36 + 432 / 6 = 108 c m 2 = 36 + 432/6 = 108 \mathrm{ cm^2} = 36 + 432/6 = 108 c m 2 .
Question 5: Mean Value Theorem Verify that the function f ( x ) = x 3 − 3 x + 1 f(x) = x^3 - 3x + 1 f ( x ) = x 3 − 3 x + 1 satisfies the conditions of the Mean Value Theorem on [ − 2 , 2 ] [-2, 2] [ − 2 , 2 ] And find all values of c c c that satisfy the conclusion.
Answer f f f is a polynomial, so it is continuous on [ − 2 , 2 ] [-2, 2] [ − 2 , 2 ] and differentiable on ( − 2 , 2 ) (-2, 2) ( − 2 , 2 ) .
f ( 2 ) = 8 − 6 + 1 = 3 f(2) = 8 - 6 + 1 = 3 f ( 2 ) = 8 − 6 + 1 = 3 . f ( − 2 ) = − 8 + 6 + 1 = − 1 f(-2) = -8 + 6 + 1 = -1 f ( − 2 ) = − 8 + 6 + 1 = − 1 .
f ′ ( c ) = f ( 2 ) − f ( − 2 ) 2 − ( − 2 ) = 3 − ( − 1 ) 4 = 1 f'(c) = \frac{f(2) - f(-2)}{2 - (-2)} = \frac{3 - (-1)}{4} = 1 f ′ ( c ) = 2 − ( − 2 ) f ( 2 ) − f ( − 2 ) = 4 3 − ( − 1 ) = 1 .
f ′ ( x ) = 3 x 2 − 3 = 1 f'(x) = 3x^2 - 3 = 1 f ′ ( x ) = 3 x 2 − 3 = 1 So 3x^2 = 4$$x^2 = 4/3$$x = \pm 2/\sqrt{3} \approx \pm 1.155 .
Both values are in ( − 2 , 2 ) (-2, 2) ( − 2 , 2 ) . The MVT is satisfied at c = 2 / 3 c = 2/\sqrt{3} c = 2/ 3 and c = − 2 / 3 c = -2/\sqrt{3} c = − 2/ 3 .
Tip
Diagnostic Test Ready to test your understanding of Derivatives ? The contains the hardest
questions within the AP specification for this topic, each with a full worked solution.
Unit tests probe edge cases and common misconceptions. Integration tests combine Derivatives with other AP Calculus topics to test synthesis under exam conditions.
See for instructions on self-marking and building a personal test matrix.
Summary This topic covers the mathematical techniques and concepts related to derivatives, including key theorems, methods, and problem-solving approaches.
Key concepts include:
sine, cosine, and tangent functions trigonometric identities solving trigonometric equations the sine and cosine rules radian measure and arc length Worked Examples Worked examples demonstrating the application of key concepts are covered in the detailed sub-pages linked above.
Intuition The speedometer analogy: A derivative tells you how fast something is changing at any instant, just like a speedometer shows your current speed without needing to measure average speed over a distance.
Why it matters: Derivatives are everywhere, from finding the optimal price for a product to understanding how diseases spread. They allow us to model and predict change in any system.
The key insight: A derivative captures the instantaneous rate of change by shrinking the measurement interval to zero.
Cross-References Limits and Continuity — The derivative is defined as a limit, making limits the foundational concept for all differentiation.Integrals — Integration is the reverse process of differentiation, connecting the two fundamental operations of calculus.Differential Equations — Derivatives appear in differential equations, linking rate-of-change analysis to modelling real-world phenomena.AP Physics, Kinematics : Velocity is the derivative of position, and acceleration is the derivative of velocity, derivatives model all rates of change in mechanics.AP Physics, Newton’s Laws : Force equals mass times acceleration, where acceleration is a second derivative of position, connecting differentiation directly to dynamics.