Multivariable Calculus
Disclaimer: These are my personal notes compiled for my own reference and learning. They may contain errors, incomplete information, or personal interpretations. While I strive for accuracy, these notes are not peer-reviewed and should not be considered authoritative sources. Please consult official textbooks, research papers, or other reliable sources for academic or professional purposes.
1. Partial Derivatives
For a function $f(x, y)$, the partial derivative with respect to $x$ is:
Similarly for $y$:
2. Higher Order Partial Derivatives
Second partial derivatives:
3. Clairaut's Theorem
If $f$ has continuous second partial derivatives, then:
4. Gradient
The gradient of $f(x, y)$ is the vector of partial derivatives:
For $f(x, y, z)$:
5. Directional Derivative
The directional derivative of $f$ in the direction of unit vector $\mathbf{u}$ is:
This gives the rate of change of $f$ in the direction of $\mathbf{u}$.
6. Chain Rule for Multivariable Functions
For $f(x(t), y(t))$:
For $f(x(s,t), y(s,t))$:
7. Critical Points and Extrema
Critical points occur where $\nabla f = \mathbf{0}$ or partial derivatives don't exist.
7.1 Second Derivative Test
For a critical point $(a, b)$, let:
- If $D > 0$ and $f_{xx}(a,b) > 0$: Local minimum
- If $D > 0$ and $f_{xx}(a,b) < 0$: Local maximum
- If $D < 0$: Saddle point
- If $D = 0$: Test is inconclusive
8. Multiple Integrals
8.1 Double Integrals
For a region $R$ in the $xy$-plane:
8.2 Triple Integrals
For a region $E$ in 3D space:
9. Change of Variables
For a transformation $T: (u,v) \mapsto (x,y)$:
where $J$ is the Jacobian determinant:
10. Line Integrals
For a curve $C$ parameterized by $\mathbf{r}(t)$:
For vector fields:
11. Green's Theorem
For a simple closed curve $C$ bounding region $D$:
where $\mathbf{F} = P\mathbf{i} + Q\mathbf{j}$.
12. Divergence and Curl
For a vector field $\mathbf{F} = P\mathbf{i} + Q\mathbf{j} + R\mathbf{k}$:
13. Code Example
# Python code for multivariable calculus
import numpy as np
import sympy as sp
from scipy import optimize
# Define variables and function
x, y = sp.symbols('x y')
f = x**2 + y**2 - 2*x*y
# Partial derivatives
f_x = sp.diff(f, x)
f_y = sp.diff(f, y)
f_xx = sp.diff(f, x, 2)
f_yy = sp.diff(f, y, 2)
f_xy = sp.diff(f, x, y)
print(f"∂f/∂x = {f_x}")
print(f"∂f/∂y = {f_y}")
print(f"∂²f/∂x² = {f_xx}")
print(f"∂²f/∂y² = {f_yy}")
print(f"∂²f/∂x∂y = {f_xy}")
# Find critical points
critical_points = sp.solve([f_x, f_y], [x, y])
print(f"Critical points: {critical_points}")
# Numerical optimization
def func(x):
return x[0]**2 + x[1]**2 - 2*x[0]*x[1]
result = optimize.minimize(func, [0, 0])
print(f"Minimum at: {result.x}")
14. References
- Stewart, J. (2015). Calculus: Early Transcendentals.
- Marsden, J. E., & Tromba, A. J. (2012). Vector Calculus.
- Hubbard, J. H., & Hubbard, B. B. (2015). Vector Calculus, Linear Algebra, and Differential Forms.