An analytical approach to chaos in Lorenz-like systems. A class of dynamical equations