Solution:
Concept: For a product we use (uv)′=u′v+uv′, with dxdeax=aeax, dxdcosbx=−bsinbx and dxdsinbx=bcosbx. The trick is to replace the sine term, which does not appear in the answer, using the first derivative.
To keep the working short, we write y1 for dxdy and y2 for dx2d2y.
Step 1 — Find the first derivative.
By the product rule on y=eaxcosbx:
y1=aeaxcosbx−beaxsinbx
The first term is a times y, so
y1=ay−beaxsinbx
Step 2 — Express the sine term through y and y1.
We rearrange the last line to get the sine term on its own:
beaxsinbx=ay−y1
Step 3 — Find the second derivative.
We differentiate y1=ay−beaxsinbx; the derivative of eaxsinbx is aeaxsinbx+beaxcosbx:
y2=ay1−b(aeaxsinbx+beaxcosbx)
y2=ay1−a(beaxsinbx)−b2y
Step 4 — Substitute the sine term from Step 2.
We replace beaxsinbx by ay−y1 and simplify:
y2=ay1−a(ay−y1)−b2y
y2=2ay1−(a2+b2)y
Step 5 — Rearrange.
We bring every term to the left side:
y2−2ay1+(a2+b2)y=0
Therefore, dx2d2y−2adxdy+(a2+b2)y=0.