Skip to content
Miscellaneous Examples · Example 19

Q.Verify that the function y=c1eaxcos⁡bx+c2eaxsin⁡bxy = c_1 e^{ax}\cos bx + c_2 e^{ax}\sin bx, where c1,c2c_1, c_2 are arbitrary constants is a solution of the differential equation d2ydx2−2adydx+(a2+b2)y=0\frac{d^2y}{dx^2} - 2a\frac{dy}{dx} + (a^2 + b^2)y = 0.

Uttarakhand UbseTextbookSubjective· 3mImportance★★★★★est
46% · 102/222 Questions
✓ Free question

The given function is a linear combination of eaxcos⁡bxe^{ax}\cos bx and eaxsin⁡bxe^{ax}\sin bx, which are the two independent solutions of the second-order linear ODE with constant coefficients whose characteristic equation has complex roots a±iba \pm ib. Substituting directly verifies that it satisfies the differential equation identically.

We need to check that y=c1eaxcos⁡bx+c2eaxsin⁡bxy = c_1 e^{ax}\cos bx + c_2 e^{ax}\sin bx satisfies

d2ydx2−2adydx+(a2+b2)y=0.\frac{d^2y}{dx^2} - 2a\frac{dy}{dx} + (a^2 + b^2)y = 0.

The key idea: this is a linear homogeneous ODE with constant coefficients. For such equations, if we can show that both eaxcos⁡bxe^{ax}\cos bx and eaxsin⁡bxe^{ax}\sin bx individually satisfy the ODE, then any linear combination (like the given yy) will also satisfy it, by linearity. So we can either verify the combination directly, or verify each basis function separately. We'll do the direct substitution — it's cleaner and avoids repeating work.


  1. First derivative Differentiate yy term by term. For eaxcos⁡bxe^{ax}\cos bx, use the product rule:

ddx(eaxcos⁡bx)=aeaxcos⁡bx−beaxsin⁡bx.\frac{d}{dx}\big(e^{ax}\cos bx\big) = a e^{ax}\cos bx - b e^{ax}\sin bx.

For eaxsin⁡bxe^{ax}\sin bx:

ddx(eaxsin⁡bx)=aeaxsin⁡bx+beaxcos⁡bx.\frac{d}{dx}\big(e^{ax}\sin bx\big) = a e^{ax}\sin bx + b e^{ax}\cos bx.

So

dydx=c1(aeaxcos⁡bx−beaxsin⁡bx)+c2(aeaxsin⁡bx+beaxcos⁡bx).\frac{dy}{dx} = c_1\big(a e^{ax}\cos bx - b e^{ax}\sin bx\big) + c_2\big(a e^{ax}\sin bx + b e^{ax}\cos bx\big).

  1. Second derivative Differentiate again. For the c1c_1 part:

ddx(aeaxcos⁡bx−beaxsin⁡bx)=a(aeaxcos⁡bx−beaxsin⁡bx)−b(aeaxsin⁡bx+beaxcos⁡bx).\frac{d}{dx}\big(a e^{ax}\cos bx - b e^{ax}\sin bx\big) = a(a e^{ax}\cos bx - b e^{ax}\sin bx) - b(a e^{ax}\sin bx + b e^{ax}\cos bx).

Simplify:

=(a2−b2)eaxcos⁡bx−2ab eaxsin⁡bx.= (a^2 - b^2)e^{ax}\cos bx - 2ab\, e^{ax}\sin bx.

For the c2c_2 part:

ddx(aeaxsin⁡bx+beaxcos⁡bx)=a(aeaxsin⁡bx+beaxcos⁡bx)+b(aeaxcos⁡bx−beaxsin⁡bx).\frac{d}{dx}\big(a e^{ax}\sin bx + b e^{ax}\cos bx\big) = a(a e^{ax}\sin bx + b e^{ax}\cos bx) + b(a e^{ax}\cos bx - b e^{ax}\sin bx).

Simplify:

=(a2−b2)eaxsin⁡bx+2ab eaxcos⁡bx.= (a^2 - b^2)e^{ax}\sin bx + 2ab\, e^{ax}\cos bx.

Hence

d2ydx2=c1[(a2−b2)eaxcos⁡bx−2ab eaxsin⁡bx]+c2[(a2−b2)eaxsin⁡bx+2ab eaxcos⁡bx].\frac{d^2y}{dx^2} = c_1\big[(a^2 - b^2)e^{ax}\cos bx - 2ab\, e^{ax}\sin bx\big] + c_2\big[(a^2 - b^2)e^{ax}\sin bx + 2ab\, e^{ax}\cos bx\big].

  1. Form the combination We need to compute:

d2ydx2−2adydx+(a2+b2)y.\frac{d^2y}{dx^2} - 2a\frac{dy}{dx} + (a^2 + b^2)y.

It's efficient to group terms by the two basis functions. Let’s collect coefficients of eaxcos⁡bxe^{ax}\cos bx and eaxsin⁡bxe^{ax}\sin bx separately.

Coefficient of eaxcos⁡bxe^{ax}\cos bx (from all three pieces):

  • From d2ydx2\frac{d^2y}{dx^2}: c1(a2−b2)+c2(2ab)c_1(a^2 - b^2) + c_2(2ab)
  • From −2adydx-2a\frac{dy}{dx}: −2a[c1a+c2b]-2a\big[c_1 a + c_2 b\big] (since dydx\frac{dy}{dx} has c1ac_1 a and c2bc_2 b multiplying cos⁡bx\cos bx)
  • From (a2+b2)y(a^2+b^2)y: (a2+b2)c1(a^2+b^2)c_1

Sum these:

c1(a2−b2)+c2(2ab)−2a(c1a+c2b)+(a2+b2)c1.c_1(a^2 - b^2) + c_2(2ab) - 2a(c_1 a + c_2 b) + (a^2+b^2)c_1.

Simplify c1c_1 terms: a2−b2−2a2+a2+b2=0a^2 - b^2 - 2a^2 + a^2 + b^2 = 0.

Simplify c2c_2 terms: 2ab−2ab=02ab - 2ab = 0.

So the coefficient of eaxcos⁡bxe^{ax}\cos bx is 00.

Coefficient of eaxsin⁡bxe^{ax}\sin bx:

  • From d2ydx2\frac{d^2y}{dx^2}: c1(−2ab)+c2(a2−b2)c_1(-2ab) + c_2(a^2 - b^2)
  • From −2adydx-2a\frac{dy}{dx}: −2a[−c1b+c2a]-2a\big[-c_1 b + c_2 a\big] (since dydx\frac{dy}{dx} has −c1b-c_1 b and c2ac_2 a multiplying sin⁡bx\sin bx)
  • From (a2+b2)y(a^2+b^2)y: (a2+b2)c2(a^2+b^2)c_2

Sum:

−2ab c1+c2(a2−b2)−2a(−c1b+c2a)+(a2+b2)c2.-2ab\,c_1 + c_2(a^2 - b^2) - 2a(-c_1 b + c_2 a) + (a^2+b^2)c_2.

Simplify c1c_1 terms: −2ab+2ab=0-2ab + 2ab = 0.

Simplify c2c_2 terms: a2−b2−2a2+a2+b2=0a^2 - b^2 - 2a^2 + a^2 + b^2 = 0.

Again zero.

  1. Conclusion Both coefficients vanish, so the entire expression equals 00 for all xx, regardless of c1c_1 and c2c_2. Hence yy is indeed a solution.
Tip

This is exactly the general solution of the ODE when the characteristic equation r2−2ar+(a2+b2)=0r^2 - 2a r + (a^2+b^2)=0 has roots r=a±ibr = a \pm ib. The verification above is essentially checking that these complex exponentials satisfy the ODE — but doing it with real functions avoids complex arithmetic.

Watch out

A common mistake is to forget the cross terms when differentiating eaxsin⁡bxe^{ax}\sin bx — the derivative of sin⁡bx\sin bx gives bcos⁡bxb\cos bx, which contributes to the cos⁡\cos coefficient, and vice versa. Always track both basis functions carefully.

✓Final answer

The given function satisfies the differential equation for all a,ba, b and arbitrary constants c1,c2c_1, c_2.

Unlock everything free for 14 days

  • Full step-by-step solutions
  • Concept-first explanations
  • Methods, shortcuts & mistakes
  • PYQ mapping + timed mock tests

Full access for 14 days. No credit card required.