This post contains some typical problems for multi-variable calculus. Throughout them, sufficient regularity is always presumed.

## Topic 1. Parametric and Polar Curves

Denote a parametric curve as . One can calculate the slopes of its tangent lines via chain rule.

### Example 1:

Let , . Then for , the slope of its tangent line at the point is:

$$ \frac{dy}{dx} (t_0) = \frac{dy}{dt}(t_0) \left[ \frac{dx}{dt}(t_0) \right] ^{-1} = -\frac{2t_0}{ \sin(t_0) } $$

If the curve is parametrized with the **angle** or **argument** in polar coordinate, i.e.,

$$ r = f(\theta). $$

One can calculate the curve’s enclose area via formula

$$ S = \int_{\theta_1}^{\theta_2} \frac{1}{2} r^2(\theta) d\theta . $$

### Example 2:

Let . It encloses a four-petal region. The area of half of a petal is

$$ A = \int_{0}^{\frac{\pi}{4}} \frac{1}{2} (2 \cos 2\theta)^2 d\theta = \frac{\pi}{4}.$$

Thus the area of whole region is .

Here is an animation showing the growth of petals as goes from to .

## Topic 2. Vectors and Vector-Valued Functions

Denote , as vectors in 2- or 3-dimensional Euclidean space. Then:

- and are
**orthogonal**iff , i.e., the orthogonal projection of one vector on the other has zero norm. - and are
**parallel**iff , i.e., the parallelogram generated by the two vectors has zero area.

More generally, denote as the angle between and , we have:

- Example: Work = Force Displacement.
- Example: Torque = Force Position.

Substitute into the relations above, we have:

Cross product of two vectors is a vector whose direction obeys the right-hand rule. Let , and be the coordinate unit vectors of 3-dimensional Euclidean space. Then conventionally

$$ \mathbf{i} \cdot \mathbf{j} = 0, \quad \mathbf{j} \cdot \mathbf{k} = 0, \quad \mathbf{k} \cdot \mathbf{i} = 0. $$

And

$$ \mathbf{i} \times \mathbf{j} = \mathbf{k}, \quad \mathbf{j} \times \mathbf{k} = \mathbf{i}, \quad \mathbf{k} \times \mathbf{i} = \mathbf{j}. $$

### Example 1:

Compute the area of the triangle enclosed by connecting three points: .

The area is $$ \frac{1}{2}|(2,3,4) \times (3,2,0)| = \frac{1}{2} \left| \begin{bmatrix} \mathbf{i} & \mathbf{j}& \mathbf{k} \\ 2 & 3 & 4 \\ 3 & 2 & 0 \end{bmatrix}\right| = \frac{\sqrt{233}}{2}.$$

Now, using the vector notation in 2d, or in 3d, a parametric curve can be written in a unified notation .

Interpreting the parameter as “time”, the curve defines a motion in space; mathematically, it is called a **vector-valued function**. Given any time , this function provides information about the underlying motion:

- : The
**position**in space. - : The
**speed**, (both magnitude and direction). - : The
**acceleration**, (also both magnitude and direction).

The length traveled between two points and along the curve can be calculated by integrating the velocity magnitude along the curve.

### Example 2:

A helical path $$ \mathbf{r}(t) = (250 \cos t, 250 \sin t, 100t), \quad t \in [0,10]. $$

The length is $$ S = \int_0^{10} |\mathbf{r}'(t)| dt = \int_0^{10} 269 dt = 2690. $$

Fixing a point on the curve , one can define the arc length function

$$ S(t) = \int_a^{t} |\mathbf{r}'(\tau)| d\tau.$$

By a change of variable, this arc length function can also be used to parametrize the curve

$$ \mathbf{r}(t) = \mathbf{r}( S^{-1}(s) ). $$

In this case, the parameter is called **arc-length parameter**. For lines with equation

$$ \mathbf{r}(t) = \mathbf{u} + t \mathbf{v},$$

this change of variable is simply rescaling to a unit vector, yielding

$$ \mathbf{r}(s) = \mathbf{u} + \frac{s}{|\mathbf{v}|} \mathbf{v},$$

Normally, the motion speed changes in both magnitude and direction; however, with arc-length parametrization, only the direction changes. In this case, the acceleration is directly tied to the curve’s properties:

- Its magnitude is called
**curvature**, which measures the “turn rate” of the curve. - Its direction is called
**principal unit normal vector**, pointing towards the “inside” of the turns.

For general parametrization, the curvature can be calculated using the following formula:

$$ \kappa(t) = \frac{|\mathbf{r}'(t)\times \mathbf{r}”(t)|}{|\mathbf{r}'(t)|^3} $$

## Topic 3. Functions of Several Variables

A function of variables parametrizes an -dimensional geometric object. For example, a function of one variable parametrizes a curve; similarly, a function of two variables parametrizes a surface .

Alternatively, equations in -dimensional space defines a -dimensional object (co-dimension ). For example, one equation defines a point in 1-dimensional space (“level point”). The same number of equations define a curve in 2-dimensional space (“**level curve**“), and a surface in 3-dimensional space (“level surface”).

### Example 1:

Rewrite the plane $$ ax+by+cz + d=0$$ into so-called Hessian normal form $$ \mathbf{\hat{n}} \cdot \mathbf{r} = -p $$ where is the unit normal vector and is the distance of the plane from the origin.

One normal vector is simply , so we can let $$ \mathbf{\hat{n}} = (a/l, b/l, c/l) $$ where . Then $$ p = d/l $$.

**Remark**: The Hessian normal form is especially convenient to calculate point-plane distance: $$ D = \mathbf{\hat{n}} \cdot \mathbf{r} + p $$

The graph of a function is drawn by putting together all its possible input-output pairs (a direct product). For example, drawing the graph of the function is equivalent to drawing the graph of equation , or the zero-level surface of the function .

Typical methods of drawing function graphs by hand:

- Look for symmetry properties, e.g., is the function symmetric with respect to axis?
- Look for intercepts and asymptotes by letting independent variables go to zero or infinity.
- Study its derivatives (to look for monotonicity, convexity).
- Change of coordinate, e.g. changing to polar coordinate may simplify the function and make rotational symmetry properties easier to be seen.
- Plug in numerical values (last resort, always works with sufficient effort).

The notion of limit and continuity for functions of several variables is directly generalized from that of single variable functions, inheriting most of its properties (sum, difference, product, quotient, composite, etc.). One subtle difference, however, is that in 1d, there are only two directions where a point can be approached; but the number is infinite in 2d or higher. A procedure called **two-path test** is thus often used to show the nonexistence of limits.

### Example 2:

Show that $$ \lim_{(x,y)\longrightarrow (0,0)} \frac{(x+y)^2}{x^2+y^2}$$ does not exist.

Let along a straight line with constant slope , i.e., . Then $$ \lim_{(x,mx)\longrightarrow (0,0)} \frac{(x+mx)^2}{x^2+(mx)^2} = \frac{(1+m)^2}{1+m^2}$$ which depends on the direction . Therefore, the limit does NOT exist.

**Remark**: If along the axis or , the limit are all equal to . So the fact that the limit exists in all coordinate directions does not imply existence of the limit.