Resumen
The Lagrangian formulation is an extensive tool for the analysis of physical systems. In particular, we have applied the Lagrangian procedureto deduce the dynamics and stability for an electric pendulum system. We have considered two cases; repulsive and attractive electricinteractions which modify the dynamics of the classical simple pendulum model. We contrast both scenarios studying their restrictions,phase trajectories and stability points for this purpose.