Modeling, stability, synchronization, and chaos and their applications to complex systems