"where we denote the derivative with respect to $x$ of the coefficients $c^E, e, \\epsilon^S$ by placing it after the comma. We can rewrite equations (5) and (6) in a form where all the discretized variables only appear no more than once on each side of the equation:\n",
where it was used that the electric field is minus the gradient of the potential $\phi$
and that all quantities, including constants and coefficients, are dependent on $x$.
We can now rewrite equations (3) and (4) using the finite difference approximation, where we use the central difference formula. For the first derivative this is given by
where we denote the derivative with respect to $x$ of the coefficients $c^E, e, \epsilon^S$ by placing it after the comma. We can rewrite equations (5) and (6) in a form where all the discretized variables only appear no more than once on each side of the equation: