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

Example 37: y=3e2x+2e3xy=3e^{2x}+2e^{3x} satisfies y′′−5y′+6y=0y''-5y'+6y=0

ExamplesSecond order derivative · Section 5.7
The question

If y=3e2x+2e3xy = 3e^{2x} + 2e^{3x}⁠, prove that d2ydx2−5dydx+6y=0\dfrac{d^2y}{dx^2} - 5\dfrac{dy}{dx} + 6y = 0⁠.

Exam answer

Here y=3e2x+2e3xy = 3e^{2x} + 2e^{3x}⁠.

Differentiating twice w.r.t. xx⁠,

dydx=6e2x+6e3xd2ydx2=12e2x+18e3x\begin{aligned} \frac{dy}{dx} &= 6e^{2x} + 6e^{3x} \\ \frac{d^2y}{dx^2} &= 12e^{2x} + 18e^{3x} \end{aligned}

Substituting in the LHS,

LHS=d2ydx2−5dydx+6y=(12e2x+18e3x)−5(6e2x+6e3x)+6(3e2x+2e3x)=(12−30+18)e2x+(18−30+12)e3x=0=RHS\begin{aligned} \text{LHS} &= \frac{d^2y}{dx^2} - 5\frac{dy}{dx} + 6y \\ &= (12e^{2x} + 18e^{3x}) \\ &\quad - 5(6e^{2x} + 6e^{3x}) \\ &\quad + 6(3e^{2x} + 2e^{3x}) \\ &= (12 - 30 + 18)e^{2x} \\ &\quad + (18 - 30 + 12)e^{3x} \\ &= 0 = \text{RHS} \end{aligned}

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

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

The one idea this problem is built on

Differentiating ekxe^{kx} just multiplies it by kk⁠. So every derivative of yy is again a combination of e2xe^{2x} and e3xe^{3x}⁠, and the whole expression y′′−5y′+6yy'' - 5y' + 6y collapses to

(number) e2x+(number) e3x.(\text{number})\,e^{2x} + (\text{number})\,e^{3x}.

We only have to check that both numbers are zero.

Given, to show, and the plan
Given
y=3e2x+2e3xy = 3e^{2x} + 2e^{3x}⁠, defined and differentiable for every real xx⁠.
To show
d2ydx2−5dydx+6y=0\dfrac{d^2y}{dx^2} - 5\dfrac{dy}{dx} + 6y = 0 for every real xx⁠.
Plan
Find dydx\frac{dy}{dx} and d2ydx2\frac{d^2y}{dx^2} with the chain rule, substitute all three into the left side, and collect the coefficients of e2xe^{2x} and of e3xe^{3x}⁠.

Basics you need

1Derivative of ekxe^{kx}

ddxex=ex\frac{d}{dx}e^x = e^x (Theorem 5, Section 5.4). By the chain rule with inner function u=kxu = kx (kk a constant):

ddxekx=ekx⋅ddx(kx)=k ekx.\frac{d}{dx}e^{kx} = e^{kx}\cdot\frac{d}{dx}(kx) = k\,e^{kx}.

Basics: exponentials and logarithms

2Second 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

3Collecting like terms

p e2x+q e2x=(p+q) e2xp\,e^{2x} + q\,e^{2x} = (p+q)\,e^{2x}⁠. Terms in e2xe^{2x} and terms in e3xe^{3x} are collected separately. Basics: solving for dy/dx

Solution

  1. First derivative

    Use Basic 1 with k=2k = 2 and k=3k = 3⁠:

    dydx=3⋅2e2x+2⋅3e3x=6e2x+6e3x.\begin{aligned} \frac{dy}{dx} &= 3\cdot 2e^{2x} + 2\cdot 3e^{3x} \\ &= 6e^{2x} + 6e^{3x}. \end{aligned}
    Each term is a constant times ekxe^{kx}⁠. The constant stays in front and the chain rule brings down the factor kk⁠. The book also writes this as 6(e2x+e3x)6(e^{2x} + e^{3x})⁠.
    ddxekx=k ekx\frac{d}{dx}e^{kx} = k\,e^{kx} (Basic 1). Lesson: exponential and logarithmic functions
  2. Second derivative

    Differentiate dydx\frac{dy}{dx} again:

    d2ydx2=6⋅2e2x+6⋅3e3x=12e2x+18e3x.\begin{aligned} \frac{d^2y}{dx^2} &= 6\cdot 2e^{2x} + 6\cdot 3e^{3x} \\ &= 12e^{2x} + 18e^{3x}. \end{aligned}
    The same rule once more: each e2xe^{2x} gains a factor 2 and each e3xe^{3x} a factor 3. (The book writes this as 6(2e2x+3e3x)6(2e^{2x} + 3e^{3x})⁠.)
    Section 5.7: the second derivative is the derivative of dydx\frac{dy}{dx}⁠. Lesson: second order derivative
  3. Substitute into the left side

    d2ydx2−5dydx+6y=(12e2x+18e3x)−5(6e2x+6e3x)+6(3e2x+2e3x).\begin{aligned} &\frac{d^2y}{dx^2} - 5\frac{dy}{dx} + 6y \\ &= (12e^{2x} + 18e^{3x}) - 5(6e^{2x} + 6e^{3x}) \\ &\quad + 6(3e^{2x} + 2e^{3x}). \end{aligned}
    The statement to prove is about this particular combination, so we replace each of d2ydx2\frac{d^2y}{dx^2}⁠, dydx\frac{dy}{dx}⁠, yy by what we found. Brackets keep the multiplication by −5-5 and 66 correct.
    Substitution: an expression may be replaced by anything equal to it.
  4. Collect the coefficients

    Expand and collect the e2xe^{2x} terms and the e3xe^{3x} terms separately (Basic 3):

    e2x: 12−30+18=0,e3x: 18−30+12=0.\begin{aligned} e^{2x}&:\ 12 - 30 + 18 = 0, \\ e^{3x}&:\ 18 - 30 + 12 = 0. \end{aligned}

    So the left side equals 0⋅e2x+0⋅e3x=00\cdot e^{2x} + 0\cdot e^{3x} = 0 for every real xx⁠. Hence d2ydx2−5dydx+6y=0\dfrac{d^2y}{dx^2} - 5\dfrac{dy}{dx} + 6y = 0.

    Both coefficients vanish, so the identity holds at every xx⁠, not just at chosen points. The book reaches the same zero by writing the three pieces as 6(2e2x+3e3x)6(2e^{2x}+3e^{3x})⁠, −30(e2x+e3x)-30(e^{2x}+e^{3x}) and 6(3e2x+2e3x)6(3e^{2x}+2e^{3x})⁠.
    −5×6=−30-5 \times 6 = -30 and 6×3=186 \times 3 = 18⁠, 6×2=126 \times 2 = 12⁠.
  5. Why the numbers 2 and 3 make this work

    For a single term y=ekxy = e^{kx} we have y′=kekxy' = k e^{kx} and y′′=k2ekxy'' = k^2 e^{kx}⁠, so

    y′′−5y′+6y=(k2−5k+6) ekx=(k−2)(k−3) ekx.\begin{aligned} y'' - 5y' + 6y &= (k^2 - 5k + 6)\,e^{kx} \\ &= (k-2)(k-3)\,e^{kx}. \end{aligned}

    This is zero exactly when k=2k = 2 or k=3k = 3⁠, because ekxe^{kx} is never zero. And since the left side is built from yy and its derivatives only by adding and multiplying by constants, any combination C1e2x+C2e3xC_1 e^{2x} + C_2 e^{3x} also gives zero; the example is the case C1=3C_1 = 3⁠, C2=2C_2 = 2⁠.

    This explains the "coincidence" in Step 4: the coefficient of e2xe^{2x} was 3(22−5⋅2+6)=3⋅03(2^2 - 5\cdot 2 + 6) = 3\cdot 0 and that of e3xe^{3x} was 2(32−5⋅3+6)=2⋅02(3^2 - 5\cdot 3 + 6) = 2\cdot 0⁠. It is a first glimpse of how such differential equations are solved (Chapter 9).
    ekx>0e^{kx} \gt 0 for every real xx⁠. Basics: exponentials and logarithms
Result

dydx=6e2x+6e3x\dfrac{dy}{dx} = 6e^{2x} + 6e^{3x}⁠, d2ydx2=12e2x+18e3x\dfrac{d^2y}{dx^2} = 12e^{2x} + 18e^{3x}⁠, and

d2ydx2−5dydx+6y=0\frac{d^2y}{dx^2} - 5\frac{dy}{dx} + 6y = 0

for every real xx⁠.

Check it with numbers

At x=0x = 0⁠: y=3+2=5y = 3 + 2 = 5⁠, dydx=6+6=12\frac{dy}{dx} = 6 + 6 = 12⁠, d2ydx2=12+18=30\frac{d^2y}{dx^2} = 12 + 18 = 30⁠. Then 30−5(12)+6(5)=30−60+30=030 - 5(12) + 6(5) = 30 - 60 + 30 = 0⁠.

At x=0.5x = 0.5⁠: y≈17.1182236y \approx 17.1182236⁠, dydx≈43.1998254\frac{dy}{dx} \approx 43.1998254⁠, d2ydx2≈113.2897852\frac{d^2y}{dx^2} \approx 113.2897852⁠. Then

113.2897852−215.9991270+102.7093418=0.0000000.\begin{aligned} &113.2897852 - 215.9991270 \\ &\quad + 102.7093418 = 0.0000000. \end{aligned}

The derivative values themselves can be checked from yy alone: with h=0.001h = 0.001⁠, y(0.501)−y(0.499)0.002≈43.19988\frac{y(0.501) - y(0.499)}{0.002} \approx 43.19988⁠, and the second difference y(0.501)−2y(0.5)+y(0.499)0.000001\frac{y(0.501) - 2y(0.5) + y(0.499)}{0.000001} is about 113.290113.290⁠.

Common mistakes
  1. Forgetting the chain-rule factor. ddxe2x=2e2x\frac{d}{dx}e^{2x} = 2e^{2x}⁠, not e2xe^{2x}⁠.
  2. Sign slips when multiplying by −5-5⁠. Keep dydx\frac{dy}{dx} in brackets: −5(6e2x+6e3x)=−30e2x−30e3x-5(6e^{2x} + 6e^{3x}) = -30e^{2x} - 30e^{3x}⁠.
  3. Mixing the two exponentials. e2xe^{2x} and e3xe^{3x} are different functions; their coefficients must be collected separately.
What to take away
  1. Derivatives of ekxe^{kx} are multiples of ekxe^{kx}⁠: y′=kekxy' = k e^{kx}⁠, y′′=k2ekxy'' = k^2 e^{kx}⁠.
  2. To prove a relation such as y′′−5y′+6y=0y'' - 5y' + 6y = 0⁠, compute each derivative, substitute, and collect coefficients.
  3. ekxe^{kx} satisfies y′′−5y′+6y=0y'' - 5y' + 6y = 0 exactly when k2−5k+6=0k^2 - 5k + 6 = 0⁠, that is k=2k = 2 or 33⁠. Exercise 5.7, Question 14 (y=Aemx+Benxy = Ae^{mx} + Be^{nx}⁠) is the general version of this example.

Every fact used, and where it comes from

FactUsed inSource
ddxex=ex\frac{d}{dx}e^x = e^xSteps 1, 2, 5Theorem 5, Section 5.4 (Lesson: exponential and logarithmic functions)
Chain rule, giving ddxekx=kekx\frac{d}{dx}e^{kx} = k e^{kx}Steps 1, 2, 5Theorem 4, Section 5.3.1 (as in Example 26(i))
d2ydx2=ddx(dydx)\frac{d^2y}{dx^2} = \frac{d}{dx}\left(\frac{dy}{dx}\right)Step 2Section 5.7 (Lesson: second order derivative)
k2−5k+6=(k−2)(k−3)k^2 - 5k + 6 = (k-2)(k-3)⁠; ekx≠0e^{kx} \neq 0Step 5Factorisation; Section 5.4
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 →