Calculus II: Sequences, Series and Multivariable Analysis

Calculus II: Sequences, Series and Multivariable Analysis
QR code for this page

Course notes covering sequences, numerical series, multivariable functions, multiple integrals, line integrals and surface integrals.

The 2013-2014 Mathematics II syllabus has two clear axes: sequences and series, and multivariable analysis. Convergence conditions, multivariable derivatives and integration methods connect those axes through a common analytical language.

The two halves can appear unrelated at first. Sequences and series ask when an infinite process approaches a meaningful value, while multivariable analysis carries the same limit idea into higher-dimensional spaces. Making that common foundation explicit helps separate conceptual conditions from routine algebraic manipulation.

Unit 1: Limits of Sequences

1.1. Definition of a Numerical Sequence

A numerical sequence is a function whose domain is usually the positive integers:

a: N → R,   n ↦ a_n.

The index records order, so a sequence is more than a set of values.

1.2. Operations on Sequences

Given sequences (a_n) and (b_n), sums, differences, products, and quotients are defined term by term wherever denominators are nonzero. Scalar multiplication is also defined termwise.

1.3. Bounded and Unbounded Sequences

A sequence is bounded above if there is an M with a_n ≤ M for every n, bounded below analogously, and bounded when both conditions hold. Boundedness alone does not imply convergence.

1.4. Supremum and Infimum of a Sequence

The set of sequence values can have a least upper bound sup a_n and greatest lower bound inf a_n. These notions summarize bounds even when the extrema are not attained by a term.

1.5. Limit of a Sequence

The statement

lim_(n→∞) a_n = L

means that for every ε>0, there is an index N such that

|a_n - L| < ε

whenever n≥N.

1.6. Properties of Convergent Sequences

A convergent sequence has a unique limit and is bounded. Standard algebraic limit laws apply to sums, products, and quotients under the usual denominator condition.

1.7. Subsequences

A subsequence is obtained by choosing increasing indices n_k. Every subsequence of a convergent sequence converges to the same limit. Divergent sequences can nevertheless possess convergent subsequences.

1.8. Monotone Sequences

A monotone increasing sequence satisfies a_(n+1) ≥ a_n; a monotone decreasing sequence satisfies the reverse inequality. A bounded monotone sequence converges.

1.9. Bolzano-Weierstrass Theorem

Every bounded sequence in R^n has a convergent subsequence. In one dimension this connects boundedness with the existence of accumulation behavior even when the full sequence does not converge.

1.10. Cauchy Sequences

A sequence is Cauchy if its terms eventually become arbitrarily close to one another:

for every ε>0, there is N such that
|a_n-a_m|<ε for n,m≥N.

In the real numbers, a sequence is convergent exactly when it is Cauchy. This equivalence relies on completeness.

Unit 2: Numerical Series

For series convergence, first check whether terms tend to zero; this is necessary but insufficient. Identify the sign pattern, positive-term behavior, and suitable comparison series. When ratio or root tests are inconclusive at their boundary value, use another method; an inconclusive test proves neither convergence nor divergence. Preserve the distinction between absolute and conditional convergence, particularly when interpreting rearrangements.

2.1. Definition of a Series

A series

Σ_(n=1)^∞ a_n

is studied through its sequence of partial sums

S_N = Σ_(n=1)^N a_n.

The series converges if (S_N) converges.

2.2. Convergent and Divergent Series

If the partial sums have a finite limit, the series is convergent; otherwise it diverges. Divergence can mean growth without bound, oscillation, or failure to approach one finite value.

2.3. Necessary Condition for Convergence

The partial sums of the harmonic series growing without bound like ln n plus the Euler constant and passing 10 at n equal to 12367 while the alternating harmonic series converges to ln 2
Harmonic and alternating harmonic series

A necessary condition is

a_n → 0.

It is not sufficient. The harmonic series is the standard counterexample.

2.4. Properties of Convergent Series

Finite changes to the initial terms do not affect convergence. Constant multiples and sums of convergent series remain convergent. Manipulating infinite series requires attention to convergence, especially when terms are rearranged.

2.5. Remainder of a Series

For a convergent series with sum S, the remainder after N terms is

R_N = S - S_N.

Convergence tests and integral estimates can sometimes provide explicit bounds for R_N.

2.6. Cauchy Criterion for Series

A series converges exactly when its tails can be made arbitrarily small:

|a_(n+1)+...+a_m| < ε

for sufficiently large m>n.

2.7. Positive-term Series

When every term is nonnegative, the partial sums are monotone increasing. Such a series converges exactly when its partial sums are bounded above.

2.8. Integral Test

Partial integrals of x to the minus p from 1 to R converging to 1 over p minus 1 for p greater than 1 and diverging for p at most 1
p-test for the improper integral

For a positive, continuous, decreasing function f with a_n=f(n), the series Σa_n and the improper integral ∫f(x)dx have the same convergence behavior. The integral can also bound the remainder.

2.9. Comparison Test

If 0≤a_n≤b_n eventually and Σb_n converges, then Σa_n converges. If a_n≥b_n≥0 eventually and Σb_n diverges, then Σa_n diverges.

2.10. D'alembert Ratio Test

For positive terms, if

L = lim |a_(n+1)/a_n|,

then L<1 implies absolute convergence and L>1 implies divergence. The case L=1 is inconclusive.

2.11. Cauchy Root Test

If

L = limsup |a_n|^(1/n),

then L<1 gives absolute convergence and L>1 divergence. Again, the boundary case requires another argument.

2.12. Raabe Test

Raabe's criterion refines the ratio test for some positive series when the ordinary ratio limit approaches one. Its usefulness lies in detecting more subtle decay rates.

2.13. Alternating Series

An alternating series of decreasing positive magnitudes tending to zero converges by the Leibniz criterion. The first omitted term bounds the magnitude of the remainder under these conditions.

2.14. Absolute and Conditional Convergence

A series converges absolutely if

Σ |a_n|

converges. Absolute convergence implies convergence. A series that converges but not absolutely is conditionally convergent.

2.15. Riemann Rearrangement Theorem

Partial sums of the alternating harmonic series added in three orders converging to ln 2, three halves ln 2 and one half ln 2
Series rearrangement

A conditionally convergent real series can be rearranged to change its sum or even to diverge. This is why arbitrary rearrangement is safe for absolutely convergent series but not for conditionally convergent ones.

2.16. Dirichlet and Abel Tests

These tests establish convergence for products of sequences when one factor has controlled partial sums and the other has suitable monotone or bounded behavior. They are particularly useful for oscillatory series.

2.17. Power Series

A power series centered at a is

Σ c_n (x-a)^n.

There is a radius R such that the series converges absolutely for |x-a|<R and diverges for |x-a|>R; endpoints must be tested separately.

2.18. Taylor and Maclaurin Series

Taylor polynomial convergence toward the sine function as the approximation order increases
Taylor series convergence

For a sufficiently regular function, Taylor's series is built from derivatives at a point:

Σ f^(n)(a)(x-a)^n/n!.

Maclaurin is the special case a=0. A formal Taylor series represents the function only where the remainder tends to zero.

2.19. Fourier Series

Fourier partial sums of a square wave showing persistent Gibbs overshoot near the discontinuity as the harmonic count increases
Gibbs phenomenon

A Fourier series represents a periodic function through sine and cosine components. Coefficients are obtained from orthogonality integrals. Convergence at discontinuities requires care; pointwise behavior can differ from uniform behavior.

2.20. Absolute, Conditional, and Uniform Convergence

For a numerical series, absolute convergence is stronger than ordinary convergence:

Σ |a_n| < ∞ => Σ a_n converges.

Conditional convergence requires more care because rearranging terms can change the sum. For sequences of functions, pointwise convergence is also weaker than uniform convergence. Uniform convergence controls the error with one bound valid over the whole domain and is important when exchanging limits with integration or differentiation.

These distinctions prevent a common mistake: treating every convergent sequence or series as if algebraic operations could be interchanged without additional hypotheses.

2.21. Bridge to Vector-Valued Functions and Space Curves

In one-variable calculus the output was scalar. Before moving into multivariable analysis, distinguish two different generalizations:

f: R^n -> R      multivariable scalar-valued function
r: R -> R^m      one-parameter vector-valued function

The first describes scalar fields, gradients, surfaces, and multivariable optimization. The second naturally describes curves, motion, and integration along a path.

2.22. Vector-valued Functions

In three dimensions,

r(t) = (x(t), y(t), z(t))

maps each parameter value to a point in space. If t is time, the point may represent the position of a moving particle; if t is merely a geometric parameter, the same expression describes a space curve.

Component notation and unit-vector notation are equivalent:

r(t) = x(t)i + y(t)j + z(t)k.

The domain is the intersection of the domains for all component functions.

2.23. Limits and Continuity

The limit is taken componentwise:

lim_(t->t0) r(t)
=
(lim x(t), lim y(t), lim z(t)).

All component limits must exist. An equivalent norm formulation is

r(t) -> L
if and only if
||r(t)-L|| -> 0.

Continuity at t0 is therefore

lim_(t->t0) r(t) = r(t0).

This is conceptually simpler than a genuinely multivariable limit because the independent parameter is still one-dimensional; a multivariable function can be approached along infinitely many spatial paths.

2.24. Derivative, Velocity, and Acceleration

Differentiation is componentwise:

r'(t) = (x'(t), y'(t), z'(t)).

At a regular point, r'(t) points along the tangent direction. If t is time,

position:       r(t)
velocity:       v(t) = r'(t)
speed:          ||v(t)||
acceleration:   a(t) = r''(t).

Velocity and speed are different objects: velocity is a vector, while speed is its norm.

The arc-length element is

ds = ||r'(t)|| dt,

so the length over [a,b] is

L = ∫[a,b] ||r'(t)|| dt.

2.25. Unit Tangent and Curvature

When r'(t) ≠ 0, define the unit tangent by

T(t) = r'(t) / ||r'(t)||.

Curvature measures how rapidly the tangent direction changes with arc length:

κ = ||dT/ds||.

A practical three-dimensional expression at a regular point is

κ =
||r'(t) × r''(t)||
/
||r'(t)||^3.

Curvature is a local measure of bending; by itself it does not encode every geometric property of a space curve.

2.26. Integration of a vector-valued Function

Integration is also componentwise:

∫ r(t) dt
=
(∫ x(t)dt, ∫ y(t)dt, ∫ z(t)dt).

If velocity is known, position is recovered from an initial condition:

r(t) = r(t0) + ∫[t0,t] v(u) du.

Likewise, integrating acceleration gives the change in velocity.

This is the fundamental theorem of one-variable calculus applied componentwise rather than a separate family of rules.

2.27. Reparametrization and Traversal Speed

The same geometric curve can be represented by different parameters. If t = φ(u) is a sufficiently smooth monotone reparametrization, then

r(t) = r(φ(u))

can trace the same point set at a different rate.

Arc length is geometric, so its value should not depend on the particular regular parametrization. The change-of-variable factor in ||r'(t)||dt provides that invariance.

Velocity and acceleration, on the other hand, do depend on the time parametrization when the parameter is interpreted physically. Separating the geometry of a curve from the law of motion is therefore essential.

2.28. Connection with Multivariable Analysis

A vector-valued function here generates a one-parameter curve. A multivariable scalar function f(x,y,z) defines a scalar field on space. The two meet in the chain rule:

d/dt f(r(t)) = grad f(r(t)) · r'(t).

This identity gives the rate of change of a scalar field along a trajectory and exposes the common geometric core of directional derivatives and line integrals.

Turning convergence into a term budget. For ∑[n=1..∞] 1/[n(n+1)], decompose the general term as 1/n − 1/(n+1). The first N terms telescope to S_N = 1 − 1/(N+1); hence the infinite sum is S = 1 and the truncation error is exactly R_N = S − S_N = 1/(N+1). If absolute error must be strictly below 0.001, solve 1/(N+1) < 0.001 before performing the sum. The smallest admissible integer is N = 1000. At N = 999, the error equals 0.001 and therefore fails the strict inequality. The key distinction is between proving convergence and finding the computational budget needed for a specified accuracy. When the remainder cannot be evaluated exactly, the same decision can be based on a valid upper bound.

Unit 3: Multivariable Functions

3.1. Multivariable Function and Domain

A function such as

f: R^2 → R,   z=f(x,y)

assigns one value to each point in a domain of the plane. Its graph is a surface in three-dimensional space.

3.2. Limit and Continuity

The limit

lim_((x,y)→(a,b)) f(x,y)=L

must be the same along every path approaching (a,b). Different path limits prove that a limit does not exist, although agreement along several paths alone does not prove existence.

Continuity requires the function value to exist and equal the limit.

3.3. Partial Derivatives

Partial differentiation changes one variable while holding the others fixed:

f_x = ∂f/∂x,   f_y = ∂f/∂y.

Higher and mixed partial derivatives follow by repeated differentiation.

3.4. Partial Elasticity and Normalized Sensitivity

Partial derivatives measure absolute local sensitivity. To compare variables that operate at different scales, each partial derivative can be normalized by the associated input and output magnitudes. Let z=f(x,y) with nonzero x, y, and z:

E_x = (x/z) · ∂f/∂x
E_y = (y/z) · ∂f/∂y.

These quantities are partial elasticities, or dimensionless partial sensitivities. From the first-order differential approximation

dz ≈ f_x dx + f_y dy,

division by z gives

dz/z ≈ E_x · dx/x + E_y · dy/y.

A small relative output change can therefore be interpreted as a sensitivity-weighted combination of small relative input changes.

This relation is a first-order deterministic sensitivity model, not a probabilistic rule for combining independent errors. If uncertainties are modeled as random variables, their covariance structure must be handled separately.

For homogeneous functions the connection is especially direct. If f is homogeneous of degree k, Euler's theorem gives

x f_x + y f_y = k f.

For f ≠ 0, division by f yields

E_x + E_y = k.

The degree of homogeneity can thus be interpreted as the sum of partial relative sensitivities.

3.5. Differentiability and Total Differential

Differentiability is stronger than the mere existence of partial derivatives. Near a differentiability point,

Δf = f_x Δx + f_y Δy + o(||(Δx,Δy)||).

The linear part is the total differential.

3.6. Chain Rule

If x and y depend on t,

df/dt = f_x dx/dt + f_y dy/dt.

The Jacobian generalizes this composition rule to vector-valued mappings.

3.7. Homogeneous Functions and Euler's Theorem

If

f(tx,ty)=t^k f(x,y),

then, under differentiability,

x f_x + y f_y = k f.

3.8. Implicit Functions

An equation F(x,y)=0 can locally define one variable as a function of another under an appropriate nonzero partial-derivative condition. Implicit differentiation then gives derivative information without solving explicitly.

3.9. Jacobian

For a coordinate transformation (u,v)→(x,y), the Jacobian determinant

J = ∂(x,y)/∂(u,v)

measures local oriented area scaling. In multiple integrals its absolute value appears in change-of-variables formulas.

3.10. Coordinate Transformations

A fixed dr dθ cell in polar coordinates mapped to an area that grows with the radius, with Jacobian equal to r
Polar Jacobian

Cartesian, polar, cylindrical, and spherical coordinate systems simplify problems with matching geometry. A valid transformation must include the correct domain and Jacobian factor.

3.11. Functional Dependence

Functions can satisfy a relation that makes them not independent. Jacobian rank is one tool for studying local functional dependence.

3.12. Taylor Formula

A multivariable Taylor expansion uses partial derivatives to approximate a function near a point. The quadratic terms involve the Hessian matrix and are central to local extremum classification.

3.13. Unconstrained Extrema

At an interior differentiable local extremum,

∇f = 0

is a necessary condition. The Hessian can classify nondegenerate critical points as minima, maxima, or saddles.

3.14. Optimization Interpretation of Least Squares

A concrete application of multivariable optimization is the least-squares problem in linear regression. For data pairs (xᵢ,yᵢ), consider the line

ŷᵢ = a + b xᵢ.

The coefficients are chosen to minimize the residual sum of squares

J(a,b) = Σ [yᵢ − (a + b xᵢ)]².

This is directly an unconstrained optimization problem in two variables. An interior candidate satisfies

∂J/∂a = 0
∂J/∂b = 0.

If the xᵢ values are not all identical, the Hessian

H = 2 · | n      Σxᵢ  |
        | Σxᵢ   Σxᵢ² |

is positive definite and the objective is strictly convex, so the critical point is the unique global minimum.

The purpose here is not to repeat regression theory. Statistical interpretation, residual diagnostics, and inference belong to Probability and Statistics, while the matrix and projection viewpoint belongs to Linear Algebra. The point is to show how the same problem appears as an objective function analyzed through gradients and the Hessian.

3.15. Constrained Extrema and Lagrange Multipliers

Lagrange multiplier geometry showing objective contours tangent to an elliptical constraint with parallel gradients at the optimum
Lagrange multiplier geometry

For a constraint g(x,y)=c, a regular constrained extremum satisfies

∇f = λ ∇g.

The method encodes the fact that allowable tangent directions cannot increase f to first order.

3.16. Curves, Tangent Vector, and Normal Plane

For a parametric curve r(t), the derivative r'(t) is a tangent vector when nonzero. A plane normal to the curve at a point has the tangent as its normal vector.

3.17. Surfaces, Tangent Plane, and Normal Vector

Scientific animation of a tangent plane and normal vector on a surface
Tangent plane

For an implicit surface F(x,y,z)=c, the gradient

∇F

is normal to the level surface where it is nonzero. The tangent plane is therefore defined from the gradient.

3.18. Gradient

∇f = (f_x,f_y,f_z)

points in the direction of steepest local increase, and its norm gives the maximum directional derivative.

3.19. Directional Derivative

Directional derivative along a rotating unit vector as the projection of the gradient with the level curves
Directional derivative

For a unit vector u,

D_u f = ∇f · u.

3.20. Divergence, Curl, and Laplacian

Scientific animation of divergence and curl on vector fields
Divergence and curl

For a vector field F, divergence measures local source/sink behavior and curl measures local rotation. For a scalar field,

Δf = ∇·∇f

is the Laplacian.

3.21. Change of Variables and the Jacobian Determinant

A multivariable substitution changes both coordinates and local area or volume. For a transformation (u,v) -> (x,y), the area element becomes

dx dy = |det J| du dv

where J is the Jacobian matrix of partial derivatives.

The determinant is a local scale factor. Omitting it produces a result in the wrong measure even when the transformed region is correct. The same principle appears in probability-density transformations, continuum mechanics, and coordinate changes used in numerical integration.

3.22. Green, Stokes, and Gauss as One Structural Idea

Green's theorem, Stokes' theorem, and the divergence theorem connect a derivative integrated over a region to a quantity integrated over its boundary. The dimensions and orientation differ, but the structural pattern is the same:

integral of local change over a domain <-> integral over its boundary.

Reading them this way is more durable than memorizing three unrelated formulas.

3.23. Velocity, Arc Length, and Curvature of a Parametric Curve

Tangent velocity vector and local curvature along a parametric curve
Parametric speed and curvature

For a parametric curve r(t), the derivative r'(t) carries the tangent direction and the rate of change with respect to the parameter. The speed is

v(t) = ||r'(t)||,

and the arc length between t0 and t1 is

L = integral_(t0)^(t1) ||r'(t)|| dt.

Curvature measures how rapidly the tangent direction changes with arc length. For a regular planar curve,

kappa = abs(x' y'' - y' x'') / (x'^2 + y'^2)^(3/2)

is one useful form. Large curvature corresponds to a sharp turn, while small curvature indicates locally straighter behavior.

These ideas appear directly in computer graphics, robot trajectories, motion planning, and geometric modeling. Their mathematical core belongs here; numerical treatment of discretized curves belongs to numerical analysis.

3.24. The Hessian as a second-order Local Model

How Hessian eigenvalues determine second-order local geometry
Hessian local model

For a multivariable function, the gradient captures first-order change, while the Hessian collects second-order curvature. For a small vector delta,

f(x+delta) ≈ f(x) + grad(f)(x)^T delta
             + 1/2 delta^T H(x) delta.

At a critical point, where the gradient vanishes, the Hessian helps classify local geometry. A positive-definite Hessian implies a strict local minimum, a negative-definite Hessian a strict local maximum, and mixed curvature directions indicate a saddle point.

This is the mathematical basis of second-order optimization. In large problems, explicitly forming the entire Hessian may be too expensive, so directional products such as H v can be more appropriate.

3.25. Matrix and Vector Derivatives: JVP and VJP

Forward-mode JVP and reverse-mode VJP flow through a computational graph
JVP and VJP

The local derivative of a map f: R^n -> R^m is represented by its Jacobian J. In modern computation, however, materializing the full matrix is often unnecessary.

A Jacobian-vector product (JVP),

J v,

propagates a selected input direction to the output. A vector-Jacobian product (VJP),

u^T J,

propagates an output sensitivity backward to the inputs.

Forward-mode automatic differentiation naturally computes JVP-like quantities, while reverse mode naturally computes VJPs. This explains why reverse mode is attractive when a model has many parameters but a scalar loss. The goal here is to expose the matrix form of the chain rule rather than to teach a particular software framework.

3.26. Reading Sequences, Series, and Multivariable Analysis Through a Common Language of Convergence

The course moves from one-dimensional limiting processes to multivariable and vector calculus:

Sequences
   ↓
Infinite series
   ↓
Functions of several variables
   ↓
Multiple integrals
   ↓
Vector fields
   ↓
Line and surface integrals
   ↓
Green / Stokes / divergence theorems

Sequences and series formalize infinite approximation. Multivariable derivatives describe local change in several directions. Multiple integrals accumulate over areas and volumes. Vector-calculus theorems connect local derivatives inside a region with integrals over its boundary.

3.27. Separating Convergence, Differentiation, Integration, and Geometric Orientation

Sequence ≠ series. A sequence is an ordered list; a series is the limit problem associated with its partial sums.

a_n→0 ≠ series convergence. Vanishing terms are necessary but not sufficient for Σa_n to converge.

Absolute convergence ≠ conditional convergence. Absolute convergence permits safe rearrangement; conditional convergence can change under rearrangement.

Agreement along a few paths ≠ proof of a multivariable limit. One differing path disproves the limit, but finitely many agreeing paths do not establish it.

Partial derivatives existing ≠ differentiability. Differentiability requires a genuine first-order linear approximation.

Gradient ≠ directional derivative. The gradient is a vector; the directional derivative is its scalar projection onto a selected unit direction.

Jacobian ≠ arbitrary correction factor. It is the determinant that measures local coordinate scaling in a change of variables.

Double integral ≠ repeated notation only. Its domain is a two-dimensional region and the integration order reflects a description of that region.

Line integral of a scalar field ≠ vector-field work integral. ∫f ds uses arc length; ∫F·dr depends on field direction and curve orientation.

Conservative field ≠ arbitrary field. Under appropriate regularity and simply connected domain conditions, ∂P/∂y = ∂Q/∂x in the plane is a fundamental criterion for conservativeness and path independence.

Stokes' theorem ≠ divergence theorem. Stokes relates boundary circulation to curl over a surface; divergence theorem relates outward flux to divergence over a volume.

The material keeps sequence/series convergence and multivariable analysis as distinct topics, but their common control variable is limiting behaviour. Whether evaluating a series, interpreting a gradient, or setting the domain of a multiple integral, the decisive question is under which assumptions the operation is defined and convergent.

3.28. Gradient, Hessian, and Multivariable Sensitivity

Multivariable derivatives form structured objects. The gradient gives the direction of steepest increase, the Jacobian is the local linear map of a vector-valued function, and the Hessian describes curvature.

A near-zero gradient alone does not prove a minimum; curvature and constraints matter. In high dimensions, Hessian-vector products can avoid forming the full Hessian.

The same machinery supports uncertainty propagation: small sensor uncertainties can be mapped into output uncertainty through the Jacobian.

3.29. From Multivariable Analysis to Model Optimization

Modern learning models depend on many parameters rather than one. The strongest connection from Calculus II to AI therefore comes from multivariable functions, gradients, Jacobians, and curvature. Training can be viewed as movement through a high-dimensional parameter space.

For a loss:

L = L(w1, w2, ..., wn)

the vector of partial derivatives is the gradient:

∇L = [∂L/∂w1, ..., ∂L/∂wn]^T

It gives the direction of steepest local increase; minimization steps in the opposite direction. The geometric intuition learned in two or three dimensions remains valid even when the parameter count is enormous.

Second-order information is represented by the Hessian:

H_ij = ∂²L / ∂wi ∂wj

It describes local curvature. Newton and quasi-Newton methods exploit such information, while very large neural networks rarely form a full Hessian explicitly. The concept still explains why optimization may progress rapidly in some directions and slowly in others.

For vector-valued functions, the Jacobian collects output sensitivity to each input component. If y=f(x) with x∈R^n and y∈R^m, the Jacobian is m×n. Backpropagation and differentiable programming can be understood as efficient propagation of these local derivatives through compositions.

A zero gradient is not sufficient to prove a minimum; the point may be a maximum or a saddle point. High-dimensional loss surfaces naturally contain flat and saddle-like directions.

Taylor expansion links local derivatives to approximation:

f(x+Δx) ≈ f(x) + ∇f(x)^TΔx + 1/2 Δx^T H Δx

This expression gives a common language for first- and second-order optimization and sensitivity analysis.

Multivariable integration also connects to probabilistic learning. Marginalization and expectations over continuous joint distributions are multidimensional integrals. In high dimensions, exact integration may be impossible and Monte Carlo or approximate inference becomes necessary.

The connection is therefore broader than “AI uses gradient descent.” Multivariable analysis provides the language for local change, sensitivity, curvature, and integration in high-dimensional model spaces. The learning algorithms themselves belong to Statistical Learning and Machine Learning, while their matrix form depends on Linear Algebra.

3.30. Decompose a Multivariable Problem Before Calculating

A sequence and a series are different objects. A sequence is an ordered list of terms; a series studies the limit of partial sums. Terms approaching zero may be necessary for convergence of a series but are not sufficient. The harmonic series is the standard counterexample.

For a series, inspect its structure before selecting a test. Comparison, limit comparison, ratio, or root tests can be useful for positive-term series. Alternating series require a distinction between absolute and conditional convergence. If a test returns an inconclusive boundary such as 1, another method is needed.

For multivariable functions, a partial derivative measures change in one coordinate while the others are held fixed. The gradient collects all first partial derivatives and points in the direction of steepest local increase. A critical point with ∇f = 0 is only a candidate; classification may require the Hessian or another local argument.

Bounds in double and triple integrals describe geometry, not just algebra. Changing the order of integration requires the same region to be expressed with new bounds. Under a coordinate transformation, the Jacobian carries the local change in area or volume scale.

Line integrals, surface integrals, Stokes' theorem, and the divergence theorem connect local differential quantities with boundary or region integrals. Before applying a theorem, check smoothness assumptions, orientation, and whether the stated boundary actually belongs to the region under consideration.

3.31. Multivariable Capacity Optimization

Performance and network models provide direct systems applications for classical mathematics. In multivariable analysis, gradients and Hessians describe local sensitivity and curvature, eigenvalues characterize dominant directions of linearized behavior, and series provide approximations with explicit convergence questions; each tool plays a distinct role in capacity and equilibrium models. The goal is not to memorize another application area, but to state clearly which system behavior each mathematical assumption represents.

  • Construct joint cost functions over CPU, memory, and network capacity.
  • Balance latency and resource cost in constrained optimization.
  • Avoid using series expansions for performance prediction outside their convergence region.

Checking a constrained two-variable minimum. Minimize f(x,y) = (x−1)² + 2(y+2)² subject to x+y = 0. Substitute y = −x to obtain g(x) = (x−1)² + 2(2−x)² = 3x²−10x+9. The stationary equation g'(x) = 6x−10 = 0 yields x = 5/3, y = −5/3, and f_min = 2/3. Since g''(x) = 6 > 0, this is the unique global minimum along the constraint. An independent check uses ∇f = [2(x−1), 4(y+2)]: both components equal 4/3 at the solution, so the gradient is parallel to the constraint normal (1,1). The substitution result therefore satisfies the Lagrange-multiplier condition as well. Nonlinear or inequality constraints would require considering other feasible candidates and boundaries.

Unit 4: Double Integrals

Before setting bounds for a double integral, sketch the region and find intersections of its boundary curves. Compare vertical and horizontal slicing to minimize unnecessary partitioning. Changing integration order requires rederiving all inner and outer bounds, not merely swapping differentials. Check the result for plausibility against the integrand's sign and the region's area.

4.1. Partition of a Region and Definition

A double integral extends Riemann integration to a planar region D:

∬_D f(x,y) dA.

It is defined through limits of sums over small subregions when the required integrability conditions hold.

4.2. Geometric Meaning

For nonnegative f, the double integral can represent volume under the surface z=f(x,y) above the region D.

4.3. Evaluation of Double Integrals

The double integral of x times y over the rectangle from 0 to 2 and 0 to 3 computed by slicing with cross-section area 4.5 x and equal to 9 in either order of integration
Double integral by slicing with Fubini

On suitable regions, Fubini's theorem allows the integral to be computed as iterated single integrals:

∫ [∫ f(x,y) dy] dx

or in the reverse order.

4.4. Properties

Linearity, additivity over subregions, comparison, and bounds extend naturally from one-dimensional integration.

4.5. Transformations of Regions

With a one-to-one differentiable coordinate transformation,

dA = |J| du dv.

Polar coordinates give the familiar factor r.

4.6. Mass, Center of Mass, and Moment of Inertia

If surface density is ρ(x,y), then

m = ∬_D ρ dA.

Weighted coordinate integrals give the center of mass; distance-squared weighted integrals give moments of inertia.

4.7. Surface Area

For a surface z=f(x,y) over D,

A = ∬_D sqrt(1+f_x^2+f_y^2) dA.

4.8. Volume of a Solid of Revolution

Double integrals can calculate volume by integrating a unit density over the appropriate planar or transformed region. The coordinate system should be selected from the geometry of the solid.

Unit 5: Triple Integrals

5.1. Definition and Basic Properties

A triple integral

∭_V f(x,y,z) dV

extends integration to a three-dimensional region. Linearity and additivity hold as in lower dimensions.

5.2. Evaluation

On suitable regions, the integral is evaluated as an iterated integral with bounds describing the solid. The order can be changed when the region and integrability conditions allow.

5.3. Region Transformations

Cylindrical and spherical coordinates are common transformations. The volume element must include the Jacobian:

cylindrical: dV = r dr dθ dz
spherical:   dV = ρ^2 sinφ dρ dφ dθ.

5.4. Volume, Mass, Center of Mass, and Moment of Inertia

Taking f=1 gives volume. Taking f=ρ gives mass. First moments determine center of mass; distance-squared moments determine moments of inertia.

5.5. Change of Variables and the Jacobian in Triple Integrals

A coordinate transformation in a triple integral changes more than variable names: a small volume element is scaled by the absolute Jacobian determinant. Under suitable smoothness and one-to-one conditions, \((x,y,z)=T(u,v,w)\) gives

\[ \iiint_{T(D)} f(x,y,z)\,dx\,dy\,dz=\iiint_D f(T(u,v,w))\lvert\det DT(u,v,w)\rvert\,du\,dv\,dw. \]

The absolute value ensures that an orientation reversal does not make geometric volume negative.

In cylindrical coordinates, \(x=r\cos\theta\), \(y=r\sin\theta\), and \(z=z\), so the volume element is \(r\,dr\,d\theta\,dz\). A cylinder of radius \(R\) and height \(h\) has volume \(\int_0^h\int_0^{2\pi}\int_0^R r\,dr\,d\theta\,dz=\pi R^2h\). Omitting the Jacobian factor \(r\) changes the dimensions and yields an incorrect volume.

Spherical-coordinate angle conventions must be made explicit. With \(x=\rho\sin\phi\cos\theta\), \(y=\rho\sin\phi\sin\theta\), and \(z=\rho\cos\phi\), the element is \(\rho^2\sin\phi\,d\rho\,d\phi\,d\theta\). Coordinate singularities at an axis or the origin require proper handling of the transformation's assumptions.

Unit 6: Line Integrals

6.1. Line Integral in the Plane

For a curve C and scalar field f,

∫_C f ds

accumulates the field along arc length. A parametrization r(t) converts it to an ordinary integral with the speed factor ||r'(t)||.

6.2. Line Integrals with Respect to Coordinates

Expressions such as

∫_C P dx + Q dy

are evaluated from a parametrization using dx=x'(t)dt and dy=y'(t)dt.

6.3. Line Integrals in Space

The same construction extends to three-dimensional curves, where scalar or vector fields are integrated along r(t).

6.4. Line Integral of a Vector Field

For a vector field F,

∫_C F·dr

represents work-like accumulation along the curve and depends on orientation.

6.5. Fundamental Theorem for Line Integrals

If F=∇φ on an appropriate domain, then

∫_C F·dr = φ(B)-φ(A).

The integral is path independent and every closed-loop integral is zero.

6.6. Green's Theorem

Green's theorem boundary integral equals area integral with computed steps and state transitions
Green's theorem boundary integral equals area integral

For a positively oriented simple closed curve bounding a suitable planar region D,

∮_C P dx + Q dy
 = ∬_D (∂Q/∂x - ∂P/∂y) dA.

Green's theorem links circulation around a boundary with a derivative field over the enclosed region.

6.7. Choosing Vector-Calculus Theorems: Orientation and Geometric Conditions

Green's, Stokes', and the divergence theorems are not merely shortcuts for replacing one integral by another. Each connects local derivative information inside a region with accumulated behavior on its boundary. Correct use therefore requires geometric checks in addition to recognizing the algebraic form of the integral.

6.8. Region and Boundary in Green's Theorem

For a positively oriented closed boundary C = ∂D, the circulation form is

∮_C P dx + Q dy
=
∬_D (∂Q/∂x - ∂P/∂y) dA.

Before applying it, check that

  • C is closed,
  • the boundary corresponds to the region being integrated,
  • the required partial derivatives are sufficiently regular on the region,
  • inner boundaries around holes are oriented opposite to the outer boundary.

Ignoring an interior hole or singularity while integrating only around the outer curve can invalidate the result.

Green's theorem also has a flux form:

∮_C F · n ds
=
∬_D div F dA.

The circulation and flux forms can therefore be viewed as two boundary readings of curl-like and divergence-like information in the plane.

6.9. Orientation Compatibility in Stokes' Theorem

For an oriented surface S with boundary ∂S,

∮_(∂S) F · dr
=
∬_S (curl F) · n dS.

The surface normal can be chosen in either direction, but the positive traversal direction of the boundary is then fixed by that choice. The right-hand rule is the consistency rule connecting the two orientations.

When two different surfaces share the same boundary, Stokes' theorem may allow the easier surface to be chosen if the field is sufficiently regular throughout the relevant region. That simplification is not valid if the replacement surface crosses a point where the field is undefined.

In Stokes' theorem the orientation of the surface normal and the direction around its boundary cannot be chosen independently. Reversing the normal also reverses the positive boundary direction under the right-hand convention; changing only one produces an inconsistent result. A useful check is to follow both orientations when parameterizing the same surface in two different ways. If the surface and line integrals have equal magnitudes but opposite signs, orientation conventions in the coordinate transformation should be examined before reworking the integration.

6.10. Closed Surfaces in the Divergence Theorem

For a volume V with outward-oriented closed boundary ∂V,

∯_(∂V) F · n dS
=
∭_V div F dV.

The word closed is essential. The divergence theorem cannot be applied directly to an open surface. A common strategy is to add a cap, evaluate the flux over the resulting closed surface, and subtract the cap contribution.

Fields with singularities require a new check of the hypotheses. If a singular point lies inside the volume, it may be necessary to remove a small neighborhood of that point, which creates an additional inner boundary.

6.11. Conservative Fields, Closed Paths, and Topology

The condition

curl F = 0

is local. On a suitable domain, such as a simply connected region under standard regularity assumptions, it supports the existence of a potential:

F = grad φ.

Then

∫_C F · dr = φ(B)-φ(A),

and the integral is path independent.

On a domain with a hole, however, curl F = 0 need not by itself imply global path independence. This distinction reflects the difference between local derivative information and an integral that sees the entire path or surface.

6.12. Decision Order for an Integral Problem

A reliable workflow is

1. Identify the integration object: curve, surface, or volume.
2. Establish its orientation.
3. Check where the field is defined and sufficiently regular.
4. Determine whether the boundary is closed.
5. Inspect holes and singularities.
6. Compare direct integration with Green / Stokes / divergence alternatives.
7. Verify that a simpler replacement region or surface preserves the hypotheses.
8. Check units and sign in the final result.

This is safer than treating each theorem as a pattern-matching formula.

6.13. Common Structure of the Major Integral Theorems

Structurally, these theorems express the same principle:

derivative information in a region
               ↕
accumulated behavior on its boundary

In one dimension the Fundamental Theorem of Calculus gives

∫[a,b] f'(x) dx = f(b)-f(a).

Green's theorem in the plane, Stokes' theorem on a surface, and the divergence theorem on a volume are higher-dimensional realizations of the same interior-derivative / boundary-accumulation pattern.

This viewpoint replaces isolated memorization with an understanding of which differential operator corresponds to which type of geometric boundary.

Unit 7: Surface Integrals

7.1. Definition of a Surface Integral

For a scalar field over a parametrized surface S,

∬_S f dS

uses the surface-area factor derived from the cross product of the parameter tangent vectors.

7.2. Applications

Surface integrals calculate area, distributed mass, flux, and related quantities on curved surfaces.

7.3. Integrals over Oriented Surfaces

For an oriented surface with unit normal n, the flux of a vector field is

∬_S F·n dS.

Reversing orientation changes the sign.

7.4. Stokes' Theorem

For a suitable oriented surface S with boundary ∂S,

∮_(∂S) F·dr = ∬_S (∇×F)·n dS.

It generalizes the planar circulation relation to surfaces in three dimensions.

7.5. Divergence Theorem

For a suitable volume V with outward-oriented boundary surface ∂V,

∯_(∂V) F·n dS = ∭_V ∇·F dV.

It relates total outward flux to the divergence throughout the enclosed volume.

7.6. Checking Convergence and Multivariable Results

A few decreasing series terms do not prove convergence. The chosen convergence test, its assumptions, and boundary cases should be considered explicitly. Numerical partial sums provide intuition but not proof.

In multivariable analysis, a graph alone does not classify critical points. The gradient, Hessian, constraints, and domain must be considered together. Lagrange multipliers generate candidates; feasibility still needs to be checked.

For coordinate changes and multiple integrals, the Jacobian factor is essential. Unit and scale checks often reveal transformation mistakes quickly.

7.7. Regularity and Orientation in Theorem Applications

Applications of Stokes' and the Divergence theorems must check surface orientation, boundary direction, and the differentiability of the vector field. Piecewise-smooth surfaces are often admissible, but singularities and discontinuities at the boundary require separate treatment. Two surfaces sharing a boundary do not imply equal integrals without the required hypotheses.

A useful validation computes the boundary integral and the surface integral independently for a simple vector field. When signs disagree, the first check is whether the boundary orientation agrees with the chosen normal under the right-hand rule.

References

  • Ahmet Yesevi Üniversitesi Bilgisayar Mühendisliği Bölümü. Matematik II (TBIL102) ders materyalleri.
  • Albert-László Barabási. Network Science.
  • Ian Goodfellow, Yoshua Bengio, Aaron Courville. Deep Learning. MIT Press, 2016.
  • Jerrold E. Marsden, Anthony J. Tromba. Vector Calculus, 6th Edition. W. H. Freeman, 2012.
  • Joel Hass, Christopher Heil, Maurice D. Weir, Przemyslaw Bogacki. Thomas' Calculus, 15th Edition. Pearson, 2022. (Pearson)
  • Michael Spivak. Calculus on Manifolds. W. A. Benjamin, 1965.
  • Mor Harchol-Balter. Performance Modeling and Design of Computer Systems: Queueing Theory in Action. Cambridge University Press, 2013.
  • Petter Holme; Jari Saramäki (eds.). Temporal Network Theory. 2nd ed. Springer Nature Switzerland, 2023.
  • Tom M. Apostol. Calculus, Volume II, 2nd Edition. Wiley, 1969.
  • Walter Rudin. Principles of Mathematical Analysis, 3rd Edition. McGraw-Hill, 1976.
Contents