perpich08 said:
Im am not sure what the integral of the heaviside function is?
Use integration by parts and the fact that [itex]h'(x - x_{0}) = \delta(x - x_{0})[/itex]:
[tex]
\int_{a}^{b}{h(x - x_{0}) \, dx} = \left. x \, h(x - x_{0}) \right|^{b}_{a} - \int_{a}^{b}{x \, \delta(x - x_{0}) \, dx}[/tex]
Next, the integral with the Dirac delta-function can be evaluated using its property:
[tex]
\int_{a}^{b}{x \, \delta(x - x_{0}) \, dx} = x_{0} \, h(x_{0} - a) \, h(b - x_{0})[/tex]
where the product of the two Heaviside functions ensures that [itex]x_{0}[/itex] is inside the segment [itex]x_{0} \in \left[a, b \right][/itex]. The integrated-out part is:
[tex]
b \, h(b - x_{0}) - a \, h(a - x_{0})[/tex]
Combining everything together gives:
[tex]
\int_{a}^{b}{h(x - x_{0}) \, dx} = b \, h(b - x_{0}) - a \, h(a - x_{0}) - x_{0} \, h(x_{0} - a) \, h(b - x_{0})[/tex]