From $y=c_{1} e^{x} \cos x+c_{2} e^{x} \sin x$ we find $y^{\prime}=c_{1} e^{x}(-\sin x+\cos x)+c_{2} e^{x}(\cos x+\sin x).$
(a) We have $y(0)=c_{1}=1, y^{\prime}(0)=c_{1}+c_{2}=0$ so that $c_{1}=1$ and $c_{2}=-1 .$ The solution is $y=e^{x} \cos x-e^{x} \sin x.$
(b) We have $y(0)=c_{1}=1, y(\pi)=-e^{\pi}=-1,$ which is not possible.
(c) We have $y(0)=c_{1}=1, y(\pi / 2)=c_{2} e^{\pi / 2}=1$ so that $c_{1}=1$ and $c_{2}=e^{-\pi / 2} .$ The solution is $y=$ $e^{x} \cos x+e^{-\pi / 2} e^{x} \sin x$
(d) We have $y(0)=c_{1}=0, y(\pi)=c_{2} e^{\pi} \sin \pi=0$ so that $c_{1}=0$ and $c_{2}$ is arbitrary. Solutions are $y=c_{2} e^{x} \sin x$ for any real numbers $c_{2}.$