I'm trying to calculate the Lyapunov exponent for a simple dynamical system, but I think I have misunderstood the equation. My calculations constantly lead to zero, although I'm varying initial conditions and other parameters and the system definitely is not stable but chaotic when I'm plotting it. I can't seem to figure out what's wrong, especially since when I look at the equation and only realize that the Lyapunov exponent always should be zero! Obviously my understanding is lacking!
The equation I have used is
$$\lambda= \lim_{n → \infty} \frac{1}{n} \sum\limits^{n-1}_{i=0} \log \left |f'(x_i) \right|$$
When $n\rightarrow \infty$ I think that the Lyapunov exponent, $\lambda$, should be zero because of the $1/n$ factor, so what am I not understanding? I'm also feeling a bit confused about what the iterator variable, $i$, is. Is it the time step? But shouldn't the Lyapunov exponent compare trajectories to each other? How are these included in the equation? I feel like I have not understood the definition of the Lyapunov exponent, so I hope someone can explain a little!