10.46 min read
Multivariate Functions
A multivariate function takes an -dimensional vector as input. For : , whose graph is a surface in . For , direct visualization is impossible — we rely on contour plots (level sets) and tools like partial derivatives.
The key difference from univariate functions: there are infinitely many directions to move in , and might behave differently in each. This is why the univariate derivative (a single number) generalizes to the gradient (a vector) for multivariate functions. Understanding univariate derivatives first gives us the building blocks.
Formal View
Definition 10.3 — Multivariate Function
A multivariate function is a map . For , the graph is a surface in : . For general , the level sets (contours) are used for visualization.
Why This Matters
All interesting optimization problems in data science and engineering involve multivariate functions.
- Neural network loss: is a function of millions of parameters.
- Option pricing: as a function of stock price and time .
- Weather modeling: pressure at location and time .
Quiz
Question 1
The level set of a function is:
Question 2
For , the graph of can be visualized directly in 3D.
Common Mistakes
- Thinking that rules from single-variable calculus automatically extend to multiple variables — some do, but many require care.
- Confusing the graph (in ) with the level sets (in ) — they are different objects.