Gradient, divergence, and curlAll three of these operators are different ways of representing the rate of change of a function of several variables. GradientThe gradient is an operator that takes a scalar valued function of several variables and gives a vector. It is one way of encoding the rate of change of a scalar function with respect to several variables. Formally, , and For example, consider the function . The gradient of would be: PropertiesGeometrically, the gradient points in the direction of fastest increase of a function, and its magnitude is the rate of change in that direction. If you follow the gradient of a function you will eventually either get to a local maximum or infinity. DivergenceThe divergence represents how quickly a vector valued function is “spreading out”. Note that unlike the gradient, divergence operates on a vector valued function function and gives us a scalar . It is formally defined as follows: Properties. CurlThe curl is similar to divergence except instead of the dot product it is the cross product: The curl represents how quickly and in what direction a vector field is “spinning”. Since the curl is a vector, it points along the axis of rotation following the right hand rule. Note that the curl is sometimes defined in in addition to , even though the cross product is only defined in . This is because in 2 dimensions the axis of rotation is always either out of the page (counter-clockwise) or into the page (clockwise), which we can represent simply as a signed scalar (positive and negative, respectively; following the right hand rule). We evaluate the curl of a 2D vector field on the plane like so: Note that we just take the component, since the axis of rotation is always . Properties. |