Solution
= Solution
Write $I=\int e^x\sin x\,dx$ and $J=\int e^x\cos x\,dx$. Two applications of <integration by parts>, first taking the <sine> and then the <cosine> as the differentiated factor, give
$$
\boxed{I=e^x\sin x-J+C_1,\qquad J=e^x\cos x+I+C_2.}
$$
Thus $I+J=e^x\sin x$ and $J-I=e^x\cos x$, in each case up to an arbitrary constant of <integration>. Keeping that freedom avoids identifying independently chosen <antiderivatives> too rigidly.