# Interface conditions for electromagnetic fields

Maxwell's equations describe the behaviour of electromagnetic fields; electric field, electric displacement field, and the magnetic field. The differential forms of these equations require that there is always an open neighbourhood around the point to which they are applied, otherwise the vector fields E, D, B and H are not differentiable. In other words, the medium must be continuous. On the interface of two different media with different values for electrical permittivity and magnetic permeability, that condition does not apply.

However the interface conditions for the electromagnetic field vectors can be derived from the integral forms of Maxwell's equations.

## Interface conditions for electric field vectors

### For electric field

${\displaystyle \mathbf {n} _{12}\times (\mathbf {E} _{2}-\mathbf {E} _{1})=\mathbf {0} }$

where:
${\displaystyle \mathbf {n} _{12}}$ is normal vector from medium 1 to medium 2.

Therefore, the tangential component of E is continuous across the interface.

### For electric displacement field

${\displaystyle (\mathbf {D} _{2}-\mathbf {D} _{1})\cdot \mathbf {n} _{12}=\rho _{s}}$

where:
${\displaystyle \mathbf {n} _{12}}$ is normal vector from medium 1 to medium 2.
${\displaystyle \rho _{s}}$ is the surface charge between the media (unbounded charges only, not coming from polarization of the materials).

Therefore, the normal component of D has a step of surface charge on the interface surface. If there is no surface charge on the interface, the normal component of D is continuous.

## Interface conditions for magnetic field vectors

### For magnetic field

${\displaystyle (\mathbf {B} _{2}-\mathbf {B} _{1})\cdot \mathbf {n} _{12}=0}$

where:
${\displaystyle \mathbf {n} _{12}}$ is normal vector from medium 1 to medium 2.

Therefore, the normal component of B is continuous across the interface.

### For magnetic field strength

${\displaystyle \mathbf {n} _{12}\times (\mathbf {H} _{2}-\mathbf {H} _{1})=\mathbf {j} _{s}}$

where:
${\displaystyle \mathbf {n} _{12}}$ is normal vector from medium 1 to medium 2.
${\displaystyle \mathbf {j} _{s}}$ is the surface current density between the two media (unbounded current only, not coming from polarisation of the materials).

Therefore, the tangential component of H is continuous across the surface if there's no surface current present.

## Discussion according to the media beside the interface

### medium 1 & 2 are perfect dielectrics

There are no charges nor surface currents at the interface, and so the tangential component of H and the normal component of D are also continuous.

### medium 1 is a perfect dielectric and medium 2 is a perfect metal

There are charges and surface currents at the interface, and so the tangential component of H and the normal component of D are not continuous.

### Other cases

The cases to be discussed imply real materials (dielectrics and metals), metamaterials, plasmas below and above the resonance frequency..

## Boundary conditions

The boundary conditions must not be confused with the interface conditions. For numerical calculations, the space where the calculation of the electromagnetic field is achieved must be restricted to some boundaries. This is done by assuming conditions at the boundaries, that do not disturb the electromagnetic field, and allows not to calculate the field outside. In some cases, the boundary conditions resume to a simple interface condition. The most usual example is this where the boundary is considered as a perfect metal and is called an electric wall. In some cases, this is more complicated: for example, the boundaries are simulated as phase matching layers that do not resume to a single interface.