The aim of the paper is to investigate the solutions of special inhomogeneous linear functional equations by using spectral analysis in a translation invariant closed linear subspace of additive/multiadditive functions containing the restrictions of the solutions to finitely generated fields. The application of spectral analysis in some related varieties is a new and important trend in the theory of functional equations; especially they have successful applications in case of homogeneous linear functional equations. The foundation of the theory can be found in M. Laczkovich and G. Kiss [2], see also G. Kiss and A. Varga [1]. We are going to adopt the main theoretical tools to solve some inhomogeneous problems due to T. Szostok [5], see also [6] and [7]. They are motivated by quadrature rules of approximate integration.