I was trying to solve this problem, in which we have
$q(t)=\begin{cases} 0,\ t\lt 0 \\ \sin(t),\ t\ge0 \end{cases}$
$\therefore\ q(t)=u(t-0)\cdot\sin(t)=u(t)\cdot\sin(t)$
$u(t)$ is the Heaviside function applied in $t=0$.
Our goal is to determine the tension given by the source.
Using Kirchhoff's Laws, I get:
$ V=L\cdot\dfrac{d^2q}{dt^2}+R\cdot\dfrac{dq}{dt}+\dfrac{q}{C} $
$ V=\dfrac{d^2q}{dt^2}+3\dfrac{dq}{dt}+5q $
Given that we know the equation for $q(t)$, I calculated $q'(t)$ and $q''(t)$ and substituted them in my equation for $V$, which results in:
$ V=u(t)\cdot(4\sin(t)+3\cos(t))+\delta(t)\cdot(3\sin(t)+2\cos(t))+\delta'(t)\cdot\sin(t) $
And then I got stuck. What do I do with $ \delta(t)\ \mbox{and}\ \delta'(t) $? What are their values? I know that $ \delta(t) $ is zero for every value of $t$ except for $t=0$, but I have no clue how $ \delta'(t) $ works.
Can you help me?
The answer is $ V=u(t)\cdot(3\cos(t)+4\sin(t))+2\delta(t) $, according to my professor, but how do I get there from what I got from my calculations?

Informally, you can think about $\delta(t)$ and $u(t)$ as things that make sense only under the integral sign. If you have $\delta(0)$ or $u(0)$ in your answer, that means something went wrong, because an integral shouldn't depend on how you define $u(t)$ at one point.
You can write $$\int_{-\infty}^\infty \{\delta(t) f(t)\} \phi(t) dt = f(0)\phi(0) = \int_{-\infty}^\infty \{\delta(t) f(0)\} \phi(t) dt.$$ This means $f(t)\delta(t) = f(0)\delta(t)$, because the results of integration will be the same for any $\phi$.
Assuming that $\phi$ is zero at $\pm\infty$ and applying integration by parts, you can write $$\int_{-\infty}^\infty \delta'(t) \phi(t) dt = -\int_{-\infty}^\infty \delta(t) \phi'(t) dt = -\phi'(0),$$ and, from this, derive $f(t) \delta'(t)$ = $f(0) \delta'(t) - f'(0) \delta(t)$. In particular, $\delta'(t) \sin t = -\delta(t)$. This has a rigorous meaning in terms of distributions.
But the rule for $\delta'(t)$ isn't actually necessary, because $$(u(t) \sin t)' = \delta(t) \sin t + u(t) \cos t = u(t) \cos t, \\ (u(t) \sin t)'' = (u(t) \cos t)' = \delta(t) \cos t - u(t) \sin t = \delta(t) - u(t) \sin t, \\ (u(t) \sin t)'' + (3 u(t) \sin t)' + 5 u(t) \sin t = \\ u(t)(3 \cos t + 4 \sin t) + \delta(t).$$ This differs from your answer by $-\delta(t)$.