Skip to content
All posts

Calculus III

Notes on Calculus III

Fundamentals

Vectors in 3D

v=<x,y,z>v=<x,y,z>

Magnitude ∣v∣=x2+y2+z2|v|=\sqrt{x^2+y^2+z^2}

Dot Product of 3D Vectors

The result is a scalar.

Given v1=<x1,y1,z1>v_1=<x_1,y_1,z_1>, v2=<x2,y2,z2>v_2=<x_2,y_2,z_2>

Their dot product:

v1⋅v2=x1x2+y1y2+z1z2=∣v1∣∣v2∣cosθv_1\cdot v_2=x_1x_2+y_1y_2+z_1z_2=|v_1||v_2|cos\theta

If v1⋅v2=0v_1 \cdot v_2=0, then v1⊥v2v_1 \perp v_2

cosθ=a⋅b∣a∣∣b∣cos\theta=\frac{a\cdot b}{|a||b|}

Cross Product of 3D Vectors

The result is a vector.

Given v1=<x1,y1,z1>v_1=<x_1,y_1,z_1>, v2=<x2,y2,z2>v_2=<x_2,y_2,z_2>

Their cross product:

v1×v2=det⁡∣ijkx1y1z1x2y2z2∣=(y1z2−y2z1)i−(x1z2−x2z1)j+(x1y2−x2y1)kv_1 \times v_2=\det \left | \begin{matrix} i & j & k \\ x_1 & y_1 & z_1 \\ x_2 & y_2 & z_2 \\ \end{matrix} \right |=(y_1z_2-y_2z_1)i-(x_1z_2-x_2z_1)j+(x_1y_2-x_2y_1)k ∣v1×v2∣=∣v1∣∣v2∣sinθ|v_1 \times v_2|=|v_1||v_2|sin\theta

The direction follows the right-hand rule: curl your fingers from v1v_1 toward v2v_2, and your thumb points in the direction of the cross product.

It produces a vector perpendicular to both v1v_1 and v2v_2, and ∣a×b∣=|a \times b| = the area of the parallelogram with a and b as adjacent sides.

Lines and Planes in Space

Line in space: one point and one vector

Given a point in space and a vector r0=(x0,y0,z0),v⃗0=<a,b,c>r_0=(x_0,y_0,z_0),\vec v_0 = <a,b,c>

the line is r=r0+λv⃗0,λ∈Rr = r_0+\lambda \vec v_0, \lambda \in \R

or, in parametric form:

x=x0+λay=y0+λbz=z0+λc\begin{array}{l} x&= x_0+\lambda a \\ y&=y_0+\lambda b \\ z&=z_0+\lambda c \\ \end{array}

Plane in space: one point and one normal vector Given a normal vector n=<a,b,c>n=<a,b,c> and a point P0(x0,y0,z0)P_0(x_0,y_0,z_0) on the plane,

every point PP on the plane satisfies n⋅PP0⃗=0n\cdot \vec {PP_0}=0

Expanded: a(x−x0)+b(y−y0)+c(z−z0)=0a(x-x_0)+b(y-y_0)+c(z-z_0)=0

which gives the standard form: ax+by+cz=d,d=ax0+by0+cz0ax+by+cz=d,d=ax_0+by_0+cz_0

Quadric Surfaces

Spheres and Ellipsoids

x2+y2+z2=R2x^2+y^2+z^2=R^2 (sphere)

x2a2+y2b2+z2c2=1\frac{x^2}{a^2}+\frac{y^2}{b^2}+\frac{z^2}{c^2}=1 (ellipsoid)

Cylinders

x2+y2=Cx^2+y^2=C

Paraboloids

z=x2+y2z=x^2+y^2 (opens upward)

z=C−x2−y2z=C-x^2-y^2 (opens downward)

Cones

z=x2+y2z=\sqrt{x^2+y^2} or z2=x2+y2z^2=x^2+y^2

Vector Functions

Definition: r⃗(t)=⟨X(t),Y(t),Z(t)⟩\vec{r}(t) = \langle X(t), Y(t), Z(t) \rangle.

Geometric meaning: as tt varies, the trajectory traces a curve in space, i.e. a space curve.

Example: the helix r⃗(t)=⟨cos⁡t,sin⁡t,t⟩\vec{r}(t) = \langle \cos t, \sin t, t \rangle.

Derivatives and Physical Meaning

Derivative: r⃗′(t)=⟨X′(t),Y′(t),Z′(t)⟩\vec{r}'(t) = \langle X'(t), Y'(t), Z'(t) \rangle.

Tangent vector: r⃗′(t)\vec{r}'(t) is called the tangent vector.

Velocity and speed: if r⃗(t)\vec{r}(t) represents position, then r⃗′(t)\vec{r}'(t) is the velocity vector. Its direction is tangent to the curve, and its magnitude ∣r⃗′(t)∣|\vec{r}'(t)| is the speed.

Arc Length and Curvature

Arc Length

The length from t=at=a to t=bt=b is L=∫ab∣r⃗′(t)∣dtL = \int_{a}^{b} |\vec{r}'(t)| dt.

Curvature (κ\kappa)

Describes how sharply a curve bends.

Definition: the rate at which the direction of the unit tangent vector changes with respect to arc length.

Practical formula: κ(t)=∣r⃗′(t)×r⃗′′(t)∣∣r⃗′(t)∣3\kappa(t) = \frac{|\vec{r}'(t) \times \vec{r}''(t)|}{|\vec{r}'(t)|^3}

Radius of curvature (RR): defined as R=1κR = \frac{1}{\kappa}.

The TNB Frame

Made up of the unit tangent vector T⃗\vec{T}, the unit normal vector N⃗\vec{N} and the binormal vector B⃗\vec{B}:

Unit tangent vector: T⃗(t)=r⃗′(t)∣r⃗′(t)∣\vec{T}(t) = \frac{\vec{r}'(t)}{|\vec{r}'(t)|}.

Unit normal vector: N⃗(t)=T⃗′(t)∣T⃗′(t)∣\vec{N}(t) = \frac{\vec{T}'(t)}{|\vec{T}'(t)|}.

Binormal vector: B⃗(t)=T⃗(t)×N⃗(t)\vec{B}(t) = \vec{T}(t) \times \vec{N}(t).

Functions of Several Variables

A function of two variables z=f(x,y)z = f(x, y)

Domain: usually a region in the xyxy-plane.

Level curves: the curves obtained by setting f(x,y)=cf(x, y) = c (cc a constant). Physically, it is like slicing a mountain horizontally.

Limits and Continuity

Condition for a limit to exist: the limit must be the same along every path approaching (x0,y0)(x_0, y_0).

To show a limit does not exist, find different paths:

  • Path 1: set y=by = b and let x→ax \to a.
  • Path 2: set x=ax = a and let y→by \to b.
  • Path 3: set y=kxy = kx; if the result depends on kk, the limit does not exist.
  • Path 4: set y=x2y = x^2 and so on (when the degrees don't match).

Continuity: if lim⁡(x,y)→(a,b)f(x,y)=f(a,b)\lim_{(x,y) \to (a,b)} f(x, y) = f(a, b), the function is continuous at (a,b)(a, b).

Partial Derivatives and Differentials

Partial Derivatives

Rule: when differentiating with respect to xx, treat yy as a constant, and vice versa.

Example:

f(x,y)=x3+xy3−2y2f(x, y) = x^3 + xy^3 - 2y^2

fx=3x2+y3f_x = 3x^2 + y^3

fy=3xy2−4yf_y = 3xy^2 - 4y

Tangent Planes and Linear Approximation

Tangent plane at the point P(x0,y0,z0)P(x_0, y_0, z_0): z−z0=fx(x0,y0)(x−x0)+fy(x0,y0)(y−y0)z - z_0 = f_x(x_0, y_0)(x - x_0) + f_y(x_0, y_0)(y - y_0)

Linearization: when (x,y)(x, y) is close to (x0,y0)(x_0, y_0), approximate f(x,y)f(x, y) by the height of the tangent plane L(x,y)L(x, y).

The Multivariable Chain Rule

If z=f(x,y)z = f(x, y) with x=x(t),y=y(t)x=x(t), y=y(t), then: dzdt=∂f∂xdxdt+∂f∂ydydt\frac{dz}{dt} = \frac{\partial f}{\partial x} \frac{dx}{dt} + \frac{\partial f}{\partial y} \frac{dy}{dt}

Gradients and Extrema

Gradient

Definition: ∇f(x,y)=⟨fx,fy⟩=fxi+fyj\nabla f(x, y) = \langle f_x, f_y \rangle = f_x \mathbf{i} + f_y \mathbf{j}.

Directional derivative: the rate of change along a unit vector u⃗=⟨a,b⟩\vec{u} = \langle a, b \rangle is Du⃗f=∇f⋅u⃗D_{\vec{u}}f = \nabla f \cdot \vec{u}.

Geometric meaning: the gradient points in the direction of fastest increase. The gradient vector is always perpendicular to the level curves.

Extrema and the Second Derivative Test

Critical points: points where fx=0f_x = 0 and fy=0f_y = 0.

Hessian discriminant (DD): D=fxxfyy−(fxy)2D = f_{xx}f_{yy} - (f_{xy})^2

  • If D>0D > 0 and fxx>0  ⟹  f_{xx} > 0 \implies local minimum.
  • If D>0D > 0 and fxx<0  ⟹  f_{xx} < 0 \implies local maximum.
  • If D<0  ⟹  D < 0 \implies saddle point.
  • If D=0  ⟹  D = 0 \implies the test is inconclusive.

Lagrange Multipliers

Use case: minimize or maximize f(x,y)f(x, y) subject to the constraint g(x,y)=kg(x, y) = k.

Key idea: at an extremum the level curves of the two functions are tangent, so their gradients are parallel:

∇f=λ∇g\nabla f = \lambda \nabla g

Multiple Integrals

Double Integrals

Fubini's Theorem

A double integral can be computed as an iterated integral.

Region types:

  • Type I (bottom to top): integrate with respect to yy first, entering through the curve y=g1(x)y=g_1(x) and leaving through y=g2(x)y=g_2(x).
  • Type II (left to right): integrate with respect to xx first. Polar coordinates: suited to circular regions. x=rcos⁡θ,y=rsin⁡θ,x2+y2=r2x = r\cos\theta, y = r\sin\theta, x^2 + y^2 = r^2.

Area element dA=rdrdθdA = r dr d\theta.

Triple Integrals

Setting the bounds: fix (x,y)(x, y) and find the surfaces where zz enters and leaves the region.

Cylindrical Coordinates

(r,θ,z)(r, \theta, z), volume element dV=rdzdrdθdV = r dz dr d\theta.

Spherical Coordinates

(ρ,ϕ,θ)(\rho, \phi, \theta), where ρ\rho is the distance, ϕ\phi is the polar (zenith) angle (0≤ϕ≤π0 \le \phi \le \pi), and θ\theta is the azimuthal angle.

Transformation: x=ρsin⁡ϕcos⁡θ,y=ρsin⁡ϕsin⁡θ,z=ρcos⁡ϕx = \rho\sin\phi\cos\theta, y = \rho\sin\phi\sin\theta, z = \rho\cos\phi.

Volume element dV=ρ2sin⁡ϕdρdϕdθdV = \rho^2 \sin\phi d\rho d\phi d\theta.

The Jacobian

Corrects the differential element under a change of coordinates: dxdy=∣J∣dudvdx dy = |J| du dv.

J=∂(x,y)∂(u,v)=det⁡∣xuxvyuyv∣J = \frac{\partial(x,y)}{\partial(u,v)} = \det \begin{vmatrix} x_u & x_v \\ y_u & y_v \end{vmatrix}

Vector Analysis

Line Integrals

Computation: parameterize the curve C=r⃗(t)C = \vec{r}(t), then ∫CF⃗⋅dr⃗=∫abF⃗(r⃗(t))⋅r⃗′(t)dt\int_C \vec{F} \cdot d\vec{r} = \int_a^b \vec{F}(\vec{r}(t)) \cdot \vec{r}'(t) dt.

Fundamental Theorem for Line Integrals

If F⃗=∇f\vec{F} = \nabla f (a conservative field), then ∫CF⃗⋅dr⃗=f(end)−f(start)\int_C \vec{F} \cdot d\vec{r} = f(\text{end}) - f(\text{start}).

Test for Conservative Fields

For F⃗=⟨P,Q⟩\vec{F} = \langle P, Q \rangle, if ∂P∂y=∂Q∂x\frac{\partial P}{\partial y} = \frac{\partial Q}{\partial x}, the field is conservative.

Green's Theorem

Converts a line integral around a closed curve into a double integral over the enclosed region:

∮CPdx+Qdy=∬D(∂Q∂x−∂P∂y)dA\oint_C P dx + Q dy = \iint_D \left( \frac{\partial Q}{\partial x} - \frac{\partial P}{\partial y} \right) dA

Curl and Divergence

  • Curl: ∇×F⃗\nabla \times \vec{F}, describes the local rotational tendency of a fluid.
  • Divergence: divF⃗=∇⋅F⃗=∂P∂x+∂Q∂y+∂R∂z\text{div} \vec{F} = \nabla \cdot \vec{F} = \frac{\partial P}{\partial x} + \frac{\partial Q}{\partial y} + \frac{\partial R}{\partial z}. >0> 0 means expansion (a source); <0< 0 means compression (a sink).

The Three Major Theorems

Flux Formula

∬SF⃗⋅dS⃗=∬DF⃗(r⃗(x,y))⋅(r⃗x×r⃗y)dA\iint_S \vec{F} \cdot d\vec{S} = \iint_D \vec{F}(\vec{r}(x, y)) \cdot (\vec{r}_x \times \vec{r}_y) dA

Stokes' Theorem

Relates the integral around a closed space curve to the flux of the curl through a surface.

∮CF⃗⋅dr⃗=∬S(∇×F⃗)⋅dS⃗\oint_C \vec{F} \cdot d\vec{r} = \iint_S (\nabla \times \vec{F}) \cdot d\vec{S}

Divergence Theorem (Gauss's Theorem)

Relates the flux through a closed surface to the volume integral of the divergence:

∬SF⃗⋅dS⃗=∭E(∇⋅F⃗)dV\iint_S \vec{F} \cdot d\vec{S} = \iiint_E (\nabla \cdot \vec{F}) dV