Vector fields
Imagine dropping a leaf into a fast flowing river. At every single spot in the water, the current has a specific speed and a specific direction. If you draw an arrow representing the velocity of the water at every point, you get a map of arrows. That map is a vector field. In multivariable calculus, a vector field assigns a vector to every point in space or in a plane. Instead of working with numbers, our functions now eat points like \((x,y)\) and spit out arrows like \(\langle P(x,y), Q(x,y) \rangle\).
A very special kind of vector field comes from ordinary scalar functions. Think of a dome shaped hill where the height at any point \((x,y)\) is given by \(f(x,y)\). If you place a ball on that hill, it rolls straight down in the direction of steepest descent, or straight up the steepest climb if you reverse it. The gradient vector \(\nabla f = \langle f_x, f_y \rangle\) points in the direction of the greatest rate of increase of \(f\). Because the gradient points uphill everywhere, it creates a vector field called a gradient field. Gradient fields have a rigid structure because they are built from a single underlying landscape.
A vector field in the plane is a function \(F\) that assigns a two dimensional vector \(F(x,y) = \langle P(x,y), Q(x,y) \rangle\) to each point \((x,y)\) in a subset of the plane. If there exists a differentiable scalar function \(f\) such that \(F = \nabla f\), then \(F\) is called a gradient field or conservative vector field, and \(f\) is called a potential function for \(F\).
Line integrals of functions
Suppose you have a thin wire shaped like a curved wire in space, and the wire is not uniform. The density of the wire changes from point to point. How do you find the total mass of the wire? In single variable calculus, you integrated a function along a straight interval on the x-axis. Here, the domain of integration is a curved path winding through space.
To find the mass, you chop the curved wire into tiny pieces of arc length \(ds\). On each tiny piece, the wire is nearly straight, so you can multiply the local density by the local arc length to get the mass of that small segment. Then you add them all up using an integral. This is a line integral of a scalar function. Geometrically, if you take a curve sitting in the xy-plane and raise a vertical curtain up to a surface \(z = f(x,y)\) living above the curve, the line integral computes the total area of this curved fence.
Let \(f\) be a continuous scalar function defined on a smooth curve \(C\) parametrized by a vector function \(r(t) = \langle x(t), y(t) \rangle\) for \(a \le t \le b\). The line integral of \(f\) along \(C\) with respect to arc length is defined as the limit of Riemann sums:
\[\int_C f(x,y)\,ds = \lim_{\Delta s \to 0} \sum f(x_i, y_i)\,\Delta s_i = \int_a^b f(x(t), y(t)) |\mathbf{r}'(t)|\,dt\]
where \(|\mathbf{r}'(t)| = \sqrt{(dx/dt)^2 + (dy/dt)^2}\) represents the differential speed scaling factor.
Example 8.1: Upper Semicircle Line Integral
Evaluate \(\int_C (x + y)\,ds\) on the upper unit semicircle.
Solution.
Parametrize the upper unit semicircle as \(r(t) = \langle \cos t, \sin t \rangle\) for \(0 \le t \le \pi\).
Compute the derivative vector \(\mathbf{r}'(t) = \langle -\sin t, \cos t \rangle\).
Find the magnitude of the velocity vector \(|\mathbf{r}'(t)| = \sqrt{(-\sin t)^2 + (\cos t)^2} = \sqrt{1} = 1\).
Substitute the parametrization into the integrand to get \(x + y = \cos t + \sin t\).
Set up the integral with respect to \(t\) from \(0\) to \(\pi\): \(\int_0^+\pi (\cos t + \sin t)(1)\,dt\).
Anti-differentiate to obtain \([\sin t - \cos t]\) evaluated from \(0\) to \(\pi\).
Calculate the upper limit value: \(\sin(\pi) - \cos(\pi) = 0 - (-1) = 1\).
Calculate the lower limit value: \(\sin(0) - \cos(0) = 0 - 1 = -1\).
Subtract lower from upper to get the final answer: \(1 - (-1) = 2\).
Work done by a field
Now change your perspective from a static wire to a moving force. Imagine pushing a box along a curved winding trail while a persistent wind blows with varying strength and direction across the landscape. The wind is a vector field \(F\). At every instant along your path, some portion of the wind is helping push you along your direction of motion, while another portion is fighting against you.
To compute the total work done by the force field along the path, you look at the tangent vector to your path at every point. You take the dot product of the force vector \(F\) and the unit tangent vector to find the effective component of force acting in your direction of motion. Summing this up along the entire path gives the line integral of a vector field. If the dot product is positive, the field helps movement; if negative, it resists.
Let \(F = \langle P, Q \rangle\) be a continuous vector field defined on a smooth curve \(C\) given by the parametrization \(\mathbf{r}(t)\) for \(a \le t \le b\). The line integral of \(F\) along \(C\), also called the work done by \(F\) along \(C\), is defined as:
\[\int_C F \cdot dr = \int_C P\,dx + Q\,dy = \int_a^b F(\mathbf{r}(t)) \cdot \mathbf{r}'(t)\,dt\]
Conservative fields
In single variable calculus, the fundamental theorem of calculus tells us that to evaluate the integral of a derivative over an interval, we just need to evaluate the original function at the two endpoints. Miraculously, a similar rule exists for multivariable line integrals, provided the vector field is conservative.
If a vector field is a gradient field, meaning \(F = \nabla f\), then the line integral of \(F\) along any path depends only on the starting point and the ending point. It does not matter whether you take a straight path, a looping path, or a jagged zigzag trail; the total work is always identical. This property is path independence. How do we know if a field is conservative without finding its potential function explicitly? In a domain with no holes, we use a quick partial derivative cross check.
Let \(C\) be a smooth curve with initial point \(A\) and terminal point \(B\), parametrized by \(\mathbf{r}(t)\) for \(a \le t \le b\). If \(F = \nabla f\) where \(f\) is a differentiable function whose gradient is continuous on an open region containing \(C\), then:
\[\int_C \nabla f \cdot dr = f(B) - f(A) = f(\mathbf{r}(b)) - f(\mathbf{r}(a))\]
Let \(F = \langle P, Q \rangle\) be a vector field with continuous first-order partial derivatives on a simply connected open region in the plane. Then \(F\) is conservative if and only if \(P_y = Q_x\) everywhere in that region. A simply connected region is one with no holes, meaning every closed loop can be shrunk continuously to a single point without leaving the region.
Example 8.2: Work and Potential Function
Find the work done by \(F = \langle y^2, 2xy + 1 \rangle\) along any path from \((0,0)\) to \((2,3)\).
Solution.
Check if the field is conservative by computing partial derivatives \(P = y^2\) and \(Q = 2xy + 1\).
Find \(P_y = 2y\) and \(Q_x = 2y\).
Since \(P_y = Q_x\) everywhere in the plane, and the plane has no holes, the field is conservative.
To find the potential function \(f\), integrate \(P\) with respect to \(x\): \(f_x = y^2\), which gives \(f(x,y) = xy^2 + g(y)\).
Differentiate \(f\) with respect to \(y\) to match \(Q\): \(f_y = 2xy + g'(y) = 2xy + 1\).
Equate terms to find \(g'(y) = 1\), which means \(g(y) = y\).
The potential function is \(f(x,y) = xy^2 + y\).
Evaluate the potential function at the terminal point \((2,3)\): \(f(2,3) = (2)(3^2) + 3 = 18 + 3 = 21\).
Evaluate the potential function at the initial point \((0,0)\): \(f(0,0) = (0)(0^2) + 0 = 0\).
Subtract the initial value from the terminal value to find the work: \(21 - 0 = 21\).
Green's theorem
Imagine walking counterclockwise along a closed fence enclosing a park. Green's theorem builds a bridge between a journey around the outer boundary fence and an exhaustive search of every blade of grass inside the park. It states that adding up the tangential components of a vector field all the way around a closed loop equals the double integral over the interior region of a specific curl-like scalar measurement.
The orientation matters: positive orientation means you walk around the boundary with the interior region always on your left hand side. If your region has holes, like a doughnut, the boundary consists of multiple loops. You must traverse the outer boundary counterclockwise and all inner hole boundaries clockwise so that the interior of the region always stays to your left.
Let \(C\) be a positively oriented, piecewise smooth, simple closed curve in the plane, and let \(D\) be the region enclosed by \(C\). If \(P\) and \(Q\) have continuous partial derivatives on an open region containing \(D\), then:
\[\oint_C P\,dx + Q\,dy = \iint_D \left(\frac{\partial Q}{\partial x} - \frac{\partial P}{\partial y}\right) dA\]
Example 8.3: Green's Theorem Unit Circle
Use Green's theorem on \(\oint_C -y^3\,dx + x^3\,dy\) around the unit circle anticlockwise.
Solution.
Identify the component functions from the line integral: \(P = -y^3\) and \(Q = x^3\).
Compute the partial derivative of \(Q\) with respect to \(x\): \(Q_x = 3x^2\).
Compute the partial derivative of \(P\) with respect to \(y\): \(P_y = -3y^2\).
Form the Green's theorem integrand: \(Q_x - P_y = 3x^2 - (-3y^2) = 3x^2 + 3y^2 = 3(x^2 + y^2)\).
Set up the double integral over the unit disk \(D\) using polar coordinates where \(r\) goes from \(0\) to \(1\) and \(\theta\) goes from \(0\) to \(2\pi\).
Substitute \(x^2 + y^2 = r^2\) and \(dA = r\,dr\,d\theta\) into the double integral.
Write the iterated integral: \(\int_0^{2\pi} \int_0^1 (3r^2) r\,dr\,d\theta = \int_0^{2\pi} \int_0^1 3r^3\,dr\,d\theta\).
Evaluate the inner integral with respect to \(r\): \(\int_0^1 3r^3\,dr = [ \frac{3}{4}r^4 ]_0^1 = \frac{3}{4}\).
Evaluate the outer integral with respect to \(\theta\): \(\int_0^{2\pi} \frac{3}{4}\,d\theta = \frac{3}{4}(2\pi) = \frac{3\pi}{2}\).
Practice
Practice 1: try it first
Evaluate \(\int_C F\cdot dr\) for \(F = \langle x, y \rangle\) on the segment from \((0,0)\) to \((1,1)\).
Show the answer
\(1\)
Practice 2: try it first
Is \(F = \langle x y, x^2 \rangle\) conservative?
Show the answer
no, since \(P_y = x\) and \(Q_x = 2x\)
Practice 3: try it first
Use \(A = \frac12 \oint x\,dy - y\,dx\) to find the area of the ellipse \(x = a\cos t\), \(y = b\sin t\).
Show the answer
\(\pi a b\)
Want a hint instead of an answer? Practise this chapter with the tutor.