I'm trying to show that $\int_{-\infty}^x\delta(a)da= \theta(x)$ for $x\neq0$, where $\delta(x)$ is the dirac delta function, and $\theta(x)$ is the step function , which equal to $0$ for $x\leq0$ and $1$ when $x>0$.
By intuition, this integral makes sense to me. However, to evaluate this integral, we will need to find the anti-derivative of $\delta(x)$, and I saw in some definitions this is just $\theta(x)$. How can I evaluate this integral? Also, how can we take care of the case where $x = 0$? Thanks!