In an inhomogeneous medium, the spatial and temporal variations of ε = ε(
r,
t) and μ = μ(
r,
t) are not zero. That is they are no longer
local constant. Instead of using ε = ε(
r,
t) and μ = μ(
r,
t), it is advantageous to use the two derived
laboratory functions namely the
resistance function and the
velocity function :\begin{align} \text{ Velocity function:} \, v ({\mathbf r} , t) & = \frac{1}{\sqrt{\epsilon ({\mathbf r} , t) \mu ({\mathbf r} , t)}} \\ \text{Resistance function:} \, h ({\mathbf r} , t) & = \sqrt{\frac{\mu ({\mathbf r} , t)}{\epsilon ({\mathbf r} , t)}}\,. \end{align} In terms of these functions: :\varepsilon = \frac{1}{v h}\,,\quad \mu = \frac{h}{v}. These functions occur in the matrix representation through their
logarithmic derivatives; :\begin{align} {\mathbf u} ({\mathbf r} , t) & = \frac{1}{2 v ({\mathbf r} , t)} {\mathbf \nabla} v ({\mathbf r} , t) = \frac{1}{2} {\mathbf \nabla} \left\{\ln v ({\mathbf r} , t) \right\} = - \frac{1}{2} {\mathbf \nabla} \left\{\ln n ({\mathbf r} , t) \right\} \\ {\mathbf w} ({\mathbf r} , t) &= \frac{1}{2 h ({\mathbf r} , t)} {\mathbf \nabla} h ({\mathbf r} , t) = \frac{1}{2} {\mathbf \nabla} \left\{\ln h ({\mathbf r} , t) \right\}\, \end{align} where :n ({\mathbf r} , t) = \frac{c}{v ({\mathbf r} , t)} is the
refractive index of the medium. The following matrices naturally arise in the exact matrix representation of the Maxwell's equation in a medium :\begin{align} {\mathbf \Sigma} = \left[ \begin{array}{cc} {\mathbf \sigma} & {\mathbf 0} \\ {\mathbf 0} & {\mathbf \sigma} \end{array} \right]\, \qquad {\mathbf \alpha} = \left[ \begin{array}{cc} {\mathbf 0} & {\mathbf \sigma} \\ {\mathbf \sigma} & {\mathbf 0} \end{array} \right]\, \qquad {\mathbf I} = \left[ \begin{array}{cc} {\mathbf 1} & {\mathbf 0} \\ {\mathbf 0} & {\mathbf 1} \end{array} \right]\, \end{align} where
Σ are the
Dirac spin matrices and
α are the matrices used in the
Dirac equation, and
σ is the triplet of the
Pauli matrices : {\mathbf \sigma} = (\sigma_x , \sigma_y , \sigma_z) = \left[ \begin{pmatrix} 0 & 1 \\ 1 & 0 \end{pmatrix} , \begin{pmatrix} 0 & - {\rm i} \\ {\rm i} & 0 \end{pmatrix} , \begin{pmatrix} 1 & 0 \\ 0 & -1 \end{pmatrix} \right] Finally, the matrix representation is :\begin{align} & \frac{\partial }{\partial t} \left[ \begin{array}{cc} {\mathbf I} & {\mathbf 0} \\ {\mathbf 0} & {\mathbf I} \end{array} \right] \left[ \begin{array}{cc} \Psi^{+} \\ \Psi^{-} \end{array} \right] - \frac{\dot{v} ({\mathbf r} , t)}{2 v ({\mathbf r} , t)} \left[ \begin{array}{cc} {\mathbf I} & {\mathbf 0} \\ {\mathbf 0} & {\mathbf I} \end{array} \right] \left[ \begin{array}{cc} \Psi^{+} \\ \Psi^{-} \end{array} \right] + \frac{\dot{h} ({\mathbf r} , t)}{2 h ({\mathbf r} , t)} \left[ \begin{array}{cc} {\mathbf 0} & {\rm i} \beta \alpha_y \\ {\rm i} \beta \alpha_y & {\mathbf 0} \end{array} \right] \left[ \begin{array}{cc} \Psi^{+} \\ \Psi^{-} \end{array} \right] \\ & = - v ({\mathbf r} , t) \left[ \begin{array}{ccc} \left\{ {\mathbf M} \cdot {\mathbf \nabla} + {\mathbf \Sigma} \cdot {\mathbf u} \right\} & & - {\rm i} \beta \left({\mathbf \Sigma} \cdot {\mathbf w}\right) \alpha_y \\ - {\rm i} \beta \left({\mathbf \Sigma}^{*} \cdot {\mathbf w}\right) \alpha_y & \left\{ {\mathbf M}^{*} \cdot {\mathbf \nabla} + {\mathbf \Sigma}^{*} \cdot {\mathbf u} \right\} \end{array} \right] \left[ \begin{array}{cc} \Psi^{+} \\ \Psi^{-} \end{array} \right] - \left[ \begin{array}{cc} {\mathbf I} & {\mathbf 0} \\ {\mathbf 0} & {\mathbf I} \end{array} \right] \left[ \begin{array}{c} W^{+} \\ W^{-} \end{array} \right]\, \end{align} The above representation contains thirteen 8 × 8 matrices. Ten of these are
Hermitian. The exceptional ones are the ones that contain the three components of
w(
r,
t), the logarithmic gradient of the resistance function. These three matrices, for the resistance function are
antihermitian. The Maxwell's equations have been expressed in a matrix form for a medium with varying permittivity ε = ε(
r,
t) and permeability μ = μ(
r,
t), in presence of sources. This representation uses a single matrix equation, instead of a
pair of matrix equations. In this representation, using 8 × 8 matrices, it has been possible to separate the dependence of the coupling between the upper components (Ψ+) and the lower components (Ψ−) through the two laboratory functions. Moreover, the exact matrix representation has an algebraic structure very similar to the Dirac equation. == Applications ==