Class 12 Maths, Worked in Full Past papersGet updates
Chapter 5 · Continuity and Differentiability

Exercise 5.7 · Q6: Second derivative of exsin⁡5xe^x\sin 5x

Exercise 5.7Second order derivative · Section 5.7
The question

Find the second order derivatives of the functions given in Exercises 1 to 10.

6. exsin⁡5xe^x\sin 5x

Exam answer

Let y=exsin⁡5xy = e^x\sin 5x⁠. By the product rule,

dydx=exsin⁡5x+5excos⁡5x=ex(sin⁡5x+5cos⁡5x),d2ydx2=ex(sin⁡5x+5cos⁡5x)+ex(5cos⁡5x−25sin⁡5x)=ex(10cos⁡5x−24sin⁡5x)\begin{aligned} \frac{dy}{dx} &= e^x\sin 5x + 5e^x\cos 5x \\ &= e^x(\sin 5x + 5\cos 5x), \\ \frac{d^2y}{dx^2} &= e^x(\sin 5x + 5\cos 5x) \\ &\quad + e^x(5\cos 5x - 25\sin 5x) \\ &= e^x(10\cos 5x - 24\sin 5x) \end{aligned}

∴ d2ydx2=2ex(5cos⁡5x−12sin⁡5x)\therefore\ \dfrac{d^2y}{dx^2} = 2e^x(5\cos 5x - 12\sin 5x)

Want the reason behind every step, the basics and the checks?

The one idea this problem is built on

Differentiating exe^x leaves it unchanged, so with the product rule exe^x comes out as a common factor every time:

ddx(ex g(x))=ex(g(x)+g′(x)).\frac{d}{dx}\big(e^x\,g(x)\big) = e^x\big(g(x) + g'(x)\big).

So each differentiation just replaces the bracket gg by g+g′g + g'⁠. The chain rule supplies the factor 5 each time sin⁡5x\sin 5x or cos⁡5x\cos 5x is differentiated.

Given, to find, and the plan
Given
y=exsin⁡5xy = e^x\sin 5x⁠, defined and differentiable for every real xx⁠.
To find
d2ydx2\dfrac{d^2y}{dx^2}⁠.
Plan
(1) State the domain. (2) Chain rule for sin⁡5x\sin 5x and cos⁡5x\cos 5x⁠. (3) Product rule for dydx\frac{dy}{dx}⁠. (4) Product rule again for d2ydx2\frac{d^2y}{dx^2}⁠. (5) Collect terms and match the textbook form.

Basics you need

1Derivative of exe^x

ddxex=ex\frac{d}{dx}e^x = e^x (Theorem 5(1), Section 5.4), and ex>0e^x \gt 0 for every real xx⁠. Basics: exponentials and logarithms

2Chain rule (Theorem 4)

If y=f(g(x))y = f(g(x))⁠, then dydx=f′(g(x))⋅g′(x)\frac{dy}{dx} = f'(g(x))\cdot g'(x)⁠: derivative of the outer function at the inner one, times the derivative of the inner function. Lesson: chain rule

3Product rule (Leibnitz rule)

(uv)′=u′v+uv′(uv)' = u'v + uv' (Section 5.3, rule (2)). Basics: derivative rules

4Derivatives of sin⁡\sin and cos⁡\cos

ddxsin⁡x=cos⁡x\frac{d}{dx}\sin x = \cos x⁠, ddxcos⁡x=−sin⁡x\frac{d}{dx}\cos x = -\sin x (Table 5.3). Basics: trigonometric identities

Solution

  1. Name the function and its domain

    Let y=exsin⁡5xy = e^x\sin 5x⁠. Both exe^x and sin⁡5x\sin 5x are defined and differentiable for all real xx⁠, so the answer holds for every x∈Rx \in \mathbf{R}⁠.

    No logarithm, root or denominator appears, so nothing is excluded.
  2. Chain rule for sin⁡5x\sin 5x and cos⁡5x\cos 5x

    For sin⁡5x\sin 5x⁠: outer function sin⁡\sin⁠, inner function 5x5x with derivative 55⁠. For cos⁡5x\cos 5x⁠: outer cos⁡\cos⁠, same inner function. So

    ddxsin⁡5x=cos⁡5x⋅5=5cos⁡5x,ddxcos⁡5x=−sin⁡5x⋅5=−5sin⁡5x.\begin{aligned} \frac{d}{dx}\sin 5x &= \cos 5x\cdot 5 = 5\cos 5x, \\ \frac{d}{dx}\cos 5x &= -\sin 5x\cdot 5 = -5\sin 5x. \end{aligned}
    These two small results are needed in both rounds of differentiation, so we work them out once. The factor 5 is the derivative of the inner function 5x5x⁠; forgetting it is the classic error.
    Chain rule (Theorem 4, Section 5.3.1). Lesson: chain rule
  3. First derivative: product rule

    Take u=exu = e^x⁠, v=sin⁡5xv = \sin 5x⁠, so u′=exu' = e^x and v′=5cos⁡5xv' = 5\cos 5x (Step 2):

    dydx=exsin⁡5x+ex⋅5cos⁡5x=ex(sin⁡5x+5cos⁡5x).\begin{aligned} \frac{dy}{dx} &= e^x\sin 5x + e^x\cdot 5\cos 5x \\ &= e^x(\sin 5x + 5\cos 5x). \end{aligned}
    yy is a product of exe^x and sin⁡5x\sin 5x⁠. Because ddxex=ex\frac{d}{dx}e^x = e^x⁠, both terms of the product rule contain exe^x⁠, and we take it out as a common factor to keep the next step tidy.
    Product rule (Section 5.3, rule (2)); ddxex=ex\frac{d}{dx}e^x = e^x (Theorem 5).
  4. Second derivative: product rule again

    Now dydx=ex v\frac{dy}{dx} = e^x\,v with v=sin⁡5x+5cos⁡5xv = \sin 5x + 5\cos 5x⁠. By the sum rule and Step 2,

    v′=5cos⁡5x+5(−5sin⁡5x)=5cos⁡5x−25sin⁡5x.\begin{aligned} v' &= 5\cos 5x + 5(-5\sin 5x) \\ &= 5\cos 5x - 25\sin 5x. \end{aligned}

    Product rule with u=exu = e^x⁠:

    d2ydx2=ex v+ex v′=ex(sin⁡5x+5cos⁡5x)+ex(5cos⁡5x−25sin⁡5x).\begin{aligned} \frac{d^2y}{dx^2} &= e^x\,v + e^x\,v' \\ &= e^x(\sin 5x + 5\cos 5x) \\ &\quad + e^x(5\cos 5x - 25\sin 5x). \end{aligned}
    We differentiate the first derivative from Step 3, which is again exe^x times a bracket, so the product rule is the right tool. The bracket's derivative needs the sum rule and the two chain-rule results of Step 2.
    Section 5.7: d2ydx2=ddx(dydx)\frac{d^2y}{dx^2} = \frac{d}{dx}\left(\frac{dy}{dx}\right)⁠. Lesson: second order derivative
  5. Collect like terms and factor

    Inside ex( ⋯ )e^x(\ \cdots)⁠: the cos⁡5x\cos 5x terms give 5+5=105 + 5 = 10⁠, the sin⁡5x\sin 5x terms give 1−25=−241 - 25 = -24⁠. So

    d2ydx2=ex(10cos⁡5x−24sin⁡5x)=2ex(5cos⁡5x−12sin⁡5x).\begin{aligned} \frac{d^2y}{dx^2} &= e^x(10\cos 5x - 24\sin 5x) \\ &= 2e^x(5\cos 5x - 12\sin 5x). \end{aligned}

    So d2ydx2=2ex(5cos⁡5x−12sin⁡5x)\dfrac{d^2y}{dx^2} = 2e^x(5\cos 5x - 12\sin 5x) for every real xx⁠.

    Taking out the common factor 2 from 1010 and −24-24 gives the textbook's form exactly.
    10cos⁡5x−24sin⁡5x=2(5cos⁡5x−12sin⁡5x)10\cos 5x - 24\sin 5x = 2(5\cos 5x - 12\sin 5x)⁠.
Result

For y=exsin⁡5xy = e^x\sin 5x (all real xx⁠):

dydx=ex(sin⁡5x+5cos⁡5x),d2ydx2=2ex(5cos⁡5x−12sin⁡5x).\begin{aligned} \frac{dy}{dx} &= e^x(\sin 5x + 5\cos 5x), \\ \frac{d^2y}{dx^2} &= 2e^x(5\cos 5x - 12\sin 5x). \end{aligned}

(Textbook answer: 2ex(5cos⁡5x−12sin⁡5x)2e^x(5\cos 5x - 12\sin 5x)⁠.)

Check it with numbers

At x=0x = 0⁠: y′′=2(5−0)=10y'' = 2(5 - 0) = 10⁠. A rough independent look: for small xx⁠, ex≈1+xe^x \approx 1 + x⁠, sin⁡5x≈5x\sin 5x \approx 5x and 5cos⁡5x≈55\cos 5x \approx 5 (tangent-line approximations at 00⁠, with errors at most a multiple of x2x^2⁠; a plausibility check only), so y′≈(1+x)(5x+5)≈5+10xy' \approx (1 + x)(5x + 5) \approx 5 + 10x⁠, whose slope is 10.

At x=0.3x = 0.3 (radians): formula y′′≈−31.36061y'' \approx -31.36061⁠; second difference with h=0.001h = 0.001⁠, y(0.301)−2y(0.3)+y(0.299)0.000001\frac{y(0.301) - 2y(0.3) + y(0.299)}{0.000001}⁠, is about −31.36056-31.36056⁠. First derivative: formula ≈1.823904\approx 1.823904⁠, central difference ≈1.823885\approx 1.823885⁠. Both agree to about five significant figures; the small gaps shrink like h2h^2⁠. ✓

Common mistakes
  1. Missing the chain-rule factor: ddxsin⁡5x=5cos⁡5x\frac{d}{dx}\sin 5x = 5\cos 5x⁠, not cos⁡5x\cos 5x⁠; and ddxcos⁡5x=−5sin⁡5x\frac{d}{dx}\cos 5x = -5\sin 5x⁠.
  2. Differentiating only the bracket in the second round. dydx\frac{dy}{dx} is a product; the term ex⋅ve^x\cdot v (from differentiating exe^x⁠) is needed too.
  3. Sign slip: 5×(−5sin⁡5x)=−25sin⁡5x5 \times (-5\sin 5x) = -25\sin 5x⁠.
What to take away
  1. ddx(exg)=ex(g+g′)\frac{d}{dx}\big(e^x g\big) = e^x(g + g')⁠: keep exe^x factored out.
  2. Work out the chain-rule derivatives of sin⁡kx\sin kx⁠, cos⁡kx\cos kx once (kcos⁡kxk\cos kx⁠, −ksin⁡kx-k\sin kx⁠) and reuse them.

Every fact used, and where it comes from

FactUsed inSource
ddxex=ex\frac{d}{dx}e^x = e^xSteps 3, 4Theorem 5(1), Section 5.4 (Lesson: exponential and logarithmic functions)
Chain ruleStep 2Theorem 4, Section 5.3.1 (Lesson: chain rule)
(uv)′=u′v+uv′(uv)' = u'v + uv'⁠; (u+v)′=u′+v′(u + v)' = u' + v'Steps 3, 4Section 5.3, rules (1), (2)
ddxsin⁡x=cos⁡x\frac{d}{dx}\sin x = \cos x⁠, ddxcos⁡x=−sin⁡x\frac{d}{dx}\cos x = -\sin xStep 2Table 5.3 (Basics: derivative rules)
d2ydx2=ddx(dydx)\frac{d^2y}{dx^2} = \frac{d}{dx}\left(\frac{dy}{dx}\right)Step 4Section 5.7 (Lesson: second order derivative)
Found an error, or want more?

Tell us if something on this page is wrong or unclear, or if you would like a fuller explanation, another method or a new feature. Send feedback on this problem →