As of 1 April 2026, the PSJD database will become an archive and will no longer accept new data. Current publications from Polish scientific journals are available through the Library of Science: https://bibliotekanauki.pl
We study magnetic effects in a trilayer formed of magnetic layers separated by a spacer with a parabolic potential profile. The focus is on mechanisms of indirect magnetic interactions within the spacer. We show existence of magnetic oscillations and novel type of magnetoelectric effect.