Chapter 1: Introduction to Multivariable Functions and Differential Calculus
Multivariable Functions and Differential Calculus
Introduction
- Essential for modeling phenomena in physics, computer science, and economics.
- Goal: To understand how and why things work and how to apply them without falling into traps.
Foundations
- RN Space: The space in which these functions exist.
- Norms: Used to measure distances.
- Neighborhoods: Defined by open and closed sets.
- Continuity: The idea that a function does not have abrupt jumps.
- Differentiability: A more advanced form of derivative.
- Partial Derivatives: Derivatives taken with respect to one variable while holding others constant.
- Taylor Expansions: Used to zoom in on local behavior.
- Extrema: Finding the highest and lowest points of a function.
The Space RN
- Set of points or vectors with n real coordinates, e.g., .
- Need a way to measure distances and sizes of vectors.
Norms
- A function that associates a non-negative number to a vector, representing its length.
- Notation:
- Three rules:
- Separation: Only the zero vector has a norm of zero.
- Homogeneity: Scaling a vector by a factor (\lambda) multiplies its norm by the absolute value of (\lambda).
- Triangle Inequality: The direct path is always shorter.
- Separation: Only the zero vector has a norm of zero.
Types of Norms on RN
- Norm 1 (Manhattan Distance): Sum of the absolute values of the coordinates.
- Norm 2 (Euclidean Norm): Standard distance formula.
- Norm Infinity: Maximum of the absolute values of the coordinates.
- In finite dimensions, all norms are equivalent, meaning they define the same notion of proximity.
Open and Closed Balls
- Open Ball: All points within a certain distance (r) of a point (a).
- B(a, r) = {x : \lVert x - a \rVert < r}
- Closed Ball: All points within a distance (r) of a point (a), including the boundary.
- The shape of the ball depends on the norm used.
- In R2, the unit ball looks different for norm 1 (a diamond), norm 2 (a disk), and norm infinity (a square).
Open and Closed Sets
- Open Set: Around each point, there exists a small open ball that is entirely contained within the set (no boundary points included).
- Closed Set: A set whose complement is open; equivalently, it contains all its limit points.
- Example: R is both open and closed.
- Example: In R, the interval (0, 1) is open, while [0, 1] is closed.
Continuity
- A function without sudden jumps.
- A function (f) is continuous at a point (a) if, as (x) approaches (a), (f(x)) approaches (f(a)).
Functions Defined Piecewise
- Check if the limit of the function as (x) and (y) approach (0, 0) exists and equals (f(0, 0)).
- Technique: Convert to polar coordinates.
- If the result depends on (\theta), the limit does not exist.
- If the limit exists and is independent of (\theta) and equals (f(0, 0)), the function is continuous at (0, 0).
Uniform Convergence
- If a sequence of continuous functions (fn) converges uniformly to (f) (i.e., the maximum difference between (fn) and (f) tends to 0 over the entire domain), then the limit (f) is also continuous.
- Useful for series of functions and justifying the continuity of parameter integrals.
- Example: If is continuous in (s) and there exists a dominating function, then is continuous.
Differential Calculus
Partial Derivatives
- measures how (f) changes when only (xi) is varied, keeping other variables constant.
- Represents the slope in a single direction.
- Higher-order partial derivatives can be calculated by differentiating multiple times.
Class CK Functions
- A function is of class (C^k) on an open set if all its partial derivatives up to order (k) exist and are continuous on that set.
- Continuity of derivatives is crucial for regularity.
Differentiability
- A stronger condition than having partial derivatives.
- A function is differentiable at a point (a) if, when zoomed in at (a), its graph increasingly resembles a plane.
- Can approximate by , where is a linear term in and the error term is negligible compared to as approaches 0.
Gradient
If (f) is differentiable, its partial derivatives exist at (a).
For a function , the linear part , called the differential , is given by the dot product with the gradient.
The gradient is the vector of partial derivatives and indicates the direction of the greatest slope.
A function can have all its partial derivatives at a point without being differentiable or even continuous at that point.
Sufficient Condition for Differentiability
- If (f) is of class , i.e., its first-order partial derivatives exist and are continuous in a neighborhood of the point, then (f) is differentiable.
- The reverse implications are not generally true.
Jacobian Matrix
- For a function with p > 1, the Jacobian matrix is used.
- If , the Jacobian matrix is a matrix where the element in the i-th row and j-th column is the partial derivative of the i-th component function with respect to the j-th variable . It's evaluated at a.
Chain Rule
- If (f) is differentiable at (c) and (g) is differentiable at (d = f(c)h = g \circ f is differentiable at (c).
- The differential of the composite function is the composite of the differentials: dhc = dg{f(c)} \circ df_c.
- In terms of Jacobian matrices:
- J{g \circ f}(c) = Jg(f(c)) J_f(c)
- If (f) and (g) are of class C^kg \circ fC^k.
Taylor Expansion
- A generalization of Taylor series to multiple variables.
- A Taylor expansion of order (k) of (f) around (a) is a polynomial P(h)h = x - af = P + o(\lVert h \rVert^k).
- If (f) is of class C^k, Taylor's formula can be used.
Order 2 Taylor Expansion
- f(a + h) \approx f(a) + dfa(h) + \frac{1}{2} d^2fa(h, h)
- Where d^2f_a(h, h) is the second-order term, a quadratic form involving second derivatives.
Hessian Matrix
- The Hessian matrix Hf(a)\frac{\partial^2 f}{\partial xi \partial x_j}(a).
- The second-order term can be written as: \frac{1}{2} h^T H_f(a) h.
Local Extrema
- Points where the gradient is zero are candidates for local extrema (critical points).
- \nabla f = 0
- The tangent plane is horizontal at these points.
- To determine the nature of a critical point (a), examine the second-order Taylor expansion:
- f(a + h) = f(a) + \frac{1}{2} h^T H_f(a) h + o(\lVert h \rVert^2)
- The local behavior is determined by the sign of the quadratic term Q(h) = \frac{1}{2} h^T H_f(a) h.
Nature of Critical Points Based on Quadratic Form
- If Q(h) > 0h \neq 0 (positive definite), it is a strict local minimum (bottom of a bowl).
- If Q(h) < 0h \neq 0 (negative definite), it is a strict local maximum (top of a hill).
- If Q(h)h, it is a saddle point (neither a max nor a min).
Lagrange Multipliers
- Used to find extrema on a subset, i.e., extrema under constraints.
- To optimize f(x)g(x) = 0L(x, \lambda) = f(x) + \lambda g(x).
- The candidate points xLx_i) is zero.
- Solve the system:
Laplacian
- The Laplacian is given by: , the sum of the pure second partial derivatives.
Exercise Examples
Domain of Definition
- For , the domain is , the closed unit disk.
- For , the domain is excluding the y-axis (where ).
Level Curves
- For , the level curves are lines , a family of parallel lines with slope -1.
- For , the level curves are circles centered at the origin with radius when .
Limits
- For , to find the limit at (0, 0), test different paths. Using , the limit depends on , so the limit does not exist.
Differentiability Test
- For if and , follow these steps:
- Check continuity at (0, 0) using polar coordinates.
- Calculate partial derivatives at (0, 0) using the definition.
- Test differentiability by checking if the function can be approximated by a linear term plus a little-o term.
Jacobian and Composition
- Given and , find the Jacobian of .
- First calculate and compute its derivative.
- Verify using the chain rule.
Taylor Expansion
- To find the Taylor expansion of order 2 for
- Substitute into the Taylor expansion of and keep terms up to order 2.
Recurring Themes in Exams
- Testing continuity, existence of partial derivatives, and differentiability for functions defined piecewise at (0, 0).
- Radial Laplacian (calculating for , where ).
- Free or constrained extrema (using Lagrange multipliers).
- Relating Taylor expansions to extrema.
General Strategies
- Think in polar coordinates for limits, continuity, and differentiability.
- Be cautious about differentiability; existence of partial derivatives does not imply differentiability.
- Use the chain rule for composition (Jacobian of ).
- Use Taylor expansions to approximate function behavior.
- Always check the hypotheses of theorems (open domains, class ).