y11 + a2y = cos ax
It's complementary equation is:
m2 + a2 = 0
⇒ m = \(\pm ac\)
\(\therefore\) C. F. = C1 cos ax + C2 sin ax
P.I. = \(\frac{1}{D^2+a^2}cos\,ax=\frac{x}{2a}sin\,ax\)
\(\therefore\) Complete solution of given differential equation is
y = C.F. + P.I.
= C1 cos ax + C2 sin ax + x/2a sin ax