From the given equation, form a differential equation representing the given family of curves by eliminating arbitrary constants a and b.
y=ex(acosx+bsinx)
Given, y=ex(acosx+bsinx) ...(i)
On dividing both sides by ex, e−xy=(acosx+bsinx) ...(ii)
On differentiating both sides w.r.t. x, we get
e−xy′+ye−x(−1)=−asinx+bcosx
[Using product rule , ddx(u.v)=uddxv+vddxu]
Again differentaiting both sides w.r.t. x, we get
e−xddx(y′)+y′ddx(e−x)−[yddxe−x+e−xddxy]=−acosx−bsinx⇒e−xy′′−2y′e−x+ye−x=−(ye−x) [using Eq.(ii)]⇒e−x[y′′−2y′+2y]=0⇒y′′−2y′+2y=0 (dividing by e−x)
which is the required differential equation.