An archer wishes to shoot an arrow at a target. The prospective flight path of the arrow is subject to birds flying past at random times, according to a Poisson process with rate $\mu$ per second. To proceed with shooting the arrow, the archer requires a time frame of $b$ seconds without any distraction (i.e. no birds flying through the prospective path for $b$ seconds). He stops as soon as he has shot the arrow. Let $S$ be the total time required to finish. Solve for $E(S)$.
Hint: by parts, $\int \mu x e^{−\mu x} dx = −xe^{−\mu x} − \frac1\mu e^{−\mu x}$
I feel that $S=$ time gone by waiting for the $b$ seconds + $b$ seconds, but I could be wrong. This about as much as I gather from the question.
The answer is supposed to be $\frac{e^{b\mu}-1}{\mu}.$
The archer is waiting for the first interarrival (time between birds) that exceeds b, so we compute the expected amount of time passed waiting for an interrarival of time greater than b, then add b to it to give him time to aim/shoot. The interrarival time is distributed as $exp(\mu)$ and if it is also $<b$ has expectation $\int_0^b x\mu e^{-\mu x}=-be^{-\mu b}+1/\mu-e^{-\mu b}/\mu$, using the hint. The probability that an interrarival time is in fact $<b$ is $\int_b^\infty \mu e^{-\mu b}=1-e^{-\mu b}.$ If we assume the interrarivals are iid, the expected number of them until one fails to be $<b$ is the mean of a geometric random variable with parameter $e^{-\mu b}$, i.e., $e^{\mu b}$. So on average $e^{\mu b}$ interrarivals of average duration $-be^{-\mu b}+1/\mu-e^{-\mu b}/\mu$, for a total duration $-b+e^{\mu b}/\mu-1/\mu$ and adding $b$ gives the indicated answer.