The gradient of a scalar field produces a vector field that points in the direction of steepest ascent.
For a scalar function $$f(x,y)$$, the gradient is defined as:
This vector points in the direction of the steepest increase of the function.
In electrical fields, the gradient of the electric potential gives us the electric field: $$\mathbf{E} = -\nabla V$$.
In neural networks, gradient descent minimizes the loss function by moving opposite to the gradient.
Divergence measures how much a vector field “spreads out” from a point.
For a vector field $$\mathbf{F} = (P, Q)$$, divergence is defined as:
Positive divergence indicates a source; negative divergence indicates a sink.
Gauss's law in electromagnetics and fluid expansion in fluid dynamics both use divergence.
Curl measures the rotation or circulation of a vector field around a point.
For a 2D vector field $$\mathbf{F} = (P, Q)$$, the curl (in the $$\mathbf{k}$$ direction) is defined as:
The magnitude indicates the intensity of rotation, while the sign shows the direction.
Faraday's law and fluid vorticity use curl to quantify rotational behavior.
Electric fields can be represented as vector fields. Recall:
This simulation shows the electric field produced by a configurable number of point charges. Positive charges are shown in red; negative in blue.