An attempt is made to find the boundary tangential components of potential magnetic fields without constructing solutions in the entire domain. In our procedure, the magnetic energy is expressed as a functional of tangential and normal magnetic fields at the boundary and is minimized by the variational principle. This paper reports a preliminary study on two dimensional potential fields above a plane.