Example 1 — Roots and negative powers together
Differentiate 3 x + 2 + 1 2 x 2 + 4 \sqrt{3x + 2} + \dfrac{1}{\sqrt{2x^2 + 4}} 3 x + 2 + 2 x 2 + 4 1 w.r.t. x x x .
Step 1 — rewrite as powers: y = ( 3 x + 2 ) 1 / 2 + ( 2 x 2 + 4 ) − 1 / 2 y = (3x+2)^{1/2} + (2x^2+4)^{-1/2} y = ( 3 x + 2 ) 1/2 + ( 2 x 2 + 4 ) − 1/2 .
Step 2 — chain rule on each:
y ′ = 1 2 ( 3 x + 2 ) − 1 / 2 ( 3 ) − 1 2 ( 2 x 2 + 4 ) − 3 / 2 ( 4 x ) y' = \frac{1}{2}(3x+2)^{-1/2}(3) - \frac{1}{2}(2x^2+4)^{-3/2}(4x) y ′ = 2 1 ( 3 x + 2 ) − 1/2 ( 3 ) − 2 1 ( 2 x 2 + 4 ) − 3/2 ( 4 x )
Answer: 3 2 3 x + 2 − 2 x ( 2 x 2 + 4 ) 3 / 2 \dfrac{3}{2\sqrt{3x+2}} - \dfrac{2x}{(2x^2+4)^{3/2}} 2 3 x + 2 3 − ( 2 x 2 + 4 ) 3/2 2 x , defined for x > − 2 3 x > -\frac{2}{3} x > − 3 2 .
Example 2 — A change of base
Differentiate log 7 ( log x ) \log_7(\log x) log 7 ( log x ) , x > 1 x > 1 x > 1 , w.r.t. x x x .
Step 1 — change base: log 7 ( log x ) = log ( log x ) log 7 \log_7(\log x) = \dfrac{\log(\log x)}{\log 7} log 7 ( log x ) = log 7 log ( log x ) — the denominator is a constant.
Step 2 — differentiate the numerator: d d x log ( log x ) = 1 x log x \frac{d}{dx}\log(\log x) = \frac{1}{x\log x} d x d log ( log x ) = x l o g x 1 .
Answer: 1 x log 7 log x \dfrac{1}{x\,\log 7\,\log x} x log 7 log x 1 .
Example 3 — Simplify before touching the derivative
Differentiate cos − 1 ( sin x ) \cos^{-1}(\sin x) cos − 1 ( sin x ) w.r.t. x x x .
Step 1 — co-function rewrite: sin x = cos ( π 2 − x ) \sin x = \cos\left(\frac{\pi}{2} - x\right) sin x = cos ( 2 π − x ) , so f ( x ) = cos − 1 cos ( π 2 − x ) = π 2 − x f(x) = \cos^{-1}\cos\left(\frac{\pi}{2} - x\right) = \frac{\pi}{2} - x f ( x ) = cos − 1 cos ( 2 π − x ) = 2 π − x (on the principal range).
Step 2 — differentiate the linear result: f ′ ( x ) = − 1 f'(x) = -1 f ′ ( x ) = − 1 .
Answer: − 1 -1 − 1 — a constant slope from an innocent-looking composite; brute chain rule gives − cos x 1 − sin 2 x \frac{-\cos x}{\sqrt{1 - \sin^2 x}} 1 − s i n 2 x − c o s x , which simplifies to the same.
Example 4 — The half-angle collapse inside an inverse tangent
Differentiate tan − 1 ( sin x 1 + cos x ) \tan^{-1}\left(\dfrac{\sin x}{1 + \cos x}\right) tan − 1 ( 1 + cos x sin x ) w.r.t. x x x .
Step 1 — half-angle: sin x 1 + cos x = 2 sin x 2 cos x 2 2 cos 2 x 2 = tan x 2 \dfrac{\sin x}{1 + \cos x} = \dfrac{2\sin\frac{x}{2}\cos\frac{x}{2}}{2\cos^2\frac{x}{2}} = \tan\frac{x}{2} 1 + cos x sin x = 2 cos 2 2 x 2 sin 2 x cos 2 x = tan 2 x .
Step 2 — collapse and differentiate: f ( x ) = tan − 1 tan x 2 = x 2 f(x) = \tan^{-1}\tan\frac{x}{2} = \frac{x}{2} f ( x ) = tan − 1 tan 2 x = 2 x , so f ′ ( x ) = 1 2 f'(x) = \frac{1}{2} f ′ ( x ) = 2 1 .
Answer: 1 2 \dfrac{1}{2} 2 1 .
Example 5 — An exponential hiding a double angle
Differentiate sin − 1 ( 2 x + 1 1 + 4 x ) \sin^{-1}\left(\dfrac{2^{x+1}}{1 + 4^x}\right) sin − 1 ( 1 + 4 x 2 x + 1 ) w.r.t. x x x (for x < 0 x < 0 x < 0 ).
Step 1 — spot the pattern: 2 x + 1 1 + 4 x = 2 ⋅ 2 x 1 + ( 2 x ) 2 \dfrac{2^{x+1}}{1 + 4^x} = \dfrac{2 \cdot 2^x}{1 + (2^x)^2} 1 + 4 x 2 x + 1 = 1 + ( 2 x ) 2 2 ⋅ 2 x — the double-angle shape with 2 x 2^x 2 x in place of tan θ \tan\theta tan θ .
Step 2 — collapse: f ( x ) = 2 tan − 1 ( 2 x ) f(x) = 2\tan^{-1}(2^x) f ( x ) = 2 tan − 1 ( 2 x ) on the given range.
Step 3 — differentiate: f ′ ( x ) = 2 ⋅ 2 x log 2 1 + 4 x = 2 x + 1 log 2 1 + 4 x f'(x) = \dfrac{2 \cdot 2^x\log 2}{1 + 4^x} = \dfrac{2^{x+1}\log 2}{1 + 4^x} f ′ ( x ) = 1 + 4 x 2 ⋅ 2 x log 2 = 1 + 4 x 2 x + 1 log 2 .
Answer: as displayed — the substitution dictionary works even when the "x x x " inside is itself an exponential.
Example 6 — Sine to the power sine
Find f ′ ( x ) f'(x) f ′ ( x ) if f ( x ) = ( sin x ) sin x f(x) = (\sin x)^{\sin x} f ( x ) = ( sin x ) s i n x for 0 < x < π 0 < x < \pi 0 < x < π .
Step 1 — log: log y = sin x log ( sin x ) \log y = \sin x \log(\sin x) log y = sin x log ( sin x ) .
Step 2 — product + chain: 1 y y ′ = cos x log ( sin x ) + sin x ⋅ cos x sin x = cos x [ 1 + log ( sin x ) ] \frac{1}{y}y' = \cos x\log(\sin x) + \sin x \cdot \frac{\cos x}{\sin x} = \cos x\left[1 + \log(\sin x)\right] y 1 y ′ = cos x log ( sin x ) + sin x ⋅ s i n x c o s x = cos x [ 1 + log ( sin x ) ] .
Answer: f ′ ( x ) = ( sin x ) sin x cos x [ 1 + log ( sin x ) ] f'(x) = (\sin x)^{\sin x}\cos x\left[1 + \log(\sin x)\right] f ′ ( x ) = ( sin x ) s i n x cos x [ 1 + log ( sin x ) ] .
Example 7 — Differentiating one function w.r.t. another
Differentiate sin 2 x \sin^2 x sin 2 x with respect to e cos x e^{\cos x} e c o s x .
Step 1 — the ratio rule: with u = sin 2 x u = \sin^2 x u = sin 2 x and v = e cos x v = e^{\cos x} v = e c o s x : d u d v = d u / d x d v / d x \frac{du}{dv} = \frac{du/dx}{dv/dx} d v d u = d v / d x d u / d x .
Step 2 — both rates: d u d x = 2 sin x cos x \frac{du}{dx} = 2\sin x\cos x d x d u = 2 sin x cos x and d v d x = − sin x e cos x \frac{dv}{dx} = -\sin x\, e^{\cos x} d x d v = − sin x e c o s x .
Step 3 — divide: d u d v = 2 sin x cos x − sin x e cos x = − 2 cos x e − cos x \frac{du}{dv} = \frac{2\sin x\cos x}{-\sin x\,e^{\cos x}} = -2\cos x\, e^{-\cos x} d v d u = − s i n x e c o s x 2 s i n x c o s x = − 2 cos x e − c o s x .
Answer: − 2 cos x e − cos x -2\cos x\,e^{-\cos x} − 2 cos x e − c o s x — "differentiate u u u w.r.t. v v v " always means divide the two x x x -derivatives.
Example 8 — A ninth power, no expansion
Differentiate ( 3 x 2 − 9 x + 5 ) 9 (3x^2 - 9x + 5)^9 ( 3 x 2 − 9 x + 5 ) 9 w.r.t. x x x .
Step 1 — chain rule: 9 ( 3 x 2 − 9 x + 5 ) 8 ⋅ ( 6 x − 9 ) 9(3x^2 - 9x + 5)^8 \cdot (6x - 9) 9 ( 3 x 2 − 9 x + 5 ) 8 ⋅ ( 6 x − 9 ) .
Answer: 27 ( 2 x − 3 ) ( 3 x 2 − 9 x + 5 ) 8 27(2x - 3)(3x^2 - 9x + 5)^8 27 ( 2 x − 3 ) ( 3 x 2 − 9 x + 5 ) 8 — factor the 3 3 3 out of 6 x − 9 6x - 9 6 x − 9 for the tidy final form.
Example 9 — Powers of sine and cosine
Differentiate sin 3 x + cos 6 x \sin^3 x + \cos^6 x sin 3 x + cos 6 x w.r.t. x x x .
Step 1 — chain rule on each power: 3 sin 2 x cos x + 6 cos 5 x ( − sin x ) 3\sin^2 x\cos x + 6\cos^5 x(-\sin x) 3 sin 2 x cos x + 6 cos 5 x ( − sin x ) .
Answer: 3 sin x cos x ( sin x − 2 cos 4 x ) 3\sin x\cos x\left(\sin x - 2\cos^4 x\right) 3 sin x cos x ( sin x − 2 cos 4 x ) — extract the common 3 sin x cos x 3\sin x\cos x 3 sin x cos x to finish cleanly.
Block B — Logarithmic and Inverse-Trig Classics
Example 10 — A trig exponent on a linear base
Differentiate ( 5 x ) 3 cos 2 x (5x)^{3\cos 2x} ( 5 x ) 3 c o s 2 x w.r.t. x x x .
Step 1 — log: log y = 3 cos 2 x log 5 x \log y = 3\cos 2x \log 5x log y = 3 cos 2 x log 5 x .
Step 2 — product rule: 1 y y ′ = − 6 sin 2 x log 5 x + 3 cos 2 x x \frac{1}{y}y' = -6\sin 2x\log 5x + \frac{3\cos 2x}{x} y 1 y ′ = − 6 sin 2 x log 5 x + x 3 c o s 2 x .
Answer: d y d x = ( 5 x ) 3 cos 2 x [ 3 cos 2 x x − 6 sin 2 x log 5 x ] \dfrac{dy}{dx} = (5x)^{3\cos 2x}\left[\dfrac{3\cos 2x}{x} - 6\sin 2x\log 5x\right] d x d y = ( 5 x ) 3 c o s 2 x [ x 3 cos 2 x − 6 sin 2 x log 5 x ] .
Example 11 — Three-halves power inside an inverse sine
Differentiate sin − 1 ( x x ) \sin^{-1}(x\sqrt{x}) sin − 1 ( x x ) , 0 ≤ x ≤ 1 0 \leq x \leq 1 0 ≤ x ≤ 1 , w.r.t. x x x .
Step 1 — rewrite the inside: x x = x 3 / 2 x\sqrt{x} = x^{3/2} x x = x 3/2 .
Step 2 — chain rule: 1 1 − x 3 ⋅ 3 2 x 1 / 2 \dfrac{1}{\sqrt{1 - x^3}} \cdot \dfrac{3}{2}x^{1/2} 1 − x 3 1 ⋅ 2 3 x 1/2 .
Answer: 3 x 2 1 − x 3 \dfrac{3\sqrt{x}}{2\sqrt{1 - x^3}} 2 1 − x 3 3 x — note ( x 3 / 2 ) 2 = x 3 (x^{3/2})^2 = x^3 ( x 3/2 ) 2 = x 3 under the root.
Example 12 — A quotient with an inverse cosine upstairs
Differentiate cos − 1 x 2 2 x + 7 \dfrac{\cos^{-1}\frac{x}{2}}{\sqrt{2x + 7}} 2 x + 7 cos − 1 2 x , − 2 < x < 2 -2 < x < 2 − 2 < x < 2 , w.r.t. x x x .
Step 1 — quotient rule pieces: d d x cos − 1 x 2 = − 1 4 − x 2 \frac{d}{dx}\cos^{-1}\frac{x}{2} = \frac{-1}{\sqrt{4 - x^2}} d x d cos − 1 2 x = 4 − x 2 − 1 (chain rule brings a 1 2 \frac{1}{2} 2 1 that merges into the root) and d d x 2 x + 7 = 1 2 x + 7 \frac{d}{dx}\sqrt{2x+7} = \frac{1}{\sqrt{2x+7}} d x d 2 x + 7 = 2 x + 7 1 .
Step 2 — assemble:
d y d x = − 2 x + 7 4 − x 2 − cos − 1 x 2 2 x + 7 2 x + 7 \frac{dy}{dx} = \frac{\frac{-\sqrt{2x+7}}{\sqrt{4 - x^2}} - \frac{\cos^{-1}\frac{x}{2}}{\sqrt{2x+7}}}{2x + 7} d x d y = 2 x + 7 4 − x 2 − 2 x + 7 − 2 x + 7 c o s − 1 2 x
Answer: − [ 1 4 − x 2 2 x + 7 + cos − 1 x 2 ( 2 x + 7 ) 3 / 2 ] -\left[\dfrac{1}{\sqrt{4 - x^2}\sqrt{2x+7}} + \dfrac{\cos^{-1}\frac{x}{2}}{(2x+7)^{3/2}}\right] − [ 4 − x 2 2 x + 7 1 + ( 2 x + 7 ) 3/2 cos − 1 2 x ] — both terms negative, as expected for a decreasing numerator over a growing denominator.
Example 13 — The rationalising cotangent
Differentiate cot − 1 [ 1 + sin x + 1 − sin x 1 + sin x − 1 − sin x ] \cot^{-1}\left[\dfrac{\sqrt{1 + \sin x} + \sqrt{1 - \sin x}}{\sqrt{1 + \sin x} - \sqrt{1 - \sin x}}\right] cot − 1 [ 1 + sin x − 1 − sin x 1 + sin x + 1 − sin x ] , 0 < x < π 2 0 < x < \dfrac{\pi}{2} 0 < x < 2 π , w.r.t. x x x .
Step 1 — half-angle inside the roots: 1 ± sin x = ( cos x 2 ± sin x 2 ) 2 1 \pm \sin x = \left(\cos\frac{x}{2} \pm \sin\frac{x}{2}\right)^2 1 ± sin x = ( cos 2 x ± sin 2 x ) 2 , and on ( 0 , π 2 ) \left(0, \frac{\pi}{2}\right) ( 0 , 2 π ) both brackets are positive, so the roots strip cleanly.
Step 2 — simplify the big fraction: 2 cos x 2 2 sin x 2 = cot x 2 \dfrac{2\cos\frac{x}{2}}{2\sin\frac{x}{2}} = \cot\frac{x}{2} 2 sin 2 x 2 cos 2 x = cot 2 x .
Step 3 — collapse: y = cot − 1 cot x 2 = x 2 y = \cot^{-1}\cot\frac{x}{2} = \frac{x}{2} y = cot − 1 cot 2 x = 2 x , so y ′ = 1 2 y' = \frac{1}{2} y ′ = 2 1 .
Answer: 1 2 \dfrac{1}{2} 2 1 — the entire beast was x 2 \frac{x}{2} 2 x in disguise.
Example 14 — Log to the power log
Differentiate ( log x ) log x (\log x)^{\log x} ( log x ) l o g x , x > 1 x > 1 x > 1 , w.r.t. x x x .
Step 1 — log: log y = log x ⋅ log ( log x ) \log y = \log x \cdot \log(\log x) log y = log x ⋅ log ( log x ) .
Step 2 — product rule: 1 y y ′ = 1 x log ( log x ) + log x ⋅ 1 x log x = 1 x [ log ( log x ) + 1 ] \frac{1}{y}y' = \frac{1}{x}\log(\log x) + \log x \cdot \frac{1}{x\log x} = \frac{1}{x}\left[\log(\log x) + 1\right] y 1 y ′ = x 1 log ( log x ) + log x ⋅ x l o g x 1 = x 1 [ log ( log x ) + 1 ] .
Answer: d y d x = ( log x ) log x ⋅ 1 + log ( log x ) x \dfrac{dy}{dx} = (\log x)^{\log x}\cdot\dfrac{1 + \log(\log x)}{x} d x d y = ( log x ) l o g x ⋅ x 1 + log ( log x ) .
Example 15 — Constants riding inside a cosine
Differentiate cos ( a cos x + b sin x ) \cos(a\cos x + b\sin x) cos ( a cos x + b sin x ) w.r.t. x x x , for constants a , b a, b a , b .
Step 1 — chain rule: − sin ( a cos x + b sin x ) ⋅ ( − a sin x + b cos x ) -\sin(a\cos x + b\sin x) \cdot (-a\sin x + b\cos x) − sin ( a cos x + b sin x ) ⋅ ( − a sin x + b cos x ) .
Answer: ( a sin x − b cos x ) sin ( a cos x + b sin x ) (a\sin x - b\cos x)\sin(a\cos x + b\sin x) ( a sin x − b cos x ) sin ( a cos x + b sin x ) — the two minus signs merge.
Example 16 — A sum that is secretly constant
Find d y d x \dfrac{dy}{dx} d x d y if y = sin − 1 x + sin − 1 1 − x 2 y = \sin^{-1} x + \sin^{-1}\sqrt{1 - x^2} y = sin − 1 x + sin − 1 1 − x 2 , 0 < x < 1 0 < x < 1 0 < x < 1 .
Step 1 — recognise the pair: for 0 < x < 1 0 < x < 1 0 < x < 1 , 1 − x 2 = cos ( sin − 1 x ) \sqrt{1 - x^2} = \cos(\sin^{-1}x) 1 − x 2 = cos ( sin − 1 x ) , so the second term is cos − 1 x \cos^{-1} x cos − 1 x — and sin − 1 x + cos − 1 x = π 2 \sin^{-1}x + \cos^{-1}x = \frac{\pi}{2} sin − 1 x + cos − 1 x = 2 π .
Step 2 — differentiate the constant: 0 0 0 . (Term-by-term: 1 1 − x 2 + 1 1 − ( 1 − x 2 ) ⋅ − x 1 − x 2 = 1 1 − x 2 − 1 1 − x 2 = 0 \frac{1}{\sqrt{1-x^2}} + \frac{1}{\sqrt{1 - (1-x^2)}}\cdot\frac{-x}{\sqrt{1-x^2}} = \frac{1}{\sqrt{1-x^2}} - \frac{1}{\sqrt{1-x^2}} = 0 1 − x 2 1 + 1 − ( 1 − x 2 ) 1 ⋅ 1 − x 2 − x = 1 − x 2 1 − 1 − x 2 1 = 0 ✓.)
Answer: d y d x = 0 \dfrac{dy}{dx} = 0 d x d y = 0 .
Example 17 — An implicit relation that solves itself
If x 1 + y + y 1 + x = 0 x\sqrt{1 + y} + y\sqrt{1 + x} = 0 x 1 + y + y 1 + x = 0 for − 1 < x < 1 -1 < x < 1 − 1 < x < 1 (with x ≠ y x \neq y x = y ), prove that d y d x = − 1 ( 1 + x ) 2 \dfrac{dy}{dx} = -\dfrac{1}{(1 + x)^2} d x d y = − ( 1 + x ) 2 1 .
Step 1 — isolate cleverly: x 1 + y = − y 1 + x x\sqrt{1+y} = -y\sqrt{1+x} x 1 + y = − y 1 + x ; square both sides: x 2 ( 1 + y ) = y 2 ( 1 + x ) x^2(1 + y) = y^2(1 + x) x 2 ( 1 + y ) = y 2 ( 1 + x ) .
Step 2 — factor: x 2 − y 2 + x 2 y − x y 2 = ( x − y ) ( x + y + x y ) = 0 x^2 - y^2 + x^2 y - xy^2 = (x - y)(x + y + xy) = 0 x 2 − y 2 + x 2 y − x y 2 = ( x − y ) ( x + y + x y ) = 0 ; since x ≠ y x \neq y x = y , we get y = − x 1 + x y = -\dfrac{x}{1 + x} y = − 1 + x x .
Step 3 — differentiate the explicit form (quotient rule):
d y d x = − ( 1 + x ) − x ( 1 + x ) 2 = − 1 ( 1 + x ) 2 \frac{dy}{dx} = -\frac{(1 + x) - x}{(1 + x)^2} = -\frac{1}{(1 + x)^2} d x d y = − ( 1 + x ) 2 ( 1 + x ) − x = − ( 1 + x ) 2 1
Answer: proved. ∎ Squaring converted an awkward radical relation into a factorable polynomial — then the explicit function did the rest.
Block C — Mixed Classics and Deeper Results
Example 18 — Four terms, four different rules
Differentiate x x + x a + a x + a a x^x + x^a + a^x + a^a x x + x a + a x + a a (for fixed a > 0 a > 0 a > 0 , x > 0 x > 0 x > 0 ) w.r.t. x x x .
Step 1 — classify each term: variable-variable, variable-constant, constant-variable, constant-constant.
Step 2 — apply the right rule to each:
d y d x = x x ( 1 + log x ) + a x a − 1 + a x log a + 0 \frac{dy}{dx} = x^x(1 + \log x) + a\,x^{a-1} + a^x\log a + 0 d x d y = x x ( 1 + log x ) + a x a − 1 + a x log a + 0
Answer: as displayed — one expression that examines the entire classification table at once.
Example 19 — Sine minus cosine to its own power
Differentiate ( sin x − cos x ) ( sin x − cos x ) (\sin x - \cos x)^{(\sin x - \cos x)} ( sin x − cos x ) ( s i n x − c o s x ) , π 4 < x < 3 π 4 \dfrac{\pi}{4} < x < \dfrac{3\pi}{4} 4 π < x < 4 3 π , w.r.t. x x x .
Step 1 — the interval matters: on it, sin x − cos x > 0 \sin x - \cos x > 0 sin x − cos x > 0 , so the logarithm is legal.
Step 2 — log and differentiate: log y = ( sin x − cos x ) log ( sin x − cos x ) \log y = (\sin x - \cos x)\log(\sin x - \cos x) log y = ( sin x − cos x ) log ( sin x − cos x ) ; with u = sin x − cos x u = \sin x - \cos x u = sin x − cos x and u ′ = cos x + sin x u' = \cos x + \sin x u ′ = cos x + sin x :
1 y y ′ = u ′ log u + u ⋅ u ′ u = ( cos x + sin x ) [ 1 + log ( sin x − cos x ) ] \frac{1}{y}y' = u'\log u + u \cdot \frac{u'}{u} = (\cos x + \sin x)\left[1 + \log(\sin x - \cos x)\right] y 1 y ′ = u ′ log u + u ⋅ u u ′ = ( cos x + sin x ) [ 1 + log ( sin x − cos x ) ]
Answer: d y d x = ( sin x − cos x ) ( sin x − cos x ) ( cos x + sin x ) [ 1 + log ( sin x − cos x ) ] \dfrac{dy}{dx} = (\sin x - \cos x)^{(\sin x - \cos x)}(\cos x + \sin x)\left[1 + \log(\sin x - \cos x)\right] d x d y = ( sin x − cos x ) ( s i n x − c o s x ) ( cos x + sin x ) [ 1 + log ( sin x − cos x ) ] .
Example 20 — A curvature-flavoured constant
If ( x − a ) 2 + ( y − b ) 2 = c 2 (x - a)^2 + (y - b)^2 = c^2 ( x − a ) 2 + ( y − b ) 2 = c 2 for some c > 0 c > 0 c > 0 , prove that [ 1 + ( d y d x ) 2 ] 3 / 2 d 2 y d x 2 \dfrac{\left[1 + \left(\frac{dy}{dx}\right)^2\right]^{3/2}}{\frac{d^2y}{dx^2}} d x 2 d 2 y [ 1 + ( d x d y ) 2 ] 3/2 is a constant independent of a a a and b b b .
Step 1 — first implicit differentiation: ( x − a ) + ( y − b ) y ′ = 0 (x - a) + (y - b)y' = 0 ( x − a ) + ( y − b ) y ′ = 0 , so y ′ = − x − a y − b y' = -\frac{x - a}{y - b} y ′ = − y − b x − a .
Step 2 — second differentiation: 1 + ( y ′ ) 2 + ( y − b ) y ′ ′ = 0 1 + (y')^2 + (y - b)y'' = 0 1 + ( y ′ ) 2 + ( y − b ) y ′′ = 0 , so y ′ ′ = − 1 + ( y ′ ) 2 y − b y'' = -\frac{1 + (y')^2}{y - b} y ′′ = − y − b 1 + ( y ′ ) 2 .
Step 3 — assemble: 1 + ( y ′ ) 2 = ( x − a ) 2 + ( y − b ) 2 ( y − b ) 2 = c 2 ( y − b ) 2 1 + (y')^2 = \frac{(x-a)^2 + (y-b)^2}{(y-b)^2} = \frac{c^2}{(y-b)^2} 1 + ( y ′ ) 2 = ( y − b ) 2 ( x − a ) 2 + ( y − b ) 2 = ( y − b ) 2 c 2 ; then
[ 1 + ( y ′ ) 2 ] 3 / 2 y ′ ′ = c 3 / ( y − b ) 3 − c 2 / ( y − b ) 3 = − c \frac{\left[1 + (y')^2\right]^{3/2}}{y''} = \frac{c^3/(y-b)^3}{-c^2/(y-b)^3} = -c y ′′ [ 1 + ( y ′ ) 2 ] 3/2 = − c 2 / ( y − b ) 3 c 3 / ( y − b ) 3 = − c
Answer: the ratio equals − c -c − c , free of a a a and b b b . ∎ (Geometrically: the expression measures the radius of curvature, and a circle's is its radius everywhere.)
Example 21 — An elegant implicit identity
If cos y = x cos ( a + y ) \cos y = x\cos(a + y) cos y = x cos ( a + y ) with cos a ≠ ± 1 \cos a \neq \pm 1 cos a = ± 1 , prove that d y d x = cos 2 ( a + y ) sin a \dfrac{dy}{dx} = \dfrac{\cos^2(a + y)}{\sin a} d x d y = sin a cos 2 ( a + y ) .
Step 1 — differentiate implicitly: − sin y y ′ = cos ( a + y ) − x sin ( a + y ) y ′ -\sin y \, y' = \cos(a + y) - x\sin(a + y)\,y' − sin y y ′ = cos ( a + y ) − x sin ( a + y ) y ′ .
Step 2 — substitute x = cos y cos ( a + y ) x = \frac{\cos y}{\cos(a+y)} x = c o s ( a + y ) c o s y and collect:
y ′ [ cos y sin ( a + y ) cos ( a + y ) − sin y ] = cos ( a + y ) y'\left[\frac{\cos y \sin(a+y)}{\cos(a+y)} - \sin y\right] = \cos(a+y) y ′ [ cos ( a + y ) cos y sin ( a + y ) − sin y ] = cos ( a + y )
The bracket is sin ( a + y ) cos y − cos ( a + y ) sin y cos ( a + y ) = sin a cos ( a + y ) \frac{\sin(a + y)\cos y - \cos(a + y)\sin y}{\cos(a+y)} = \frac{\sin a}{\cos(a+y)} c o s ( a + y ) s i n ( a + y ) c o s y − c o s ( a + y ) s i n y = c o s ( a + y ) s i n a .
Step 3 — solve: y ′ = cos 2 ( a + y ) sin a y' = \dfrac{\cos^2(a+y)}{\sin a} y ′ = sin a cos 2 ( a + y ) . ∎
Answer: proved — the compound-angle formula sin ( A − B ) \sin(A - B) sin ( A − B ) collapses the bracket in one stroke.
Example 22 — Two exotic powers added
Differentiate x x 2 − 3 + ( x − 3 ) x 2 x^{x^2 - 3} + (x - 3)^{x^2} x x 2 − 3 + ( x − 3 ) x 2 , for x > 3 x > 3 x > 3 , w.r.t. x x x .
Step 1 — log each term separately: with u = x x 2 − 3 u = x^{x^2-3} u = x x 2 − 3 : log u = ( x 2 − 3 ) log x \log u = (x^2 - 3)\log x log u = ( x 2 − 3 ) log x , so u ′ = u [ x 2 − 3 x + 2 x log x ] u' = u\left[\frac{x^2 - 3}{x} + 2x\log x\right] u ′ = u [ x x 2 − 3 + 2 x log x ] .
Step 2 — the second term: with v = ( x − 3 ) x 2 v = (x-3)^{x^2} v = ( x − 3 ) x 2 : log v = x 2 log ( x − 3 ) \log v = x^2\log(x - 3) log v = x 2 log ( x − 3 ) , so v ′ = v [ x 2 x − 3 + 2 x log ( x − 3 ) ] v' = v\left[\frac{x^2}{x - 3} + 2x\log(x - 3)\right] v ′ = v [ x − 3 x 2 + 2 x log ( x − 3 ) ] .
Answer:
d y d x = x x 2 − 3 [ x 2 − 3 x + 2 x log x ] + ( x − 3 ) x 2 [ x 2 x − 3 + 2 x log ( x − 3 ) ] \frac{dy}{dx} = x^{x^2-3}\left[\frac{x^2 - 3}{x} + 2x\log x\right] + (x-3)^{x^2}\left[\frac{x^2}{x-3} + 2x\log(x-3)\right] d x d y = x x 2 − 3 [ x x 2 − 3 + 2 x log x ] + ( x − 3 ) x 2 [ x − 3 x 2 + 2 x log ( x − 3 ) ]
— a sum of exotic powers is handled term by term, each with its own logarithm.
Example 23 — Modulus cubed is twice differentiable
If f ( x ) = ∣ x ∣ 3 f(x) = \vert x \vert^3 f ( x ) = ∣ x ∣ 3 , show that f ′ ′ ( x ) f''(x) f ′′ ( x ) exists for all real x x x and find it.
Step 1 — split by sign: f ( x ) = x 3 f(x) = x^3 f ( x ) = x 3 for x ≥ 0 x \geq 0 x ≥ 0 and f ( x ) = − x 3 f(x) = -x^3 f ( x ) = − x 3 for x < 0 x < 0 x < 0 .
Step 2 — differentiate each side twice: f ′ ′ ( x ) = 6 x f''(x) = 6x f ′′ ( x ) = 6 x for x > 0 x > 0 x > 0 and f ′ ′ ( x ) = − 6 x f''(x) = -6x f ′′ ( x ) = − 6 x for x < 0 x < 0 x < 0 .
Step 3 — glue at 0 0 0 : f ′ ( x ) = ± 3 x 2 → 0 f'(x) = \pm 3x^2 \to 0 f ′ ( x ) = ± 3 x 2 → 0 from both sides (so f ′ ( 0 ) = 0 f'(0) = 0 f ′ ( 0 ) = 0 exists), and likewise both second-derivative formulas approach 0 0 0 — the defining limits at 0 0 0 agree.
Answer: f ′ ′ ( x ) = 6 ∣ x ∣ f''(x) = 6\vert x \vert f ′′ ( x ) = 6∣ x ∣ for all real x x x . ∎ Cubing smooths the modulus corner enough for two derivatives — the third fails at 0 0 0 .
Using sin ( A + B ) = sin A cos B + cos A sin B \sin(A + B) = \sin A\cos B + \cos A\sin B sin ( A + B ) = sin A cos B + cos A sin B and differentiation, obtain the sum formula for cosines.
Step 1 — treat A A A as variable, B B B as constant: differentiate both sides w.r.t. A A A .
Step 2 — left side: cos ( A + B ) \cos(A + B) cos ( A + B ) by the chain rule (inner derivative 1 1 1 ).
Step 3 — right side: cos A cos B − sin A sin B \cos A\cos B - \sin A\sin B cos A cos B − sin A sin B .
Answer: cos ( A + B ) = cos A cos B − sin A sin B \cos(A + B) = \cos A\cos B - \sin A\sin B cos ( A + B ) = cos A cos B − sin A sin B . ∎ Differentiating a trig identity yields its partner free of charge.
Example 25 — Exactly two bad points
Does there exist a function which is continuous everywhere but not differentiable at exactly two points?
Step 1 — build from corners: each ∣ x − a ∣ \vert x - a \vert ∣ x − a ∣ is continuous everywhere and non-differentiable only at a a a , and sums of continuous functions are continuous.
Step 2 — the candidate: f ( x ) = ∣ x ∣ + ∣ x − 1 ∣ f(x) = \vert x \vert + \vert x - 1 \vert f ( x ) = ∣ x ∣ + ∣ x − 1∣ — continuous everywhere; at x = 0 x = 0 x = 0 and x = 1 x = 1 x = 1 one summand has a corner while the other is locally linear, so the corners survive; everywhere else both pieces are smooth.
Answer: yes — f ( x ) = ∣ x ∣ + ∣ x − 1 ∣ f(x) = \vert x \vert + \vert x - 1 \vert f ( x ) = ∣ x ∣ + ∣ x − 1∣ works, with non-differentiability at exactly x = 0 x = 0 x = 0 and x = 1 x = 1 x = 1 .