BetaFree coursewareRewritten from MIT OpenCourseWareCC BY-NC-SA 4.0
Open CosmologyPhysics & cosmology, from high school to a graduate year

Vector fields in space and flux through surfaces

A vector field in space has components P, Q, R depending on x, y, z: gravitational and electric fields, wind velocities, gradients. In space, flux is measured through a surface, not a curve: ∫∫_S F · n̂ dS, a double integral, after choosing which side of the surface counts as positive. For a velocity field it is the flow through S per unit time. The flux of ⟨x, y, z⟩ out of the sphere of radius a is 4πa³, by geometry; that of z k̂ is (4/3)πa³, by integrating with dS = a² sin φ dφ dθ. Useful formulas: planes z = a (n̂ = ±k̂, dS = dx dy), spheres, cylinders (dS = a dz dθ), and graphs z = f(x, y), where n̂ dS = ⟨−f_x, −f_y, 1⟩ dx dy.

You need this first

Full reading path (25 pages)
  1. Vectors (8.01)
  2. Vectors and the dot product (18.02)
  3. Determinants and the cross product (18.02)
  4. Planes through three points, and matrices (18.02)
  5. Equations of planes and square systems (18.02)
  6. Parametric equations of lines and the cycloid (18.02)
  7. Velocity, acceleration and Kepler's second law (18.02)
  8. Functions of two variables and partial derivatives (18.02)
  9. Tangent planes, critical points and least squares (18.02)
  10. The second derivative test (18.02)
  11. Differentials and the chain rule (18.02)
  12. The gradient and directional derivatives (18.02)
  13. Lagrange multipliers (18.02)
  14. Non-independent variables (18.02)
  15. Double integrals (18.02)
  16. Double integrals in polar coordinates, and their uses (18.02)
  17. Change of variables in double integrals (18.02)
  18. Vector fields and line integrals (18.02)
  19. Gradient fields and path independence (18.02)
  20. Testing for gradient fields, potentials and curl (18.02)
  21. Green's theorem (18.02)
  22. Flux and the normal form of Green's theorem (18.02)
  23. Simply connected regions (18.02)
  24. Triple integrals and cylindrical coordinates (18.02)
  25. Spherical coordinates and gravitational attraction (18.02)
On this page · 5 sections
  1. Vector fields in space
  2. Flux through a surface
  3. Two examples on a sphere
  4. Setting up flux integrals
  5. Summary

After triple integrals, the next topic in space is vector fields, with flux first and work later (transcript, p. 1).

Vector fields in space#

A vector field in space has a vector at every point, with components depending on xx, yy, zz: F⃗=P i^+Q j^+R k^\vec F = P\,\hat i + Q\,\hat j + R\,\hat k (transcript, p. 1; notes, p. 2). Drawing them is hard, but it helps to know roughly where the vectors point (p. 1). Examples (p. 1; notes, p. 2):

  • force fields: the gravitational attraction of a mass at the origin points towards the origin with strength proportional to 1/ρ21/\rho^2, for example F⃗=−c ⟨x,y,z⟩/ρ3\vec F = -c\,\langle x, y, z\rangle/\rho^3; electric fields have the same form, and there are magnetic fields;
  • velocity fields, such as winds in the atmosphere, which vary with altitude;
  • gradient fields ∇u=⟨ux,uy,uz⟩\nabla u = \langle u_x, u_y, u_z\rangle, such as temperature or pressure gradients. The kinds overlap: gravitational and electric fields are gradients of potentials, up to sign (p. 1).

Flux through a surface#

In the plane, flux was measured across a curve. In space, air cannot flow "through a curve": flux is measured through a surface, like a net, and it is a double integral (transcript, p. 1; notes, p. 2):

Flux in space
flux=∫∫SF⃗⋅n^ dS,dS⃗=n^ dS\text{flux} = \int\int_S \vec F \cdot \hat n\,dS, \qquad d\vec S = \hat n\,dS
In words

flux equals the integral of the integral of _ capital S vector capital F dot n hat d capital S, d vector capital S equals n hat d capital S

Source: 18.02 Lecture 27 transcript, pp. 1–2

where n^\hat n is the unit normal vector to SS and dSdS the area element of the surface (written dSdS to keep dAdA for areas in the coordinate planes) (p. 2). There are two choices of n^\hat n, one for each side of the surface; choosing one is orienting the surface. Usually it points out of a closed region, or up; the other choice flips the sign (pp. 1–2; notes, p. 2). The combination dS⃗d\vec S is often easier to compute than n^\hat n and dSdS separately, as n^ ds=⟨dy,−dx⟩\hat n\,ds = \langle dy, -dx\rangle was in the plane (p. 2). A field tangent to the surface has zero flux (p. 2).

As in the plane, if F⃗\vec F is a fluid's velocity, the flux is the flow through SS per unit time: through a small piece ΔS\Delta S passes the contents of a slanted box with base ΔS\Delta S and side F⃗\vec F, of volume base times height, (F⃗⋅n^) ΔS(\vec F \cdot \hat n)\,\Delta S (p. 4; notes, p. 2).

Two examples on a sphere#

The radial field F⃗=⟨x,y,z⟩\vec F = \langle x, y, z\rangle through the sphere of radius aa about the origin, outwards (transcript, p. 2; notes, p. 2). The outward normal is n^=⟨x,y,z⟩/a\hat n = \langle x, y, z\rangle/a, a unit vector since x2+y2+z2=a\sqrt{x^2 + y^2 + z^2} = a on the sphere. F⃗\vec F is parallel to n^\hat n with length aa, so F⃗⋅n^=(x2+y2+z2)/a=a\vec F \cdot \hat n = (x^2 + y^2 + z^2)/a = a, and (p. 2; notes, p. 2):

Flux of the radial field
∫∫SF⃗⋅n^ dS=∫∫Sa dS=a⋅4πa2=4πa3\int\int_S \vec F \cdot \hat n\,dS = \int\int_S a\,dS = a \cdot 4\pi a^2 = 4\pi a^3
In words

the integral of the integral of _ capital S vector capital F dot n hat d capital S equals the integral of the integral of _ capital S a d capital S equals a times 4 pi a squared equals 4 pi a cubed

using everything on the surface only, where x2+y2+z2=a2x^2 + y^2 + z^2 = a^2 (p. 2).

The field H⃗=z k^\vec H = z\,\hat k through the same sphere (pp. 2–3; notes, p. 3). Now H⃗⋅n^=z2/a\vec H \cdot \hat n = z^2/a, which must be integrated. On the sphere use φ\varphi and θ\theta as two parameters (not as spherical coordinates: there is no ρ\rho), with the surface element dS=a2sin⁡φ dφ dθdS = a^2\sin\varphi\,d\varphi\,d\theta and z=acos⁡φz = a\cos\varphi (p. 3):

Flux of z k through the sphere
∫∫Sz2a dS=∫02π∫0πa2cos⁡2φa a2sin⁡φ dφ dθ=2πa3[−cos⁡3φ3]0π=43πa3\int\int_S \frac{z^2}{a}\,dS = \int_0^{2\pi}\int_0^{\pi} \frac{a^2\cos^2\varphi}{a}\,a^2\sin\varphi\,d\varphi\,d\theta = 2\pi a^3\left[-\frac{\cos^3\varphi}{3}\right]_0^{\pi} = \frac43\pi a^3
In words

the integral of the integral of _ capital S z squared over a, times d capital S equals the integral from 0 to 2 pi of the integral from 0 to pi of a squared cos squared phi over a, times a squared sine phi d phi d theta equals 2 pi a cubed ( minus cos cubed phi over 3 ) sub 0 to the power pi equals four thirds pi a cubed

That this is the volume of the ball is no coincidence, as the divergence theorem will show next lecture (p. 3).

Setting up flux integrals#

Geometry sometimes gives the answer at once, but in general the surface is described by two parameters and F⃗⋅n^ dS\vec F \cdot \hat n\,dS is expressed in them (transcript, p. 3; notes, p. 3). The formulas to remember (pp. 3–4; notes, p. 3):

  • A horizontal plane z=az = a (or a piece of it): n^=±k^\hat n = \pm\hat k, dS=dx dydS = dx\,dy; replace zz by aa and it is an ordinary double integral (p. 3). Planes parallel to the other coordinate planes are similar, for example x=x = constant with n^=±i^\hat n = \pm\hat i and dS=dy dzdS = dy\,dz (p. 3).
  • A sphere of radius aa about the origin: n^=±⟨x,y,z⟩/a\hat n = \pm\langle x, y, z\rangle/a, dS=a2sin⁡φ dφ dθdS = a^2\sin\varphi\,d\varphi\,d\theta. Take the dot product with F⃗\vec F first: symmetric combinations like x2+y2+z2x^2 + y^2 + z^2 may simplify (p. 4).
  • A cylinder of radius aa about the zz-axis: the sides are vertical, so the normal is horizontal, straight away from the axis, n^=±⟨x,y,0⟩/a\hat n = \pm\langle x, y, 0\rangle/a. With zz and θ\theta as parameters, a small piece is Δz\Delta z high and a Δθa\,\Delta\theta wide, so dS=a dz dθdS = a\,dz\,d\theta (p. 4; notes, p. 3).
  • A graph z=f(x,y)z = f(x, y): n^\hat n and dSdS are each complicated, but their product is simple, with xx and yy as parameters (p. 4; notes, p. 3):
Flux through a graph
n^ dS=±⟨−fx,−fy,1⟩ dx dy\hat n\,dS = \pm\langle -f_x, -f_y, 1\rangle\,dx\,dy
In words

n hat d capital S equals plus or minus the average of minus f sub x, minus f sub y, 1 d x d y

Source: 18.02 lecture summaries, Week 11 (Prof. Auroux), Lecture 27, pp. 2–3, Lecture 27, p. 3

Remove every zz first, then set up the bounds on the shadow of SS in the xyxy-plane (p. 4). The proof comes next lecture.

Worked example

A cylinder, a hemisphere and a disc

(a) Find the outward flux of F⃗=⟨x,y,0⟩\vec F = \langle x, y, 0\rangle through the side of the cylinder of radius 1 about the zz-axis, 0≤z≤20 \le z \le 2. (b) Find the upward flux of k^\hat k through the upper unit hemisphere. (c) Find the upward flux of G⃗=⟨0,0,z⟩\vec G = \langle 0, 0, z\rangle through the disc of radius 1 in the plane z=2z = 2.

(a) Cylinder

F⃗⋅n^=⟨x,y,0⟩⋅⟨x,y,0⟩=x2+y2=1\vec F \cdot \hat n = \langle x, y, 0\rangle \cdot \langle x, y, 0\rangle = x^2 + y^2 = 1 on the cylinder, so the flux is the area of the side, 2π⋅1⋅2=4π≈12.62\pi \cdot 1 \cdot 2 = 4\pi \approx 12.6.

(b) Hemisphere

k^⋅n^=z=cos⁡φ\hat k \cdot \hat n = z = \cos\varphi, so the flux is ∫02π∫0π/2cos⁡φsin⁡φ dφ dθ=2π⋅12=π\int_0^{2\pi}\int_0^{\pi/2} \cos\varphi\sin\varphi\,d\varphi\,d\theta = 2\pi \cdot \frac12 = \pi: the same as the flux of k^\hat k through the flat disc underneath, the shadow of the hemisphere. A uniform flow upwards passes through both equally.

(c) Disc

n^=k^\hat n = \hat k and G⃗⋅k^=z=2\vec G \cdot \hat k = z = 2, so the flux is 2×π=2π2 \times \pi = 2\pi.

Summary#

  • A vector field in space: F⃗=Pi^+Qj^+Rk^\vec F = P\hat i + Q\hat j + R\hat k, with PP, QQ, RR functions of xx, yy, zz.
  • Flux through a surface: ∫∫SF⃗⋅n^ dS\int\int_S \vec F \cdot \hat n\,dS, after choosing a side; dS⃗=n^ dSd\vec S = \hat n\,dS. For a velocity field, the flow through SS per unit time.
  • ⟨x,y,z⟩\langle x, y, z\rangle through the sphere of radius aa: 4πa34\pi a^3; zk^z\hat k: 43πa3\frac43\pi a^3.
  • Planes: n^=±k^\hat n = \pm\hat k, dS=dx dydS = dx\,dy. Spheres: n^=±⟨x,y,z⟩/a\hat n = \pm\langle x, y, z\rangle/a, dS=a2sin⁡φ dφ dθdS = a^2\sin\varphi\,d\varphi\,d\theta. Cylinders: n^=±⟨x,y,0⟩/a\hat n = \pm\langle x, y, 0\rangle/a, dS=a dz dθdS = a\,dz\,d\theta. Graphs: n^ dS=±⟨−fx,−fy,1⟩ dx dy\hat n\,dS = \pm\langle -f_x, -f_y, 1\rangle\,dx\,dy.

Symbols on this page

Show the 44 symbols used here
Δ\Delta capital delta.
A change or difference in a quantity, e.g. Δx = x₂ − x₁. Say it: “capital delta”.
θ\theta theta.
An angle. Say it: “theta” (sounds like “thay-ta or thee-ta”).
π\pi pi.
The ratio of a circle's circumference to its diameter, π ≈ 3.14159. Say it: “pi”.
ρ\rho rho.
Density: mass (or energy divided by c²) per unit volume. ρ_c is the critical density, ρ̄ the mean density. Unit: kg/m³ (on some pages an energy density in natural units: GeV⁴, eV/cm³). Say it: “rho”.
ϕ\phi phi.
The angle down from the positive z-axis, used as a parameter on the sphere. Say it: “phi” (sounds like “fye”).
≈\approx approximately equal.
Is approximately equal to. Say it: “is approximately”.
≤\le less than or equal.
Is less than or equal to. Say it: “is less than or equal to”.
±\pm plus or minus.
Plus or minus: both signs, or an uncertainty (67.3 ± 1.2). Say it: “plus or minus”.
×\times times.
Times (multiplication). Between two vectors: the cross product. Say it: “times”.
⋅\cdot dot.
Times (multiplication). Between two vectors: the dot product. Say it: “times”.
⟨\langle angle brackets.
The average (mean value) of what is inside, ⟨…⟩. Say it: “the average of”.
∇\nabla nabla (del).
Del: ∇f is the gradient, ∇·v the divergence, ∇×v the curl, ∇² the Laplacian. Say it: “del”.
∫\int integral.
Integral: the sum of infinitely many small pieces, such as the area under a curve. Say it: “the integral of”.
sin⁡\sin sine.
Sine of an angle. Say it: “sine”.
cos⁡\cos cosine.
Cosine of an angle. Say it: “cos”.
v⃗\vec v vector arrow.
A vector: a quantity with a size and a direction. Say it: “vector”.
aa a.
The radius of the sphere or cylinder (or the height of the plane z = a). Say it: “a”.
HH H.
The field z k̂ in the second sphere example. Say it: “H”.
zz z.
The z coordinate. Say it: “z”.
GG G.
In the worked example, the field ⟨0, 0, z⟩; in the cosmology note, the gravitational constant. Say it: “capital G”.
cc c.
A positive constant in the gravitational field −c⟨x, y, z⟩/ρ³. Say it: “c”.
xx x.
The x coordinate. Say it: “x”.
yy y.
The y coordinate. Say it: “y”.
dd d.
The d of dS, dx, dy, dz, dφ, dθ, ds. Say it: “d”.
ff f.
The function whose graph z = f(x, y) is the surface. Say it: “f”.
gg g.
In the cosmology note, the gravitational field (acceleration) of the mass M. Unit: m/s². Say it: “g”.
FF F.
A vector field in space, F = P î + Q ĵ + R k̂. Say it: “capital F”.
PP P.
The x component of the vector field. Say it: “P”.
QQ Q.
The y component of the vector field. Say it: “Q”.
AA A.
Area in a coordinate plane (dA). Say it: “capital A”.
ss s.
Arc length along a plane curve (ds, for comparison with the plane). Say it: “s”.
MM M.
In the cosmology note, a mass at the origin. Unit: kg. Say it: “M”.
RR R.
The z component of the vector field. Say it: “R”.
SS S.
The surface; dS is a small piece of its area. Say it: “capital S”.
uu u.
A function of x, y, z whose gradient is a vector field (such as temperature). Say it: “u”.
i^\hat{i} i hat.
Unit vector in the x direction: length 1, pointing towards increasing x. Say it: “i hat”.
j^\hat{j} j hat.
Unit vector in the y direction: length 1, pointing towards increasing y. Say it: “j hat”.
k^\hat{k} k hat.
Unit vector in the z direction: length 1, pointing towards increasing z. Say it: “k hat”.
n^\hat{n} n hat.
The unit normal vector to the surface, on the chosen side. Say it: “n hat”.
fxf_{x} f sub x.
The partial derivative ∂f/∂x. Say it: “f sub x”.
fyf_{y} f sub y.
The partial derivative ∂f/∂y. Say it: “f sub y”.
uxu_{x} u sub x.
The partial derivative ∂u/∂x. Say it: “u sub x”.
uyu_{y} u sub y.
The partial derivative ∂u/∂y. Say it: “u sub y”.
uzu_{z} u sub z.
The partial derivative ∂u/∂z. Say it: “u sub z”.

Tap or click a symbol in a formula to see the same explanation. All symbols: symbols and notation.

Words on this page

Show the 33 words used here

Also used

triple integral.
An integral over a region of space: cut the region into tiny boxes, multiply each by the function's value there, and add. Explained in Triple integrals and cylindrical coordinates.
vector field.
A rule that attaches an arrow, with a size and a direction, to every point of space, such as the wind velocity at each place. Explained in Fields: scalar, vector, gravitational and electric.
flux.
How much of a field, or of a flow of matter or energy, passes through a surface (per second, for a flow). Explained in Towards the universe: what starlight tells us.
work.
The energy a force gives to a body as it moves: the part of the force along the motion times the distance moved. Explained in Kinetic energy and work in one dimension.
p..
Page, in a reference to a source; pp. means pages, as in pp. 3–5.
vector.
A quantity with both a size and a direction, such as a velocity or a force, drawn as an arrow. Explained in Vectors.
force field.
A vector field that gives the force a body would feel at each point, such as the Earth's gravitational pull. Explained in Vector fields and line integrals.
proportional.
Of two quantities: always in the same ratio, so that doubling one doubles the other. Explained in Graphs, straight lines and slope.
electric field.
The electric push or pull at each point of space, given as the force on each coulomb of charge placed there. Explained in The electric field.
magnetic field.
The field made by magnets and moving charges, which pushes sideways on other moving charges and turns compass needles. Explained in Magnetic fields and magnetic force.
velocity field.
A vector field that gives the velocity of a moving fluid at each point, like a map of wind arrows. Explained in Vector fields and line integrals.
gradient field.
A vector field that is the gradient of some function, called its potential; its line integrals depend only on the end points. Explained in Gradient fields and path independence.
pressure.
The force pushing on a surface divided by the area of the surface, so the push on each square metre. Explained in Density and pressure.
gradient.
The vector of a function's partial derivatives; it points the way the function increases fastest, and its length is that fastest rate. Explained in Graphs, straight lines and slope.
double integral.
An integral over a region of the plane: cut the region into tiny pieces, multiply each by the function's value there, and add. Explained in Double integrals.
normal vector.
A vector at right angles to a plane or surface; it fixes which way the plane faces. Explained in Planes through three points, and matrices.
field.
Something that has a value at every point of space, such as the temperature, the wind velocity or the electric field at each place. Explained in Newton's law of gravitation.
tangent.
A straight line that touches a curve at a point and runs in the same direction as the curve there. Explained in Angles, radians and trigonometry.
velocity.
How fast and in which direction something moves: a vector whose length is the speed and whose direction is the direction of motion. Explained in Velocity, acceleration and Kepler's second law.
unit vector.
A vector of length one, used only to point in a direction. Explained in Newton's law of gravitation.
spherical coordinates.
Giving a point in space by its distance from the origin and two angles: one measured down from the vertical axis, one around it. Explained in Spherical coordinates and gravitational attraction.
divergence theorem.
The theorem that the flux of a vector field out of a closed surface equals the integral of its divergence over the region inside. Explained in Flux through graphs and the divergence theorem.
dot product.
A way of multiplying two vectors that gives a number: multiply matching components and add, or lengths times the cosine of the angle between them. Explained in Vectors and the dot product.
symmetric.
Unchanged by some swap, reflection or turn; for an expression in two quantities, unchanged when they are exchanged. Explained in Introduction to Fourier series.
graph.
The picture of a function: the curve y = f(x) for one variable, or the surface z = f(x, y) for two. Explained in Graphs, straight lines and slope.
proof.
A chain of reasoning showing beyond doubt that a statement follows from definitions and results already known. Explained in Limits and continuity.
uniform flow.
A flow with the same velocity everywhere, in speed and direction. Explained in Potential flow: Laplace's equation, flow past a sphere and d'Alembert's paradox.
gravitational field.
The pull of gravity at each point of space, given as the force on each kilogram of mass placed there. Explained in The electric field.
Gauss's law.
The law that the flux out of any closed surface is set by what is inside: the charge for electric fields, the mass for gravity. Explained in Gauss's law.
closed surface.
A surface with no edge that completely encloses a region of space, like the skin of a ball.
uniform.
The same at every point, or unchanging in time: a uniform rod has the same density all along it. Explained in The electric field.

Academic

transcript.
A written record of exactly what was said in a recorded lecture, word for word.
coincidence.
A striking agreement between two things that seems to happen by chance, with no known reason.

Tap or click a word, here or in the text, for its meaning in this lesson. All words: the glossary. How many words are marked in the text: Reading options (the “Aa” button).

Where this leads

In cosmology

34 more cosmology pages that build on this

Pages that build on this

Practise

Check your understanding

  1. In space, flux is computed through…
  2. On the cylinder of radius aa about the zz-axis, the outward normal is…
  3. The flux of F⃗=⟨x,y,z⟩\vec F = \langle x, y, z\rangle out of the unit sphere is…
0 of 3 answered

Flashcards

1 / 3