ABSTRACT

In this chapter, we present the differentiation of vector and scalar fields (divergence, gradient, and curl), and line and surface integrals involving vectors. We use Python to plot scalar and vector fields, compute the gradient, divergence and curl of functions, and to evaluate line and surface integrals, and the flux through a surface. We describe conservative fields and conclude the chapter with a presentation of Green's theorem, the divergence theorem, and Stokes' theorem and how to use Python to demonstrate them.