In this study, a method was considered for analyzing the phenomena of interaction of an electromagnet with various objects, provided that the dimensions of its ferromagnetic core are introduced as a variable. The analysis was performed by using Maxwell’s equations with the solution of a differential equation of the first degree in multiple variables with respect to the electric field, taking into account the Nabble vector operator. As a result of the study, the resulting function was obtained, previously dependent on the vector of magnetic induction and, in particular, on inductance, as a result, dependent on multiple variables and direct indicators of the electromagnet, its position and the probe object in space. And also, the conclusion is given, the dependence between the magnitude of the interaction force and the variable dimensions of the core is established.