Vector Calculus

Vector valued functions

A curve r(t) can be defined by

r(t)=x(t),y(t),z(t)=x(t)i+y(t)j+z(t)j

where

ddtr(t)=x(t)i+y(t)j+z(t)j

Objects can take the motion of these curves in space.

Scalar Field

A scalar field is defined as a function f:RnR

An example would be f(x,y)=x2+y2. It maps every coordinate to a number.

Vector Field

A vector field is defined as a function f:RnRm

An example would be F(x,y)=M(x,y)i+N(x,y)j. A vector field maps every coordinate in space to a vector.

Line Integral

Line Integral over Scalar Fields

What is the Surface area of this shape?

Pasted image 20251014221326.png

A function f(x,y) is defined over r(t). r(t) is traced out as the orange line on the x-y plane. And we want to find the area under this closed loop.

Let ds be a small arc-length along the curve r(t). Where ds=||dr||. If we integrate around the contour C, summing up the product of f(x,y) and ds. It is clear that we get the surface area.

Surface Area=Cf(x,y) ds

We can also rewrite the Surface area as

abf(r(t)) ds

since

r(t)=x(t)i+y(t)jdr=x(t)dt i+y(t)dt jds=||dr||=x(t)2+y(t)2 dt=||r(t)||dt--- Eq 1.

Thus

Line Integral=abf(r(t))x(t)2+y(t)2 dt=abf(r(t)) ||r(t)|| dt

Line Integral over Vector fields

Supposed we have a vector field and a path an object takes .
Pasted image 20251014224332.png

The line integral of the vector field is to calculate the work done by the vector field in the direction of the object's motion.
Work done is defined by the product of distance and the force acting in the direction of movement.
Pasted image 20251014224517.png
Assume a small particle moves distance ds, with a direction unit vector of T whilst experiencing a force F.
The contribution of the field along the segment ds is

WD=Forcedistance=(FT) ds

The summation of WD along the contour C is. (Sometimes this is called flow integrals as it measures how much the vector field flows along the line C)

WD=CFTds

If F(x,y)=P(x,y)i+Q(x,y)j
T=dr||dr||=drds Thus, Tds=dr

WD=CFdr

Thus

WD=CFdrdtdt=abF(r(t))r(t)dt

We can also rewrite the Line integrals as such

WD=ab[P(r(t)) x(t)+Q(r(t)) y(t)]dt=abP(r(t)) dxdtdt+abQ(r(t)) dydtdt=abP(r(t)) dx+abQ(r(t))dy

Gradient Vector Field over Scalar Functions

Given a function f:RnR, The grad of a Scalar field will generate a vector field.

f=fxi+fyj+fzk+

where

=x,y,z,

Pasted image 20251014232215.png

The gradient vector points in the direction of steepest increase. The length |f| tells us how fast f is changing in the direction

Side Note
If the Contour is closed (a loop), we express the integral as

Circulation

Circulation can be defined using flow integrals. Where we find how much a vector field flows along a closed contour (typically a circle)

Fdr

The problem is that we can only find the circulation for a macroscopic object (like a big circle). What if want to find the circulation at a point?

What is the degree of circulation at a point?

Pasted image 20251015000238.png

if F(x,y)=P(x,y)i+Q(x,y)j
Recall that

r(t)=x(t)i+y(t)jdr=x(t)dt i+y(t)dt j

Imagine a infinitesimal region, and we want to find the circulation at that region.

CFdr=i=14CiFdr

For C1 that spans Δx, dy=0

C1Fdr=xx+ΔxFdr=xx+ΔxP(x,y)dxP(x,y)Δx

For C2 that spans Δy, dx=0

C2Fdr=yy+ΔyFdr=yy+ΔyQ(x+Δx,y)dyQ(x+Δx,y)Δy

For C3 that spans Δx, dy=0

C3Fdr=xx+ΔxP(x,y+Δy)dxP(x,y+Δy)Δx

For C4 that spans Δy, dx=0

C4Fdr=yy+ΔyQ(x,y)dy=Q(x,y)Δy

Based on the partial differentiation formula

xf=limΔx0f(x+Δx)f(x)Δx

Adding C1 and C3 first

C1Fdr+C3Fdr=P(x,y)ΔxP(x,y+Δy)Δx=PyΔxΔy

Adding C2 and C4

C2Fdr+C4Fdr=Q(x+Δx,y)ΔyQ(x,y)Δy=QxΔxΔy

Thus

Fdr=QxΔxΔyPyΔxΔy=(QxPy)ΔxΔyFdrCirculation around rectangle=(QxPy)Circulation DensityΔxΔyArea of rectangle

Divergence

Divergence is defined as