Integral involving Heaviside function

733 Views Asked by At

For a class of Physics I need to compute the following integral:

$$\int_{-L}^{L}\mathrm{d}q\dfrac{\theta(\epsilon-bq)}{\sqrt{(\epsilon-bq)}}$$

and I truly have no idea on how to proceed. Note $\theta(\cdot)$ is Heaviside step function. Also, is there any systematic approach to solving this kind of integrals involving the $\theta$ function?

2

There are 2 best solutions below

2
On BEST ANSWER

Since Heaviside function is a piecewise function: $$ \theta(x)=\begin{cases}1&x\ge0,\\0&x<0.\end{cases} $$ and composition of functions involving piecewise functions is also a piecewise function, you can rewrite you integral as (assuming $b>0$): $$ \int_{-L}^{L}dq\begin{cases}0&\epsilon-bq <0,\\\frac1{\sqrt{\epsilon-bq}}&\epsilon-bq \ge 0,\end{cases} = \int_{-L}^{L}dq\begin{cases}0&q > \epsilon/b,\\\frac1{\sqrt{\epsilon-bq}}&q \le\epsilon/b.\end{cases} $$ Finally integral of piecewise function can be seen as a sum of integrals of each piece. If the integral is definite, you also want to keep in mind that the transition of piecewise function may happen outside the bounds of integration: $$ \begin{cases} \int_{-L}^{L} \frac{dq}{\sqrt{\epsilon-bq}} &L \le\epsilon/b, \\ \int_{-L}^{\epsilon/b} \frac{dq}{\sqrt{\epsilon-bq}}+\int_{\epsilon/b}^L 0dq &-L \le\epsilon/b<L,\\ \int_{-L}^L 0\,dq & \epsilon/b<-L \end{cases} $$

6
On

I will assume that all quantities $L,b,\epsilon$ are $>0$.

Moreover, as we have

$$\color{red}{0 <} \ \epsilon-bL \leq \epsilon-bq \leq \epsilon+bL \tag{1}$$

The inequality in red being compulsory for the square root to be defined.

Make the change of variables $r=\epsilon-bq$ giving $dr=-b dq \iff \mathrm{d}q=-\frac{1}{b}\mathrm{d}r$, then

$$\int_{q=-L}^{q=L}\mathrm{d}q\dfrac{\theta(\epsilon-bq)}{\sqrt{(\epsilon-bq)}}=\int_{r=\epsilon+bL}^{r=\epsilon-bL}-\frac{1}{b}\mathrm{d}r\dfrac{\theta(r)}{\sqrt{r}}=\frac{1}{b}\int_{r=\epsilon-bL}^{r=\epsilon+bL}\mathrm{d}r\dfrac{\theta(r)}{\sqrt{r}}=\frac{1}{b}\int_{r=\epsilon-bL}^{r=\epsilon+bL}\mathrm{d}r\dfrac{1}{\sqrt{r}}=$$

(we keep the same bounds due to (1)).

$$=\frac{1}{b}[2\sqrt{r}]_{r=\epsilon-bL}^{r=\epsilon+bL}$$

Now, it is easy to find the result.