For example, consider total internal reflection in two dimensions, with the interface between the media lying on the x axis, the normal along y, and the polarization along z. One might expect that for angles leading to total internal reflection, the solution would consist of an incident wave and a reflected wave, with no transmitted wave at all, but there is no such solution that obeys Maxwell's equations. Maxwell's equations in a dielectric medium impose a boundary condition of continuity for the components of the fields E ||, H ||, D y, and B y. For the polarization considered in this example, the conditions on E || and B y are satisfied if the reflected wave has the same amplitude as the incident one, because these components of the incident and reflected waves superimpose destructively. Their H x components, however, superimpose constructively, so there can be no solution without a non-vanishing transmitted wave. The transmitted wave cannot, however, be a sinusoidal wave, since it would then transport energy away from the boundary, but since the incident and reflected waves have equal energy, this would violate conservation of energy. We therefore conclude that the transmitted wave must be a non-vanishing solution to Maxwell's equations that is not a traveling wave, and the only such solutions in a dielectric are those that decay exponentially: evanescent waves.