I plotted a function and a certain horizontal line as a benchmark.
After time t = 2 my function goes below the line, which is ok.
But I need to show when the AVERAGE of this function goes below the line. For example, it crosses the line in 2 hours but on average this rate will go below the line only after 5 hours. How do I plot this?
Currently, my code looks approximately like this
Plot[{1000, function[t]}, {t, 0, 20}, PlotStyle -> {{Red}, {Thickness[0.01]}}, AxesLabel -> {"t", "Name"}, PlotRange -> All]