Using Duhamel's Method to solve the problem
$$ \begin{align}\begin{cases} c_{t} +v c_{x} = f(x,t)& x \in \mathbb{R} , t> 0 \\ c(x,0) = 0 \end{cases} \end{align} \tag{1}$$
Find an explicit formula when $f(x,t) = e^{-t}\sin(x)$
Attempt
The solution for the general problem
$$ \begin{align}\begin{cases} c_{t} +v c_{x} = f(x,t)& x \in \mathbb{R} , t> 0 \\ c(x,0) = g(x) \end{cases} \end{align} \tag{2}$$
is given by
$$ c(x,t) = g(x-vt) + \int_{0}^{t} f(x-v(t-s),s) ds \tag{3}$$
then we should have something like this
$$ f(x-v(t-s),s) = e^{-s}\sin(x-v(t-s)) \tag{4}$$
$$ c(x,t) = \int_{0}^{t} e^{-s}\sin(x-v(t-s)) ds \tag{5}$$
Is this right?