When the world says, ‘Give up,’ hope whispers, ‘Try it one more time.’ Lyndon B. Johnson.
Learn everything you can, anytime you can, from anyone you can – there will always come a time when you will be grateful you did, Sarah Caldwell.
A function of two variables $f: \mathbb{R} \times \mathbb{R} \to \mathbb{R}$ assigns to each ordered pair in its domain a unique real number. Examples include geometric formulas like Area = $\frac{1}{2}bh$, or algebraic surfaces like $z = f(x, y) = 2x + 3y$, $f(x, y) = x^2 + y^2$, and $f(x,y) = e^{x+y}$.
Partial derivatives differentiate a multivariable function $f(x_1, x_2, \dots, x_n)$ with respect to one target variable while treating all other variables as constants. They measure how the function changes in a single specific direction.
If $f(x, y) = 2x^2y^3$, then $\frac{\partial f}{\partial x} = f_x = 4xy^3$ and $\frac{\partial f}{\partial y} = f_y = 6x^2y^2$.
If $f(x, y) = x^3y + y^2$, then $f_x = 3x^2y$ and $f_y = x^3+2y$.
A point $(x_1, x_2, \dots, x_n)$ is considered a critical point if the gradient of $f$ at that point is the zero vector, or if the gradient does not exist.
The gradient $\nabla f$ is a vector containing all first-order partial derivatives of $f$. It geometrically points in the direction of the function’s steepest ascent. $\nabla f = \left\langle \frac{\partial f}{\partial x_1}, \frac{\partial f}{\partial x_2}, \dots, \frac{\partial f}{\partial x_n} \right\rangle$.
In 2D space ($n = 2$), finding a critical point $(x_0, y_0)$ requires solving the system: $\frac{\partial f}{\partial x}(x_0, y_0) = 0$ and $\frac{\partial f}{\partial y}(x_0, y_0) = 0$.
Theorem: The gradient vector is perpendicular (orthogonal) to the level curves or level surfaces of the function at any given point. This means if you walk along a contour line where the function’s value is constant, the direction of steepest uphill is exactly 90 degrees to your path.
The directional derivative $\frac{dw}{ds}\bigg\vert{}_{\vec{u}}$ represents the rate of change of a function $w$ as you move in the direction of a unit vector $\vec{u}$. It can be expressed or compactly written via the dot product of the gradient and the direction vector: $\frac{dw}{ds}\bigg\vert{}_{\vec{u}} = \nabla w \cdot \vec{u} = \vert{}\nabla w\vert{}\vert{}\vec{u}\vert{}\cos(\theta) = \vert{}\nabla w\vert{}\cos(\theta)$ where $\theta$ is the angle between the gradient $\nabla w$ and the unit vector $\vec{u}$.
This behavior is underpinned by the Multivariable Chain Rule. If $w = f(x, y, z)$ and the coordinates are parametrized by time $t$ such that $\vec{r}(t) = \langle x(t), y(t), z(t) \rangle$, the rate of change of $w$ with respect to $t$ is: $\frac{dw}{dt} = \frac{\partial w}{\partial x}\frac{dx}{dt} + \frac{\partial w}{\partial y}\frac{dy}{dt} + \frac{\partial w}{\partial z}\frac{dz}{dt} = \nabla w \cdot \frac{d\vec{r}}{dt}$
For a constant $c$, a level surface of a multivariable function $f(x, y, z)$ is the set of all points satisfying $f(x,y,z) = c$.
Consider the function $w = x^2 + y^2$. The level curves are given by: $w = c = x^2 + y^2$. These are circles in the xy-plane.
The gradient of w is: $\nabla w = \langle 2x, 2y \rangle$. This gradient vector is perpendicular to the level surfaces, which are circles (Figure A).
Theorem: The gradient vector is perpendicular (orthogonal) to the level surfaces of the function.
Proof:
Here’s a step-by-step explanation:
Define the function and calculate its gradient. We define the function $w(x, y, z) = x^2 + y^2 - z^2$. The surface is given by the level set $w(x, y, z) = 4$. Next, we calculate the gradient of w, $\nabla w = \left\langle \frac{\partial w}{\partial x}, \frac{\partial w}{\partial y}, \frac{\partial w}{\partial z} \right\rangle = \left\langle 2x, 2y, -2z \right\rangle$.
Evaluate the gradient at the point (2, 1, 1): $\left\langle 2x, 2y, -2z \right\rangle\bigg|_{(2, 1, 1)} = \left\langle 4, 2, -2 \right\rangle$. This gradient vector $\left\langle 4, 2, -2 \right\rangle$ is normal (perpendicular) to the surface at the point $(2, 1, 1)$.
Write the equation of the Tangent Plane. The equation of the tangent plane to the surface at $(x_0, y_0, z_0)$ can be written using the point-normal form of the plane equation: $\nabla w \cdot \langle x - x_0, y - y_0, z - z_0 \rangle = 0$. Substituting $\nabla w = \langle 4, 2, -2 \rangle$ and the point $(2, 1, 1)$, the equation becomes: $4(x - 2) + 2(y - 1) - 2(z - 1) = 0$.
Simplifying the equation: $4x - 8 + 2y - 2 - 2z + 2 = 0 \iff [\text{Combining like terms:}] 4x + 2y - 2z - 8 = 0$. Thus, the equation of the tangent plane is: 4x + 2y - 2z = 8.
The gradient vector of a function f(x,y,z) is a vector that points in the direction of the steepest increase of the function. It is perpendicular to the level surfaces of the function (w = f(x, y, z) = c).
The tangent plane to a surface at a given point is the plane that just touches the surface at that point and is perpendicular to the gradient vector at that point (Figure 3). The equation of the tangent plane to the surface f(x, y, z) = c at a point $(x_0, y_0, z_0)$ can be written using the point-normal form of the plane equation. The gradient vector $\nabla f$ at $(x_0, y_0, z_0)$ serves as the normal vector to the tangent plane. Therefore, the equation is: $\nabla f(x_0, y_0, z_0) \cdot (x -x_0, y-y_0, z-z_0) = 0$.

Alternative Approach Using Differentials.
For the function $w = x^2 + y^2 - z^2$, the differential dw is given by: $dw = \frac{\partial w}{\partial x} dx + \frac{\partial w}{\partial y} dy + \frac{\partial w}{\partial z} dz ↭ dw = 2x dx + 2y dy - 2z dz$. This formula tells you how w changes when you make tiny changes in x, y, and z.
Evaluating at the point (2, 1, 1): $dw = 2(2) dx + 2(1)dy -2(1)dz, dw = 4dx + 2dy - 2dz$. This is the local linear behavior of the function at that point.
For small changes near the point (2, 1, 1), we approximate: $\Delta w \approx 4 \Delta x + 2 \Delta y - 2 \Delta z$. 🎯 Near a point, the surface behaves almost linearly, and the differential dw gives the best linear approximation of how w changes.
Since we are on the level surface w = 4, w stays constant, so: $\Delta w = 0$: $4 \Delta x + 2 \Delta y - 2 \Delta z = 0$
This corresponds to the tangent plane equation: $4(x - 2) + 2(y - 1) - 2(z - 1) = 0 \iff 4x + 2y - 2z = 8$.

A. If you walk due south, will you start to ascend or descend?
Determine the unit vector for south direction. South is the negative y-direction, $\vec{u} = \langle 0, -1 \rangle.$
Calculate the gradient of f: $\nabla f = \langle \frac{\partial f}{\partial x}, \frac{\partial f}{\partial y} \rangle = \langle -0.02x, -0.04y \rangle$.
Evaluate the gradient at P(50, 80): $\nabla f(50, 80) = \langle -0.02(50), -0.04(80) \rangle = \langle -1, -3.2 \rangle$.
Calculate the directional derivative in the south direction: $D_{\vec{u}}f(50, 80) = \nabla f \cdot \vec{u} = \langle -1, -3.2 \rangle \cdot \langle 0, -1 \rangle = 3.2$. Since the directional derivative is positive, you will start to ascend at a rate of $3.2 \frac{\text{meters of elevation}}{\text{meters of distance}}$.
B. If you walk northwest, will you start to ascend or descend?
Determine the unit vector for northwest direction. Northwest direction is equally negative in x and positive in y, the unit vector $\vec{u}$ is $\vec{u} = \langle -\frac{1}{\sqrt{2}}, \frac{1}{\sqrt{2}} \rangle$.
Calculate the directional derivative in the northwest direction:$D_{\vec{u}}f(50, 80) = \langle -1, -3.2 \rangle \cdot \langle -\frac{1}{\sqrt{2}}, \frac{1}{\sqrt{2}} \rangle = \frac{1}{\sqrt{2}} - \frac{3.2}{\sqrt{2}} = \frac{-2.2}{\sqrt{2}}$. Since the directional derivative is negative, you will start to descend at a rate of $\frac{-2.2}{\sqrt{2}} \frac{\text{meters of elevation}}{\text{meters of distance}}$.
C. In which direction is the slope largest? What is the rate of ascent in that direction? At what angle above the horizontal does the path in that direction begin?
Direction of the steepest ascent. The direction of the steepest ascent is the direction of the gradient $\nabla f = \langle -1, -3.2 \rangle$.
Rate of ascent. The rate of ascent is the magnitude of the gradient: $\vert{}\nabla f\vert{} = \sqrt{(-1)^2 + (-3.2)^2} = \sqrt{1 + 10.24} = \sqrt{11.24} \approx 3.35 \frac{\text{meters of elevation}}{\text{meters of distance}}$
Angle of ascent. The angle $\theta$ above the horizontal can be found using the tangent function: $\tan(\theta) = \frac{\text{rate of ascent}}{1} = 3.35 \implies \theta = \tan^{-1}(3.35) \approx 73.4^\circ$.