<human>:  Where is the ergodic theorem used?
<bot>: The ergodic theorem is used in the study of dynamical systems. It says that if a system is ergodic, then it will be stable. This means that if you start the system in a certain state, then it will stay in that state. For example, if you start the system in a state of zero, then it will stay in a state of zero.