There were produced gravitational waves during the cosmological inflation epoch in the evolution of the Universe. First step for obtaining the spectrum is to do the perturbation of action, which composes from Einstein-Hilbert action and the action for scalar field.