Mixed Distribution Function
$$ F(t) = \begin{cases} \hfill 0 \hfill & t < 0 \\ \hfill p+(1-p)(1-e^{-yt}) & t \geq 0 \end{cases} $$
How can i find the average waiting time of an arrival and average waiting time for an arrival given that a wait is required.
For part 1: I did this but was struck as the equation is tending to infinity
$$ E(t) = \int_{t=0}^\infty t[p+(1-p)(1-e^{-yt})] \, dt $$
But this value is tending to infinity when we do integration by part
$$ = \int_{t=0}^\infty tp \, dt + \cdots $$
The first value is infinity?? Kindly give me some suggestions on this first part. I also don't know what to do with the second one as in my knowledge should be same
Any help is appreciated. Thank you