A method is presented for solving elliptic and parabolic differential equations derived from the Maxwell equations. An approximate solution of partial differential equations is presented on a finite element grid by using functional analytical elements with the aid of Ritz-Galerkin method. Starting from the theoretical bases the authors reduce two plane problems to a system of linear equation which is easy to solve by computer.