If $f'(t)=x'(t)\ \theta(T-t)$, What is the accurate formulation of $f(t)$? (antiderivative over distributions/special_functions)
Maybe the question look simple, by I need to understand Why it is as so, not just to know the proper form.
Intro__________________________
If I define a function as: $f(t) = x(t)\ \theta(T-t)+x(T)\ \theta(t-T)$
with $x(t)$ an arbitrary analytic function (for now, just for avoid complications with singular points), $T$ an arbitrary constant time (w.l.g., assume from now on it is such as $0<T<\infty$), and $\theta(t)$ is the Heaviside step function.
Then, by differentiation I should have: $$\begin{array}{r c l} f'(t) & = & x'(t)\ \theta(T-t)+x(t)\ \theta'(T-t)+\underbrace{\require{cancel}\cancel{0\ \theta(t-T)}}_{x(T)\text{ is a constant for }dt} +x(T)\ \theta'(t-T) \\ & = & x'(t)\ \theta(T-t)+\underbrace{x(t)\ \delta(T-t)\ (-1)}_{\text{but }\delta(-x)\ =\ \delta(x) \text{ and also } x(t)\delta(t-a)\ =\ x(a)\delta(t-a)} + x(T)\ \delta(t-T) \\ & = & x'(t)\ \theta(T-t)+\underbrace{-x(T)\ \delta(t-T) + x(T)\ \delta(t-T)}_{=\ 0}\\ & = & x'(t)\ \theta(T-t) \end{array}$$ with $\delta(t)$ the Dirac's delta function.
This is why I believe the mentioned $f(t)$ is the proper form.
Question________________
But in the other way of working it out, if I have that $f'(t) = x'(t)\ \theta(T-t)$ and I apply the indefinite integral in both sides I will have: $$ f(t) = \underbrace{\displaystyle{\int} x'(t)\ \theta(T-t)\ dt}_{\text{function of }x(t)} + \mathit{C}$$ with $\mathit{C}$ the integration constant:
- How you make appear the term $x(T)\theta(T-t)$ from the integration constant $\mathit{C}$?
- Which operations you have to make to make appear $f(t)$ from $f'(t)$ applying the indefinite integral operation (step-by-step)? and why "those" steps?
- Following the same logic, if I have that $g''(t)=x''(t)\ \theta(T-t)$, then what is the proper form of $g(t)$?... my guess is $g(t) = x(t)\ \theta(T-t)+\left(x(T)+x'(T)(t-T)\right)\ \theta(t-T)$, Does it means that it is required that $x'(T)\equiv 0$? (since $g(t)\neq f(t)$)