The paper discusses the analysis of mass transfer during the growth of epitaxial layers through magnetron sputtering, focusing on methods to reduce mismatch-induced stress in the resulting films. An analytical framework is introduced, allowing for the consideration of nonlinear processes and variation over time and space. The study aims to improve the properties of heterostructures utilized in solid-state electronics.