The main purpose of this thesis is to describe the inhomogeneous phase of a layered system. The phase is the result of the competition between attractive interactions and the long range Coulomb repulsive force (LRCF). In order to achieve this, two different strategies are applied. The first is within the …