How to use these solu­tions

These are step-by-step worked solu­tions to the Prac­tice ques­tions of the les­son Tech­niques of Dif­fer­en­ti­a­tion. Work each ques­tion your­self first, then com­pare line by line. In almost every part the chain rule is at work: dif­fer­en­ti­ate the out­side func­tion, keep the inside unchanged, and mul­ti­ply by the deriv­a­tive of the inside.

Ques­tion 1: The chain rule on four func­tions

The prob­lem

Dif­fer­en­ti­ate with respect to xx:

(a) cos⁡(5x−2)\cos(5x - 2) (b) (3x2−x+1)4(3x^2 - x + 1)^4 (c) sin⁡3x\sin^3 x (d) 1+e2x\sqrt{1 + e^{2x}}

Under­stand­ing the prob­lem

Each func­tion is a com­po­si­tion: one func­tion applied to another. You need dydx\displaystyle \frac{dy}{dx} for each.

The idea

Use the chain rule: if y=f(u)y = f(u) with u=g(x)u = g(x), then dydx=f′(u)⋅dudx\displaystyle \frac{dy}{dx} = f'(u)\cdot\frac{du}{dx}. In each part, first name the inside uu.

Step-by-step solu­tion

Part (a)

Step 1. Inside: u=5x−2u = 5x - 2, so dudx=5\displaystyle \frac{du}{dx} = 5. Out­side: cos⁡u\cos u, whose deriv­a­tive is −sin⁡u-\sin u.

Step 2. Mul­ti­ply.

ddxcos⁡(5x−2)=−sin⁡(5x−2)⋅5=−5sin⁡(5x−2)\displaystyle \frac{d}{dx}\cos(5x - 2) = -\sin(5x - 2)\cdot 5 = -5\sin(5x - 2)

Part (b)

Step 1. Inside: u=3x2−x+1u = 3x^2 - x + 1, so dudx=6x−1\displaystyle \frac{du}{dx} = 6x - 1. Out­side: u4u^4, deriv­a­tive 4u34u^3.

Step 2. Mul­ti­ply.

ddx(3x2−x+1)4=4(3x2−x+1)3(6x−1)\displaystyle \frac{d}{dx}(3x^2 - x + 1)^4 = 4(3x^2 - x + 1)^3(6x - 1)

Part (c)

Step 1. sin⁡3x\sin^3 x means (sin⁡x)3(\sin x)^3. Inside: u=sin⁡xu = \sin x, dudx=cos⁡x\displaystyle \frac{du}{dx} = \cos x. Out­side: u3u^3, deriv­a­tive 3u23u^2.

Step 2. Mul­ti­ply.

ddxsin⁡3x=3sin⁡2xcos⁡x\displaystyle \frac{d}{dx}\sin^3 x = 3\sin^2 x\cos x

Part (d)

Step 1. Here there are two lay­ers. Out­er­most: v\sqrt{v} with v=1+e2xv = 1 + e^{2x}; its deriv­a­tive is 12v\displaystyle \frac{1}{2\sqrt{v}}.

Step 2. Deriv­a­tive of the inside v=1+e2xv = 1 + e^{2x}: the 11 gives 00, and e2xe^{2x} needs the chain rule again, giv­ing e2x⋅2e^{2x}\cdot 2.

dvdx=2e2x\displaystyle \frac{dv}{dx} = 2e^{2x}

Step 3. Mul­ti­ply and sim­plify; the 22s can­cel.

ddx1+e2x=121+e2x⋅2e2x=e2x1+e2x\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}}}

Check­ing the answer

For (a), at x=25\displaystyle x = \tfrac{2}{5} the inside is 00 and sin⁡0=0\sin 0 = 0, so the slope is 00; cos⁡\cos has a peak there, as expected. For (c), at x=0x = 0 the deriv­a­tive is 00, which fits because sin⁡3x\sin^3 x is very flat near 00.

Answer

(a) −5sin⁡(5x−2)-5\sin(5x - 2); (b) 4(3x2−x+1)3(6x−1)4(3x^2 - x + 1)^3(6x - 1); (c) 3sin⁡2xcos⁡x3\sin^2 x\cos x; (d) e2x1+e2x\displaystyle \frac{e^{2x}}{\sqrt{1 + e^{2x}}}.

Com­mon mis­take to avoid

For­get­ting the "deriv­a­tive of the inside", e.g. writ­ing −sin⁡(5x−2)-\sin(5x - 2) in (a) with­out the fac­tor 55.

Ques­tion 2: Expo­nen­tial and log­a­rith­mic func­tions, prod­ucts and quo­tients

The prob­lem

Dif­fer­en­ti­ate: (a) ex2e^{x^2} (b) log⁡(sin⁡x)\log(\sin x) (c) x2exx^2 e^x (d) log⁡xx\displaystyle \frac{\log x}{x}

Under­stand­ing the prob­lem

(a) and (b) are com­po­si­tions (chain rule). (c) is a prod­uct of two func­tions, and (d) is a quo­tient. Here log⁡\log means the nat­ural log­a­rithm, with ddxlog⁡x=1x\displaystyle \frac{d}{dx}\log x = \frac{1}{x}.

The idea

Use the stan­dard deriv­a­tives ddxex=ex\displaystyle \frac{d}{dx}e^x = e^x and ddxlog⁡x=1x\displaystyle \frac{d}{dx}\log x = \frac{1}{x}, together with the chain rule, the prod­uct rule (uv)′=u′v+uv′(uv)' = u'v + uv' and the quo­tient rule (uv)′=u′v−uv′v2\displaystyle \left(\frac{u}{v}\right)' = \frac{u'v - uv'}{v^2}.

Step-by-step solu­tion

Part (a)

Step 1. Inside u=x2u = x^2, dudx=2x\displaystyle \frac{du}{dx} = 2x. Out­side eue^u, deriv­a­tive eue^u.

ddxex2=ex2⋅2x=2xex2\displaystyle \frac{d}{dx}e^{x^2} = e^{x^2}\cdot 2x = 2xe^{x^2}

Part (b)

Step 1. Inside u=sin⁡xu = \sin x, dudx=cos⁡x\displaystyle \frac{du}{dx} = \cos x. Out­side log⁡u\log u, deriv­a­tive 1u\displaystyle \frac{1}{u}.

Step 2. Mul­ti­ply and recog­nise cos⁡xsin⁡x\displaystyle \frac{\cos x}{\sin x}.

ddxlog⁡(sin⁡x)=1sin⁡x⋅cos⁡x=cot⁡x\displaystyle \frac{d}{dx}\log(\sin x) = \frac{1}{\sin x}\cdot\cos x = \cot x

Part (c)

Step 1. Prod­uct with u=x2u = x^2 (u′=2xu' = 2x) and v=exv = e^x (v′=exv' = e^x).

Step 2. Apply the prod­uct rule and take out the com­mon fac­tor exe^x.

ddx(x2ex)=2x⋅ex+x2⋅ex=ex(x2+2x)\displaystyle \frac{d}{dx}(x^2e^x) = 2x\cdot e^x + x^2\cdot e^x = e^x(x^2 + 2x)

Part (d)

Step 1. Quo­tient with u=log⁡xu = \log x (u′=1x\displaystyle u' = \tfrac{1}{x}) and v=xv = x (v′=1v' = 1).

Step 2. Apply the quo­tient rule.

ddxlog⁡xx=1x⋅x−log⁡x⋅1x2=1−log⁡xx2\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}

Check­ing the answer

In (d), the deriv­a­tive is 00 when log⁡x=1\log x = 1, i.e. x=ex = e. Indeed log⁡xx\displaystyle \frac{\log x}{x} has its largest value at x=ex = e, so a zero slope there makes sense.

Answer

(a) 2xex22xe^{x^2}; (b) cot⁡x\cot x; (c) ex(x2+2x)e^x(x^2 + 2x); (d) 1−log⁡xx2\displaystyle \frac{1 - \log x}{x^2}.

Ques­tion 3: Inverse trigono­met­ric func­tions

The prob­lem

Dif­fer­en­ti­ate: (a) sin⁡−1(2x)\sin^{-1}(2x) (b) tan⁡−1(ex)\tan^{-1}(e^x) (c) cos⁡−11−x21+x2\displaystyle \cos^{-1}\frac{1 - x^2}{1 + x^2} for 0<x<10 < x < 1.

Under­stand­ing the prob­lem

Parts (a) and (b) use the stan­dard inverse-trig deriv­a­tives with the chain rule. Part (c) looks heavy, but, as in Exam­ple 3, a sub­sti­tu­tion sim­pli­fies it before dif­fer­en­ti­at­ing. The con­di­tion 0<x<10 < x < 1 tells you which branch to use.

The idea

Recall ddxsin⁡−1x=11−x2\displaystyle \frac{d}{dx}\sin^{-1}x = \frac{1}{\sqrt{1 - x^2}} and ddxtan⁡−1x=11+x2\displaystyle \frac{d}{dx}\tan^{-1}x = \frac{1}{1 + x^2}. For (c), put x=tan⁡θx = \tan\theta and use the iden­tity 1−tan⁡2θ1+tan⁡2θ=cos⁡2θ\displaystyle \frac{1 - \tan^2\theta}{1 + \tan^2\theta} = \cos 2\theta.

Step-by-step solu­tion

Part (a)

Step 1. Inside u=2xu = 2x, dudx=2\displaystyle \frac{du}{dx} = 2. Out­side sin⁡−1u\sin^{-1}u, deriv­a­tive 11−u2\displaystyle \frac{1}{\sqrt{1 - u^2}}.

ddxsin⁡−1(2x)=11−(2x)2⋅2=21−4x2\displaystyle \frac{d}{dx}\sin^{-1}(2x) = \frac{1}{\sqrt{1 - (2x)^2}}\cdot 2 = \frac{2}{\sqrt{1 - 4x^2}}

Part (b)

Step 1. Inside u=exu = e^x, dudx=ex\displaystyle \frac{du}{dx} = e^x. Out­side tan⁡−1u\tan^{-1}u, deriv­a­tive 11+u2\displaystyle \frac{1}{1 + u^2}.

ddxtan⁡−1(ex)=11+(ex)2⋅ex=ex1+e2x\displaystyle \frac{d}{dx}\tan^{-1}(e^x) = \frac{1}{1 + (e^x)^2}\cdot e^x = \frac{e^x}{1 + e^{2x}}

Part (c)

Step 1. Put x=tan⁡θx = \tan\theta. Since 0<x<10 < x < 1, θ=tan⁡−1x\theta = \tan^{-1}x lies in (0,π4)\displaystyle \left(0, \tfrac{\pi}{4}\right).

Step 2. Sim­plify the inside using 1−tan⁡2θ1+tan⁡2θ=cos⁡2θ\displaystyle \frac{1 - \tan^2\theta}{1 + \tan^2\theta} = \cos 2\theta.

y=cos⁡−11−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)

Step 3. Since 2θ∈(0,π2)\displaystyle 2\theta \in \left(0, \tfrac{\pi}{2}\right), which lies inside [0,π][0, \pi], the prin­ci­pal range of cos⁡−1\cos^{-1}, we have cos⁡−1(cos⁡2θ)=2θ\cos^{-1}(\cos 2\theta) = 2\theta.

y=2θ=2tan⁡−1xy = 2\theta = 2\tan^{-1}x

Step 4. Dif­fer­en­ti­ate.

dydx=21+x2\displaystyle \frac{dy}{dx} = \frac{2}{1 + x^2}

Check­ing the answer

For (c), at x=0.5x = 0.5: a small numer­i­cal change h=0.001h = 0.001 in xx changes yy by about 0.00160.0016, and 21+0.25=1.6\displaystyle \frac{2}{1 + 0.25} = 1.6. They agree.

Answer

(a) 21−4x2\displaystyle \frac{2}{\sqrt{1 - 4x^2}}; (b) ex1+e2x\displaystyle \frac{e^x}{1 + e^{2x}}; (c) 21+x2\displaystyle \frac{2}{1 + x^2}.

Com­mon mis­take to avoid

In (c), writ­ing cos⁡−1(cos⁡2θ)=2θ\cos^{-1}(\cos 2\theta) = 2\theta with­out check­ing that 2θ2\theta lies in [0,π][0, \pi]. Here the con­di­tion 0<x<10 < x < 1 guar­an­tees it.

Ques­tion 4: Implicit dif­fer­en­ti­a­tion

The prob­lem

Find dydx\displaystyle \frac{dy}{dx} for: (a) x3+y3=6xyx^3 + y^3 = 6xy; (b) sin⁡(xy)+y=x\sin(xy) + y = x.

Under­stand­ing the prob­lem

In nei­ther equa­tion can yy be eas­ily writ­ten in terms of xx. So you dif­fer­en­ti­ate the equa­tion as it stands, treat­ing yy as a func­tion of xx.

The idea

Dif­fer­en­ti­ate both sides with respect to xx. Every time you dif­fer­en­ti­ate an expres­sion in yy, mul­ti­ply by y′=dydx\displaystyle y' = \frac{dy}{dx} (chain rule). Terms like xyxy need the prod­uct rule. Then col­lect all y′y' terms on one side and solve.

Step-by-step solu­tion

Part (a)

Step 1. Dif­fer­en­ti­ate each term. ddxx3=3x2\displaystyle \frac{d}{dx}x^3 = 3x^2; ddxy3=3y2y′\displaystyle \frac{d}{dx}y^3 = 3y^2y'; ddx(6xy)=6(y+xy′)\displaystyle \frac{d}{dx}(6xy) = 6(y + xy') by the prod­uct rule.

3x2+3y2y′=6y+6xy′3x^2 + 3y^2y' = 6y + 6xy'

Step 2. Divide by 33 and col­lect the y′y' terms on the left.

y2y′−2xy′=2y−x2y^2y' - 2xy' = 2y - x^2

Step 3. Fac­tor out y′y' and divide.

y′(y2−2x)=2y−x2⟹dydx=2y−x2y2−2x\displaystyle y'(y^2 - 2x) = 2y - x^2 \quad\Longrightarrow\quad \frac{dy}{dx} = \frac{2y - x^2}{y^2 - 2x}

Part (b)

Step 1. Dif­fer­en­ti­ate sin⁡(xy)\sin(xy): out­side sin⁡\sin, inside xyxy, whose deriv­a­tive is y+xy′y + xy'.

ddxsin⁡(xy)=cos⁡(xy) (y+xy′)\displaystyle \frac{d}{dx}\sin(xy) = \cos(xy)\,(y + xy')

Step 2. Dif­fer­en­ti­ate the whole equa­tion.

cos⁡(xy)(y+xy′)+y′=1\cos(xy)(y + xy') + y' = 1

Step 3. Expand and col­lect the y′y' terms.

ycos⁡(xy)+xcos⁡(xy) y′+y′=1⟹y′(1+xcos⁡(xy))=1−ycos⁡(xy)y\cos(xy) + x\cos(xy)\,y' + y' = 1 \quad\Longrightarrow\quad y'\bigl(1 + x\cos(xy)\bigr) = 1 - y\cos(xy)

Step 4. Divide.

dydx=1−ycos⁡(xy)1+xcos⁡(xy)\displaystyle \frac{dy}{dx} = \frac{1 - y\cos(xy)}{1 + x\cos(xy)}

Check­ing the answer

For (a), the point (3,3)(3, 3) is on the curve (27+27=54=6⋅927 + 27 = 54 = 6 \cdot 9). The for­mula gives 6−99−6=−1\displaystyle \frac{6 - 9}{9 - 6} = -1, and by the sym­me­try of the curve in the line y=xy = x a slope of −1-1 there is exactly what you expect. For (b), (0,0)(0, 0) is on the curve and the for­mula gives 11=1\displaystyle \frac{1}{1} = 1.

Answer

(a) dydx=2y−x2y2−2x\displaystyle \frac{dy}{dx} = \frac{2y - x^2}{y^2 - 2x}; (b) dydx=1−ycos⁡(xy)1+xcos⁡(xy)\displaystyle \frac{dy}{dx} = \frac{1 - y\cos(xy)}{1 + x\cos(xy)}.

Com­mon mis­take to avoid

Dif­fer­en­ti­at­ing 6xy6xy as 6y′6y' or 6y6y. It is a prod­uct of xx and yy, so the prod­uct rule gives 6(y+xy′)6(y + xy').

Ques­tion 5: Log­a­rith­mic dif­fer­en­ti­a­tion and vari­able pow­ers

The prob­lem

Find dydx\displaystyle \frac{dy}{dx} for: (a) y=(sin⁡x)xy = (\sin x)^x; (b) y=xsin⁡xy = x^{\sin x}; (c) y=2x+x2y = 2^x + x^2.

Under­stand­ing the prob­lem

In (a) and (b) both the base and the power con­tain xx. Nei­ther the power rule (xnx^n, fixed nn) nor the expo­nen­tial rule (axa^x, fixed aa) applies directly. Part (c) is a sum of two sim­ple terms.

The idea

For vari­able pow­ers, take log⁡\log of both sides first, as in Exam­ple 5, so the power comes down as a prod­uct. Then dif­fer­en­ti­ate implic­itly. For (c) use ddxax=axlog⁡a\displaystyle \frac{d}{dx}a^x = a^x\log a.

Step-by-step solu­tion

Part (a)

Step 1. Take logs (on an inter­val where sin⁡x>0\sin x > 0).

log⁡y=xlog⁡(sin⁡x)\log y = x\log(\sin x)

Step 2. Dif­fer­en­ti­ate both sides. Left: y′y\displaystyle \frac{y'}{y}. Right: prod­uct rule with u=xu = x, v=log⁡sin⁡xv = \log\sin x, and v′=cot⁡xv' = \cot x (from Ques­tion 2(b)).

y′y=1⋅log⁡(sin⁡x)+xcot⁡x\displaystyle \frac{y'}{y} = 1\cdot\log(\sin x) + x\cot x

Step 3. Mul­ti­ply by y=(sin⁡x)xy = (\sin x)^x.

dydx=(sin⁡x)x(log⁡sin⁡x+xcot⁡x)\displaystyle \frac{dy}{dx} = (\sin x)^x\bigl(\log\sin x + x\cot x\bigr)

Part (b)

Step 1. Take logs (for x>0x > 0).

log⁡y=sin⁡x⋅log⁡x\log y = \sin x\cdot\log x

Step 2. Dif­fer­en­ti­ate, using the prod­uct rule on the right.

y′y=cos⁡xlog⁡x+sin⁡x⋅1x\displaystyle \frac{y'}{y} = \cos x\log x + \sin x\cdot\frac{1}{x}

Step 3. Mul­ti­ply by y=xsin⁡xy = x^{\sin x}.

dydx=xsin⁡x(cos⁡xlog⁡x+sin⁡xx)\displaystyle \frac{dy}{dx} = x^{\sin x}\left(\cos x\log x + \frac{\sin x}{x}\right)

Part (c)

Step 1. Dif­fer­en­ti­ate term by term: ddx2x=2xlog⁡2\displaystyle \frac{d}{dx}2^x = 2^x\log 2 and ddxx2=2x\displaystyle \frac{d}{dx}x^2 = 2x.

dydx=2xlog⁡2+2x\displaystyle \frac{dy}{dx} = 2^x\log 2 + 2x

Check­ing the answer

For (b), at x=1x = 1: log⁡1=0\log 1 = 0, so the for­mula gives 1sin⁡1⋅sin⁡1≈0.8411^{\sin 1}\cdot\sin 1 \approx 0.841. A numer­i­cal slope of xsin⁡xx^{\sin x} at x=1x = 1 also gives about 0.8410.841.

Answer

(a) (sin⁡x)x(log⁡sin⁡x+xcot⁡x)(\sin x)^x(\log\sin x + x\cot x); (b) xsin⁡x(cos⁡xlog⁡x+sin⁡xx)\displaystyle x^{\sin x}\left(\cos x\log x + \frac{\sin x}{x}\right); (c) 2xlog⁡2+2x2^x\log 2 + 2x.

Com­mon mis­take to avoid

Treat­ing xsin⁡xx^{\sin x} like xnx^n and writ­ing sin⁡x⋅xsin⁡x−1\sin x\cdot x^{\sin x - 1}. That rule needs a con­stant power.

Ques­tion 6: Para­met­ric dif­fer­en­ti­a­tion

The prob­lem

Find dydx\displaystyle \frac{dy}{dx} for: (a) x=t2+1x = t^2 + 1, y=t3−ty = t^3 - t; (b) x=a(θ−sin⁡θ)x = a(\theta - \sin\theta), y=a(1−cos⁡θ)y = a(1 - \cos\theta).

Under­stand­ing the prob­lem

Here xx and yy are both given in terms of a third vari­able (a para­me­ter), tt or θ\theta. You want the slope dydx\displaystyle \frac{dy}{dx}, which will be expressed in terms of the para­me­ter.

The idea

Use dydx=dy/dtdx/dt\displaystyle \frac{dy}{dx} = \frac{dy/dt}{dx/dt}: dif­fer­en­ti­ate each with respect to the para­me­ter and divide.

Step-by-step solu­tion

Part (a)

Step 1. Dif­fer­en­ti­ate each with respect to tt.

dxdt=2t,dydt=3t2−1\displaystyle \frac{dx}{dt} = 2t, \qquad \frac{dy}{dt} = 3t^2 - 1

Step 2. Divide.

dydx=3t2−12t(t≠0)\displaystyle \frac{dy}{dx} = \frac{3t^2 - 1}{2t} \qquad (t \ne 0)

Part (b)

Step 1. Dif­fer­en­ti­ate each with respect to θ\theta.

dxdθ=a(1−cos⁡θ),dydθ=asin⁡θ\displaystyle \frac{dx}{d\theta} = a(1 - \cos\theta), \qquad \frac{dy}{d\theta} = a\sin\theta

Step 2. Divide; the aa can­cels.

dydx=asin⁡θa(1−cos⁡θ)=sin⁡θ1−cos⁡θ\displaystyle \frac{dy}{dx} = \frac{a\sin\theta}{a(1 - \cos\theta)} = \frac{\sin\theta}{1 - \cos\theta}

Step 3. Sim­plify with the half-angle iden­ti­ties sin⁡θ=2sin⁡θ2cos⁡θ2\displaystyle \sin\theta = 2\sin\tfrac{\theta}{2}\cos\tfrac{\theta}{2} and 1−cos⁡θ=2sin⁡2θ2\displaystyle 1 - \cos\theta = 2\sin^2\tfrac{\theta}{2}.

dydx=2sin⁡θ2cos⁡θ22sin⁡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}

Check­ing 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, a hor­i­zon­tal tan­gent, exactly as at the high­est point of an arch.

Answer

(a) 3t2−12t\displaystyle \frac{3t^2 - 1}{2t}; (b) sin⁡θ1−cos⁡θ=cot⁡θ2\displaystyle \frac{\sin\theta}{1 - \cos\theta} = \cot\frac{\theta}{2}.

Ques­tion 7: Sec­ond deriv­a­tives

The prob­lem

Find d2ydx2\displaystyle \frac{d^2y}{dx^2} for: (a) y=x3log⁡xy = x^3\log x; (b) y=e3xcos⁡xy = e^{3x}\cos x.

Under­stand­ing the prob­lem

The sec­ond deriv­a­tive is the deriv­a­tive of the first deriv­a­tive. Both func­tions are prod­ucts, so the prod­uct rule is needed, twice.

The idea

Find y′y' with the prod­uct rule, sim­plify it, then dif­fer­en­ti­ate again.

Step-by-step solu­tion

Part (a)

Step 1. First deriv­a­tive: u=x3u = x^3, v=log⁡xv = \log x.

y′=3x2log⁡x+x3⋅1x=3x2log⁡x+x2\displaystyle y' = 3x^2\log x + x^3\cdot\frac{1}{x} = 3x^2\log x + x^2

Step 2. Dif­fer­en­ti­ate again. The first term is a prod­uct (3x23x^2 and log⁡x\log x); the sec­ond is x2x^2.

y′′=6xlog⁡x+3x2⋅1x+2x=6xlog⁡x+3x+2x\displaystyle y'' = 6x\log x + 3x^2\cdot\frac{1}{x} + 2x = 6x\log x + 3x + 2x

Step 3. Com­bine.

y′′=6xlog⁡x+5xy'' = 6x\log x + 5x

Part (b)

Step 1. First deriv­a­tive: u=e3xu = e^{3x} (u′=3e3xu' = 3e^{3x}), v=cos⁡xv = \cos x (v′=−sin⁡xv' = -\sin x).

y′=3e3xcos⁡x−e3xsin⁡x=e3x(3cos⁡x−sin⁡x)y' = 3e^{3x}\cos x - e^{3x}\sin x = e^{3x}(3\cos x - \sin x)

Step 2. Dif­fer­en­ti­ate again, with u=e3xu = e^{3x} and w=3cos⁡x−sin⁡xw = 3\cos x - \sin x, w′=−3sin⁡x−cos⁡xw' = -3\sin x - \cos x.

y′′=3e3x(3cos⁡x−sin⁡x)+e3x(−3sin⁡x−cos⁡x)y'' = 3e^{3x}(3\cos x - \sin x) + e^{3x}(-3\sin x - \cos x)

Step 3. Take out e3xe^{3x} and col­lect: cos⁡x\cos x terms 9−1=89 - 1 = 8; sin⁡x\sin x terms −3−3=−6-3 - 3 = -6.

y′′=e3x(8cos⁡x−6sin⁡x)y'' = e^{3x}(8\cos x - 6\sin x)

Check­ing the answer

For (b) at x=0x = 0: y′′=8y'' = 8. Directly, y=e3xcos⁡x≈(1+3x+4.5x2)(1−0.5x2)≈1+3x+4x2y = e^{3x}\cos x \approx (1 + 3x + 4.5x^2)(1 - 0.5x^2) \approx 1 + 3x + 4x^2 near 00, whose sec­ond deriv­a­tive is 88. Cor­rect.

Answer

(a) 6xlog⁡x+5x6x\log x + 5x; (b) e3x(8cos⁡x−6sin⁡x)e^{3x}(8\cos x - 6\sin x).

Ques­tion 8: Show­ing y′′=4yy'' = 4y

The prob­lem

If y=e2x+e−2xy = e^{2x} + e^{-2x}, show that d2ydx2=4y\displaystyle \frac{d^2y}{dx^2} = 4y.

Under­stand­ing the prob­lem

This is a "show that" ques­tion: com­pute y′′y'' and show it equals 44 times the orig­i­nal yy.

The idea

Dif­fer­en­ti­ate twice using ddxekx=kekx\displaystyle \frac{d}{dx}e^{kx} = ke^{kx}, then com­pare with 4y4y.

Step-by-step solu­tion

Step 1. First deriv­a­tive.

y′=2e2x−2e−2xy' = 2e^{2x} - 2e^{-2x}

Step 2. Sec­ond deriv­a­tive. Note ddx(−2e−2x)=−2⋅(−2)e−2x=4e−2x\displaystyle \frac{d}{dx}(-2e^{-2x}) = -2\cdot(-2)e^{-2x} = 4e^{-2x}.

y′′=4e2x+4e−2xy'' = 4e^{2x} + 4e^{-2x}

Step 3. Fac­tor out 44 and recog­nise yy.

y′′=4(e2x+e−2x)=4yy'' = 4(e^{2x} + e^{-2x}) = 4y

Check­ing the answer

At x=0x = 0: y=2y = 2 and y′′=8=4×2y'' = 8 = 4 \times 2.

Answer

y′′=4e2x+4e−2x=4yy'' = 4e^{2x} + 4e^{-2x} = 4y, as required.

Ques­tion 9: A dif­fer­en­tial equa­tion sat­is­fied by tan⁡−1x\tan^{-1}x

The prob­lem

If y=tan⁡−1xy = \tan^{-1}x, show that (1+x2)d2ydx2+2xdydx=0\displaystyle (1 + x^2)\frac{d^2y}{dx^2} + 2x\frac{dy}{dx} = 0.

Under­stand­ing the prob­lem

You must find y′y' and y′′y'' and sub­sti­tute them into the left side, show­ing it sim­pli­fies to 00.

The idea

Use ddxtan⁡−1x=11+x2\displaystyle \frac{d}{dx}\tan^{-1}x = \frac{1}{1 + x^2}, then dif­fer­en­ti­ate (1+x2)−1(1 + x^2)^{-1} with the chain rule.

Step-by-step solu­tion

Step 1. First deriv­a­tive.

y′=11+x2=(1+x2)−1\displaystyle y' = \frac{1}{1 + x^2} = (1 + x^2)^{-1}

Step 2. Sec­ond deriv­a­tive by the chain rule: out­side u−1u^{-1}, inside u=1+x2u = 1 + x^2 with u′=2xu' = 2x.

y′′=−(1+x2)−2⋅2x=−2x(1+x2)2\displaystyle y'' = -(1 + x^2)^{-2}\cdot 2x = -\frac{2x}{(1 + x^2)^2}

Step 3. Sub­sti­tute into the left side.

(1+x2)(−2x(1+x2)2)+2x⋅11+x2=−2x1+x2+2x1+x2=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

Check­ing the answer

A quicker route con­firms it: (1+x2)y′=1(1 + x^2)y' = 1; dif­fer­en­ti­at­ing both sides gives 2xy′+(1+x2)y′′=02xy' + (1 + x^2)y'' = 0, the same equa­tion.

Answer

y′=11+x2\displaystyle y' = \frac{1}{1 + x^2} and y′′=−2x(1+x2)2\displaystyle y'' = -\frac{2x}{(1 + x^2)^2}, and sub­sti­tut­ing gives (1+x2)y′′+2xy′=0(1 + x^2)y'' + 2xy' = 0.

Ques­tion 10: Show­ing y′′=(y′)2y'' = (y')^2

The prob­lem

If ey(x+1)=1e^y(x + 1) = 1, show that d2ydx2=(dydx)2\displaystyle \frac{d^2y}{dx^2} = \left(\frac{dy}{dx}\right)^2.

Under­stand­ing the prob­lem

The rela­tion between xx and yy is given implic­itly, but it can be solved for yy eas­ily. You must find y′y' and y′′y'' and show that y′′y'' equals the square of y′y'.

The idea

Rearrange to ey=1x+1\displaystyle e^y = \frac{1}{x + 1} and take logs to get yy explic­itly, then dif­fer­en­ti­ate twice. (Here x+1>0x + 1 > 0, since ey>0e^y > 0.)

Step-by-step solu­tion

Step 1. Solve for yy.

ey=1x+1⟹y=log⁡1x+1=−log⁡(x+1)\displaystyle e^y = \frac{1}{x + 1} \quad\Longrightarrow\quad y = \log\frac{1}{x + 1} = -\log(x + 1)

Step 2. First deriv­a­tive.

y′=−1x+1\displaystyle y' = -\frac{1}{x + 1}

Step 3. Sec­ond deriv­a­tive: −1x+1=−(x+1)−1\displaystyle -\frac{1}{x + 1} = -(x + 1)^{-1}, whose deriv­a­tive is (x+1)−2(x + 1)^{-2}.

y′′=1(x+1)2\displaystyle y'' = \frac{1}{(x + 1)^2}

Step 4. Square the first deriv­a­tive.

(y′)2=(−1x+1)2=1(x+1)2\displaystyle (y')^2 = \left(-\frac{1}{x + 1}\right)^2 = \frac{1}{(x + 1)^2}

Step 5. The results of Steps 3 and 4 are equal, so y′′=(y′)2y'' = (y')^2.

Check­ing the answer

At x=0x = 0: y′=−1y' = -1 and y′′=1=(−1)2y'' = 1 = (-1)^2.

Answer

y=−log⁡(x+1)y = -\log(x + 1) gives y′=−1x+1\displaystyle y' = -\frac{1}{x + 1} and y′′=1(x+1)2=(y′)2\displaystyle y'' = \frac{1}{(x + 1)^2} = (y')^2, as required.