Say I have a variable $x$ that decays over time $t$ as follows:
$$ \frac{dx}{dt} = \frac{-x}{\tau}. $$
Solving for $x$, I get
\begin{align} x &= \frac{-1}{\tau}\int x dt\\ &=e^{-t/\tau}. \end{align}
My question is so simple I'm embarrassed to be asking it:
Can someone walk me through why
$$x=\frac{-1}{\tau}\int x dt$$
implies
$$x=e^{-t/\tau}?$$
I know this is correct, and know I've thought through the solution in the past, but now have no idea how to think through this correctly.
I find that using the Laplace transform is the easiest way for me to solve this. (That, I now remember, is what I used in the past.)
\begin{align} \frac{dx}{dt} &= \frac{-x}{\tau}\\ -x(0) + sx_L &= \frac{-x_L}{\tau}\\ x_L(s+1/\tau)&=x(0)\\ x_L &= \frac{x(0)}{s + 1/\tau}\\ x&=x(0)e^{-t/\tau}. \end{align}
Note the presence of the initial value of $x$ in the final answer, something I had overlooked in my question.