Search Knowledge

© 2026 LIBREUNI PROJECT

Calculus & Analysis / Overview

Multivariable Calculus

Multivariable Calculus

Multivariable calculus extends the concepts of single-variable calculus to functions of several variables.

Partial Derivatives and the Gradient

A partial derivative measures the rate of change of a multivariable function with respect to one variable, holding others constant. The Gradient f\nabla f is a vector of partial derivatives: f=(fx1,fx2,,fxn)\nabla f = \left( \frac{\partial f}{\partial x_1}, \frac{\partial f}{\partial x_2}, \dots, \frac{\partial f}{\partial x_n} \right) It points in the direction of the steepest ascent.

python
1def f(x, y):
2 return x**2 + 3*y**2
3 
4def gradient_f(x, y):
5 # Partial w.r.t x: 2x
6 # Partial w.r.t y: 6y
7 return (2*x, 6*y)
8 
9x0, y0 = 1.0, 2.0
10grad = gradient_f(x0, y0)
11print(f"Gradient at ({x0}, {y0}): {grad}")

Multiple Integrals

A double integral Df(x,y)dA\iint_D f(x, y) \, dA calculates the volume under the surface z=f(x,y)z = f(x, y) over a region DD in the xyxy-plane.

python
1from scipy.integrate import dblquad
2 
3# f(x, y) = x*y
4# Over [0, 1] x [0, 2]
5area, error = dblquad(lambda y, x: x*y, 0, 1, lambda x: 0, lambda x: 2)
6 
7print(f"Double integral of x*y over [0,1]x[0,2]: {area:.4f}")

If the partial derivative of f with respect to x is zero everywhere, what can we say about f?

Vector Fields and Line Integrals

A vector field F\mathbf{F} assigns a vector to every point in space. A line integral CFdr\int_C \mathbf{F} \cdot d\mathbf{r} measures the work done by a force field along a path CC.

What is a conservative vector field?

The Jacobian Matrix

The Jacobian matrix of a vector-valued function f:RnRm\mathbf{f}: \mathbb{R}^n \to \mathbb{R}^m is the matrix of all first-order partial derivatives. It represents the best linear approximation of the function near a point. Jij=fixjJ_{ij} = \frac{\partial f_i}{\partial x_j}

Previous Module Multiple Integration