Skip to main content
Engineering LibreTexts

4.5: Gradient

  • Page ID
  • \( \newcommand{\vecs}[1]{\overset { \scriptstyle \rightharpoonup} {\mathbf{#1}} } \)

    \( \newcommand{\vecd}[1]{\overset{-\!-\!\rightharpoonup}{\vphantom{a}\smash {#1}}} \)

    \( \newcommand{\id}{\mathrm{id}}\) \( \newcommand{\Span}{\mathrm{span}}\)

    ( \newcommand{\kernel}{\mathrm{null}\,}\) \( \newcommand{\range}{\mathrm{range}\,}\)

    \( \newcommand{\RealPart}{\mathrm{Re}}\) \( \newcommand{\ImaginaryPart}{\mathrm{Im}}\)

    \( \newcommand{\Argument}{\mathrm{Arg}}\) \( \newcommand{\norm}[1]{\| #1 \|}\)

    \( \newcommand{\inner}[2]{\langle #1, #2 \rangle}\)

    \( \newcommand{\Span}{\mathrm{span}}\)

    \( \newcommand{\id}{\mathrm{id}}\)

    \( \newcommand{\Span}{\mathrm{span}}\)

    \( \newcommand{\kernel}{\mathrm{null}\,}\)

    \( \newcommand{\range}{\mathrm{range}\,}\)

    \( \newcommand{\RealPart}{\mathrm{Re}}\)

    \( \newcommand{\ImaginaryPart}{\mathrm{Im}}\)

    \( \newcommand{\Argument}{\mathrm{Arg}}\)

    \( \newcommand{\norm}[1]{\| #1 \|}\)

    \( \newcommand{\inner}[2]{\langle #1, #2 \rangle}\)

    \( \newcommand{\Span}{\mathrm{span}}\) \( \newcommand{\AA}{\unicode[.8,0]{x212B}}\)

    \( \newcommand{\vectorA}[1]{\vec{#1}}      % arrow\)

    \( \newcommand{\vectorAt}[1]{\vec{\text{#1}}}      % arrow\)

    \( \newcommand{\vectorB}[1]{\overset { \scriptstyle \rightharpoonup} {\mathbf{#1}} } \)

    \( \newcommand{\vectorC}[1]{\textbf{#1}} \)

    \( \newcommand{\vectorD}[1]{\overrightarrow{#1}} \)

    \( \newcommand{\vectorDt}[1]{\overrightarrow{\text{#1}}} \)

    \( \newcommand{\vectE}[1]{\overset{-\!-\!\rightharpoonup}{\vphantom{a}\smash{\mathbf {#1}}}} \)

    \( \newcommand{\vecs}[1]{\overset { \scriptstyle \rightharpoonup} {\mathbf{#1}} } \)

    \( \newcommand{\vecd}[1]{\overset{-\!-\!\rightharpoonup}{\vphantom{a}\smash {#1}}} \)

    The gradient operator is an important and useful tool in electromagnetic theory. Here’s the main idea:

    The gradient of a scalar field is a vector that points in the direction in which the field is most rapidly increasing, with the scalar part equal to the rate of change.

    A particularly important application of the gradient is that it relates the electric field intensity \({\bf E}({\bf r})\) to the electric potential field \(V({\bf r})\). This is apparent from a review of Section 2.2; see in particular, the battery-charged capacitor example. In that example, it is demonstrated that:

    • The direction of \({\bf E}({\bf r})\) is the direction in which \(V({\bf r})\) decreases most quickly, and
    • The scalar part of \({\bf E}({\bf r})\) is the rate of change of \(V({\bf r})\) in that direction. Note that this is also implied by the units, since \(V({\bf r})\) has units of V whereas \({\bf E}({\bf r})\) has units of V/m.

    The gradient is the mathematical operation that relates the vector field \({\bf E}({\bf r})\) to the scalar field \(V({\bf r})\) and is indicated by the symbol “\(\nabla\)” as follows: \[{\bf E}({\bf r}) = -\nabla V({\bf r}) \nonumber \] or, with the understanding that we are interested in the gradient as a function of position \({\bf r}\), simply \[{\bf E} = -\nabla V \nonumber \]

    At this point we should note that the gradient is a very general concept, and that we have merely identified one application of the gradient above. In electromagnetics there are many situations in which we seek the gradient \(\nabla f\) of some scalar field \(f({\bf r})\). Furthermore, we find that other differential operators that are important in electromagnetics can be interpreted in terms of the gradient operator \(\nabla\). These include divergence (Section 4.6), curl (Section 4.8), and the Laplacian (Section 4.10).

    In the Cartesian system:

    \[\nabla f = \hat{\bf x}\frac{\partial f}{\partial x} + \hat{\bf y}\frac{\partial f}{\partial y} + \hat{\bf z}\frac{\partial f}{\partial z} \label{eDelCar} \]

    Example \(\PageIndex{1}\): Gradient of a ramp function.

    Find the gradient of \(f=ax\) (a “ramp” having slope \(a\) along the \(x\) direction).


    Here, \(\partial f/\partial x = a\) and \(\partial f/\partial y = \partial f/\partial z = 0\). Therefore \(\nabla f = \hat{\bf x}a\). Note that \(\nabla f\) points in the direction in which \(f\) most rapidly increases, and has magnitude equal to the slope of \(f\) in that direction.

    The gradient operator in the cylindrical and spherical systems is given in Appendix B2.

    This page titled 4.5: Gradient is shared under a CC BY-SA 4.0 license and was authored, remixed, and/or curated by Steven W. Ellingson (Virginia Tech Libraries' Open Education Initiative) via source content that was edited to the style and standards of the LibreTexts platform; a detailed edit history is available upon request.