Limits and Continuity in R^n
Learning objectives
- Extend the definition to multivariable functions using the Euclidean norm
- Apply the two-path test to show a limit does not exist
- Recognize that polynomials in several variables are continuous everywhere
- Predict whether common multivariable limits exist by inspecting their dominant terms
Limits in are harder than limits in for one reason: in one variable you can only approach a point from the left or the right, but in two variables you can approach from infinitely many directions. A limit at has to be the same along every straight line, every parabola, every spiral, every conceivable path, or it does not exist. This single fact explains why so many "natural-looking" multivariable expressions fail to have limits at the origin. The cure is the same as in single-variable analysis: use the machinery, but with the Euclidean norm.
The definition
For , we say when: for every there is a such that whenever , we have . Here is the Euclidean norm: . The picture: every input inside an open ball of radius around gets mapped to within an open ball of radius around .
A function is continuous at when . Polynomials in several variables are continuous everywhere; rational functions are continuous wherever the denominator is non-zero. Sums, products, compositions, and quotients of continuous functions are continuous (where defined). These standard rules let you certify continuity of complicated expressions almost by inspection.
The two-path test (your most useful tool)
To prove a limit does NOT exist, find two paths to along which approaches different values. The textbook example: at the origin. Along the -axis (): , so limit . Along the line : . Two different limits → no limit exists. This pattern shows up constantly: any ratio whose numerator and denominator are homogeneous polynomials of the same degree is prone to this.
The grapher above plots for one variable. Try plotting for small offsets to see how a denominator going to zero produces wildly different limits depending on the rate. The same intuition extends to two variables: when both numerator and denominator vanish at the same rate, the limit depends on the direction of approach.
- Numerical optimization, ill-conditioning: The condition number of a function near a saddle or ridge depends on directional derivatives that may not agree. Optimizers (Newton, conjugate gradient) probe along multiple directions for exactly the path-dependence reason described above.
- Machine learning, loss-surface analysis: Saddle points in high-dimensional loss landscapes are characterized by direction-dependent second derivatives. Modern deep-learning optimizers (Adam, SGD with momentum) are designed to escape regions where the gradient's limit "behavior" disagrees along different directions.
- PDE numerical methods: Adaptive mesh refinement detects regions where a solution's gradient is path-dependent (a shock or boundary layer) and refines the grid there. These are precisely where multivariable limits fail to be continuous.
Pause and think: The expression at . Along it equals 1. Along it equals 0. So the limit does not exist. Now think about . Try the same two paths. Why does this one have a limit but the first doesn't? (Hint: a factor of in the numerator forces the whole expression to zero faster than the denominator.)
Try it
- Predict first: does exist? Test the -axis and the -axis.
- Predict first: does exist? Convert to polar: . The expression becomes .
- Show that the squeeze theorem proves . Bound the expression by and let .
- Predict: is continuous at ? Why? (Polynomials are continuous everywhere, so compute and you are done.)
- Trap question: does the path test along (every straight line through the origin) being independent of prove a limit exists? No, you also need parabolas, etc. Find a function whose limit is the same along every line but DNE along : try .
A trap to watch for
Showing the limit along every straight line through is the same value does NOT prove the limit exists. The function is the canonical counterexample: along the limit is 0 for every slope , but along the parabola the limit is . Curved paths can reveal hidden non-existence that straight-line tests miss. To prove a limit exists you almost always need the squeeze theorem or polar coordinates; straight-line agreement is suggestive but not sufficient.
What you now know
You can run the two-path test to disprove limits, use the squeeze theorem and polar coordinates to prove them, and recognize that polynomials and rational functions inherit continuity from their components. The next section turns to the multivariable derivative, the Jacobian, which inherits its meaning entirely from these limit definitions.
Mark section complete →
References
- Garrity, T. (2002). All the Mathematics You Missed. Cambridge UP, ch. 3.
- Spivak, M. (1965). Calculus on Manifolds. W. A. Benjamin, ch. 2.
- Munkres, J. R. (1991). Analysis on Manifolds. Westview Press, ch. 1.
- Rudin, W. (1976). Principles of Mathematical Analysis (3rd ed.). McGraw-Hill, ch. 4 and 9.
- Apostol, T. M. (1974). Mathematical Analysis (2nd ed.). Addison-Wesley, ch. 12.