(a)
Given, $\left( 1 + \frac{1}{y} \right)dy = - e^{x}\ \left( \cos^{2}x - \sin{2x} \right)dx$
On integrating both sides, we get
$y + \log y = - e^{x}\cos^{2}x + \int_{}^{}e^{x}\sin{2x}\ dx - \int_{}^{}e^{x}\sin{2x}\ dx + c$
$\Rightarrow$ $y + \log y = - e^{x}\cos^{2}x + c$
At x=0, y=1
$1 + 0 = - e^{0}\cos 0 + c \Rightarrow c = 2$
$\therefore$ Required solution is
$y + \log y = - e^{x}\cos^{2}x + 2$