This is the given:
One can extend the definition of the average value of a continuous function $f(x)$ to the interval $[a,\infty)$ of infinite length as follows: $$f_{\text{ave}}=\lim_{t\rightarrow\infty}\frac1{t-a}\int_a^tf(x)dx$$
Suppose that $f(x)$ is an arbitrary continuous function. Assume that $f(x) \ge 0$ in the interval $[a,\infty)$ and that the integral $\int_0^{\infty}f(x) \ dx$ is divergent. Prove that $f_{ave}=\lim_{x\rightarrow\infty}f(x)$ if this limit exists.
My work:
$$f_{\text{ave}}=\lim_{t\rightarrow\infty}\frac1{t-a}\int_a^tf(x)dx = \lim_{t\rightarrow\infty}\frac{F(t)-F(a)}{t-a},~~~ \text{F is an antiderivative of}\ f$$
After this, I'm sort of stuck.
What I'm thinking is: $f(x) \ge 0 \Rightarrow F(x)$ is increasing. So we can continue like so:
$$ = \lim_{t\rightarrow\infty}(f(t)-f(a))$$
by L'Hospital. It seems close but there's still $f(a)$ which leads me to believe that I made a wrong assumption/calculation somewhere. Can someone point me to the right direction?