Flux is either of two separate simple and ubiquitous concepts throughout physics and applied mathematics. Within a discipline, the term is generally used consistently, but care must be taken when comparing phenomena from different disciplines. Both concepts have mathematical rigor, enabling comparison of the underlying math when the terminology is unclear. For transport phenomena, flux is a vector quantity, describing the magnitude and direction of the flow of a substance or property. In electromagnetism, flux is a scalar quantity, defined as the surface integral of the component of a vector field perpendicular to the surface at each point. As will be made clear, the easiest way to relate the two concepts is that the surface integral of a flux according to the first definition is a flux according to the second definition.
Terminology
The word flux comes from Latin: fluxus means "flow", and fluere is "to flow". As fluxion, this term was introduced into differential calculus by Isaac Newton.
One could argue, based on the work of James Clerk Maxwell, that the transport definition precedes the way the term is used in electromagnetism. The specific quote from Maxwell is:
In the case of fluxes, we have to take the integral, over a surface, of the flux through every element of the surface. The result of this operation is called the surface integral of the flux. It represents the quantity which passes through the surface.
— James Clerk Maxwell
According to the first definition, flux may be a single vector, or flux may be a vector field / function of position. In the latter case flux can readily be integrated over a surface. By contrast, according to the second definition, flux is the integral over a surface; it makes no sense to integrate a seconddefinition flux for one would be integrating over a surface twice. Thus, Maxwell's quote only makes sense if "flux" is being used according to the first definition (and furthermore is a vector field rather than single vector). This is ironic because Maxwell was one of the major developers of what we now call "electric flux" and "magnetic flux" according to the second definition. Their names in accordance with the quote (and first definition) would be "surface integral of electric flux" and "surface integral of magnetic flux", in which case "electric flux" would instead be defined as "electric field" and "magnetic flux" defined as "magnetic field". This implies that Maxwell conceived as these fields as flows/fluxes of some sort.
Given a flux according to the second definition, the corresponding flux density, if that term is used, refers to its derivative along the surface that was integrated. By the Fundamental theorem of calculus, the corresponding flux density is a flux according to the first definition. Given a current such as electric currentcharge per time, current density would also be a flux according to the first definitioncharge per time per area. Due to the conflicting definitions of flux, and the interchangeability of flux, flow, and current in nontechnical English, all of the terms used in this paragraph are sometimes used interchangeably and ambiguously. Concrete fluxes in the rest of this article will be used in accordance to their broad acceptance in the literature, regardless of which definition of flux the term corresponds to.
Flux as flow rate per unit area
In transport phenomena (heat transfer, mass transfer and fluid dynamics), flux is defined as the rate of flow of a property per unit area, which has the dimensions [quantity]·[time]^{−1}·[area]^{−1}. The area is of the surface the property is flowing "through" or "across". For example, the magnitude of a river's current, i.e. the amount of water that flows through a crosssection of the river each second, or the amount of sunlight that lands on a patch of ground each second, are kinds of flux.
General mathematical definition (transport)
Here are 3 definitions in increasing order of complexity. Each is a special case of the following. In all cases the frequent symbol j, (or J) is used for flux, q for the physical quantity that flows, t for time, and A for area. These identifiers will be written in bold when and only when they are vectors.
First, flux as a (single) scalar:
where:
In this case the surface in which flux is being measured is fixed, and has area A. The surface is assumed to be flat, and the flow is assumed to be everywhere constant with respect to position, and perpendicular to the surface.
Second, flux as a scalar field defined along a surface, i.e. a function of points on the surface:
As before, the surface is assumed to be flat, and the flow is assumed to be everywhere perpendicular to it. However the flow need not be constant. q is now a function of p, a point on the surface, and A, an area. Rather than measure the total flow through the surface, q measures the flow through the disk with area A centered at p along the surface.
Finally, flux as a vector field:
In this case, there is no fixed surface we are measuring over. q is a function of a point, an area, and a direction (given by a unit vector, ), and measures the flow through the disk of area A perpendicular to that unit vector. I is defined picking the unit vector that maximizes the flow around the point, because the true flow is maximized across the disk that is perpendicular to it. The unit vector thus uniquely maximizes the function when it points in the "true direction" of the flow. [Strictly speaking, this is an abuse of notation because the "arg max" cannot directly compare vectors; we take the vector with the biggest norm instead.]
Properties
These direct definition, especially the last, are rather unwieldy. For example, the argmax construction is artificial from the perspective of empirical measurements, when with a Weathervane or similar one can easily deduce the direction of flux at a point. Rather than defining the vector flux directly, it is often more intuitive to state some properties about it. Furthermore, from these properties the flux can uniquely be determined anyway.
If the flux j passes through the area at an angle θ to the area normal , then
where · is the dot product of the unit vectors. This is, the component of flux passing through the surface (i.e. normal to it) is j cos θ, while the component of flux passing tangential to the area is j sin θ, but there is no flux actually passing through the area in the tangential direction. The only component of flux passing normal to the area is the cosine component.
For vector flux, the surface integral of j over a surface S, gives the proper flowing per unit of time through the surface.
A (and its infinitesimal) is the vector area, combination of the magnitude of the area through which the property passes through, A, and a unit vector normal to the area, . The relation is . Unlike in the second set of equations, the surface here need not be flat.
Finally, we can integrate again over the time duration t_{1} to t_{2}, getting the total amount of the property flowing through the surface in that time (t_{2} − t_{1}):
Transport fluxes
Eight of the most common forms of flux from the transport phenomena literature are defined as follows:
 Momentum flux, the rate of transfer of momentum across a unit area (N·s·m^{−2}·s^{−1}). (Newton's law of viscosity)
 Heat flux, the rate of heat flow across a unit area (J·m^{−2}·s^{−1}). (Fourier's law of conduction) (This definition of heat flux fits Maxwell's original definition.)
 Diffusion flux, the rate of movement of molecules across a unit area (mol·m^{−2}·s^{−1}). (Fick's law of diffusion)
 Volumetric flux, the rate of volume flow across a unit area (m^{3}·m^{−2}·s^{−1}). (Darcy's law of groundwater flow)
 Mass flux, the rate of mass flow across a unit area (kg·m^{−2}·s^{−1}). (Either an alternate form of Fick's law that includes the molecular mass, or an alternate form of Darcy's law that includes the density.)
 Radiative flux, the amount of energy transferred in the form of photons at a certain distance from the source per unit area per second (J·m^{−2}·s^{−1}). Used in astronomy to determine the magnitude and spectral class of a star. Also acts as a generalization of heat flux, which is equal to the radiative flux when restricted to the infrared spectrum.
 Energy flux, the rate of transfer of energy through a unit area (J·m^{−2}·s^{−1}). The radiative flux and heat flux are specific cases of energy flux.
 Particle flux, the rate of transfer of particles through a unit area ([number of particles] m^{−2}·s^{−1})
These fluxes are vectors at each point in space, and have a definite magnitude and direction. Also, one can take the divergence of any of these fluxes to determine the accumulation rate of the quantity in a control volume around a given point in space. For incompressible flow, the divergence of the volume flux is zero.
Chemical diffusion
As mentioned above, chemical molar flux of a component A in an isothermal, isobaric system is defined in Fick's law of diffusion as:
where the nabla symbol ∇ denotes the gradient operator, D_{AB} is the diffusion coefficient (m^{2}·s^{−1}) of component A diffusing through component B, c_{A} is the concentration (mol/m^{3}) of component A.
This flux has units of mol·m^{−2}·s^{−1}, and fits Maxwell's original definition of flux.
For dilute gases, kinetic molecular theory relates the diffusion coefficient D to the particle density n = N/V, the molecular mass m, the collision cross section , and the absolute temperature T by
where the second factor is the mean free path and the square root (with Boltzmann's constant k) is the mean velocity of the particles.
In turbulent flows, the transport by eddy motion can be expressed as a grossly increased diffusion coefficient.
Quantum mechanics
In quantum mechanics, particles of mass m in the quantum state ψ(r, t) have a probability density defined as
So the probability of finding a particle in a differential volume element d^{3}r is
Then the number of particles passing perpendicularly through unit area of a crosssection per unit time is the probability flux;
This is sometimes referred to as the probability current or current density, or probability flux density.
Flux as a surface integral
General mathematical definition (surface integral)
As a mathematical concept, flux is represented by the surface integral of a vector field,
where F is a vector field, and dA is the vector area of the surface A, directed as the surface normal.
The surface has to be orientable, i.e. two sides can be distinguished: the surface does not fold back onto itself. Also, the surface has to be actually oriented, i.e. we use a convention as to flowing which way is counted positive; flowing backward is then counted negative.
The surface normal is usually directed by the righthand rule.
Conversely, one can consider the flux the more fundamental quantity and call the vector field the flux density.
Often a vector field is drawn by curves (field lines) following the "flow"; the magnitude of the vector field is then the line density, and the flux through a surface is the number of lines. Lines originate from areas of positive divergence (sources) and end at areas of negative divergence (sinks).
See also the image at right: the number of red arrows passing through a unit area is the flux density, the curve encircling the red arrows denotes the boundary of the surface, and the orientation of the arrows with respect to the surface denotes the sign of the inner product of the vector field with the surface normals.
If the surface encloses a 3D region, usually the surface is oriented such that the influx is counted positive; the opposite is the outflux.
The divergence theorem states that the net outflux through a closed surface, in other words the net outflux from a 3D region, is found by adding the local net outflow from each point in the region (which is expressed by the divergence).
If the surface is not closed, it has an oriented curve as boundary. Stokes' theorem states that the flux of the curl of a vector field is the line integral of the vector field over this boundary. This path integral is also called circulation, especially in fluid dynamics. Thus the curl is the circulation density.
We can apply the flux and these theorems to many disciplines in which we see currents, forces, etc., applied through areas.
Electromagnetism
One way to better understand the concept of flux in electromagnetism is by comparing it to a butterfly net. The amount of air moving through the net at any given instant in time is the flux. If the wind speed is high, then the flux through the net is large. If the net is made bigger, then the flux is larger even though the wind speed is the same. For the most air to move through the net, the opening of the net must be facing the direction the wind is blowing. If the net is parallel to the wind, then no wind will be moving through the net. The simplest way to think of flux is "how much air goes through the net", where the air is a velocity field and the net is the boundary of an imaginary surface.
Electric flux
Two forms of electric flux are used, one for the Efield:
and one for the Dfield (called the electric displacement):
This quantity arises in Gauss's law – which states that the flux of the electric field E out of a closed surface is proportional to the electric charge Q_{A} enclosed in the surface (independent of how that charge is distributed), the integral form is:
where ε_{0} is the permittivity of free space.
If one considers the flux of the electric field vector, E, for a tube near a point charge in the field the charge but not containing it with sides formed by lines tangent to the field, the flux for the sides is zero and there is an equal and opposite flux at both ends of the tube. This is a consequence of Gauss's Law applied to an inverse square field. The flux for any crosssectional surface of the tube will be the same. The total flux for any surface surrounding a charge q is q/ε_{0}.
In free space the electric displacement is given by the constitutive relation D = ε_{0} E, so for any bounding surface the Dfield flux equals the charge Q_{A} within it. Here the expression "flux of" indicates a mathematical operation and, as can be seen, the result is not necessarily a "flow", since nothing actually flows along electric field lines.
Magnetic flux
The magnetic flux density (magnetic field) having the unit Wb/m^{2} (Tesla) is denoted by B, and magnetic flux is defined analogously:
with the same notation above. The quantity arises in Faraday's law of induction, in integral form:
where dℓ is an infinitesimal vector line element of the closed curve C, with magnitude equal to the length of the infinitesimal line element, and direction given by the tangent to the curve C, with the sign determined by the integration direction.
The timerate of change of the magnetic flux through a loop of wire is minus the electromotive force created in that wire. The direction is such that if current is allowed to pass through the wire, the electromotive force will cause a current which "opposes" the change in magnetic field by itself producing a magnetic field opposite to the change. This is the basis for inductors and many electric generators.
Poynting flux
Using this definition, the flux of the Poynting vector S over a specified surface is the rate at which electromagnetic energy flows through that surface, defined like before:
The flux of the Poynting vector through a surface is the electromagnetic power, or energy per unit time, passing through that surface. This is commonly used in analysis of electromagnetic radiation, but has application to other electromagnetic systems as well.
Confusingly, the Poynting vector is sometimes called the power flux, which is an example of the first usage of flux, above. It has units of watts per square metre (W/m^{2}).

