How to use these solutions#
These are step-by-step worked solutions to the Practice questions of the lesson Techniques of Differentiation . Work each question yourself first, then compare line by line. In almost every part the chain rule is at work: differentiate the outside function, keep the inside unchanged, and multiply by the derivative of the inside.
Question 1: The chain rule on four functions#
The problem#
Differentiate with respect to x x x :
(a) cos ( 5 x − 2 ) \cos(5x - 2) cos ( 5 x − 2 ) (b) ( 3 x 2 − x + 1 ) 4 (3x^2 - x + 1)^4 ( 3 x 2 − x + 1 ) 4 (c) sin 3 x \sin^3 x sin 3 x (d) 1 + e 2 x \sqrt{1 + e^{2x}} 1 + e 2 x
Understanding the problem#
Each function is a composition: one function applied to another. You need d y d x \displaystyle \frac{dy}{dx} d x d y for each.
The idea#
Use the chain rule: if y = f ( u ) y = f(u) y = f ( u ) with u = g ( x ) u = g(x) u = g ( x ) , then d y d x = f ′ ( u ) ⋅ d u d x \displaystyle \frac{dy}{dx} = f'(u)\cdot\frac{du}{dx} d x d y = f ′ ( u ) ⋅ d x d u . In each part, first name the inside u u u .
Step-by-step solution#
Part (a)
Step 1. Inside: u = 5 x − 2 u = 5x - 2 u = 5 x − 2 , so d u d x = 5 \displaystyle \frac{du}{dx} = 5 d x d u = 5 . Outside: cos u \cos u cos u , whose derivative is − sin u -\sin u − sin u .
Step 2. Multiply.
d d x cos ( 5 x − 2 ) = − sin ( 5 x − 2 ) ⋅ 5 = − 5 sin ( 5 x − 2 ) \displaystyle \frac{d}{dx}\cos(5x - 2) = -\sin(5x - 2)\cdot 5 = -5\sin(5x - 2) d x d cos ( 5 x − 2 ) = − sin ( 5 x − 2 ) ⋅ 5 = − 5 sin ( 5 x − 2 )
Part (b)
Step 1. Inside: u = 3 x 2 − x + 1 u = 3x^2 - x + 1 u = 3 x 2 − x + 1 , so d u d x = 6 x − 1 \displaystyle \frac{du}{dx} = 6x - 1 d x d u = 6 x − 1 . Outside: u 4 u^4 u 4 , derivative 4 u 3 4u^3 4 u 3 .
Step 2. Multiply.
d d x ( 3 x 2 − x + 1 ) 4 = 4 ( 3 x 2 − x + 1 ) 3 ( 6 x − 1 ) \displaystyle \frac{d}{dx}(3x^2 - x + 1)^4 = 4(3x^2 - x + 1)^3(6x - 1) d x d ( 3 x 2 − x + 1 ) 4 = 4 ( 3 x 2 − x + 1 ) 3 ( 6 x − 1 )
Part (c)
Step 1. sin 3 x \sin^3 x sin 3 x means ( sin x ) 3 (\sin x)^3 ( sin x ) 3 . Inside: u = sin x u = \sin x u = sin x , d u d x = cos x \displaystyle \frac{du}{dx} = \cos x d x d u = cos x . Outside: u 3 u^3 u 3 , derivative 3 u 2 3u^2 3 u 2 .
Step 2. Multiply.
d d x sin 3 x = 3 sin 2 x cos x \displaystyle \frac{d}{dx}\sin^3 x = 3\sin^2 x\cos x d x d sin 3 x = 3 sin 2 x cos x
Part (d)
Step 1. Here there are two layers. Outermost: v \sqrt{v} v with v = 1 + e 2 x v = 1 + e^{2x} v = 1 + e 2 x ; its derivative is 1 2 v \displaystyle \frac{1}{2\sqrt{v}} 2 v 1 .
Step 2. Derivative of the inside v = 1 + e 2 x v = 1 + e^{2x} v = 1 + e 2 x : the 1 1 1 gives 0 0 0 , and e 2 x e^{2x} e 2 x needs the chain rule again, giving e 2 x ⋅ 2 e^{2x}\cdot 2 e 2 x ⋅ 2 .
d v d x = 2 e 2 x \displaystyle \frac{dv}{dx} = 2e^{2x} d x d v = 2 e 2 x
Step 3. Multiply and simplify; the 2 2 2 s cancel.
d d x 1 + e 2 x = 1 2 1 + e 2 x ⋅ 2 e 2 x = e 2 x 1 + e 2 x \displaystyle \frac{d}{dx}\sqrt{1 + e^{2x}} = \frac{1}{2\sqrt{1 + e^{2x}}}\cdot 2e^{2x} = \frac{e^{2x}}{\sqrt{1 + e^{2x}}} d x d 1 + e 2 x = 2 1 + e 2 x 1 ⋅ 2 e 2 x = 1 + e 2 x e 2 x
Checking the answer#
For (a), at x = 2 5 \displaystyle x = \tfrac{2}{5} x = 5 2 the inside is 0 0 0 and sin 0 = 0 \sin 0 = 0 sin 0 = 0 , so the slope is 0 0 0 ; cos \cos cos has a peak there, as expected. For (c), at x = 0 x = 0 x = 0 the derivative is 0 0 0 , which fits because sin 3 x \sin^3 x sin 3 x is very flat near 0 0 0 .
Answer#
(a) − 5 sin ( 5 x − 2 ) -5\sin(5x - 2) − 5 sin ( 5 x − 2 ) ; (b) 4 ( 3 x 2 − x + 1 ) 3 ( 6 x − 1 ) 4(3x^2 - x + 1)^3(6x - 1) 4 ( 3 x 2 − x + 1 ) 3 ( 6 x − 1 ) ; (c) 3 sin 2 x cos x 3\sin^2 x\cos x 3 sin 2 x cos x ; (d) e 2 x 1 + e 2 x \displaystyle \frac{e^{2x}}{\sqrt{1 + e^{2x}}} 1 + e 2 x e 2 x .
Common mistake to avoid#
Forgetting the "derivative of the inside", e.g. writing − sin ( 5 x − 2 ) -\sin(5x - 2) − sin ( 5 x − 2 ) in (a) without the factor 5 5 5 .
Question 2: Exponential and logarithmic functions, products and quotients#
The problem#
Differentiate: (a) e x 2 e^{x^2} e x 2 (b) log ( sin x ) \log(\sin x) log ( sin x ) (c) x 2 e x x^2 e^x x 2 e x (d) log x x \displaystyle \frac{\log x}{x} x log x
Understanding the problem#
(a) and (b) are compositions (chain rule). (c) is a product of two functions, and (d) is a quotient. Here log \log log means the natural logarithm, with d d x log x = 1 x \displaystyle \frac{d}{dx}\log x = \frac{1}{x} d x d log x = x 1 .
The idea#
Use the standard derivatives d d x e x = e x \displaystyle \frac{d}{dx}e^x = e^x d x d e x = e x and d d x log x = 1 x \displaystyle \frac{d}{dx}\log x = \frac{1}{x} d x d log x = x 1 , together with the chain rule, the product rule ( u v ) ′ = u ′ v + u v ′ (uv)' = u'v + uv' ( uv ) ′ = u ′ v + u v ′ and the quotient rule ( u v ) ′ = u ′ v − u v ′ v 2 \displaystyle \left(\frac{u}{v}\right)' = \frac{u'v - uv'}{v^2} ( v u ) ′ = v 2 u ′ v − u v ′ .
Step-by-step solution#
Part (a)
Step 1. Inside u = x 2 u = x^2 u = x 2 , d u d x = 2 x \displaystyle \frac{du}{dx} = 2x d x d u = 2 x . Outside e u e^u e u , derivative e u e^u e u .
d d x e x 2 = e x 2 ⋅ 2 x = 2 x e x 2 \displaystyle \frac{d}{dx}e^{x^2} = e^{x^2}\cdot 2x = 2xe^{x^2} d x d e x 2 = e x 2 ⋅ 2 x = 2 x e x 2
Part (b)
Step 1. Inside u = sin x u = \sin x u = sin x , d u d x = cos x \displaystyle \frac{du}{dx} = \cos x d x d u = cos x . Outside log u \log u log u , derivative 1 u \displaystyle \frac{1}{u} u 1 .
Step 2. Multiply and recognise cos x sin x \displaystyle \frac{\cos x}{\sin x} sin x cos x .
d d x log ( sin x ) = 1 sin x ⋅ cos x = cot x \displaystyle \frac{d}{dx}\log(\sin x) = \frac{1}{\sin x}\cdot\cos x = \cot x d x d log ( sin x ) = sin x 1 ⋅ cos x = cot x
Part (c)
Step 1. Product with u = x 2 u = x^2 u = x 2 (u ′ = 2 x u' = 2x u ′ = 2 x ) and v = e x v = e^x v = e x (v ′ = e x v' = e^x v ′ = e x ).
Step 2. Apply the product rule and take out the common factor e x e^x e x .
d d x ( x 2 e x ) = 2 x ⋅ e x + x 2 ⋅ e x = e x ( x 2 + 2 x ) \displaystyle \frac{d}{dx}(x^2e^x) = 2x\cdot e^x + x^2\cdot e^x = e^x(x^2 + 2x) d x d ( x 2 e x ) = 2 x ⋅ e x + x 2 ⋅ e x = e x ( x 2 + 2 x )
Part (d)
Step 1. Quotient with u = log x u = \log x u = log x (u ′ = 1 x \displaystyle u' = \tfrac{1}{x} u ′ = x 1 ) and v = x v = x v = x (v ′ = 1 v' = 1 v ′ = 1 ).
Step 2. Apply the quotient rule.
d d x log x x = 1 x ⋅ x − log x ⋅ 1 x 2 = 1 − log x x 2 \displaystyle \frac{d}{dx}\frac{\log x}{x} = \frac{\tfrac{1}{x}\cdot x - \log x\cdot 1}{x^2} = \frac{1 - \log x}{x^2} d x d x log x = x 2 x 1 ⋅ x − log x ⋅ 1 = x 2 1 − log x
Checking the answer#
In (d), the derivative is 0 0 0 when log x = 1 \log x = 1 log x = 1 , i.e. x = e x = e x = e . Indeed log x x \displaystyle \frac{\log x}{x} x log x has its largest value at x = e x = e x = e , so a zero slope there makes sense.
Answer#
(a) 2 x e x 2 2xe^{x^2} 2 x e x 2 ; (b) cot x \cot x cot x ; (c) e x ( x 2 + 2 x ) e^x(x^2 + 2x) e x ( x 2 + 2 x ) ; (d) 1 − log x x 2 \displaystyle \frac{1 - \log x}{x^2} x 2 1 − log x .
Question 3: Inverse trigonometric functions#
The problem#
Differentiate: (a) sin − 1 ( 2 x ) \sin^{-1}(2x) sin − 1 ( 2 x ) (b) tan − 1 ( e x ) \tan^{-1}(e^x) tan − 1 ( e x ) (c) cos − 1 1 − x 2 1 + x 2 \displaystyle \cos^{-1}\frac{1 - x^2}{1 + x^2} cos − 1 1 + x 2 1 − x 2 for 0 < x < 1 0 < x < 1 0 < x < 1 .
Understanding the problem#
Parts (a) and (b) use the standard inverse-trig derivatives with the chain rule. Part (c) looks heavy, but, as in Example 3, a substitution simplifies it before differentiating. The condition 0 < x < 1 0 < x < 1 0 < x < 1 tells you which branch to use.
The idea#
Recall d d x sin − 1 x = 1 1 − x 2 \displaystyle \frac{d}{dx}\sin^{-1}x = \frac{1}{\sqrt{1 - x^2}} d x d sin − 1 x = 1 − x 2 1 and d d x tan − 1 x = 1 1 + x 2 \displaystyle \frac{d}{dx}\tan^{-1}x = \frac{1}{1 + x^2} d x d tan − 1 x = 1 + x 2 1 . For (c), put x = tan θ x = \tan\theta x = tan θ and use the identity 1 − tan 2 θ 1 + tan 2 θ = cos 2 θ \displaystyle \frac{1 - \tan^2\theta}{1 + \tan^2\theta} = \cos 2\theta 1 + tan 2 θ 1 − tan 2 θ = cos 2 θ .
Step-by-step solution#
Part (a)
Step 1. Inside u = 2 x u = 2x u = 2 x , d u d x = 2 \displaystyle \frac{du}{dx} = 2 d x d u = 2 . Outside sin − 1 u \sin^{-1}u sin − 1 u , derivative 1 1 − u 2 \displaystyle \frac{1}{\sqrt{1 - u^2}} 1 − u 2 1 .
d d x sin − 1 ( 2 x ) = 1 1 − ( 2 x ) 2 ⋅ 2 = 2 1 − 4 x 2 \displaystyle \frac{d}{dx}\sin^{-1}(2x) = \frac{1}{\sqrt{1 - (2x)^2}}\cdot 2 = \frac{2}{\sqrt{1 - 4x^2}} d x d sin − 1 ( 2 x ) = 1 − ( 2 x ) 2 1 ⋅ 2 = 1 − 4 x 2 2
Part (b)
Step 1. Inside u = e x u = e^x u = e x , d u d x = e x \displaystyle \frac{du}{dx} = e^x d x d u = e x . Outside tan − 1 u \tan^{-1}u tan − 1 u , derivative 1 1 + u 2 \displaystyle \frac{1}{1 + u^2} 1 + u 2 1 .
d d x tan − 1 ( e x ) = 1 1 + ( e x ) 2 ⋅ e x = e x 1 + e 2 x \displaystyle \frac{d}{dx}\tan^{-1}(e^x) = \frac{1}{1 + (e^x)^2}\cdot e^x = \frac{e^x}{1 + e^{2x}} d x d tan − 1 ( e x ) = 1 + ( e x ) 2 1 ⋅ e x = 1 + e 2 x e x
Part (c)
Step 1. Put x = tan θ x = \tan\theta x = tan θ . Since 0 < x < 1 0 < x < 1 0 < x < 1 , θ = tan − 1 x \theta = \tan^{-1}x θ = tan − 1 x lies in ( 0 , π 4 ) \displaystyle \left(0, \tfrac{\pi}{4}\right) ( 0 , 4 π ) .
Step 2. Simplify the inside using 1 − tan 2 θ 1 + tan 2 θ = cos 2 θ \displaystyle \frac{1 - \tan^2\theta}{1 + \tan^2\theta} = \cos 2\theta 1 + tan 2 θ 1 − tan 2 θ = cos 2 θ .
y = cos − 1 1 − tan 2 θ 1 + tan 2 θ = cos − 1 ( cos 2 θ ) \displaystyle y = \cos^{-1}\frac{1 - \tan^2\theta}{1 + \tan^2\theta} = \cos^{-1}(\cos 2\theta) y = cos − 1 1 + tan 2 θ 1 − tan 2 θ = cos − 1 ( cos 2 θ )
Step 3. Since 2 θ ∈ ( 0 , π 2 ) \displaystyle 2\theta \in \left(0, \tfrac{\pi}{2}\right) 2 θ ∈ ( 0 , 2 π ) , which lies inside [ 0 , π ] [0, \pi] [ 0 , π ] , the principal range of cos − 1 \cos^{-1} cos − 1 , we have cos − 1 ( cos 2 θ ) = 2 θ \cos^{-1}(\cos 2\theta) = 2\theta cos − 1 ( cos 2 θ ) = 2 θ .
y = 2 θ = 2 tan − 1 x y = 2\theta = 2\tan^{-1}x y = 2 θ = 2 tan − 1 x
Step 4. Differentiate.
d y d x = 2 1 + x 2 \displaystyle \frac{dy}{dx} = \frac{2}{1 + x^2} d x d y = 1 + x 2 2
Checking the answer#
For (c), at x = 0.5 x = 0.5 x = 0.5 : a small numerical change h = 0.001 h = 0.001 h = 0.001 in x x x changes y y y by about 0.0016 0.0016 0.0016 , and 2 1 + 0.25 = 1.6 \displaystyle \frac{2}{1 + 0.25} = 1.6 1 + 0.25 2 = 1.6 . They agree.
Answer#
(a) 2 1 − 4 x 2 \displaystyle \frac{2}{\sqrt{1 - 4x^2}} 1 − 4 x 2 2 ; (b) e x 1 + e 2 x \displaystyle \frac{e^x}{1 + e^{2x}} 1 + e 2 x e x ; (c) 2 1 + x 2 \displaystyle \frac{2}{1 + x^2} 1 + x 2 2 .
Common mistake to avoid#
In (c), writing cos − 1 ( cos 2 θ ) = 2 θ \cos^{-1}(\cos 2\theta) = 2\theta cos − 1 ( cos 2 θ ) = 2 θ without checking that 2 θ 2\theta 2 θ lies in [ 0 , π ] [0, \pi] [ 0 , π ] . Here the condition 0 < x < 1 0 < x < 1 0 < x < 1 guarantees it.
Question 4: Implicit differentiation#
The problem#
Find d y d x \displaystyle \frac{dy}{dx} d x d y for: (a) x 3 + y 3 = 6 x y x^3 + y^3 = 6xy x 3 + y 3 = 6 x y ; (b) sin ( x y ) + y = x \sin(xy) + y = x sin ( x y ) + y = x .
Understanding the problem#
In neither equation can y y y be easily written in terms of x x x . So you differentiate the equation as it stands, treating y y y as a function of x x x .
The idea#
Differentiate both sides with respect to x x x . Every time you differentiate an expression in y y y , multiply by y ′ = d y d x \displaystyle y' = \frac{dy}{dx} y ′ = d x d y (chain rule). Terms like x y xy x y need the product rule. Then collect all y ′ y' y ′ terms on one side and solve.
Step-by-step solution#
Part (a)
Step 1. Differentiate each term. d d x x 3 = 3 x 2 \displaystyle \frac{d}{dx}x^3 = 3x^2 d x d x 3 = 3 x 2 ; d d x y 3 = 3 y 2 y ′ \displaystyle \frac{d}{dx}y^3 = 3y^2y' d x d y 3 = 3 y 2 y ′ ; d d x ( 6 x y ) = 6 ( y + x y ′ ) \displaystyle \frac{d}{dx}(6xy) = 6(y + xy') d x d ( 6 x y ) = 6 ( y + x y ′ ) by the product rule.
3 x 2 + 3 y 2 y ′ = 6 y + 6 x y ′ 3x^2 + 3y^2y' = 6y + 6xy' 3 x 2 + 3 y 2 y ′ = 6 y + 6 x y ′
Step 2. Divide by 3 3 3 and collect the y ′ y' y ′ terms on the left.
y 2 y ′ − 2 x y ′ = 2 y − x 2 y^2y' - 2xy' = 2y - x^2 y 2 y ′ − 2 x y ′ = 2 y − x 2
Step 3. Factor out y ′ y' y ′ and divide.
y ′ ( y 2 − 2 x ) = 2 y − x 2 ⟹ d y d x = 2 y − x 2 y 2 − 2 x \displaystyle y'(y^2 - 2x) = 2y - x^2 \quad\Longrightarrow\quad \frac{dy}{dx} = \frac{2y - x^2}{y^2 - 2x} y ′ ( y 2 − 2 x ) = 2 y − x 2 ⟹ d x d y = y 2 − 2 x 2 y − x 2
Part (b)
Step 1. Differentiate sin ( x y ) \sin(xy) sin ( x y ) : outside sin \sin sin , inside x y xy x y , whose derivative is y + x y ′ y + xy' y + x y ′ .
d d x sin ( x y ) = cos ( x y ) ( y + x y ′ ) \displaystyle \frac{d}{dx}\sin(xy) = \cos(xy)\,(y + xy') d x d sin ( x y ) = cos ( x y ) ( y + x y ′ )
Step 2. Differentiate the whole equation.
cos ( x y ) ( y + x y ′ ) + y ′ = 1 \cos(xy)(y + xy') + y' = 1 cos ( x y ) ( y + x y ′ ) + y ′ = 1
Step 3. Expand and collect the y ′ y' y ′ terms.
y cos ( x y ) + x cos ( x y ) y ′ + y ′ = 1 ⟹ y ′ ( 1 + x cos ( x y ) ) = 1 − y cos ( x y ) y\cos(xy) + x\cos(xy)\,y' + y' = 1 \quad\Longrightarrow\quad y'\bigl(1 + x\cos(xy)\bigr) = 1 - y\cos(xy) y cos ( x y ) + x cos ( x y ) y ′ + y ′ = 1 ⟹ y ′ ( 1 + x cos ( x y ) ) = 1 − y cos ( x y )
Step 4. Divide.
d y d x = 1 − y cos ( x y ) 1 + x cos ( x y ) \displaystyle \frac{dy}{dx} = \frac{1 - y\cos(xy)}{1 + x\cos(xy)} d x d y = 1 + x cos ( x y ) 1 − y cos ( x y )
Checking the answer#
For (a), the point ( 3 , 3 ) (3, 3) ( 3 , 3 ) is on the curve (27 + 27 = 54 = 6 ⋅ 9 27 + 27 = 54 = 6 \cdot 9 27 + 27 = 54 = 6 ⋅ 9 ). The formula gives 6 − 9 9 − 6 = − 1 \displaystyle \frac{6 - 9}{9 - 6} = -1 9 − 6 6 − 9 = − 1 , and by the symmetry of the curve in the line y = x y = x y = x a slope of − 1 -1 − 1 there is exactly what you expect. For (b), ( 0 , 0 ) (0, 0) ( 0 , 0 ) is on the curve and the formula gives 1 1 = 1 \displaystyle \frac{1}{1} = 1 1 1 = 1 .
Answer#
(a) d y d x = 2 y − x 2 y 2 − 2 x \displaystyle \frac{dy}{dx} = \frac{2y - x^2}{y^2 - 2x} d x d y = y 2 − 2 x 2 y − x 2 ; (b) d y d x = 1 − y cos ( x y ) 1 + x cos ( x y ) \displaystyle \frac{dy}{dx} = \frac{1 - y\cos(xy)}{1 + x\cos(xy)} d x d y = 1 + x cos ( x y ) 1 − y cos ( x y ) .
Common mistake to avoid#
Differentiating 6 x y 6xy 6 x y as 6 y ′ 6y' 6 y ′ or 6 y 6y 6 y . It is a product of x x x and y y y , so the product rule gives 6 ( y + x y ′ ) 6(y + xy') 6 ( y + x y ′ ) .
Question 5: Logarithmic differentiation and variable powers#
The problem#
Find d y d x \displaystyle \frac{dy}{dx} d x d y for: (a) y = ( sin x ) x y = (\sin x)^x y = ( sin x ) x ; (b) y = x sin x y = x^{\sin x} y = x s i n x ; (c) y = 2 x + x 2 y = 2^x + x^2 y = 2 x + x 2 .
Understanding the problem#
In (a) and (b) both the base and the power contain x x x . Neither the power rule (x n x^n x n , fixed n n n ) nor the exponential rule (a x a^x a x , fixed a a a ) applies directly. Part (c) is a sum of two simple terms.
The idea#
For variable powers, take log \log log of both sides first, as in Example 5, so the power comes down as a product. Then differentiate implicitly. For (c) use d d x a x = a x log a \displaystyle \frac{d}{dx}a^x = a^x\log a d x d a x = a x log a .
Step-by-step solution#
Part (a)
Step 1. Take logs (on an interval where sin x > 0 \sin x > 0 sin x > 0 ).
log y = x log ( sin x ) \log y = x\log(\sin x) log y = x log ( sin x )
Step 2. Differentiate both sides. Left: y ′ y \displaystyle \frac{y'}{y} y y ′ . Right: product rule with u = x u = x u = x , v = log sin x v = \log\sin x v = log sin x , and v ′ = cot x v' = \cot x v ′ = cot x (from Question 2(b)).
y ′ y = 1 ⋅ log ( sin x ) + x cot x \displaystyle \frac{y'}{y} = 1\cdot\log(\sin x) + x\cot x y y ′ = 1 ⋅ log ( sin x ) + x cot x
Step 3. Multiply by y = ( sin x ) x y = (\sin x)^x y = ( sin x ) x .
d y d x = ( sin x ) x ( log sin x + x cot x ) \displaystyle \frac{dy}{dx} = (\sin x)^x\bigl(\log\sin x + x\cot x\bigr) d x d y = ( sin x ) x ( log sin x + x cot x )
Part (b)
Step 1. Take logs (for x > 0 x > 0 x > 0 ).
log y = sin x ⋅ log x \log y = \sin x\cdot\log x log y = sin x ⋅ log x
Step 2. Differentiate, using the product rule on the right.
y ′ y = cos x log x + sin x ⋅ 1 x \displaystyle \frac{y'}{y} = \cos x\log x + \sin x\cdot\frac{1}{x} y y ′ = cos x log x + sin x ⋅ x 1
Step 3. Multiply by y = x sin x y = x^{\sin x} y = x s i n x .
d y d x = x sin x ( cos x log x + sin x x ) \displaystyle \frac{dy}{dx} = x^{\sin x}\left(\cos x\log x + \frac{\sin x}{x}\right) d x d y = x s i n x ( cos x log x + x sin x )
Part (c)
Step 1. Differentiate term by term: d d x 2 x = 2 x log 2 \displaystyle \frac{d}{dx}2^x = 2^x\log 2 d x d 2 x = 2 x log 2 and d d x x 2 = 2 x \displaystyle \frac{d}{dx}x^2 = 2x d x d x 2 = 2 x .
d y d x = 2 x log 2 + 2 x \displaystyle \frac{dy}{dx} = 2^x\log 2 + 2x d x d y = 2 x log 2 + 2 x
Checking the answer#
For (b), at x = 1 x = 1 x = 1 : log 1 = 0 \log 1 = 0 log 1 = 0 , so the formula gives 1 sin 1 ⋅ sin 1 ≈ 0.841 1^{\sin 1}\cdot\sin 1 \approx 0.841 1 s i n 1 ⋅ sin 1 ≈ 0.841 . A numerical slope of x sin x x^{\sin x} x s i n x at x = 1 x = 1 x = 1 also gives about 0.841 0.841 0.841 .
Answer#
(a) ( sin x ) x ( log sin x + x cot x ) (\sin x)^x(\log\sin x + x\cot x) ( sin x ) x ( log sin x + x cot x ) ; (b) x sin x ( cos x log x + sin x x ) \displaystyle x^{\sin x}\left(\cos x\log x + \frac{\sin x}{x}\right) x s i n x ( cos x log x + x sin x ) ; (c) 2 x log 2 + 2 x 2^x\log 2 + 2x 2 x log 2 + 2 x .
Common mistake to avoid#
Treating x sin x x^{\sin x} x s i n x like x n x^n x n and writing sin x ⋅ x sin x − 1 \sin x\cdot x^{\sin x - 1} sin x ⋅ x s i n x − 1 . That rule needs a constant power.
Question 6: Parametric differentiation#
The problem#
Find d y d x \displaystyle \frac{dy}{dx} d x d y for: (a) x = t 2 + 1 x = t^2 + 1 x = t 2 + 1 , y = t 3 − t y = t^3 - t y = t 3 − t ; (b) x = a ( θ − sin θ ) x = a(\theta - \sin\theta) x = a ( θ − sin θ ) , y = a ( 1 − cos θ ) y = a(1 - \cos\theta) y = a ( 1 − cos θ ) .
Understanding the problem#
Here x x x and y y y are both given in terms of a third variable (a parameter), t t t or θ \theta θ . You want the slope d y d x \displaystyle \frac{dy}{dx} d x d y , which will be expressed in terms of the parameter.
The idea#
Use d y d x = d y / d t d x / d t \displaystyle \frac{dy}{dx} = \frac{dy/dt}{dx/dt} d x d y = d x / d t d y / d t : differentiate each with respect to the parameter and divide.
Step-by-step solution#
Part (a)
Step 1. Differentiate each with respect to t t t .
d x d t = 2 t , d y d t = 3 t 2 − 1 \displaystyle \frac{dx}{dt} = 2t, \qquad \frac{dy}{dt} = 3t^2 - 1 d t d x = 2 t , d t d y = 3 t 2 − 1
Step 2. Divide.
d y d x = 3 t 2 − 1 2 t ( t ≠ 0 ) \displaystyle \frac{dy}{dx} = \frac{3t^2 - 1}{2t} \qquad (t \ne 0) d x d y = 2 t 3 t 2 − 1 ( t = 0 )
Part (b)
Step 1. Differentiate each with respect to θ \theta θ .
d x d θ = a ( 1 − cos θ ) , d y d θ = a sin θ \displaystyle \frac{dx}{d\theta} = a(1 - \cos\theta), \qquad \frac{dy}{d\theta} = a\sin\theta d θ d x = a ( 1 − cos θ ) , d θ d y = a sin θ
Step 2. Divide; the a a a cancels.
d y d x = a sin θ a ( 1 − cos θ ) = sin θ 1 − cos θ \displaystyle \frac{dy}{dx} = \frac{a\sin\theta}{a(1 - \cos\theta)} = \frac{\sin\theta}{1 - \cos\theta} d x d y = a ( 1 − cos θ ) a sin θ = 1 − cos θ sin θ
Step 3. Simplify with the half-angle identities sin θ = 2 sin θ 2 cos θ 2 \displaystyle \sin\theta = 2\sin\tfrac{\theta}{2}\cos\tfrac{\theta}{2} sin θ = 2 sin 2 θ cos 2 θ and 1 − cos θ = 2 sin 2 θ 2 \displaystyle 1 - \cos\theta = 2\sin^2\tfrac{\theta}{2} 1 − cos θ = 2 sin 2 2 θ .
d y d x = 2 sin θ 2 cos θ 2 2 sin 2 θ 2 = cot θ 2 \displaystyle \frac{dy}{dx} = \frac{2\sin\tfrac{\theta}{2}\cos\tfrac{\theta}{2}}{2\sin^2\tfrac{\theta}{2}} = \cot\frac{\theta}{2} d x d y = 2 sin 2 2 θ 2 sin 2 θ cos 2 θ = cot 2 θ
Checking the answer#
In (b), at θ = π \theta = \pi θ = π (the top of the cycloid arch) the slope is cot π 2 = 0 \displaystyle \cot\tfrac{\pi}{2} = 0 cot 2 π = 0 , a horizontal tangent, exactly as at the highest point of an arch.
Answer#
(a) 3 t 2 − 1 2 t \displaystyle \frac{3t^2 - 1}{2t} 2 t 3 t 2 − 1 ; (b) sin θ 1 − cos θ = cot θ 2 \displaystyle \frac{\sin\theta}{1 - \cos\theta} = \cot\frac{\theta}{2} 1 − cos θ sin θ = cot 2 θ .
Question 7: Second derivatives#
The problem#
Find d 2 y d x 2 \displaystyle \frac{d^2y}{dx^2} d x 2 d 2 y for: (a) y = x 3 log x y = x^3\log x y = x 3 log x ; (b) y = e 3 x cos x y = e^{3x}\cos x y = e 3 x cos x .
Understanding the problem#
The second derivative is the derivative of the first derivative. Both functions are products, so the product rule is needed, twice.
The idea#
Find y ′ y' y ′ with the product rule, simplify it, then differentiate again.
Step-by-step solution#
Part (a)
Step 1. First derivative: u = x 3 u = x^3 u = x 3 , v = log x v = \log x v = log x .
y ′ = 3 x 2 log x + x 3 ⋅ 1 x = 3 x 2 log x + x 2 \displaystyle y' = 3x^2\log x + x^3\cdot\frac{1}{x} = 3x^2\log x + x^2 y ′ = 3 x 2 log x + x 3 ⋅ x 1 = 3 x 2 log x + x 2
Step 2. Differentiate again. The first term is a product (3 x 2 3x^2 3 x 2 and log x \log x log x ); the second is x 2 x^2 x 2 .
y ′ ′ = 6 x log x + 3 x 2 ⋅ 1 x + 2 x = 6 x log x + 3 x + 2 x \displaystyle y'' = 6x\log x + 3x^2\cdot\frac{1}{x} + 2x = 6x\log x + 3x + 2x y ′′ = 6 x log x + 3 x 2 ⋅ x 1 + 2 x = 6 x log x + 3 x + 2 x
Step 3. Combine.
y ′ ′ = 6 x log x + 5 x y'' = 6x\log x + 5x y ′′ = 6 x log x + 5 x
Part (b)
Step 1. First derivative: u = e 3 x u = e^{3x} u = e 3 x (u ′ = 3 e 3 x u' = 3e^{3x} u ′ = 3 e 3 x ), v = cos x v = \cos x v = cos x (v ′ = − sin x v' = -\sin x v ′ = − sin x ).
y ′ = 3 e 3 x cos x − e 3 x sin x = e 3 x ( 3 cos x − sin x ) y' = 3e^{3x}\cos x - e^{3x}\sin x = e^{3x}(3\cos x - \sin x) y ′ = 3 e 3 x cos x − e 3 x sin x = e 3 x ( 3 cos x − sin x )
Step 2. Differentiate again, with u = e 3 x u = e^{3x} u = e 3 x and w = 3 cos x − sin x w = 3\cos x - \sin x w = 3 cos x − sin x , w ′ = − 3 sin x − cos x w' = -3\sin x - \cos x w ′ = − 3 sin x − cos x .
y ′ ′ = 3 e 3 x ( 3 cos x − sin x ) + e 3 x ( − 3 sin x − cos x ) y'' = 3e^{3x}(3\cos x - \sin x) + e^{3x}(-3\sin x - \cos x) y ′′ = 3 e 3 x ( 3 cos x − sin x ) + e 3 x ( − 3 sin x − cos x )
Step 3. Take out e 3 x e^{3x} e 3 x and collect: cos x \cos x cos x terms 9 − 1 = 8 9 - 1 = 8 9 − 1 = 8 ; sin x \sin x sin x terms − 3 − 3 = − 6 -3 - 3 = -6 − 3 − 3 = − 6 .
y ′ ′ = e 3 x ( 8 cos x − 6 sin x ) y'' = e^{3x}(8\cos x - 6\sin x) y ′′ = e 3 x ( 8 cos x − 6 sin x )
Checking the answer#
For (b) at x = 0 x = 0 x = 0 : y ′ ′ = 8 y'' = 8 y ′′ = 8 . Directly, y = e 3 x cos x ≈ ( 1 + 3 x + 4.5 x 2 ) ( 1 − 0.5 x 2 ) ≈ 1 + 3 x + 4 x 2 y = e^{3x}\cos x \approx (1 + 3x + 4.5x^2)(1 - 0.5x^2) \approx 1 + 3x + 4x^2 y = e 3 x cos x ≈ ( 1 + 3 x + 4.5 x 2 ) ( 1 − 0.5 x 2 ) ≈ 1 + 3 x + 4 x 2 near 0 0 0 , whose second derivative is 8 8 8 . Correct.
Answer#
(a) 6 x log x + 5 x 6x\log x + 5x 6 x log x + 5 x ; (b) e 3 x ( 8 cos x − 6 sin x ) e^{3x}(8\cos x - 6\sin x) e 3 x ( 8 cos x − 6 sin x ) .
Question 8: Showing y ′ ′ = 4 y y'' = 4y y ′′ = 4 y #
The problem#
If y = e 2 x + e − 2 x y = e^{2x} + e^{-2x} y = e 2 x + e − 2 x , show that d 2 y d x 2 = 4 y \displaystyle \frac{d^2y}{dx^2} = 4y d x 2 d 2 y = 4 y .
Understanding the problem#
This is a "show that" question: compute y ′ ′ y'' y ′′ and show it equals 4 4 4 times the original y y y .
The idea#
Differentiate twice using d d x e k x = k e k x \displaystyle \frac{d}{dx}e^{kx} = ke^{kx} d x d e k x = k e k x , then compare with 4 y 4y 4 y .
Step-by-step solution#
Step 1. First derivative.
y ′ = 2 e 2 x − 2 e − 2 x y' = 2e^{2x} - 2e^{-2x} y ′ = 2 e 2 x − 2 e − 2 x
Step 2. Second derivative. Note d d x ( − 2 e − 2 x ) = − 2 ⋅ ( − 2 ) e − 2 x = 4 e − 2 x \displaystyle \frac{d}{dx}(-2e^{-2x}) = -2\cdot(-2)e^{-2x} = 4e^{-2x} d x d ( − 2 e − 2 x ) = − 2 ⋅ ( − 2 ) e − 2 x = 4 e − 2 x .
y ′ ′ = 4 e 2 x + 4 e − 2 x y'' = 4e^{2x} + 4e^{-2x} y ′′ = 4 e 2 x + 4 e − 2 x
Step 3. Factor out 4 4 4 and recognise y y y .
y ′ ′ = 4 ( e 2 x + e − 2 x ) = 4 y y'' = 4(e^{2x} + e^{-2x}) = 4y y ′′ = 4 ( e 2 x + e − 2 x ) = 4 y
Checking the answer#
At x = 0 x = 0 x = 0 : y = 2 y = 2 y = 2 and y ′ ′ = 8 = 4 × 2 y'' = 8 = 4 \times 2 y ′′ = 8 = 4 × 2 .
Answer#
y ′ ′ = 4 e 2 x + 4 e − 2 x = 4 y y'' = 4e^{2x} + 4e^{-2x} = 4y y ′′ = 4 e 2 x + 4 e − 2 x = 4 y , as required.
Question 9: A differential equation satisfied by tan − 1 x \tan^{-1}x tan − 1 x #
The problem#
If y = tan − 1 x y = \tan^{-1}x y = tan − 1 x , show that ( 1 + x 2 ) d 2 y d x 2 + 2 x d y d x = 0 \displaystyle (1 + x^2)\frac{d^2y}{dx^2} + 2x\frac{dy}{dx} = 0 ( 1 + x 2 ) d x 2 d 2 y + 2 x d x d y = 0 .
Understanding the problem#
You must find y ′ y' y ′ and y ′ ′ y'' y ′′ and substitute them into the left side, showing it simplifies to 0 0 0 .
The idea#
Use d d x tan − 1 x = 1 1 + x 2 \displaystyle \frac{d}{dx}\tan^{-1}x = \frac{1}{1 + x^2} d x d tan − 1 x = 1 + x 2 1 , then differentiate ( 1 + x 2 ) − 1 (1 + x^2)^{-1} ( 1 + x 2 ) − 1 with the chain rule.
Step-by-step solution#
Step 1. First derivative.
y ′ = 1 1 + x 2 = ( 1 + x 2 ) − 1 \displaystyle y' = \frac{1}{1 + x^2} = (1 + x^2)^{-1} y ′ = 1 + x 2 1 = ( 1 + x 2 ) − 1
Step 2. Second derivative by the chain rule: outside u − 1 u^{-1} u − 1 , inside u = 1 + x 2 u = 1 + x^2 u = 1 + x 2 with u ′ = 2 x u' = 2x u ′ = 2 x .
y ′ ′ = − ( 1 + x 2 ) − 2 ⋅ 2 x = − 2 x ( 1 + x 2 ) 2 \displaystyle y'' = -(1 + x^2)^{-2}\cdot 2x = -\frac{2x}{(1 + x^2)^2} y ′′ = − ( 1 + x 2 ) − 2 ⋅ 2 x = − ( 1 + x 2 ) 2 2 x
Step 3. Substitute into the left side.
( 1 + x 2 ) ( − 2 x ( 1 + x 2 ) 2 ) + 2 x ⋅ 1 1 + x 2 = − 2 x 1 + x 2 + 2 x 1 + x 2 = 0 \displaystyle (1 + x^2)\left(-\frac{2x}{(1 + x^2)^2}\right) + 2x\cdot\frac{1}{1 + x^2} = -\frac{2x}{1 + x^2} + \frac{2x}{1 + x^2} = 0 ( 1 + x 2 ) ( − ( 1 + x 2 ) 2 2 x ) + 2 x ⋅ 1 + x 2 1 = − 1 + x 2 2 x + 1 + x 2 2 x = 0
Checking the answer#
A quicker route confirms it: ( 1 + x 2 ) y ′ = 1 (1 + x^2)y' = 1 ( 1 + x 2 ) y ′ = 1 ; differentiating both sides gives 2 x y ′ + ( 1 + x 2 ) y ′ ′ = 0 2xy' + (1 + x^2)y'' = 0 2 x y ′ + ( 1 + x 2 ) y ′′ = 0 , the same equation.
Answer#
y ′ = 1 1 + x 2 \displaystyle y' = \frac{1}{1 + x^2} y ′ = 1 + x 2 1 and y ′ ′ = − 2 x ( 1 + x 2 ) 2 \displaystyle y'' = -\frac{2x}{(1 + x^2)^2} y ′′ = − ( 1 + x 2 ) 2 2 x , and substituting gives ( 1 + x 2 ) y ′ ′ + 2 x y ′ = 0 (1 + x^2)y'' + 2xy' = 0 ( 1 + x 2 ) y ′′ + 2 x y ′ = 0 .
Question 10: Showing y ′ ′ = ( y ′ ) 2 y'' = (y')^2 y ′′ = ( y ′ ) 2 #
The problem#
If e y ( x + 1 ) = 1 e^y(x + 1) = 1 e y ( x + 1 ) = 1 , show that d 2 y d x 2 = ( d y d x ) 2 \displaystyle \frac{d^2y}{dx^2} = \left(\frac{dy}{dx}\right)^2 d x 2 d 2 y = ( d x d y ) 2 .
Understanding the problem#
The relation between x x x and y y y is given implicitly, but it can be solved for y y y easily. You must find y ′ y' y ′ and y ′ ′ y'' y ′′ and show that y ′ ′ y'' y ′′ equals the square of y ′ y' y ′ .
The idea#
Rearrange to e y = 1 x + 1 \displaystyle e^y = \frac{1}{x + 1} e y = x + 1 1 and take logs to get y y y explicitly, then differentiate twice. (Here x + 1 > 0 x + 1 > 0 x + 1 > 0 , since e y > 0 e^y > 0 e y > 0 .)
Step-by-step solution#
Step 1. Solve for y y y .
e y = 1 x + 1 ⟹ y = log 1 x + 1 = − log ( x + 1 ) \displaystyle e^y = \frac{1}{x + 1} \quad\Longrightarrow\quad y = \log\frac{1}{x + 1} = -\log(x + 1) e y = x + 1 1 ⟹ y = log x + 1 1 = − log ( x + 1 )
Step 2. First derivative.
y ′ = − 1 x + 1 \displaystyle y' = -\frac{1}{x + 1} y ′ = − x + 1 1
Step 3. Second derivative: − 1 x + 1 = − ( x + 1 ) − 1 \displaystyle -\frac{1}{x + 1} = -(x + 1)^{-1} − x + 1 1 = − ( x + 1 ) − 1 , whose derivative is ( x + 1 ) − 2 (x + 1)^{-2} ( x + 1 ) − 2 .
y ′ ′ = 1 ( x + 1 ) 2 \displaystyle y'' = \frac{1}{(x + 1)^2} y ′′ = ( x + 1 ) 2 1
Step 4. Square the first derivative.
( y ′ ) 2 = ( − 1 x + 1 ) 2 = 1 ( x + 1 ) 2 \displaystyle (y')^2 = \left(-\frac{1}{x + 1}\right)^2 = \frac{1}{(x + 1)^2} ( y ′ ) 2 = ( − x + 1 1 ) 2 = ( x + 1 ) 2 1
Step 5. The results of Steps 3 and 4 are equal, so y ′ ′ = ( y ′ ) 2 y'' = (y')^2 y ′′ = ( y ′ ) 2 .
Checking the answer#
At x = 0 x = 0 x = 0 : y ′ = − 1 y' = -1 y ′ = − 1 and y ′ ′ = 1 = ( − 1 ) 2 y'' = 1 = (-1)^2 y ′′ = 1 = ( − 1 ) 2 .
Answer#
y = − log ( x + 1 ) y = -\log(x + 1) y = − log ( x + 1 ) gives y ′ = − 1 x + 1 \displaystyle y' = -\frac{1}{x + 1} y ′ = − x + 1 1 and y ′ ′ = 1 ( x + 1 ) 2 = ( y ′ ) 2 \displaystyle y'' = \frac{1}{(x + 1)^2} = (y')^2 y ′′ = ( x + 1 ) 2 1 = ( y ′ ) 2 , as required.