Multivariable and Vector CalculusIntroduction and ContextMany engineering quantities depend on several independent variables. Temperature in a machine component may vary with position and time; fluid pressure may vary throughout a pipe; displacement may depend on three spatial coordinates; and heat flow may cross a curved surface. Single-variable calculus describes change along one coordinate, whereas multivariable and vector calculus provides the language for fields, surfaces, flows, and transport. In machine technology, the subject is especially useful for: - predicting temperature gradients in tools, bearings, and engine components;
- calculating heat transfer through surfaces;
- describing velocity and pressure fields in fluid systems;
- evaluating stresses, displacements, and deformation;
- transforming coordinates in CAD, robotics, and finite-element models; and
- applying conservation laws to control volumes.
A scalar field assigns one number to every point, such as temperature T(x,y,z). A vector field assigns a vector to every point, such as velocity \mathbf{v}(x,y,z). The central operations of this chapter are differentiation of fields, integration over regions and surfaces, and the divergence and curl operators that connect local behavior with global physical quantities. Learning ObjectivesBy the end of this chapter, a student should be able to: - calculate and interpret partial derivatives, total differentials, and directional derivatives;
- use gradients to identify directions of greatest increase and formulate physical flux laws;
- construct and interpret Jacobian matrices and determinants for coordinate transformations;
- evaluate double and triple integrals in Cartesian, polar, cylindrical, and spherical coordinates;
- distinguish divergence, curl, and the Laplacian of a field;
- apply Green’s, Stokes’ and the divergence theorems under their stated conditions;
- analyze a thermal or fluid-mechanical field and communicate assumptions, units, and limitations.
1. Scalar and Vector FieldsA scalar field is a function of position. In three-dimensional Cartesian coordinates, φ = φ(x,y,z) where x, y, and z are coordinates and φ is a scalar quantity. Temperature T is measured in kelvin or degrees Celsius, pressure p in pascals, and concentration in appropriate amount-per-volume units. A vector field is written as \mathbf{F}(x,y,z) = Fx\mathbf{i} + Fy\mathbf{j} + Fz\mathbf{k} where Fx, Fy, and Fz are component functions and \mathbf{i},\mathbf{j},\mathbf{k} are unit vectors. A velocity field has units of m/s; a heat-flux field has units of W/m². A level surface of a scalar field is defined by φ(x,y,z)=C, where C is constant. For example, an isothermal surface satisfies T(x,y,z)=T0. A field can be represented by contours, vectors, or both, but graphical representation does not replace quantitative analysis. 2. Partial Derivatives and the Total DifferentialFor f(x,y), the partial derivative with respect to x holds y constant: ∂f/∂x = limΔx→0 [f(x+Δx,y)-f(x,y)]/Δx Similarly, ∂f/∂y measures local change in the y direction. In three dimensions, the first partial derivatives are ∂f/∂x, ∂f/∂y, and ∂f/∂z. If f is differentiable, a small change can be approximated by the total differential: df = (∂f/∂x)dx + (∂f/∂y)dy + (∂f/∂z)dz The differential gives a first-order approximation. Higher-order terms are neglected, so the approximation is reliable when the coordinate changes are sufficiently small and the function is smooth. Worked Example 1: Temperature SensitivitySuppose the temperature in a plate is modeled by T(x,y) = 80 + 4x² - 3xy + 2y² where x and y are in metres and T is in °C. At (x,y)=(1,2), ∂T/∂x = 8x - 3y = 2 °C/m and ∂T/∂y = -3x + 4y = 5 °C/m Thus, at that point, a one-metre displacement in the positive x direction produces a local temperature increase of approximately 2 °C per metre, while the corresponding y sensitivity is 5 °C per metre. If dx=0.01 m and dy=-0.02 m, then dT ≈ (2)(0.01) + (5)(-0.02) = -0.08 °C This is a local estimate, not an exact finite-displacement result. Mixed partial derivatives such as ∂²f/(∂x∂y) describe how one sensitivity changes with another coordinate. If second partial derivatives are continuous in a neighborhood, Clairaut’s theorem gives ∂²f/(∂x∂y) = ∂²f/(∂y∂x) The continuity condition is important; without suitable regularity, the equality cannot be assumed automatically. 3. Gradient and Directional DerivativesThe gradient of a scalar field is the vector of its first partial derivatives: ∇φ = (∂φ/∂x)\mathbf{i} + (∂φ/∂y)\mathbf{j} + (∂φ/∂z)\mathbf{k} The gradient is normal to a level surface φ=C. Its magnitude is the maximum rate of increase of φ, and its direction is the direction of that maximum increase. For a unit vector \mathbf{u}, the directional derivative is D_{\mathbf{u}}φ = ∇φ · \mathbf{u} If a non-unit direction vector \mathbf{a} is supplied, first normalize it: \mathbf{u} = \mathbf{a}/|\mathbf{a}| The directional derivative has the units of the field divided by the units of distance when the direction is spatial. Thermal InterpretationFourier’s law for an isotropic material is \mathbf{q} = -k∇T where \mathbf{q} is heat flux in W/m², k is thermal conductivity in W/(m·K), and T is temperature in K or °C when used in a gradient. The negative sign means heat flows toward decreasing temperature. The law assumes local conduction, an isotropic conductivity, and a sufficiently smooth temperature field. For anisotropic materials, k is replaced by a conductivity tensor. Worked Example 2: Direction of Maximum Temperature IncreaseAt a point, let T(x,y,z)=100+2x-xy+3z² At (1,2,1), ∇T = (2-y)\mathbf{i} - x\mathbf{j} + 6z\mathbf{k} = 0\mathbf{i} - \mathbf{j} + 6\mathbf{k} The maximum increase is in the direction (0,-1,6). Its magnitude is √37 ≈ 6.083 temperature units per metre. The unit direction is (0,-1,6)/√37. For direction \mathbf{a}=(2,1,2), the unit vector is (2,1,2)/3. Hence D_{\mathbf{u}}T = (0,-1,6)·(2,1,2)/3 = 11/3 ≈ 3.67 The temperature increases at approximately 3.67 units per metre in that direction. 4. Jacobians and Coordinate TransformationsFor a mapping from variables (x1,x2,…,xn) to (y1,y2,…,yn), the Jacobian matrix is J = [∂yi/∂xj] The Jacobian determinant is det(J). It measures local scale change and orientation. If det(J)≠0, the inverse-function theorem provides a locally invertible transformation under suitable differentiability conditions. For a double integral, if x=x(u,v) and y=y(u,v), dA = |∂(x,y)/∂(u,v)| du dv The absolute value is required because area is nonnegative. For a triple integral, dV = |∂(x,y,z)/∂(u,v,w)| du dv dw Common Coordinate Systems| Coordinates | Transformation | Volume or area element |
|---|
| Polar | x=r cosθ, y=r sinθ | dA=r dr dθ | | Cylindrical | x=r cosθ, y=r sinθ, z=z | dV=r dr dθ dz | | Spherical | x=ρ sinφ cosθ, y=ρ sinφ sinθ, z=ρ cosφ | dV=ρ² sinφ dρ dφ dθ |
In the spherical convention used here, ρ is radial distance, φ is measured from the positive z axis, and θ is the azimuthal angle in the xy-plane. 5. Multiple IntegralsA double integral over a region R accumulates a scalar quantity over area: ∬R f(x,y)dA A triple integral over a volume V accumulates a quantity through space: ∭V f(x,y,z)dV If ρm is mass density in kg/m³, then mass is m = ∭V ρm dV If density is constant, this becomes m=ρm Vol(V). Moments and centroids are also obtained by weighted integrals. For example, the centroid coordinate of a planar lamina with density ρm(x,y) is x̄ = [∬R xρm dA]/[∬R ρm dA] Worked Example 3: Heat Generated in a PlateA thin rectangular plate occupies 0≤x≤2 and 0≤y≤1 metres. Its areal heat-generation rate is g(x,y)=5+x+2y W/m² The total generation rate is Q̇ = ∫02 ∫01 (5+x+2y) dy dx Integrating first with respect to y gives ∫01 (5+x+2y)dy = 6+x Therefore, Q̇ = ∫02 (6+x)dx = [6x+x²/2]02 = 14 W The units are W/m² multiplied by m², producing W. This calculation assumes the given rate is already averaged through the plate thickness. When the region is described by inequalities rather than a rectangle, the limits must reflect the geometry. Incorrect limits are a frequent source of error; sketching the region or changing coordinates can simplify the integral. 6. Divergence, Curl, and the LaplacianFor a vector field \mathbf{F}=Fx\mathbf{i}+Fy\mathbf{j}+Fz\mathbf{k}, divergence is ∇·\mathbf{F} = ∂Fx/∂x + ∂Fy/∂y + ∂Fz/∂z Divergence is a scalar measure of net local outflow per unit volume. Positive divergence indicates a local source; negative divergence indicates a local sink. In incompressible flow, the velocity field commonly satisfies ∇·\mathbf{v}=0 provided density is constant and mass is conserved locally. Curl is ∇×\mathbf{F} = (∂Fz/∂y-∂Fy/∂z)\mathbf{i} + (∂Fx/∂z-∂Fz/∂x)\mathbf{j} + (∂Fy/∂x-∂Fx/∂y)\mathbf{k} Curl measures local rotation or circulation density. A field with zero curl in a simply connected region is called irrotational, and under appropriate smoothness conditions it can be represented as the gradient of a potential: \mathbf{F}=∇ψ. The converse identity ∇×(∇ψ)=\mathbf{0} always holds when the required second derivatives are continuous. The Laplacian of a scalar field is ∇²φ = ∂²φ/∂x² + ∂²φ/∂y² + ∂²φ/∂z² It appears in heat conduction, diffusion, elasticity, and potential theory. For constant thermal conductivity and volumetric heat generation \dot{q}, the steady heat equation is ∇²T = -\dot{q}/k This form assumes isotropic constant k, steady conditions, and no convective or radiative terms within the modeled domain. 7. Line, Surface, and Volume IntegralsA line integral of a vector field along curve C is ∫C \mathbf{F}·d\mathbf{r} where d\mathbf{r}=dx\mathbf{i}+dy\mathbf{j}+dz\mathbf{k}. If \mathbf{F} is force, the integral represents work. A scalar line integral ∫C f ds accumulates a scalar quantity along a path. The flux of \mathbf{F} through an oriented surface S is ∬S \mathbf{F}·\mathbf{n}dS where \mathbf{n} is the chosen unit normal. Reversing orientation changes the sign. For a closed surface, the outward normal is the conventional orientation. 8. Integral TheoremsGreen’s TheoremFor a positively oriented, piecewise smooth, simple closed curve C enclosing a planar region R, with continuously differentiable P and Q, ∮C P dx + Q dy = ∬R (∂Q/∂x - ∂P/∂y)dA Positive orientation means counterclockwise traversal. Green’s theorem converts circulation around a boundary into curl-like accumulation over the enclosed area. Stokes’ TheoremFor an oriented smooth surface S with boundary C, consistently oriented by the right-hand rule, ∮C \mathbf{F}·d\mathbf{r} = ∬S (∇×\mathbf{F})·\mathbf{n}dS It relates circulation around a boundary to the flux of curl through the surface. The field must be sufficiently smooth on a region containing the surface. Divergence TheoremFor a closed piecewise smooth surface S enclosing volume V, ∯S \mathbf{F}·\mathbf{n}dS = ∭V (∇·\mathbf{F})dV The normal is outward. The theorem converts net outward flux into the total volume source strength. It is fundamental to conservation laws and finite-volume computational methods. 9. Applied Case: Cooling of a Milled ComponentBackgroundConsider an illustrative aluminum milling plate occupying a rectangular region. During machining, heat is generated near the tool path. Engineers need to identify the direction of heat flow and estimate the total heat entering a coolant boundary. ProblemAssume the local temperature field near a surface is T(x,y)=120+8x-5y+2x² °C and the aluminum conductivity is k=160 W/(m·K). Determine the conductive heat flux at (x,y)=(1,1), and interpret the result. Analysis and SolutionThe gradient is ∇T=(8+4x)\mathbf{i}-5\mathbf{j} At the specified point, ∇T=12\mathbf{i}-5\mathbf{j} K/m Fourier’s law gives \mathbf{q}=-160(12\mathbf{i}-5\mathbf{j}) = -1920\mathbf{i}+800\mathbf{j} W/m² The magnitude is |\mathbf{q}|=160√(12²+5²)=160(13)=2080 W/m² Heat therefore flows toward decreasing temperature, in the direction (-12,5). If a coolant boundary has outward unit normal \mathbf{n}=(1,0), the outward heat flux is \mathbf{q}·\mathbf{n}=-1920 W/m² The negative sign means heat is entering the body through that boundary rather than leaving it. Outcome and Engineering InterpretationThe gradient identifies the steepest thermal change, while Fourier’s law converts that change into a measurable flux. A design engineer could integrate \mathbf{q}·\mathbf{n} over the complete boundary to determine total heat transfer, then compare it with coolant capacity and allowable component temperature. Learning Points- Temperature gradients have units of K/m.
- Conductivity converts temperature gradient into heat flux.
- Boundary orientation controls the sign of flux.
- A local field model does not automatically provide a valid whole-component prediction.
- Material properties, convection, radiation, transient effects, and contact resistance may need to be included in a more complete model.
10. Computational Practice and Professional UseComputer algebra systems can differentiate fields, calculate Jacobians, and evaluate symbolic integrals. Numerical tools can approximate difficult integrals and solve partial differential equations using finite differences, finite elements, or finite volumes. However, software does not determine whether a field is physically appropriate, whether boundary conditions are compatible, or whether units have been entered consistently. Finite-element methods approximate an unknown field using functions over small elements. Finite-volume methods emphasize flux balances over control volumes and therefore align naturally with the divergence theorem. Engineers should verify numerical models by checking: - dimensional consistency;
- conservation of mass, energy, or momentum;
- mesh independence;
- boundary-condition implementation;
- convergence and residuals; and
- comparison with analytical solutions or experimental measurements.
AI-assisted coding can accelerate model setup, but generated code and symbolic results require independent verification. In safety-critical machine design, traceability, documented assumptions, validation, and professional standards remain necessary. An attractive contour plot is not evidence that a model is correct. 11. Limitations and Common ErrorsSeveral errors occur repeatedly in multivariable applications: - confusing a partial derivative with a total derivative;
- using a direction vector without normalizing it;
- omitting the Jacobian in a coordinate transformation;
- reversing surface orientation without changing the flux sign;
- applying the divergence theorem to an open surface;
- using a steady heat equation for a rapidly changing process;
- treating temperature differences in °C as problematic in gradients—temperature intervals in °C and K have equal numerical size, although absolute thermodynamic equations require kelvin;
- assuming zero divergence means zero velocity; it means zero net local expansion, not no motion; and
- interpreting a local linear approximation as an exact global relationship.
Good practice is to sketch the domain, state assumptions, list units, identify orientation, and perform an order-of-magnitude check before trusting a result. Chapter SummaryMultivariable calculus extends differentiation and integration to fields depending on several coordinates. Partial derivatives describe coordinate-wise sensitivity, while the total differential gives a local linear approximation. The gradient is normal to level surfaces and points toward maximum scalar increase; its dot product with a unit vector gives a directional derivative. Jacobians quantify local scale change under coordinate transformations and are essential in polar, cylindrical, and spherical integration. Double and triple integrals accumulate quantities over areas and volumes and support calculations of mass, heat generation, moments, and centroids. Divergence measures local net outflow, curl measures local rotation, and the Laplacian combines second spatial derivatives. Fourier’s law connects temperature gradients to heat flux. Green’s, Stokes’, and the divergence theorems convert between local differential descriptions and global boundary or volume quantities. Their assumptions—smoothness, geometry, orientation, and appropriate boundary conditions—must be checked before use. In machine technology, these tools support thermal analysis, fluid mechanics, manufacturing-process modeling, computational simulation, and conservation-law calculations. Reliable engineering practice combines mathematical accuracy with physical assumptions, dimensional checks, numerical validation, and responsible interpretation. Key TermsScalar field: A function assigning one scalar value to each point. Vector field: A function assigning a vector to each point. Partial derivative: Rate of change with respect to one variable while other independent variables are held constant. Total differential: First-order approximation of a multivariable change. Gradient: Vector of first partial derivatives of a scalar field. Level surface: Surface on which a scalar field has constant value. Directional derivative: Rate of change in a specified unit direction. Jacobian matrix: Matrix containing first derivatives of a coordinate mapping. Jacobian determinant: Local scale factor for area or volume under a transformation. Double integral: Integral over a two-dimensional region. Triple integral: Integral over a three-dimensional volume. Divergence: Scalar measure of local net outward flux. Curl: Vector measure of local circulation or rotation. Laplacian: Sum of the second partial derivatives of a scalar field. Line integral: Integral accumulated along a curve. Flux: Amount of a vector field crossing a surface per unit area, represented by a normal component. Green’s theorem: Planar relation between boundary circulation and area accumulation. Stokes’ theorem: Relation between circulation around a boundary and curl flux through a surface. Divergence theorem: Relation between closed-surface flux and volume divergence. Fourier’s law: Constitutive law relating conductive heat flux to the negative temperature gradient. Review Questions5 Short Answer Questions- What is the physical meaning of the gradient of temperature?
- Why is a direction vector normalized before calculating a directional derivative?
- What does the Jacobian determinant represent in a coordinate transformation?
- Distinguish divergence from curl.
- State the orientation convention for the outward normal in the divergence theorem.
5 Long Answer Questions- Explain partial derivatives, total differentials, and their use in estimating temperature changes in a machine component.
- Derive and interpret Fourier’s law in terms of the temperature gradient, including units and assumptions.
- Compare Cartesian, cylindrical, and spherical coordinates, giving the appropriate volume elements.
- Explain Green’s, Stokes’, and the divergence theorems and identify the type of integral converted by each theorem.
- Discuss how finite-element and finite-volume methods use multivariable and vector calculus in engineering simulation.
3 Analytical / Application Questions- For T=50+3x²-2xy+y², calculate ∇T at (1,2), the maximum rate of increase, and the heat-flux vector if k=40 W/(m·K).
- A velocity field is \mathbf{v}=(2x,-2y,0). Calculate its divergence and explain whether it represents locally incompressible flow under constant-density assumptions.
- Use a suitable coordinate system to formulate the volume integral for the mass of a solid cylinder of radius R and height H when density varies as ρm(r)=ρ0(1+r/R). State the limits and Jacobian, but do not assume the density is constant.
Multiple Choice Questions with AnswersQuestion 1Which vector points in the direction of maximum increase of a differentiable scalar field φ? A. The gradient ∇φ B. The curl ∇×φ C. The divergence ∇·φ D. The zero vector in every case Correct Answer: A. The gradient ∇φ Question 2For T(x,y)=x²+3y, what is ∂T/∂x? A. 2x B. 3 C. x² D. 2y Correct Answer: A. 2x Question 3What Jacobian factor must be included when converting a planar Cartesian integral to polar coordinates? A. r B. r² C. sin θ D. 1/r Correct Answer: A. r Question 4If F=(x², y², z²), what is ∇·F? A. 2x+2y+2z B. x²+y²+z² C. 0 D. 6 Correct Answer: A. 2x+2y+2z Question 5Fourier’s law for isotropic conduction is A. q=−k∇T B. q=kT C. q=∇T/k D. q=−T∇k Correct Answer: A. q=−k∇T Question 6The divergence theorem relates A. Closed-surface flux to volume divergence B. A line integral to a time derivative C. A volume integral to a point value only D. Curl to scalar multiplication Correct Answer: A. Closed-surface flux to volume divergence Question 7For a unit vector u, the directional derivative of φ is A. ∇φ·u B. ∇φ×u C. ∇·u D. |φ|u Correct Answer: A. ∇φ·u Question 8The cylindrical-coordinate volume element is A. r dr dθ dz B. dr dθ dz C. r² dr dθ dz D. sin θ dr dθ dz Correct Answer: A. r dr dθ dz Question 9If ∇·v=0 for a constant-density velocity field, the flow is locally A. Incompressible B. Stationary everywhere C. Irrotational necessarily D. Accelerating necessarily Correct Answer: A. Incompressible Question 10Stokes’ theorem converts surface integral of curl into A. A boundary line integral B. A volume integral of density C. A point derivative D. A double integral over all space Correct Answer: A. A boundary line integral
|