Multivariable analysis


Under Construction

This section is still under construction. Content may be incomplete or subject to change.

Note. What I write here is mostly what I’ve learned from my amazing teacher, Katalin Nagy at BME. If something is incorrect here its my fault, not her’s.

Hello and welcome! We have arrived to another interesting math topic! Multivariable analysis. This is a really important field. It is used in physics a lot, and it is one of the key concepts to understand machine learning. So let’s roll up our sleeves and jump right in!

The topology of Rp\mathbb{R}^{p}

👨‍🏫: Ok ok, in order to deeply understand this field we have to put down the basics and define some stuff. It will be a little boring, but it’s necessary to arrive to the interesting and beautiful part. So, let’s do that!

👨‍🏫: If we have a point in Rp\mathbb{R}^{p} we can denote it by:

x=(x1,x2,,xp)x = (x_1, x_2, \dots, x_p)

So the point xx is a vector and xkx_k is the kk-th component of the vector. Lucky for us we can measure distances in Rp\mathbb{R}^{p} and it’s really similar to how we measure distance in a plane (in R2\mathbb{R}^{2}).

?

If we are in ℝᵖ what could be the formula for measuring the length of a vector?

👨‍🏫: Yeah so it’s resembles to the Pythagorean theorem, but in higher dimension.

🙋‍♂️: But why does the “normal” square root method work, why don’t we use pp-th root?

x1p+x2p++xppp\sqrt[p]{x_1^{p} + x_2^{p} + \dots + x_p^{p}}

👨‍🏫: You can think of this as the following: First, you only care about the first two components x1,x2x_1, x_2. You can apply the Pythagorean theorem (if you work in an orthonormal basis). After this, you take the result and the new component x3x_3 and do the same. If you repeat this until xpx_p you’ll get this formula: x12+x22++xp2\sqrt{x_1^{2} + x_2^{2} + \dots + x_p^{2}} and the result is the length of xx which we denote: x\|x\|.

Norm (Euclidean)

For x=(x1,x2,,xp)Rpx = (x_1, x_2, \dots, x_p) \in \mathbb{R}^{p}, the Euclidean norm of xx is:

x=x12+x22++xp2\|x\| = \sqrt{x_1^{2} + x_2^{2} + \dots + x_p^{2}}
?

What other distances would be beneficial to use?

Open spheres

👨‍🏫: Good, we can move on and play with balls.

Definition: Open ball

Let aRpa \in \mathbb{R}^{p} and ε>0\varepsilon > 0. The open ball of radius ε\varepsilon centered at aa is:

Bε(a)={xRp:xa<ε}B_{\varepsilon}(a) = \left\{ x \in \mathbb{R}^{p} : \|x - a\| < \varepsilon \right\}

👨‍🏫: What could this definition mean?

🙋‍♂️: Hmm… I guess Bε(a)B_{\varepsilon}(a) is the set of points in Rp\mathbb{R}^{p} that lie within the sphere of radius ε\varepsilon centered around aa.

👨‍🏫: Good! We call this an open ball because the points that are at a distance of ε\varepsilon from aa are not in Bε(a)B_{\varepsilon}(a). You can think of it like a peeled orange.

Interior, exterior, boundary

👨‍🏫: Let’s look at this potato below. What could its interior, exterior, and boundary be?

🙋‍♂️: Ok. Now you intuitively understand these concepts. Let’s give their definition now.

Definition: Interior, Exterior, and Boundary Points

Let ARpA \subseteq \mathbb{R}^{p} and xRpx \in \mathbb{R}^{p}. We say xx is an…

① Interior point of AA, if:

ε>0:Bε(x)A\exists\, \varepsilon > 0 : B_{\varepsilon}(x) \subseteq A

② Exterior point of AA, if:

ε>0:Bε(x)Ac,where Ac=RpA\exists\, \varepsilon > 0 : B_{\varepsilon}(x) \subseteq A^{c}, \quad \text{where } A^{c} = \mathbb{R}^{p} \setminus A

③ Boundary point of AA, if:

ε>0:Bε(x)AandBε(x)Ac\forall\, \varepsilon > 0 : B_{\varepsilon}(x) \cap A \neq \emptyset \quad \text{and} \quad B_{\varepsilon}(x) \cap A^{c} \neq \emptyset

The set of all interior / exterior / boundary points of AA is called the interior / exterior / boundary of AA, denoted:

  • intA\operatorname{int} A — interior
  • extA\operatorname{ext} A — exterior
  • A\partial A — boundary

Examples

👨‍🏫: Let’s look at some examples now. What’s the interior, exterior, boundary of:

A=[5,7[A = [5, 7[ B={(x,y)R2:x2+y21}B = \left\{ (x, y) \in \mathbb{R}^{2} : x^{2} + y^{2} \leq 1 \right\}

Closure

👨‍🏫: Ok, what if we take a set AA and we want to include the boundary of AA too. Do we have a definition/notation for this too?

🙋‍♂️: Yes we do. We call it the closure of AA. And as you said it’s the set and the boundary points (we denote it by A\overline{A}):

Definition: Closure

The closure of ARpA \subseteq \mathbb{R}^{p} is:

A=AA\overline{A} = A \cup \partial A

👨‍🏫: What is A\overline{A} and B\overline{B} in the problem above?

Open and closed sets

👨‍🏫: Now that we have closure let’s define open and closed sets.

Definition: Open and Closed Sets

Let ARpA \subseteq \mathbb{R}^{p}.

1. AA is open, if every point of AA is an interior point:

xA:xintA\forall x \in A : x \in \operatorname{int} A

2. AA is closed, if its complement is open:

Ac is openA^{c} \text{ is open}

Two equivalent characterizations of closed sets:

  • If AA is closed, then AA\partial A \subseteq A
  • A\overline{A} is always a closed set

Note: Not every set is open or closed. The easiest counterexample is [0,1[[0, 1[.

👨‍🏫: Let’s unpack open sets a bit. Intuitively it means that however close we are to the boundary, we can always “draw” a sphere with radius ε>0\varepsilon > 0 that is entirely inside AA.

Properties of open and closed sets

👨‍🏫: We have two important statements for open sets and their pairs for closed sets.

Properties of Open and Closed Sets

Open sets:

(a) The union of arbitrarily many (even infinitely many) open sets is open.

(b) The intersection of finitely many open sets is open.

Closed sets:

(c) The intersection of arbitrarily many (even infinitely many) closed sets is closed.

(d) The union of finitely many closed sets is closed.

Connected sets

🙋‍♂️: Do we care about if a set is connected or not? Do we have a definition for that?

👨‍🏫: Yesss that’s an important idea too.

Definition: Connected Set

ARpA \subseteq \mathbb{R}^{p} is a connected set, if there do not exist open sets C,BRpC, B \subseteq \mathbb{R}^{p} such that:

CB=,ACB,AC,ABC \cap B = \emptyset, \quad A \subseteq C \cup B, \quad A \cap C \neq \emptyset, \quad A \cap B \neq \emptyset

In other words: AA cannot be split into two non-empty, disjoint open parts.

Definition: Isolated Point

aAa \in A (where ARpA \subseteq \mathbb{R}^{p}) is an isolated point of AA if:

ε>0:Bε(a)A={a}\exists\, \varepsilon > 0 : B_{\varepsilon}(a) \cap A = \{a\}

Limits and continuity

👨‍🏫: When we worked with regular functions we spent a lot of time analyzing limits and identifying whether a function is continuous or not. Will we do the same here too?

🙋‍♂️: Yeah, but first introduce some definitions!

Definition: Accumulation Point

aRpa \in \mathbb{R}^{p} is an accumulation point of ARpA \subseteq \mathbb{R}^{p}, if:

ε>0there are infinitely many points of A inside Bε(a)\forall\, \varepsilon > 0 \quad \text{there are infinitely many points of } A \text{ inside } B_{\varepsilon}(a)
Definition: Limit of a Sequence in ℝᵖ

xRpx \in \mathbb{R}^{p} is the limit of the sequence (xn)Rp(x_n) \subset \mathbb{R}^{p}, if:

ε>0N=N(ε):n>NxnBε(x)\forall\, \varepsilon > 0 \quad \exists\, N = N(\varepsilon) : \forall n > N \quad x_n \in B_{\varepsilon}(x)

👨‍🏫: Some notes to these definitions. First we had another def for limits, it’s true here as well. Can you figure it out? Second, if the sequences are convergent by coordinates (xk is convergent\forall x_k \text{ is convergent}) then xnx_n is convergent as well. Third the Bolzano-Weierstrass theorem holds here as well. Fourth Rp\mathbb{R}^{p} is a complete space because every Cauchy-sequence is convergent.

Two variable functions

👨‍🏫: So if we have a function that “eats” two things and spits out one thing then we have a two variable function: f:R2Rf: \mathbb{R}^{2} \to \mathbb{R}.

Definitions: Two-Variable Function

Let f:DfR2Rf: D_f \subseteq \mathbb{R}^{2} \to \mathbb{R} and CRC \in \mathbb{R}.

Graph:

graph(f)={(x,y,f(x,y)):(x,y)Df}\operatorname{graph}(f) = \left\{ (x, y, f(x, y)) : (x, y) \in D_f \right\}

Level curves:

γc={(x,y):f(x,y)=C,(x,y)Df}\gamma_c = \left\{ (x, y) : f(x, y) = C, \quad (x, y) \in D_f \right\}

Contour lines:

Γc={(x,y,f(x,y)):f(x,y)=C,(x,y)Df}\Gamma_c = \left\{ (x, y, f(x, y)) : f(x, y) = C, \quad (x, y) \in D_f \right\}

👨‍🏫: Graph of ff is straightforward. We’ll see many of them, they look like sheets. γc\gamma_c are the contour lines. The ones that we see on detailed maps. And Γc\Gamma_c are the center lines in “their 3D place”.

Limit Continuity

Let’s look define limit and continuity for multivariable functions. Actually it will be really similar to what we did in single variable functions.

<AxiomBox lang="en" title="Definition: Limit of Multivariable Function">
Let f: \mathbb{R}^{p} \to \mathbb{R} let x, x_0 \in \mathbb{R}^{p}


</AxiomBox>