References: Griffiths, David J. (2007), Introduction to Electrodynamics, 3rd Edition; Pearson Education – Section 7.3.6.

Maxwell’s equations in matter are

We can write these in integral form using the divergence theorem and Stokes’s theorem:

Here, is the free charge enclosed by closed surface , is the free current passing through closed loop and is any surface bounded by .

To work out the boundary conditions at the interface between two media, where medium has permittivity and permeability we can look at the first equation for . Choosing a Gaussian pillbox of infinitesimal thickness straddling the the boundary, and taking the area of the top and bottom of the pillbox as , we have

where is the free charge density at the boundary. Any volume free charge doesn’t contribute since we can make the pillbox as thin as we like (for the same reason, the sides of the pillbox don’t contribute since they become vanishly small). The minus sign occurs because points up on side 1 and down on side 2.

The product where is the component of perpendicular to the surface, so we get

This is the same condition as the one for electrostatics and shows that the perpendicular component of is discontinuous at a boundary if there is free charge at the boundary. The same calculation for gives

so the perpendicular component of is continuous in all cases (unless magnetic monopoles exist!).

For the path integrals, we can choose a rectangular loop with a side length of parallel to the surface and an infinitesimal length perpendicular to the surface. If we orient the loop so its face is perpendicular to the boundary and do the line integral around it, we get for :

In the limit as the area of the loop goes to zero, the integral on the right goes to zero since the area over which the integral is done goes to zero. If we choose the boundary to lie in the plane, we can do this calculation for parallel first to the axis and then to the axis, so we get

or with being the component of parallel to the surface:

For the integral, we can imagine the free current as made up from a surface current that flows along the boundary. This current may not be perpendicular to the face of the loop, but since the face of the loop is normal to the boundary surface, if we have a unit vector normal to the loop’s face we can take the dot product of with this vector to find the component of the surface current density that flows through the loop. Griffiths does this by taking to be a unit normal to the boundary surface, so that is a vector with magnitude normal to the face of the loop. The total current flowing through the loop is then

since we can interchange the dot and cross in a vector triple product.

In the limit of an infinitesimally thin loop, the surface integral goes to zero, so we’re left with

Since this must be true for arbitrary we again get a condition on :

If the media are both linear and homogeneous, then

so

Finally, in cases where there is no surface charge or current at the boundary: