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

Exercise 5.7 · Q11: y=5cos⁡x−3sin⁡xy=5\cos x-3\sin x satisfies y′′+y=0y''+y=0

Exercise 5.7Second order derivative · Section 5.7
The question

11. If y=5cos⁡x−3sin⁡xy = 5\cos x - 3\sin x⁠, prove that d2ydx2+y=0\dfrac{d^2y}{dx^2} + y = 0⁠.

Exam answer

Here y=5cos⁡x−3sin⁡xy = 5\cos x - 3\sin x⁠.

dydx=−5sin⁡x−3cos⁡xd2ydx2=−5cos⁡x+3sin⁡x=−(5cos⁡x−3sin⁡x)=−y\begin{aligned} \frac{dy}{dx} &= -5\sin x - 3\cos x \\ \frac{d^2y}{dx^2} &= -5\cos x + 3\sin x \\ &= -(5\cos x - 3\sin x) \\ &= -y \end{aligned}

∴ d2ydx2+y=−y+y=0\therefore\ \dfrac{d^2y}{dx^2} + y = -y + y = 0⁠. Hence proved.

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

The one idea this problem is built on

Differentiating sin⁡\sin or cos⁡\cos twice brings back the same function with a minus sign:

d2dx2cos⁡x=−cos⁡x,d2dx2sin⁡x=−sin⁡x.\begin{aligned} \frac{d^2}{dx^2}\cos x &= -\cos x, \\ \frac{d^2}{dx^2}\sin x &= -\sin x. \end{aligned}

So any combination of cos⁡x\cos x and sin⁡x\sin x satisfies d2ydx2=−y\frac{d^2y}{dx^2} = -y⁠. This is Example 36 of the book with A=−3A = -3 and B=5B = 5⁠.

Given, to show, and the plan
Given
y=5cos⁡x−3sin⁡xy = 5\cos x - 3\sin x⁠, defined and differentiable (any number of times) for every real xx⁠.
To show
d2ydx2+y=0\dfrac{d^2y}{dx^2} + y = 0 for every real xx⁠.
Plan
(1) Find dydx\frac{dy}{dx}⁠. (2) Find d2ydx2\frac{d^2y}{dx^2}⁠. (3) Compute the left side d2ydx2+y\frac{d^2y}{dx^2} + y in full and see that it is 00⁠, the right side.

Basics you need

1Derivatives of sin⁡x\sin x and cos⁡x\cos x

ddxsin⁡x=cos⁡x\frac{d}{dx}\sin x = \cos x and ddxcos⁡x=−sin⁡x\frac{d}{dx}\cos x = -\sin x⁠, for every real xx (Table 5.3). Basics: derivative rules

2Sum rule and constant multiples

(u±v)′=u′±v′(u \pm v)' = u' \pm v' (Section 5.3, rule (1)) and (cu)′=c u′(cu)' = c\,u' for a constant cc (Class XI, Limits and Derivatives). So we differentiate term by term and keep the numbers 5 and 3 in front.

3Second order derivative (Section 5.7)

d2ydx2=ddx(dydx)\frac{d^2y}{dx^2} = \frac{d}{dx}\left(\frac{dy}{dx}\right)⁠. Lesson: second order derivative

Solution

  1. First derivative

    Term by term, using Basic 1:

    dydx=5(−sin⁡x)−3cos⁡x=−5sin⁡x−3cos⁡x.\begin{aligned} \frac{dy}{dx} &= 5(-\sin x) - 3\cos x \\ &= -5\sin x - 3\cos x. \end{aligned}
    The constants 5 and 3 simply stay as factors. The derivative of cos⁡x\cos x carries a minus sign, so the first term becomes −5sin⁡x-5\sin x⁠; the second term, −3sin⁡x-3\sin x⁠, becomes −3cos⁡x-3\cos x⁠.
    Table 5.3; Section 5.3, rule (1). Basics: derivative rules
  2. Second derivative

    Differentiate dydx\frac{dy}{dx} again, term by term:

    d2ydx2=−5cos⁡x−3(−sin⁡x)=−5cos⁡x+3sin⁡x.\begin{aligned} \frac{d^2y}{dx^2} &= -5\cos x - 3(-\sin x) \\ &= -5\cos x + 3\sin x. \end{aligned}
    −5sin⁡x-5\sin x gives −5cos⁡x-5\cos x⁠. −3cos⁡x-3\cos x gives −3⋅(−sin⁡x)=+3sin⁡x-3\cdot(-\sin x) = +3\sin x⁠: two minus signs make a plus.
    Section 5.7: the second derivative is the derivative of dydx\frac{dy}{dx}⁠. Lesson: second order derivative
  3. Compare with yy

    Take out a factor −1-1⁠:

    d2ydx2=−(5cos⁡x−3sin⁡x)=−y.\frac{d^2y}{dx^2} = -(5\cos x - 3\sin x) = -y.
    The bracket is exactly the given yy⁠. Each term has turned into its own negative after two differentiations, which is the idea of this problem.
  4. Compute the left side in full

    d2ydx2+y=(−5cos⁡x+3sin⁡x)+(5cos⁡x−3sin⁡x)=(−5+5)cos⁡x+(3−3)sin⁡x=0.\begin{aligned} \frac{d^2y}{dx^2} + y &= (-5\cos x + 3\sin x) \\ &\quad + (5\cos x - 3\sin x) \\ &= (-5 + 5)\cos x + (3 - 3)\sin x \\ &= 0. \end{aligned}

    The right side of the required relation is 00⁠, so d2ydx2+y=0\dfrac{d^2y}{dx^2} + y = 0 for every real xx⁠.

    To prove an identity we work out the left side completely and reach the right side. Collecting the cos⁡x\cos x terms and the sin⁡x\sin x terms separately shows each coefficient is exactly zero, so the result holds at every xx⁠, not just at some.
Result

dydx=−5sin⁡x−3cos⁡x\dfrac{dy}{dx} = -5\sin x - 3\cos x and d2ydx2=−5cos⁡x+3sin⁡x=−y\dfrac{d^2y}{dx^2} = -5\cos x + 3\sin x = -y⁠, so

d2ydx2+y=0for every real x.\frac{d^2y}{dx^2} + y = 0 \quad\text{for every real } x.

(The answer key gives no entry for this "prove that" question.)

Check it with numbers

Take x=1x = 1 (radian): cos⁡1≈0.5403023\cos 1 \approx 0.5403023⁠, sin⁡1≈0.8414710\sin 1 \approx 0.8414710⁠. Then

y≈2.701512−2.524413≈0.177099,d2ydx2≈−2.701512+2.524413≈−0.177099,\begin{aligned} y &\approx 2.701512 - 2.524413 \approx 0.177099, \\ \frac{d^2y}{dx^2} &\approx -2.701512 + 2.524413 \\ &\approx -0.177099, \end{aligned}

(using 5cos⁡1≈2.7015125\cos 1 \approx 2.701512 and 3sin⁡1≈2.5244133\sin 1 \approx 2.524413⁠), and the sum is 00⁠. From values of yy alone, with h=0.001h = 0.001⁠, the second difference y(1.001)−2y(1)+y(0.999)h2\frac{y(1.001) - 2y(1) + y(0.999)}{h^2} is about −0.177099-0.177099⁠, matching.

Common mistakes
  1. Sign of cos⁡\cos's derivative. ddxcos⁡x=−sin⁡x\frac{d}{dx}\cos x = -\sin x⁠, not sin⁡x\sin x⁠. With that slip the second derivative comes out as +y+y and the proof "fails".
  2. Losing the minus in front of 3sin⁡x3\sin x⁠. It is part of the term: ddx(−3sin⁡x)=−3cos⁡x\frac{d}{dx}(-3\sin x) = -3\cos x⁠.
  3. Checking at one point only. A numerical check is not a proof; the algebra in Step 4 shows the coefficients cancel for all xx⁠.
What to take away
  1. For every pair of constants A,BA, B⁠, y=Asin⁡x+Bcos⁡xy = A\sin x + B\cos x satisfies y′′+y=0y'' + y = 0 (Example 36); this question is A=−3A = -3⁠, B=5B = 5⁠.
  2. To "prove that" a relation holds, compute each derivative, substitute, and collect like terms until the left side visibly equals the right side.

Every fact used, and where it comes from

FactUsed inSource
ddxsin⁡x=cos⁡x\frac{d}{dx}\sin x = \cos x⁠, ddxcos⁡x=−sin⁡x\frac{d}{dx}\cos x = -\sin xSteps 1, 2Table 5.3, Section 5.3 (Basics: derivative rules)
(u±v)′=u′±v′(u \pm v)' = u' \pm v'⁠; (cu)′=cu′(cu)' = cu'Steps 1, 2Section 5.3, rule (1) (sum); Class XI, Limits and Derivatives (constant multiple)
d2ydx2=ddx(dydx)\frac{d^2y}{dx^2} = \frac{d}{dx}\left(\frac{dy}{dx}\right)Step 2Section 5.7 (Lesson: second order derivative)
Asin⁡x+Bcos⁡xA\sin x + B\cos x satisfies y′′+y=0y'' + y = 0Idea, take-awayExample 36, Section 5.7
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 →