# Average of 2 functions

## Homework Statement

My question pertains to taking the average over a particular period that is composed of 2 functions. For example, from [0, 5ms] the function is defined by 1-e^(-t/1ms)and then by e^(-t/1ms) from [5ms, 10ms].

Will the average from 0-->10 simply be the following:
$$\bar{f}=\frac{1}{5}\int^{5 ms}_{0}{1-e^{-t/1 ms}}+\frac{1}{5}\int ^{5}_{0}{e^{-t/1 ms}}$$

$$\bar{f}=\frac{1}{10}\int^{5 ms}_{0}{1-e^{-t/1 ms}}+\frac{1}{10}\int ^{5}_{0}{e^{-t/1 ms}}$$