Learning Objectives
By the end of this section, you will be able to:
- Define limits of functions of two or more variables using the formal ε-δ definition
- Evaluate limits using algebraic techniques, substitution, and the squeeze theorem
- Prove that a limit does not exist by finding two paths with different limits
- Apply polar coordinate transformations to analyze limits at the origin
- Determine where a function of two variables is continuous
- Recognize the connection between multivariable limits and convergence in optimization algorithms
The Big Picture: When Simple Becomes Complex
"In one dimension, there are only two directions to approach a point. In two dimensions, there are infinitely many."
In single-variable calculus, a limit exists if the function approaches from both the left and the right. But when we move to functions of two variables, the situation becomes dramatically more complex.
One Variable: Two Directions
To check if exists, we only need to verify that as and .
Two Variables: Infinite Directions
For , we must check that approaches the same value along every possible path to .
This requirement makes multivariable limits both more challenging and more interesting. A function might approach the same limit along every straight line, yet fail to have a limit overall because of its behavior along curved paths!
Historical Context: The Road to Rigor
The formal theory of multivariable limits developed alongside the rigorization of calculus in the 19th century.
The Challenge of Multiple Dimensions
Augustin-Louis Cauchy (1789-1857) established the foundations of limit theory for single-variable functions. However, extending these ideas to multiple variables required new geometric intuition.
Karl Weierstrass (1815-1897) developed the ε-δ definition of limits that we use today. His formulation elegantly generalizes to any number of dimensions using the Euclidean distance.
Why Rigor Matters
Before rigorous definitions, mathematicians relied on intuition and geometric arguments. The discovery of pathological functions — continuous everywhere but differentiable nowhere, for example — showed that intuition could be misleading. Precise definitions protect us from such surprises.
Limits in Two Variables: The Definition
We begin with the intuitive idea: approaches as approaches if we can make as close to as we like by taking sufficiently close to .
Definition: Limit of a Function of Two Variables
Let be a function of two variables defined on some open disk containing , except possibly at itself. We say:
if for every there exists a such that:
Understanding the Definition
| Symbol | Meaning | Geometric Interpretation |
|---|---|---|
| ε (epsilon) | Tolerance for output | Vertical band around L of half-width ε |
| δ (delta) | Tolerance for input | Disk of radius δ centered at (a,b) |
| √((x-a)² + (y-b)²) | Distance from (x,y) to (a,b) | Euclidean distance in the plane |
| 0 < distance < δ | Punctured disk | Close to (a,b) but not equal to it |
The Key Difference from Single Variable
In single-variable limits, represents an interval. In two variables, represents a disk. This disk contains all possible approach paths.
Computing Multivariable Limits
When a limit exists, we can often compute it using familiar techniques adapted for multiple variables.
Direct Substitution
If is continuous at (polynomials, rational functions where denominator ≠ 0, compositions of continuous functions), we can substitute directly:
Example: Find
Solution: Since the denominator is nonzero at :
Algebraic Simplification
For indeterminate forms like 0/0, factor and simplify before taking the limit:
Example: Find
Solution: Factor the numerator:
Therefore:
When Limits Fail to Exist
A limit fails to exist if the function approaches different values along different paths to the point. This is the most common way to prove a limit does not exist.
Two-Path Test for Non-Existence
If approaches different values along two different paths to , then does not exist.
Classic Example: xy/(x² + y²)
Consider the function . Let's examine its behavior as we approach the origin along different paths.
Path 1: Along the x-axis (y = 0)
Limit along x-axis: 0
Path 2: Along the line y = x
Limit along y = x: 1/2
Path 3: Along the line y = -x
Limit along y = -x: -1/2
Since different paths give different limits (0, 1/2, and -1/2), the limit does not exist.
The Path Approach Test: Interactive Exploration
Let's visualize how different paths lead to different limiting values. Watch as particles travel along various paths toward the origin, revealing the path-dependent nature of certain limits.
Checking All Lines Is Not Enough
A function may approach the same limit along every straight line, yet still fail to have a limit! The classic example is . Along any line , the limit is 0. But along the parabola , the limit is .
Interactive: Explore Multiple Limit Functions
Use this 3D visualization to explore different functions and see how their limits behave along various paths. Some functions have limits that exist; others do not.
The Squeeze Theorem for Two Variables
When a limit exists but is difficult to compute directly, the squeeze theorem often provides a way forward.
The Squeeze Theorem (Two Variables)
If for all in some punctured disk around , and if:
then:
Example: Using the Squeeze Theorem
Show that
Solution: Let . Since :
Therefore:
Since , by the squeeze theorem:
The Polar Coordinate Method
Converting to polar coordinates is a powerful technique for limits at the origin. If we set and , then approaching the origin corresponds to .
Polar Coordinate Test
Convert to polar form . Then:
- If depends on , the limit does not exist
- If (independent of ), the limit might exist and equal
Example: Polar Analysis of xy/(x² + y²)
Convert to polar:
The result depends on ! As , the "limit" varies from to depending on the direction. Therefore, the Cartesian limit does not exist.
When Polar Works Best
The polar method is most effective for limits at the origin when the function involves expressions like , , or . It naturally handles the radial symmetry (or lack thereof) of such expressions.
Continuity in Two Variables
Just as in single-variable calculus, continuity means "no breaks or jumps." A function is continuous at a point if the limit equals the function value.
Definition: Continuity at a Point
A function is continuous at if:
- is defined
- exists
is continuous on a region if it is continuous at every point in .
Types of Discontinuities
| Type | Description | Example |
|---|---|---|
| Removable | Limit exists but ≠ f(a,b) or f undefined | sin(r)/r at origin (removable by defining f(0,0)=1) |
| Jump | Function jumps between values across a curve | f = 1 if y > 0, f = -1 if y < 0 |
| Essential | Limit does not exist | xy/(x² + y²) at origin |
Interactive: Explore Continuous and Discontinuous Surfaces
Visualize different surfaces and observe where they are continuous and where discontinuities occur. Toggle the ε-δ view to see the formal definition in action.
Standard Continuous Functions
The following types of functions are continuous on their natural domains:
- Polynomials in and : continuous everywhere
- Rational functions: continuous except where denominator = 0
- Root functions: continuous where the expression under the root is positive (for even roots)
- Trigonometric functions: continuous on their domains
- Exponential and logarithmic functions: continuous on their domains
- Compositions of continuous functions: continuous
The Epsilon-Delta Definition: Making It Rigorous
The ε-δ definition provides the rigorous foundation for all our limit arguments. While intuition guides us, this definition provides certainty.
Geometric Interpretation
Saying with the ε-δ definition means:
- Challenge: Someone gives you an ε > 0 (how close to the output must be)
- Response: You provide a δ > 0 (how close to the input must be)
- Guarantee: All points within distance δ of get mapped within distance ε of
Example: Proving a Limit with ε-δ
Prove that
Proof: Let be given. We need to find such that:
Let . Then .
Choose . If , then:
Thus the limit is 0.
Real-World Applications
1. Heat Distribution
The temperature at a point on a metal plate is modeled by a function . Continuity of means there are no sudden temperature jumps — heat flows smoothly through the material.
2. Topographical Maps
Elevation as a function of position, , is continuous for most terrain. Discontinuities represent cliffs or vertical drops. The gradient of (which requires limits to define) gives the direction of steepest ascent.
3. Fluid Flow
In fluid dynamics, velocity fields must be continuous for physical flow. Discontinuities would imply infinite accelerations, which are physically impossible.
4. Electric Potential
The electric potential created by a charge distribution is continuous away from point charges. Understanding limits helps analyze the behavior near boundaries and interfaces.
Machine Learning Applications
Understanding multivariable limits is essential for analyzing the behavior of loss surfaces and optimization algorithms in machine learning.
1. Loss Surface Analysis
The loss function depends on all model parameters. Understanding limits helps us analyze:
- Critical points: Where does ?
- Saddle points: Points where the loss surface "curves up" in some directions and "curves down" in others
- Boundary behavior: What happens as parameters approach infinity?
2. Gradient Descent Convergence
Gradient descent follows the path . The question of whether this sequence converges — and to what — is fundamentally a question about limits.
Connection: A loss function that is continuous and bounded below on a closed region must achieve a minimum there (extreme value theorem in multiple variables). This guarantees that an optimal solution exists, even though finding it may be computationally hard.
3. Regularization and Continuity
Regularization terms like ensure the loss function has good continuity properties. Without regularization, loss landscapes can have pathological behavior — extremely sharp features that make optimization unstable.
Why Smoothness Matters
Many optimization guarantees require the loss function to be not just continuous, but also differentiable with continuous derivatives (C¹ smooth). This ensures gradients don't change too abruptly, allowing predictable optimization behavior.
Python Implementation
Testing Limit Existence
Testing Continuity
Polar Coordinate Analysis
Test Your Understanding
Summary
Limits and continuity in multiple dimensions extend our single-variable intuition while introducing fundamentally new challenges. The key insight is that in higher dimensions, there are infinitely many ways to approach a point.
Key Concepts
| Concept | Description |
|---|---|
| ε-δ Definition | For every ε > 0, there exists δ > 0 such that the function value is within ε of L when (x,y) is within δ of (a,b) |
| Path Test | If two paths give different limits, the overall limit DNE |
| Polar Method | Convert to polar: if result depends on θ, limit DNE |
| Squeeze Theorem | Bound f between two functions that have the same limit |
| Continuity | Limit exists and equals function value |
Key Takeaways
- Limits in multiple dimensions require the function to approach the same value along every possible path
- Finding two paths with different limits proves a limit does not exist
- Checking only straight lines is not sufficient — curved paths may give different limits
- The polar coordinate method is powerful for analyzing limits at the origin
- The squeeze theorem helps prove limits exist when direct computation is difficult
- Continuity in multiple dimensions means no "tears" or "jumps" in the surface
Coming Next: In the next section, we'll explore partial derivatives — rates of change in individual directions. Just as limits provide the foundation for derivatives in single-variable calculus, multivariable limits underpin partial differentiation.