This article deals with the modeling of dynamical system in state-space representation. The state-space representation is a mathematical model of a physical system with the input, output and state variables composed by first-order differential equations. The state-space representation gives a suitable and compact way to model and analyze systems with multiple inputs and outputs. The article described the methodology for production of state of simple models of mechanical systems.