Multivariable Calculus: Functions of Several Variables, Differentiation, and Optimization

Functions of Several Variables and Their Visualizations

  • Definition of a Function of Two Variables:

    • A function of two variables z=f(x,y)z = f(x, y) assigns to each ordered pair (x,y)(x, y) in a subset D≠∅D \ne \emptyset of R2\mathbb{R}^2 a unique real number z∈Rz \in \mathbb{R}.

    • The set DD is called the domain of ff, representing all permissible input coordinates in the plane.

    • The range of ff is the set of all real outputs taken on by ff: Range(f)={z∈R∣z=f(x,y) for some (x,y)∈D}\text{Range}(f) = \{z \in \mathbb{R} \mid z = f(x, y) \text{ for some } (x, y) \in D\}.

  • Domain and Range Examples:

    • For f(x,y)=x2+y2f(x, y) = x^2 + y^2:

    • Domain: Entire plane R2\mathbb{R}^2.

    • Range: Non-negative real numbers [0,∞)[0, \infty).

    • For f(x,y)=x2sin⁡(y)f(x, y) = x^2 \sin(y):

    • Domain: Entire plane R2\mathbb{R}^2.

    • Range: Since x2≥0x^2 \ge 0 can be arbitrarily large and sin⁡(y)∈[−1,1]\sin(y) \in [-1, 1], the range is (−∞,∞)(-\infty, \infty).

    • For f(x,y)=xy−3f(x, y) = \frac{x}{y - 3}:

    • Domain: All points in R2\mathbb{R}^2 where the denominator is non-zero: D={(x,y)∈R2∣y≠3}D = \{(x, y) \in \mathbb{R}^2 \mid y \ne 3\}.

    • Range: All real numbers (−∞,∞)(-\infty, \infty).

    • For f(x,y)=1−x2−y2f(x, y) = \sqrt{1 - x^2 - y^2}:

    • Domain: Set of points satisfying 1−x2−y2≥01 - x^2 - y^2 \ge 0, which describes the closed unit disk D={(x,y)∈R2∣x2+y2≤1}D = \{(x, y) \in \mathbb{R}^2 \mid x^2 + y^2 \le 1\}.

    • Range: The radical takes values from 0=0\sqrt{0} = 0 up to 1=1\sqrt{1} = 1, so the range is [0,1][0, 1].

    • For f(x,y)=ln⁡(x+y)f(x, y) = \ln(x + y):

    • Domain: The argument of the natural logarithm must be strictly positive: D={(x,y)∈R2∣x+y>0}D = \{(x, y) \in \mathbb{R}^2 \mid x + y > 0\}.

    • Range: All real numbers (−∞,∞)(-\infty, \infty).

  • Graphs of Functions of Two Variables:

    • The graph of a function f(x,y)f(x, y) is the set of all points (x,y,z)∈R3(x, y, z) \in \mathbb{R}^3 such that z=f(x,y)z = f(x, y) for (x,y)∈D(x, y) \in D.

    • Geometrically, this graph represents a two-dimensional surface in three-dimensional space whose vertical projection onto the xyxy-plane is the domain DD.

Surface z = f(x, y) in three-dimensional space projecting onto domain D in the xy-plane
  • Graph Analysis of f(x,y)=6−x2f(x, y) = 6 - x^2:

    • Domain: R2\mathbb{R}^2.

    • Range: (−∞,6](-\infty, 6].

    • Geometric description: Because yy is absent from the formula, every cross-section parallel to the xzxz-plane is an identical downward-opening parabola z=6−x2z = 6 - x^2. The surface is a parabolic cylinder extending infinitely along the yy-axis with vertex line along z=6,x=0z = 6, x = 0.

  • Graph Analysis of f(x,y)=16−4x2−y2f(x, y) = \sqrt{16 - 4x^2 - y^2}:

    • Domain: Points satisfying 16−4x2−y2≥0  ⟹  4x2+y2≤16  ⟹  x24+y216≤116 - 4x^2 - y^2 \ge 0 \implies 4x^2 + y^2 \le 16 \implies \frac{x^2}{4} + \frac{y^2}{16} \le 1 (an elliptical region in the xyxy-plane).

    • Range: [0,4][0, 4].

    • Traces: Squaring both sides gives z2=16−4x2−y2z^2 = 16 - 4x^2 - y^2 with z≥0z \ge 0, or 4x2+y2+z2=164x^2 + y^2 + z^2 = 16, which represents the upper half of an ellipsoid.

    • Horizontal trace at z=2z = 2:

      • Substitute z=2z = 2 into the explicit equation: 2=16−4x2−y22 = \sqrt{16 - 4x^2 - y^2}.

      • Square both sides: 4=16−4x2−y24 = 16 - 4x^2 - y^2.

      • Rearrange terms: 4x2+y2=124x^2 + y^2 = 12.

      • Standard form: x23+y212=1\frac{x^2}{3} + \frac{y^2}{12} = 1, an ellipse in the plane z=2z = 2.

    • Level Curves and Contour Maps:

  • Definition: Given a function f(x,y)f(x, y) and a constant kk in the range of ff, the level curve (or contour curve) of ff for the value kk is the set of points in the xyxy-plane satisfying the equation f(x,y)=kf(x, y) = k.

  • Contour Map: A collection of several level curves plotted in the xyxy-plane for equally spaced values of kk.

  • Circular Cone Example: z=f(x,y)=x2+y2z = f(x, y) = \sqrt{x^2 + y^2}.

    • For each k≥0k \ge 0, the level curve is x2+y2=k  ⟹  x2+y2=k2\sqrt{x^2 + y^2} = k \implies x^2 + y^2 = k^2, representing concentric circles centered at the origin of radius kk.

    • The 3D surface is the upper half of a right circular cone with vertex at the origin.

  • Hyperbolic Paraboloid Example: z=f(x,y)=y2−x2z = f(x, y) = y^2 - x^2.

    • For k>0k > 0, the level curves are hyperbolas opening along the yy-axis: y2−x2=ky^2 - x^2 = k.

    • For k<0k < 0, the level curves are hyperbolas opening along the xx-axis: x2−y2=−kx^2 - y^2 = -k.

    • For k=0k = 0, the level curve consists of the pair of intersecting lines y2−x2=0  ⟹  y=±xy^2 - x^2 = 0 \implies y = \pm x.

Hyperbolic paraboloid saddle surface z = y^2 - x^2
  • Functions of Three or More Variables and Level Surfaces:

    • For a function of three variables w=f(x,y,z)w = f(x, y, z), the domain is a subset of R3\mathbb{R}^3 and its graph resides in four-dimensional space R4\mathbb{R}^4.

    • Level surfaces are the three-dimensional solution sets to the equation f(x,y,z)=kf(x, y, z) = k, where kk is a constant in the range of ff.

    • Classification Summary:

    • 1 Independent Variable: Explicit form y=f(x)y = f(x), Implicit form F(x,y)=0F(x, y) = 0, graph resides in R2\mathbb{R}^2.

    • 2 Independent Variables: Explicit form z=f(x,y)z = f(x, y), Implicit form F(x,y,z)=0F(x, y, z) = 0, graph resides in R3\mathbb{R}^3.

    • 3 Independent Variables: Explicit form w=f(x,y,z)w = f(x, y, z), Implicit form F(x,y,z,w)=0F(x, y, z, w) = 0, graph resides in R4\mathbb{R}^4.

    • Example: f(x,y,z)=ln⁡(16−4x2−4y2−z2)f(x, y, z) = \ln(16 - 4x^2 - 4y^2 - z^2).

    • Domain: All points in R3\mathbb{R}^3 where the logarithm argument is positive: 16−4x2−4y2−z2>0  ⟹  x24+y24+z216<116 - 4x^2 - 4y^2 - z^2 > 0 \implies \frac{x^2}{4} + \frac{y^2}{4} + \frac{z^2}{16} < 1 (the interior of a solid ellipsoid).

    • Range: The argument varies over (0,16](0, 16], so the range is (−∞,ln⁡(16)](-\infty, \ln(16)].

    • Level Surfaces: For a constant k≤ln⁡(16)k \le \ln(16), setting ln⁡(16−4x2−4y2−z2)=k\ln(16 - 4x^2 - 4y^2 - z^2) = k gives 16−4x2−4y2−z2=ek16 - 4x^2 - 4y^2 - z^2 = e^k, or 4x2+4y2+z2=16−ek4x^2 + 4y^2 + z^2 = 16 - e^k. In standard form: x216−ek4+y216−ek4+z216−ek=1\frac{x^2}{\frac{16 - e^k}{4}} + \frac{y^2}{\frac{16 - e^k}{4}} + \frac{z^2}{16 - e^k} = 1. These are concentric ellipsoids centered at the origin.

  • Comparative Roadmap from Single-Variable to Multivariable Calculus:

    • Derivative:

    • Single-variable curve y=f(x)y = f(x): dfdx\frac{df}{dx}.

    • Multivariable surface z=f(x,y)z = f(x, y): Partial derivatives ∂f∂x\frac{\partial f}{\partial x} and ∂f∂y\frac{\partial f}{\partial y}.

    • Second Derivatives:

    • Single-variable: d2fdx2\frac{d^2 f}{dx^2}.

    • Multivariable: ∂2f∂x2\frac{\partial^2 f}{\partial x^2}, ∂2f∂x∂y\frac{\partial^2 f}{\partial x \partial y}, ∂2f∂y∂x\frac{\partial^2 f}{\partial y \partial x}, and ∂2f∂y2\frac{\partial^2 f}{\partial y^2}.

    • Tangent Approximation:

    • Single-variable tangent line: y−y0=dfdx(x0)(x−x0)y - y_0 = \frac{df}{dx}(x_0)(x - x_0).

    • Multivariable tangent plane: z−z0=∂f∂x(x0,y0)(x−x0)+∂f∂y(x0,y0)(y−y0)z - z_0 = \frac{\partial f}{\partial x}(x_0, y_0)(x - x_0) + \frac{\partial f}{\partial y}(x_0, y_0)(y - y_0).

    • Differentials / Linear Approximations:

    • Single-variable: Δf≈dfdxΔx\Delta f \approx \frac{df}{dx} \Delta x.

    • Multivariable: Δf≈∂f∂xΔx+∂f∂yΔy\Delta f \approx \frac{\partial f}{\partial x} \Delta x + \frac{\partial f}{\partial y} \Delta y.

    • Chain Rule:

    • Single-variable: dydt=dydxdxdt\frac{dy}{dt} = \frac{dy}{dx} \frac{dx}{dt}.

    • Multivariable: dzdt=∂z∂xdxdt+∂z∂ydydt\frac{dz}{dt} = \frac{\partial z}{\partial x} \frac{dx}{dt} + \frac{\partial z}{\partial y} \frac{dy}{dt}.

    • Critical Points:

    • Single-variable: dfdx=0\frac{df}{dx} = 0.

    • Multivariable: Both first partials vanish simultaneously: ∂f∂x=0\frac{\partial f}{\partial x} = 0 and ∂f∂y=0\frac{\partial f}{\partial y} = 0.

Limits and Continuity in Higher Dimensions

  • Single-Variable Review:

    • lim⁡x→af(x)=L\lim_{x \to a} f(x) = L exists if and only if both one-sided limits exist and are equal: lim⁡x→a−f(x)=lim⁡x→a+f(x)=L\lim_{x \to a^-} f(x) = \lim_{x \to a^+} f(x) = L.

    • A function ff is continuous at x=ax = a if:

    • f(a)f(a) is defined.

    • lim⁡x→af(x)\lim_{x \to a} f(x) exists.

    • lim⁡x→af(x)=f(a)\lim_{x \to a} f(x) = f(a).

  • Definition and Geometry of Multivariable Limits:

    • lim⁡(x,y)→(a,b)f(x,y)=L\lim_{(x, y) \to (a, b)} f(x, y) = L means that as the point (x,y)(x, y) approaches (a,b)(a, b) along every possible continuous path in the domain, the value f(x,y)f(x, y) approaches LL.

    • In R2\mathbb{R}^2, there are infinitely many paths of approach (lines, parabolas, cubics, spirals) toward (a,b)(a, b).

  • The Two-Path Test for Non-Existence of Limits:

    • If f(x,y)f(x, y) approaches different values along two distinct paths as (x,y)→(a,b)(x, y) \to (a, b), or if f(x,y)f(x, y) fails to approach a finite value along any single path, then lim⁡(x,y)→(a,b)f(x,y)\lim_{(x, y) \to (a, b)} f(x, y) does not exist (DNE).

    • Caution: Showing that f(x,y)f(x, y) approaches the same number LL along several paths (or even infinitely many straight lines) does not prove that the limit exists.

    • Example: Calculate lim⁡(x,y)→(0,0)x3−y3x3+y3\lim_{(x, y) \to (0, 0)} \frac{x^3 - y^3}{x^3 + y^3}.

    • Approach along the line y=0y = 0 (as x→0x \to 0):

      • lim⁡x→0x3−03x3+03=lim⁡x→0x3x3=1\lim_{x \to 0} \frac{x^3 - 0^3}{x^3 + 0^3} = \lim_{x \to 0} \frac{x^3}{x^3} = 1.

    • Approach along the line x=0x = 0 (as y→0y \to 0):

      • lim⁡y→003−y303+y3=lim⁡y→0−y3y3=−1\lim_{y \to 0} \frac{0^3 - y^3}{0^3 + y^3} = \lim_{y \to 0} \frac{-y^3}{y^3} = -1.

    • Since 1≠−11 \ne -1, the limit does not exist.

    • Example: Show that lim⁡(x,y)→(0,0)x2yx4+y2\lim_{(x, y) \to (0, 0)} \frac{x^2 y}{x^4 + y^2} does not exist.

    • Approach along straight lines y=mxy = mx:

      • lim⁡x→0x2(mx)x4+(mx)2=lim⁡x→0mx3x4+m2x2=lim⁡x→0mxx2+m2=0\lim_{x \to 0} \frac{x^2(mx)}{x^4 + (mx)^2} = \lim_{x \to 0} \frac{m x^3}{x^4 + m^2 x^2} = \lim_{x \to 0} \frac{m x}{x^2 + m^2} = 0.

      • The limit along every straight line through the origin is 00.

    • Approach along parabolic paths y=kx2y = k x^2 (matching powers of the denominator):

      • lim⁡x→0x2(kx2)x4+(kx2)2=lim⁡x→0kx4x4+k2x4=k1+k2\lim_{x \to 0} \frac{x^2(k x^2)}{x^4 + (k x^2)^2} = \lim_{x \to 0} \frac{k x^4}{x^4 + k^2 x^4} = \frac{k}{1 + k^2}.

      • Along the parabola y=x2y = x^2 (k=1k = 1), the value is 12\frac{1}{2}.

      • Along the parabola y=2x2y = 2x^2 (k=2k = 2), the value is 25\frac{2}{5}.

    • Because the values differ along different paths, the limit DNE.

  • Multivariable Limit Laws:

    • Let lim⁡(x,y)→(a,b)f(x,y)=L\lim_{(x, y) \to (a, b)} f(x, y) = L, lim⁡(x,y)→(a,b)g(x,y)=M\lim_{(x, y) \to (a, b)} g(x, y) = M, and c∈Rc \in \mathbb{R} be a constant:

    • Constant Law: lim⁡(x,y)→(a,b)c=c\lim_{(x, y) \to (a, b)} c = c.

    • Identity Laws: lim⁡(x,y)→(a,b)x=a\lim_{(x, y) \to (a, b)} x = a and lim⁡(x,y)→(a,b)y=b\lim_{(x, y) \to (a, b)} y = b.

    • Sum and Difference: lim⁡(x,y)→(a,b)[f(x,y)±g(x,y)]=L±M\lim_{(x, y) \to (a, b)} [f(x, y) \pm g(x, y)] = L \pm M.

    • Scalar Multiple: lim⁡(x,y)→(a,b)[cf(x,y)]=cL\lim_{(x, y) \to (a, b)} [c f(x, y)] = c L.

    • Product Law: lim⁡(x,y)→(a,b)[f(x,y)g(x,y)]=LM\lim_{(x, y) \to (a, b)} [f(x, y) g(x, y)] = L M.

    • Quotient Law: lim⁡(x,y)→(a,b)f(x,y)g(x,y)=LM\lim_{(x, y) \to (a, b)} \frac{f(x, y)}{g(x, y)} = \frac{L}{M}, provided M≠0M \ne 0.

    • Power Law: lim⁡(x,y)→(a,b)[f(x,y)]n=Ln\lim_{(x, y) \to (a, b)} [f(x, y)]^n = L^n for an integer n>0n > 0.

    • Root Law: lim⁡(x,y)→(a,b)f(x,y)n=Ln\lim_{(x, y) \to (a, b)} \sqrt[n]{f(x, y)} = \sqrt[n]{L} for an integer n>0n > 0 (assuming L>0L > 0 if nn is even).

  • Evaluating Limits via Polar Coordinates:

    • For limits at (x,y)→(0,0)(x, y) \to (0, 0), substituting x=rcos⁡(θ)x = r\cos(\theta) and y=rsin⁡(θ)y = r\sin(\theta) transforms the condition (x,y)→(0,0)(x, y) \to (0, 0) into r→0+r \to 0^+.

    • Example 1: lim⁡(x,y)→(0,0)sin⁡(2x2+2y2)x2+y2\lim_{(x, y) \to (0, 0)} \frac{\sin(2x^2 + 2y^2)}{x^2 + y^2}.

    • Substitute x2+y2=r2x^2 + y^2 = r^2:

      • lim⁡r→0+sin⁡(2r2)r2=lim⁡u→0+sin⁡(2u)u=2\lim_{r \to 0^+} \frac{\sin(2r^2)}{r^2} = \lim_{u \to 0^+} \frac{\sin(2u)}{u} = 2.

    • Example 2: lim⁡(x,y)→(0,0)x2x2+y2\lim_{(x, y) \to (0, 0)} \frac{x^2}{\sqrt{x^2 + y^2}}.

    • Convert to polar form:

      • lim⁡r→0+r2cos⁡2(θ)r=lim⁡r→0+[rcos⁡2(θ)]\lim_{r \to 0^+} \frac{r^2 \cos^2(\theta)}{r} = \lim_{r \to 0^+} [r \cos^2(\theta)].

    • Since 0≤cos⁡2(θ)≤10 \le \cos^2(\theta) \le 1, we have 0≤rcos⁡2(θ)≤r0 \le r \cos^2(\theta) \le r.

    • As r→0+r \to 0^+, by the Squeeze Theorem the limit is 00.

  • Continuity of Multivariable Functions:

    • A function f(x,y)f(x, y) is continuous at (a,b)(a, b) if lim⁡(x,y)→(a,b)f(x,y)=f(a,b)\lim_{(x, y) \to (a, b)} f(x, y) = f(a, b).

    • A function ff is continuous on a domain DD if it is continuous at every point (a,b)∈D(a, b) \in D.

    • Properties:

    • All polynomials of two or more variables are continuous on R2\mathbb{R}^2.

    • Rational functions are continuous at all points in their domains (where the denominator is non-zero).

    • Sums, differences, constant multiples, products, quotients (with non-zero denominators), and compositions of continuous functions are continuous.

    • Direct Substitution Examples:

    • lim⁡(x,y)→(2,−1)(x2−4xy+3y2−1)=(2)2−4(2)(−1)+3(−1)2−1=4+8+3−1=14\lim_{(x, y) \to (2, -1)} (x^2 - 4xy + 3y^2 - 1) = (2)^2 - 4(2)(-1) + 3(-1)^2 - 1 = 4 + 8 + 3 - 1 = 14.

    • lim⁡(x,y)→(2,−1)2x+3y4x−y=2(2)+3(−1)4(2)−(−1)=4−38+1=19\lim_{(x, y) \to (2, -1)} \frac{\sqrt{2x + 3y}}{4x - y} = \frac{\sqrt{2(2) + 3(-1)}}{4(2) - (-1)} = \frac{\sqrt{4 - 3}}{8 + 1} = \frac{1}{9}.

    • Continuity Discussion Examples:

    • Function f(x,y)=ln⁡(x+y)f(x, y) = \ln(x + y): Continuous on its open domain D={(x,y)∣x+y>0}D = \{(x, y) \mid x + y > 0\}.

    • Let f(x,y)={x4−y4x2+y2(x,y)≠(0,0)0(x,y)=(0,0)f(x, y) = \begin{cases} \frac{x^4 - y^4}{x^2 + y^2} & (x, y) \ne (0, 0) \\ 0 & (x, y) = (0, 0) \end{cases}.

      • Factoring the numerator gives (x2−y2)(x2+y2)x2+y2=x2−y2\frac{(x^2 - y^2)(x^2 + y^2)}{x^2 + y^2} = x^2 - y^2.

      • Taking the limit: lim⁡(x,y)→(0,0)(x2−y2)=0\lim_{(x, y) \to (0, 0)} (x^2 - y^2) = 0.

      • Since lim⁡(x,y)→(0,0)f(x,y)=0=f(0,0)\lim_{(x, y) \to (0, 0)} f(x, y) = 0 = f(0, 0), ff is continuous everywhere on R2\mathbb{R}^2.

    • Let g(x,y)={x4−y4x2+y2(x,y)≠(0,0)1(x,y)=(0,0)g(x, y) = \begin{cases} \frac{x^4 - y^4}{x^2 + y^2} & (x, y) \ne (0, 0) \\ 1 & (x, y) = (0, 0) \end{cases}.

      • Since lim⁡(x,y)→(0,0)g(x,y)=0≠g(0,0)=1\lim_{(x, y) \to (0, 0)} g(x, y) = 0 \ne g(0, 0) = 1, gg is discontinuous at (0,0)(0, 0).

  • Additional Worked Exercises on Limits and Continuity:

    • Limit by Factoring: lim⁡(x,y)→(6,2)x2−3xyx−3y\lim_{(x, y) \to (6, 2)} \frac{x^2 - 3xy}{x - 3y}.

    • Factor numerator: x(x−3y)x−3y=x\frac{x(x - 3y)}{x - 3y} = x for x≠3yx \ne 3y.

    • Evaluate: lim⁡(x,y)→(6,2)x=6\lim_{(x, y) \to (6, 2)} x = 6.

    • Limit by Rationalization: lim⁡(x,y)→(2,1)x−y−1x−y−1\lim_{(x, y) \to (2, 1)} \frac{x - y - 1}{\sqrt{x - y} - 1}.

    • Let u=x−yu = \sqrt{x - y}. Since (x,y)→(2,1)(x, y) \to (2, 1), u→2−1=1u \to \sqrt{2 - 1} = 1.

    • The fraction becomes u2−1u−1=u+1\frac{u^2 - 1}{u - 1} = u + 1.

    • Evaluate: lim⁡u→1(u+1)=1+1=2\lim_{u \to 1} (u + 1) = 1 + 1 = 2.

    • Squeeze Theorem Application: Show lim⁡(x,y)→(0,0)x3+y3x2+y2=0\lim_{(x, y) \to (0, 0)} \frac{x^3 + y^3}{x^2 + y^2} = 0.

    • For the first term: ∣x3x2+y2∣=∣x∣x2x2+y2≤∣x∣⋅1=∣x∣\left|\frac{x^3}{x^2 + y^2}\right| = |x| \frac{x^2}{x^2 + y^2} \le |x| \cdot 1 = |x|.

    • Since −∣x∣≤x3x2+y2≤∣x∣-|x| \le \frac{x^3}{x^2 + y^2} \le |x| and lim⁡(x,y)→(0,0)∣x∣=0\lim_{(x, y) \to (0, 0)} |x| = 0, lim⁡(x,y)→(0,0)x3x2+y2=0\lim_{(x, y) \to (0, 0)} \frac{x^3}{x^2 + y^2} = 0.

    • Similarly, ∣y3x2+y2∣≤∣y∣  ⟹  lim⁡(x,y)→(0,0)y3x2+y2=0\left|\frac{y^3}{x^2 + y^2}\right| \le |y| \implies \lim_{(x, y) \to (0, 0)} \frac{y^3}{x^2 + y^2} = 0.

    • By the sum law, lim⁡(x,y)→(0,0)x3+y3x2+y2=0+0=0\lim_{(x, y) \to (0, 0)} \frac{x^3 + y^3}{x^2 + y^2} = 0 + 0 = 0.

    • Removable Discontinuity: For f(x,y)=ex2+y2−1x2+y2f(x, y) = \frac{e^{x^2 + y^2} - 1}{x^2 + y^2} for (x,y)≠(0,0)(x, y) \ne (0, 0).

    • Let r2=x2+y2r^2 = x^2 + y^2. As (x,y)→(0,0)(x, y) \to (0, 0), r2→0r^2 \to 0.

    • lim⁡u→0eu−1u=1\lim_{u \to 0} \frac{e^u - 1}{u} = 1.

    • To make ff continuous at (0,0)(0, 0), define f(0,0)=1f(0, 0) = 1.

    • Three-Variable Limit: lim⁡(x,y,z)→(1,1,1)x2+xy−xz−yzx−z\lim_{(x, y, z) \to (1, 1, 1)} \frac{x^2 + xy - xz - yz}{x - z}.

    • Group terms: x(x+y)−z(x+y)=(x−z)(x+y)x(x + y) - z(x + y) = (x - z)(x + y).

    • Cancel (x−z)(x - z): lim⁡(x,y,z)→(1,1,1)(x+y)=1+1=2\lim_{(x, y, z) \to (1, 1, 1)} (x + y) = 1 + 1 = 2.

    • Continuity in Three Variables: f(x,y,z)=zx2+y2−4f(x, y, z) = \frac{z}{x^2 + y^2 - 4}.

    • ff is continuous at all points in R3\mathbb{R}^3 except where x2+y2=4x^2 + y^2 = 4 (the surface of an infinite cylinder of radius 2 centered along the zz-axis).

Partial Derivatives and Mixed Partials

  • Definition of First Partial Derivatives:

    • For a function z=f(x,y)z = f(x, y), the partial derivative of ff with respect to xx at (x,y)(x, y) is:

    • fx(x,y)=lim⁡h→0f(x+h,y)−f(x,y)hf_x(x, y) = \lim_{h \to 0} \frac{f(x + h, y) - f(x, y)}{h}

    • The partial derivative of ff with respect to yy at (x,y)(x, y) is:

    • fy(x,y)=lim⁡h→0f(x,y+h)−f(x,y)hf_y(x, y) = \lim_{h \to 0} \frac{f(x, y + h) - f(x, y)}{h}

    • Notations:

    • With respect to xx: fx=∂f∂x=∂z∂x=Dxff_x = \frac{\partial f}{\partial x} = \frac{\partial z}{\partial x} = D_x f.

    • With respect to yy: fy=∂f∂y=∂z∂y=Dyff_y = \frac{\partial f}{\partial y} = \frac{\partial z}{\partial y} = D_y f.

    • Evaluated at a point (a,b)(a, b): ∂z∂x∣(a,b)=fx(a,b)\left.\frac{\partial z}{\partial x}\right|_{(a, b)} = f_x(a, b), ∂z∂y∣(a,b)=fy(a,b)\left.\frac{\partial z}{\partial y}\right|_{(a, b)} = fy(a, b).

  • Geometric Interpretation:

    • Curve C1C_1 is the intersection of the vertical plane y=by = b with the surface z=f(x,y)z = f(x, y). The value fx(a,b)f_x(a, b) is the slope of the tangent line to C1C_1 at P(a,b,f(a,b))P(a, b, f(a, b)).

    • Curve C2C_2 is the intersection of the vertical plane x=ax = a with the surface z=f(x,y)z = f(x, y). The value fy(a,b)f_y(a, b) is the slope of the tangent line to C2C_2 at P(a,b,f(a,b))P(a, b, f(a, b)).

Geometric interpretation of partial derivatives fx and fy as slopes of tangent lines along vertical plane slices y = b and x = a
  • Computation Rule:

    • To compute fxf_x, differentiate with respect to xx using standard single-variable rules while holding yy strictly constant.

    • To compute fyf_y, differentiate with respect to yy while holding xx strictly constant.

  • Worked Partial Differentiation Examples:

    • For f(x,y)=ysin⁡(x2+xy+y2)f(x, y) = y \sin(x^2 + xy + y^2):

    • fx(x,y)=ycos⁡(x2+xy+y2)∂∂x(x2+xy+y2)=y(2x+y)cos⁡(x2+xy+y2)f_x(x, y) = y \cos(x^2 + xy + y^2) \frac{\partial}{\partial x}(x^2 + xy + y^2) = y(2x + y) \cos(x^2 + xy + y^2).

    • By the product rule: fy(x,y)=1⋅sin⁡(x2+xy+y2)+ycos⁡(x2+xy+y2)(x+2y)f_y(x, y) = 1 \cdot \sin(x^2 + xy + y^2) + y \cos(x^2 + xy + y^2)(x + 2y).

    • For f(x,y,z)=e2xcos⁡(z2)+e3ysin⁡(2z)f(x, y, z) = e^{2x} \cos(z^2) + e^{3y} \sin(2z):

    • fx=2e2xcos⁡(z2)f_x = 2e^{2x} \cos(z^2).

    • fy=3e3ysin⁡(2z)f_y = 3e^{3y} \sin(2z).

    • fz=−2ze2xsin⁡(z2)+2e3ycos⁡(2z)f_z = -2z e^{2x} \sin(z^2) + 2e^{3y} \cos(2z).

    • Slope of Tangent Line to Intersection Curve:

    • Surface z=36−9x2−4y2z = \sqrt{36 - 9x^2 - 4y^2} cut by plane x=1x = 1 at point (1,−2,11)(1, -2, \sqrt{11}).

    • Since xx is fixed at 11, the slope is along the yy-direction, given by fy(1,−2)f_y(1, -2).

    • fy=−8y236−9x2−4y2=−4y36−9x2−4y2f_y = \frac{-8y}{2\sqrt{36 - 9x^2 - 4y^2}} = \frac{-4y}{\sqrt{36 - 9x^2 - 4y^2}}.

    • Evaluated at (1,−2)(1, -2): fy(1,−2)=−4(−2)36−9(1)−4(4)=811f_y(1, -2) = \frac{-4(-2)}{\sqrt{36 - 9(1) - 4(4)}} = \frac{8}{\sqrt{11}}.

    • Implicit Differentiation of yz−ln⁡(z)=x2+y2yz - \ln(z) = x^2 + y^2 to find ∂z∂x\frac{\partial z}{\partial x}:

    • Differentiate both sides with respect to xx, viewing zz as an implicit function of xx and yy:

      • y∂z∂x−1z∂z∂x=2xy \frac{\partial z}{\partial x} - \frac{1}{z}\frac{\partial z}{\partial x} = 2x.

      • (y−1z)∂z∂x=2x\left(y - \frac{1}{z}\right) \frac{\partial z}{\partial x} = 2x.

      • yz−1z∂z∂x=2x  ⟹  ∂z∂x=2xzyz−1\frac{yz - 1}{z} \frac{\partial z}{\partial x} = 2x \implies \frac{\partial z}{\partial x} = \frac{2xz}{yz - 1}.

  • Second-Order and Higher Partial Derivatives:

    • Definitions of second partial derivatives for f(x,y)f(x, y):

    • Second pure partial in xx: fxx=∂2f∂x2=∂∂x(∂f∂x)f_{xx} = \frac{\partial^2 f}{\partial x^2} = \frac{\partial}{\partial x}\left(\frac{\partial f}{\partial x}\right).

    • Second pure partial in yy: fyy=∂2f∂y2=∂∂y(∂f∂y)f_{yy} = \frac{\partial^2 f}{\partial y^2} = \frac{\partial}{\partial y}\left(\frac{\partial f}{\partial y}\right).

    • Mixed partial (differentiate first by xx, then by yy): fxy=(fx)y=∂2f∂y∂x=∂∂y(∂f∂x)f_{xy} = (f_x)_y = \frac{\partial^2 f}{\partial y \partial x} = \frac{\partial}{\partial y}\left(\frac{\partial f}{\partial x}\right).

    • Mixed partial (differentiate first by yy, then by xx): fyx=(fy)x=∂2f∂x∂y=∂∂x(∂f∂y)f_{yx} = (f_y)_x = \frac{\partial^2 f}{\partial x \partial y} = \frac{\partial}{\partial x}\left(\frac{\partial f}{\partial y}\right).

    • Example: For f(x,y)=sin⁡(3x+y)f(x, y) = \sin(3x + y):

    • fx=3cos⁡(3x+y)  ⟹  fxy=∂∂y[3cos⁡(3x+y)]=−3sin⁡(3x+y)f_x = 3\cos(3x + y) \implies f_{xy} = \frac{\partial}{\partial y}[3\cos(3x + y)] = -3\sin(3x + y).

    • fy=cos⁡(3x+y)  ⟹  fyx=∂∂x[cos⁡(3x+y)]=−3sin⁡(3x+y)f_y = \cos(3x + y) \implies f_{yx} = \frac{\partial}{\partial x}[\cos(3x + y)] = -3\sin(3x + y).

    • Here, fxy=fyxf_{xy} = f_{yx}.

    • Clairaut's Theorem (Equality of Mixed Partials):

    • Let ff be defined on an open set D⊆R2D \subseteq \mathbb{R}^2. If both mixed partial derivatives fxyf_{xy} and fyxf_{yx} are continuous on DD, then fxy(x,y)=fyx(x,y)f_{xy}(x, y) = f_{yx}(x, y) for all (x,y)∈D(x, y) \in D.

    • Failure of Clairaut's Theorem when Continuity Fails:

    • Consider f(x,y)={x3y−xy3x2+y2(x,y)≠(0,0)0(x,y)=(0,0)f(x, y) = \begin{cases} \frac{x^3 y - x y^3}{x^2 + y^2} & (x, y) \ne (0, 0) \\ 0 & (x, y) = (0, 0) \end{cases}.

    • Using the limit definition of partial derivatives:

      • fy(x,0)=lim⁡h→0f(x,h)−f(x,0)h=lim⁡h→0x3h−xh3x2+h2−0h=lim⁡h→0x3−xh2x2+h2=xf_y(x, 0) = \lim_{h \to 0} \frac{f(x, h) - f(x, 0)}{h} = \lim_{h \to 0} \frac{\frac{x^3 h - x h^3}{x^2 + h^2} - 0}{h} = \lim_{h \to 0} \frac{x^3 - x h^2}{x^2 + h^2} = x.

      • fx(0,y)=lim⁡h→0f(h,y)−f(0,y)h=lim⁡h→0h3y−hy3h2+y2−0h=lim⁡h→0h2y−y3h2+y2=−yf_x(0, y) = \lim_{h \to 0} \frac{f(h, y) - f(0, y)}{h} = \lim_{h \to 0} \frac{\frac{h^3 y - h y^3}{h^2 + y^2} - 0}{h} = \lim_{h \to 0} \frac{h^2 y - y^3}{h^2 + y^2} = -y.

    • Computing mixed second partials at (0,0)(0, 0):

      • fyx(0,0)=∂∂x(fy)(0,0)=lim⁡h→0fy(h,0)−fy(0,0)h=lim⁡h→0h−0h=1f_{yx}(0, 0) = \frac{\partial}{\partial x}(f_y)(0, 0) = \lim_{h \to 0} \frac{f_y(h, 0) - f_y(0, 0)}{h} = \lim_{h \to 0} \frac{h - 0}{h} = 1.

      • fxy(0,0)=∂∂y(fx)(0,0)=lim⁡h→0fx(0,h)−fx(0,0)h=lim⁡h→0−h−0h=−1f_{xy}(0, 0) = \frac{\partial}{\partial y}(f_x)(0, 0) = \lim_{h \to 0} \frac{f_x(0, h) - f_x(0, 0)}{h} = \lim_{h \to 0} \frac{-h - 0}{h} = -1.

    • Thus, fyx(0,0)≠fxy(0,0)f_{yx}(0, 0) \ne f_{xy}(0, 0). Away from the origin, fxy(x,y)=x6+9x4y2−9x2y4−y6(x2+y2)3f_{xy}(x, y) = \frac{x^6 + 9x^4 y^2 - 9x^2 y^4 - y^6}{(x^2 + y^2)^3}. As (x,y)→(0,0)(x, y) \to (0, 0) along the xx-axis the limit is 11, while along the yy-axis the limit is −1-1. Because fxyf_{xy} is not continuous at (0,0)(0, 0), Clairaut's Theorem does not apply.

    • Higher Order Derivative Calculation: If f(x,y)=exyf(x, y) = e^{xy}, calculate ∂3f∂x2∂y\frac{\partial^3 f}{\partial x^2 \partial y}.

    • First step: fy=xexyf_y = x e^{xy}.

    • Second step: fyx=∂∂x(xexy)=1⋅exy+x(yexy)=(1+xy)exyf_{yx} = \frac{\partial}{\partial x}(x e^{xy}) = 1 \cdot e^{xy} + x(y e^{xy}) = (1 + xy)e^{xy}.

    • Third step: fyxx=∂∂x[(1+xy)exy]=yexy+(1+xy)(yexy)=(2y+xy2)exyf_{yxx} = \frac{\partial}{\partial x}[(1 + xy)e^{xy}] = y e^{xy} + (1 + xy)(y e^{xy}) = (2y + xy^2)e^{xy}.

  • Additional Worked Exercises on Partial Derivatives:

    • Second Partials of Inverse Tangent: f(x,y)=tan⁡−1(xy)f(x, y) = \tan^{-1}\left(\frac{x}{y}\right).

    • fx=11+(x/y)2⋅1y=yx2+y2f_x = \frac{1}{1 + (x/y)^2} \cdot \frac{1}{y} = \frac{y}{x^2 + y^2}.

    • fy=11+(x/y)2⋅(−xy2)=−xx2+y2f_y = \frac{1}{1 + (x/y)^2} \cdot \left(-\frac{x}{y^2}\right) = \frac{-x}{x^2 + y^2}.

    • Pure second partials:

      • fxx=∂∂x[yx2+y2]=−2xy(x2+y2)2f_{xx} = \frac{\partial}{\partial x}\left[\frac{y}{x^2 + y^2}\right] = \frac{-2xy}{(x^2 + y^2)^2}.

      • fyy=∂∂y[−xx2+y2]=2xy(x2+y2)2f_{yy} = \frac{\partial}{\partial y}\left[\frac{-x}{x^2 + y^2}\right] = \frac{2xy}{(x^2 + y^2)^2}.

    • Mixed partials:

      • fxy=∂∂y[yx2+y2]=1(x2+y2)−y(2y)(x2+y2)2=x2−y2(x2+y2)2=fyxf_{xy} = \frac{\partial}{\partial y}\left[\frac{y}{x^2 + y^2}\right] = \frac{1(x^2 + y^2) - y(2y)}{(x^2 + y^2)^2} = \frac{x^2 - y^2}{(x^2 + y^2)^2} = f_{yx}.

    • Integrability Condition Test: Could fx=x+3yf_x = x + 3y and fy=4x+yf_y = 4x + y be partial derivatives of a function f(x,y)f(x, y) in the plane?

    • Compute mixed partials: ∂∂y(fx)=3\frac{\partial}{\partial y}(f_x) = 3 and ∂∂x(fy)=4\frac{\partial}{\partial x}(f_y) = 4.

    • Since 3≠43 \ne 4, Clairaut's Theorem would be violated. Therefore, no such function ff exists.

    • Existence of Potential Function: Could fx=xx2+y2+1f_x = \frac{x}{x^2 + y^2 + 1} and fy=yx2+y2+1f_y = \frac{y}{x^2 + y^2 + 1} be partial derivatives of ff?

    • Check mixed partials: ∂∂y(fx)=−2xy(x2+y2+1)2=∂∂x(fy)\frac{\partial}{\partial y}(f_x) = \frac{-2xy}{(x^2 + y^2 + 1)^2} = \frac{\partial}{\partial x}(f_y).

    • Integrating fxf_x with respect to xx yields f(x,y)=12ln⁡(x2+y2+1)+Cf(x, y) = \frac{1}{2}\ln(x^2 + y^2 + 1) + C, which has the given fyf_y. Thus, yes.

    • Existence of Partials without Continuity: Let f(x,y)={xyx2+y2(x,y)≠(0,0)0(x,y)=(0,0)f(x, y) = \begin{cases} \frac{xy}{x^2 + y^2} & (x, y) \ne (0, 0) \\ 0 & (x, y) = (0, 0) \end{cases}.

    • At the origin: fx(0,0)=lim⁡h→0f(h,0)−0h=lim⁡h→00h3=0f_x(0, 0) = \lim_{h \to 0} \frac{f(h, 0) - 0}{h} = \lim_{h \to 0} \frac{0}{h^3} = 0, and similarly fy(0,0)=0f_y(0, 0) = 0.

    • However, ff is not continuous at (0,0)(0, 0): along the line y=0y = 0, the limit is 00, while along the line y=xy = x, lim⁡x→0x22x2=12\lim_{x \to 0} \frac{x^2}{2x^2} = \frac{1}{2}.

Tangent Planes, Differentiability, and Linear Approximations

  • Tangent Planes to Surfaces z=f(x,y)z = f(x, y):

    • If f(x,y)f(x, y) has continuous partial derivatives at (a,b)(a, b), the surface z=f(x,y)z = f(x, y) has a tangent plane at P(a,b,f(a,b))P(a, b, f(a, b)).

    • The tangent plane contains the tangent lines to the two vertical trace curves passing through PP.

    • Tangent Plane Equation:

    • z−f(a,b)=fx(a,b)(x−a)+fy(a,b)(y−b)z - f(a, b) = f_x(a, b)(x - a) + f_y(a, b)(y - b)

    • Equivalently: z=f(a,b)+∂f∂x(a,b)(x−a)+∂f∂y(a,b)(y−b)z = f(a, b) + \frac{\partial f}{\partial x}(a, b)(x - a) + \frac{\partial f}{\partial y}(a, b)(y - b).

Tangent plane to the surface z = f(x, y) at point P
  • Example: Find the equation of the tangent plane to z=xsin⁡(x+y)z = x \sin(x + y) at (−1,1,0)(-1, 1, 0).

    • Compute z0=f(−1,1)=−1sin⁡(−1+1)=−1sin⁡(0)=0z_0 = f(-1, 1) = -1 \sin(-1 + 1) = -1 \sin(0) = 0.

    • Partials:

      • fx(x,y)=sin⁡(x+y)+xcos⁡(x+y)  ⟹  fx(−1,1)=sin⁡(0)+(−1)cos⁡(0)=−1f_x(x, y) = \sin(x + y) + x \cos(x + y) \implies f_x(-1, 1) = \sin(0) + (-1)\cos(0) = -1.

      • fy(x,y)=xcos⁡(x+y)  ⟹  fy(−1,1)=−1cos⁡(0)=−1f_y(x, y) = x \cos(x + y) \implies f_y(-1, 1) = -1 \cos(0) = -1.

    • Plane equation: z−0=−1(x−(−1))−1(y−1)  ⟹  z=−(x+1)−(y−1)  ⟹  x+y+z=0z - 0 = -1(x - (-1)) - 1(y - 1) \implies z = -(x + 1) - (y - 1) \implies x + y + z = 0.

    • Differentiability in Multivariable Calculus:

  • Definition: A function z=f(x,y)z = f(x, y) is differentiable at (a,b)(a, b) if Δz=f(a+Δx,b+Δy)−f(a,b)\Delta z = f(a + \Delta x, b + \Delta y) - f(a, b) can be expressed in the form:

    • Δz=fx(a,b)Δx+fy(a,b)Δy+ε1Δx+ε2Δy\Delta z = f_x(a, b)\Delta x + f_y(a, b)\Delta y + \varepsilon_1 \Delta x + \varepsilon_2 \Delta y, where ε1,ε2→0\varepsilon_1, \varepsilon_2 \to 0 as (Δx,Δy)→(0,0)(\Delta x, \Delta y) \to (0, 0).

  • Theorem (Sufficient Condition for Differentiability):

    • If the first partial derivatives fxf_x and fyf_y exist in an open neighborhood containing (a,b)(a, b) and are both continuous at (a,b)(a, b), then ff is differentiable at (a,b)(a, b).

  • Differentiability Example: Check differentiability of f(x,y)=x−yx+yf(x, y) = \frac{x - y}{x + y} at (1,1)(1, 1).

    • Partials:

      • fx=1(x+y)−(x−y)(1)(x+y)2=2y(x+y)2  ⟹  fx(1,1)=24=12f_x = \frac{1(x + y) - (x - y)(1)}{(x + y)^2} = \frac{2y}{(x + y)^2} \implies f_x(1, 1) = \frac{2}{4} = \frac{1}{2}.

      • fy=−1(x+y)−(x−y)(1)(x+y)2=−2x(x+y)2  ⟹  fy(1,1)=−24=−12f_y = \frac{-1(x + y) - (x - y)(1)}{(x + y)^2} = \frac{-2x}{(x + y)^2} \implies f_y(1, 1) = \frac{-2}{4} = -\frac{1}{2}.

    • Since the rational expressions fxf_x and fyf_y have denominators that are non-zero at and near (1,1)(1, 1), both partials are continuous. Thus, ff is differentiable at (1,1)(1, 1).

  • Theorem (Differentiability Implies Continuity):

    • If f(x,y)f(x, y) is differentiable at (a,b)(a, b), then ff is continuous at (a,b)(a, b).

  • Counterexample (Existence of Partials Does Not Imply Differentiability):

    • Let f(x,y)={xy2x2+y4(x,y)≠(0,0)0(x,y)=(0,0)f(x, y) = \begin{cases} \frac{xy^2}{x^2 + y^4} & (x, y) \ne (0, 0) \\ 0 & (x, y) = (0, 0) \end{cases}.

    • Partials at origin: fx(0,0)=lim⁡h→0f(h,0)−0h=0f_x(0, 0) = \lim_{h \to 0} \frac{f(h, 0) - 0}{h} = 0 and fy(0,0)=lim⁡h→0f(0,h)−0h=0f_y(0, 0) = \lim_{h \to 0} \frac{f(0, h) - 0}{h} = 0. Both partials exist.

    • Discontinuity at origin: Along paths x=ky2x = k y^2, lim⁡y→0ky4k2y4+y4=kk2+1\lim_{y \to 0} \frac{k y^4}{k^2 y^4 + y^4} = \frac{k}{k^2 + 1}. For k=1k = 1, the limit is 1/21/2, but along x=0x = 0, the limit is 00. Thus, ff is not continuous at (0,0)(0, 0), which implies ff is not differentiable at (0,0)(0, 0).

    • Linear Approximations (Linearization):

  • If f(x,y)f(x,y) is differentiable at (a,b)(a, b), its linear approximation L(x,y)L(x, y) is given by the tangent plane function:

    • f(x,y)≈L(x,y)=f(a,b)+fx(a,b)(x−a)+fy(a,b)(y−b)f(x, y) \approx L(x, y) = f(a, b) + f_x(a, b)(x - a) + f_y(a, b)(y - b)

  • Alternatively, in terms of increments: f(a+Δx,b+Δy)≈f(a,b)+fx(a,b)Δx+fy(a,b)Δyf(a + \Delta x, b + \Delta y) \approx f(a, b) + f_x(a, b)\Delta x + f_y(a, b)\Delta y.

  • Example: Find the linear approximation of f(x,y)=x2+y2f(x, y) = \sqrt{x^2 + y^2} at (3,−4)(3, -4) and approximate f(3.1,−3.95)f(3.1, -3.95).

    • Base value: f(3,−4)=32+(−4)2=5f(3, -4) = \sqrt{3^2 + (-4)^2} = 5.

    • Partials:

      • fx=xx2+y2  ⟹  fx(3,−4)=35f_x = \frac{x}{\sqrt{x^2 + y^2}} \implies f_x(3, -4) = \frac{3}{5}.

      • fy=yx2+y2  ⟹  fy(3,−4)=−45f_y = \frac{y}{\sqrt{x^2 + y^2}} \implies f_y(3, -4) = -\frac{4}{5}.

    • Linearization:

      • L(x,y)=5+35(x−3)−45(y+4)L(x, y) = 5 + \frac{3}{5}(x - 3) - \frac{4}{5}(y + 4).

    • Estimation for Δx=0.1\Delta x = 0.1 and Δy=0.05\Delta y = 0.05:

      • f(3.1,−3.95)≈5+35(0.1)−45(0.05)=5+0.06−0.04=5.02f(3.1, -3.95) \approx 5 + \frac{3}{5}(0.1) - \frac{4}{5}(0.05) = 5 + 0.06 - 0.04 = 5.02.

    • Total Differentials:

  • For z=f(x,y)z = f(x, y), the independent differentials are dx=Δxdx = \Delta x and dy=Δydy = \Delta y.

  • The total differential dzdz (or dfdf) is defined as:

    • dz=∂z∂xdx+∂z∂ydy=fx(x,y)dx+fy(x,y)dydz = \frac{\partial z}{\partial x} dx + \frac{\partial z}{\partial y} dy = f_x(x, y) dx + f_y(x, y) dy

  • Geometrically, Δz\Delta z represents the actual change in the height of the surface, whereas dzdz represents the change in the height of the tangent plane.

Geometric comparison between surface increment Delta z and tangent plane differential dz
  • Comparative Increment Example: For z=x2+3xy−y2z = x^2 + 3xy - y^2, find Δz\Delta z and dzdz as xx changes from 2.002.00 to 2.052.05 (Δx=0.05\Delta x = 0.05) and yy changes from 3.003.00 to 2.962.96 (Δy=−0.04\Delta y = -0.04).

    • Initial point: z(2,3)=22+3(2)(3)−32=4+18−9=13z(2, 3) = 2^2 + 3(2)(3) - 3^2 = 4 + 18 - 9 = 13.

    • Final point: z(2.05,2.96)=(2.05)2+3(2.05)(2.96)−(2.96)2=4.2025+18.204−8.7616=13.6449z(2.05, 2.96) = (2.05)^2 + 3(2.05)(2.96) - (2.96)^2 = 4.2025 + 18.204 - 8.7616 = 13.6449.

    • Actual change: Δz=13.6449−13=0.6449\Delta z = 13.6449 - 13 = 0.6449.

    • Partials at (2,3)(2, 3): fx=2x+3y=4+9=13f_x = 2x + 3y = 4 + 9 = 13; fy=3x−2y=6−6=0f_y = 3x - 2y = 6 - 6 = 0.

    • Differential: dz=13(0.05)+0(−0.04)=0.65dz = 13(0.05) + 0(-0.04) = 0.65.

  • Error Propagation Example: A piece of cylindrical cable has measured length h=2 m=200 cmh = 2\,\text{m} = 200\,\text{cm} and radius r=2 cmr = 2\,\text{cm}. Measurement errors in height and radius are at most 0.5 mm=0.05 cm0.5\,\text{mm} = 0.05\,\text{cm}. Estimate the error in volume.

    • Cylinder Volume: V=πr2hV = \pi r^2 h.

    • Total Differential: dV=∂V∂rdr+∂V∂hdh=2πrhdr+πr2dhdV = \frac{\partial V}{\partial r} dr + \frac{\partial V}{\partial h} dh = 2\pi r h dr + \pi r^2 dh.

    • Substitute values: dV=2π(2)(200)(0.05)+π(2)2(0.05)=40π+0.2π=40.2π cm3≈126.29 cm3dV = 2\pi(2)(200)(0.05) + \pi(2)^2(0.05) = 40\pi + 0.2\pi = 40.2\pi\,\text{cm}^3 \approx 126.29\,\text{cm}^3.

    • Relative Error: dVV=2πrhdr+πr2dhπr2h=2drr+dhh=2(0.052)+0.05200=0.05+0.00025=0.05025\frac{dV}{V} = \frac{2\pi r h dr + \pi r^2 dh}{\pi r^2 h} = 2\frac{dr}{r} + \frac{dh}{h} = 2\left(\frac{0.05}{2}\right) + \frac{0.05}{200} = 0.05 + 0.00025 = 0.05025 (5.025%5.025\%).

    • Additional Worked Exercises on Linear Approximations and Tangent Planes:

  • Tangent Plane: Surface z=12ln⁡(x2+y2+3)z = \frac{1}{2}\ln(x^2 + y^2 + 3) at point (2,3,ln⁡(4))(2, 3, \ln(4)).

    • fx=xx2+y2+3  ⟹  fx(2,3)=24+9+3=216=18f_x = \frac{x}{x^2 + y^2 + 3} \implies f_x(2, 3) = \frac{2}{4 + 9 + 3} = \frac{2}{16} = \frac{1}{8}.

    • fy=yx2+y2+3  ⟹  fy(2,3)=316f_y = \frac{y}{x^2 + y^2 + 3} \implies f_y(2, 3) = \frac{3}{16}.

    • Plane: z−ln⁡(4)=18(x−2)+316(y−3)z - \ln(4) = \frac{1}{8}(x - 2) + \frac{3}{16}(y - 3).

    • Multiply by 16: 16z−16ln⁡(4)=2(x−2)+3(y−3)=2x+3y−1316z - 16\ln(4) = 2(x - 2) + 3(y - 3) = 2x + 3y - 13.

    • Standard form: 2x+3y−16z=13−16ln⁡(4)2x + 3y - 16z = 13 - 16\ln(4).

  • Linearization: f(x,y)=xyf(x, y) = \sqrt{xy} at (1,4)(1, 4), estimate f(0.98,4.04)f(0.98, 4.04).

    • f(1,4)=2f(1, 4) = 2.

    • fx=y2xy  ⟹  fx(1,4)=44=1f_x = \frac{y}{2\sqrt{xy}} \implies f_x(1, 4) = \frac{4}{4} = 1.

    • fy=x2xy  ⟹  fy(1,4)=14f_y = \frac{x}{2\sqrt{xy}} \implies f_y(1, 4) = \frac{1}{4}.

    • Linearization: L(x,y)=2+1(x−1)+14(y−4)=x+14yL(x, y) = 2 + 1(x - 1) + \frac{1}{4}(y - 4) = x + \frac{1}{4}y.

    • Estimate: f(0.98,4.04)≈0.98+14(4.04)=0.98+1.01=1.99f(0.98, 4.04) \approx 0.98 + \frac{1}{4}(4.04) = 0.98 + 1.01 = 1.99.

  • Copper Tank Differential Problem: Rectangular copper tank with open top, inside dimensions length l=6 ftl = 6\,\text{ft}, width w=4 ftw = 4\,\text{ft}, depth h=3 fth = 3\,\text{ft}. Sheet copper thickness t=14 in=148 ftt = \frac{1}{4}\,\text{in} = \frac{1}{48}\,\text{ft}.

    • Copper surrounds 4 sides and bottom. Inside volume is V=lwhV = l w h.

    • Increments: Length increases by 2t2t (two walls), width by 2t2t (two walls), depth by tt (bottom only).

    • Δl=2t=124 ft\Delta l = 2t = \frac{1}{24}\,\text{ft}, Δw=2t=124 ft\Delta w = 2t = \frac{1}{24}\,\text{ft}, Δh=t=148 ft\Delta h = t = \frac{1}{48}\,\text{ft}.

    • Volume differential: dV=whΔl+lhΔw+lwΔhdV = wh \Delta l + lh \Delta w + lw \Delta h.

    • dV=(4)(3)(124)+(6)(3)(124)+(6)(4)(148)=1224+1824+2448=12+34+12=74 ft3dV = (4)(3)\left(\frac{1}{24}\right) + (6)(3)\left(\frac{1}{24}\right) + (6)(4)\left(\frac{1}{48}\right) = \frac{12}{24} + \frac{18}{24} + \frac{24}{48} = \frac{1}{2} + \frac{3}{4} + \frac{1}{2} = \frac{7}{4}\,\text{ft}^3.

  • Parallel Resistors Network: Three resistors in parallel have net resistance RR defined by 1R=1R1+1R2+1R3\frac{1}{R} = \frac{1}{R_1} + \frac{1}{R_2} + \frac{1}{R_3}.

    • Given: R1=2 ΩR_1 = 2\,\Omega, R2=3 ΩR_2 = 3\,\Omega, R3=1.5 ΩR_3 = 1.5\,\Omega.

    • Base value: 1R=12+13+23=32  ⟹  R=23 Ω\frac{1}{R} = \frac{1}{2} + \frac{1}{3} + \frac{2}{3} = \frac{3}{2} \implies R = \frac{2}{3}\,\Omega.

    • Differentiating implicitly: −1R2dR=−1R12dR1−1R22dR2−1R32dR3-\frac{1}{R^2} dR = -\frac{1}{R_1^2} dR_1 - \frac{1}{R_2^2} dR_2 - \frac{1}{R_3^2} dR_3.

    • Multiply by −R2-R^2: dR=R2[dR1R12+dR2R22+dR3R32]dR = R^2 \left[\frac{dR_1}{R_1^2} + \frac{dR_2}{R_2^2} + \frac{dR_3}{R_3^2}\right].

    • Changes: dR1=0.05dR_1 = 0.05, dR2=−0.05dR_2 = -0.05, dR3=0.05dR_3 = 0.05.

    • dR=(23)2[0.054−0.059+0.052.25]=49(0.05)[14−19+49]=49(120)[14+39]=145[14+13]=145(712)=7540 ΩdR = \left(\frac{2}{3}\right)^2 \left[\frac{0.05}{4} - \frac{0.05}{9} + \frac{0.05}{2.25}\right] = \frac{4}{9}(0.05)\left[\frac{1}{4} - \frac{1}{9} + \frac{4}{9}\right] = \frac{4}{9}\left(\frac{1}{20}\right)\left[\frac{1}{4} + \frac{3}{9}\right] = \frac{1}{45}\left[\frac{1}{4} + \frac{1}{3}\right] = \frac{1}{45}\left(\frac{7}{12}\right) = \frac{7}{540}\,\Omega.

The Multivariable Chain Rule and Implicit Differentiation

  • Single Independent Variable Chain Rule:

    • If z=f(x,y)z = f(x, y) is a differentiable function of xx and yy, and x=g(t)x = g(t) and y=h(t)y = h(t) are differentiable functions of a single variable tt, then zz is a differentiable function of tt, and:

    • dzdt=∂z∂xdxdt+∂z∂ydydt\frac{dz}{dt} = \frac{\partial z}{\partial x}\frac{dx}{dt} + \frac{\partial z}{\partial y}\frac{dy}{dt}

    • Example 1: z=4x2+3y2z = 4x^2 + 3y^2, with x=sin⁡(t)x = \sin(t) and y=cos⁡(t)y = \cos(t).

    • Partials: ∂z∂x=8x\frac{\partial z}{\partial x} = 8x, ∂z∂y=6y\frac{\partial z}{\partial y} = 6y.

    • Derivatives: dxdt=cos⁡(t)\frac{dx}{dt} = \cos(t), dydt=−sin⁡(t)\frac{dy}{dt} = -\sin(t).

    • Chain rule: dzdt=8sin⁡(t)cos⁡(t)+6cos⁡(t)(−sin⁡(t))=2sin⁡(t)cos⁡(t)=sin⁡(2t)\frac{dz}{dt} = 8\sin(t)\cos(t) + 6\cos(t)(-\sin(t)) = 2\sin(t)\cos(t) = \sin(2t).

    • Example 2: z=x2−y2z = \sqrt{x^2 - y^2}, with x=e2tx = e^{2t} and y=e−ty = e^{-t}.

    • Partials: ∂z∂x=xx2−y2\frac{\partial z}{\partial x} = \frac{x}{\sqrt{x^2 - y^2}}, ∂z∂y=−yx2−y2\frac{\partial z}{\partial y} = \frac{-y}{\sqrt{x^2 - y^2}}.

    • Derivatives: dxdt=2e2t\frac{dx}{dt} = 2e^{2t}, dydt=−e−t\frac{dy}{dt} = -e^{-t}.

    • Chain rule: dzdt=e2t(2e2t)e4t−e−2t−e−t(−e−t)e4t−e−2t=2e4t+e−2te4t−e−2t\frac{dz}{dt} = \frac{e^{2t}(2e^{2t})}{\sqrt{e^{4t} - e^{-2t}}} - \frac{e^{-t}(-e^{-t})}{\sqrt{e^{4t} - e^{-2t}}} = \frac{2e^{4t} + e^{-2t}}{\sqrt{e^{4t} - e^{-2t}}}.

    • Physical Application (Pouring Conical Sandpile):

    • Volume of a right circular cone: V=13πr2hV = \frac{1}{3}\pi r^2 h.

    • Given rates: dhdt=3 in/min\frac{dh}{dt} = 3\,\text{in/min}, drdt=2 in/min\frac{dr}{dt} = 2\,\text{in/min}.

    • Evaluation values: h=90 inh = 90\,\text{in}, r=40 inr = 40\,\text{in}.

    • Rate of volume change via Chain Rule:

      • dVdt=∂V∂rdrdt+∂V∂hdhdt=(23πrh)drdt+(13πr2)dhdt\frac{dV}{dt} = \frac{\partial V}{\partial r}\frac{dr}{dt} + \frac{\partial V}{\partial h}\frac{dh}{dt} = \left(\frac{2}{3}\pi r h\right)\frac{dr}{dt} + \left(\frac{1}{3}\pi r^2\right)\frac{dh}{dt}

      • dVdt=23π(40)(90)(2)+13π(40)2(3)=4800π+1600π=6400π in3/min\frac{dV}{dt} = \frac{2}{3}\pi(40)(90)(2) + \frac{1}{3}\pi(40)^2(3) = 4800\pi + 1600\pi = 6400\pi\,\text{in}^3/\text{min}.

  • Multivariable Chain Rule (Multiple Independent Variables):

    • If z=f(x,y)z = f(x, y) where x=g(s,t)x = g(s, t) and y=h(s,t)y = h(s, t), then:

    • ∂z∂s=∂z∂x∂x∂s+∂z∂y∂y∂s\frac{\partial z}{\partial s} = \frac{\partial z}{\partial x}\frac{\partial x}{\partial s} + \frac{\partial z}{\partial y}\frac{\partial y}{\partial s}

    • ∂z∂t=∂z∂x∂x∂t+∂z∂y∂y∂t\frac{\partial z}{\partial t} = \frac{\partial z}{\partial x}\frac{\partial x}{\partial t} + \frac{\partial z}{\partial y}\frac{\partial y}{\partial t}

    • Three Intermediate Variables: If w=f(x,y,z)w = f(x, y, z) with x=x(s,t)x = x(s, t), y=y(s,t)y = y(s, t), z=z(s,t)z = z(s, t), then:

    • ∂w∂s=∂w∂x∂x∂s+∂w∂y∂y∂s+∂w∂z∂z∂s\frac{\partial w}{\partial s} = \frac{\partial w}{\partial x}\frac{\partial x}{\partial s} + \frac{\partial w}{\partial y}\frac{\partial y}{\partial s} + \frac{\partial w}{\partial z}\frac{\partial z}{\partial s}

    • ∂w∂t=∂w∂x∂x∂t+∂w∂y∂y∂t+∂w∂z∂z∂t\frac{\partial w}{\partial t} = \frac{\partial w}{\partial x}\frac{\partial x}{\partial t} + \frac{\partial w}{\partial y}\frac{\partial y}{\partial t} + \frac{\partial w}{\partial z}\frac{\partial z}{\partial t}

    • Worked Example: w=xy+yz+zxw = xy + yz + zx, with x=scos⁡(t)x = s\cos(t), y=ssin⁡(t)y = s\sin(t), z=2tz = 2t. Find ∂w∂s\frac{\partial w}{\partial s} and ∂w∂t\frac{\partial w}{\partial t} at s=1,t=2πs = 1, t = 2\pi.

    • Evaluate coordinate points: x=1cos⁡(2π)=1x = 1\cos(2\pi) = 1, y=1sin⁡(2π)=0y = 1\sin(2\pi) = 0, z=2(2π)=4πz = 2(2\pi) = 4\pi.

    • Partials of ww:

      • wx=y+z=0+4π=4πw_x = y + z = 0 + 4\pi = 4\pi.

      • wy=x+z=1+4πw_y = x + z = 1 + 4\pi.

      • wz=y+x=0+1=1w_z = y + x = 0 + 1 = 1.

    • Derivatives with respect to ss: ∂x∂s=cos⁡(t)=1\frac{\partial x}{\partial s} = \cos(t) = 1, ∂y∂s=sin⁡(t)=0\frac{\partial y}{\partial s} = \sin(t) = 0, ∂z∂s=0\frac{\partial z}{\partial s} = 0.

      • ∂w∂s=(4π)(1)+(1+4π)(0)+(1)(0)=4π\frac{\partial w}{\partial s} = (4\pi)(1) + (1 + 4\pi)(0) + (1)(0) = 4\pi.

    • Derivatives with respect to tt: ∂x∂t=−ssin⁡(t)=0\frac{\partial x}{\partial t} = -s\sin(t) = 0, ∂y∂t=scos⁡(t)=1\frac{\partial y}{\partial t} = s\cos(t) = 1, ∂z∂t=2\frac{\partial z}{\partial t} = 2.

      • ∂w∂t=(4π)(0)+(1+4π)(1)+(1)(2)=1+4π+2=3+4π\frac{\partial w}{\partial t} = (4\pi)(0) + (1 + 4\pi)(1) + (1)(2) = 1 + 4\pi + 2 = 3 + 4\pi.

    • Nested Tree Diagram Formula: If ww is a function of zz, zz is a function of xx and yy, and x,yx, y are functions of tt:

    • dwdt=dwdz(∂z∂xdxdt+∂z∂ydydt)\frac{dw}{dt} = \frac{dw}{dz} \left(\frac{\partial z}{\partial x}\frac{dx}{dt} + \frac{\partial z}{\partial y}\frac{dy}{dt}\right).

  • Implicit Differentiation Formulas:

    • Case 1 (Two Variables): If F(x,y)=0F(x, y) = 0 defines y=f(x)y = f(x) implicitly, differentiating both sides with respect to xx yields Fxdxdx+Fydydx=0F_x \frac{dx}{dx} + F_y \frac{dy}{dx} = 0, which gives:

    • dydx=−FxFy\frac{dy}{dx} = -\frac{F_x}{F_y}, provided Fy≠0F_y \ne 0.

    • Example: Find dydx\frac{dy}{dx} for x3+y3=tan⁡(xy)x^3 + y^3 = \tan(xy).

    • Define F(x,y)=x3+y3−tan⁡(xy)=0F(x, y) = x^3 + y^3 - \tan(xy) = 0.

    • Fx=3x2−ysec⁡2(xy)F_x = 3x^2 - y\sec^2(xy).

    • Fy=3y2−xsec⁡2(xy)F_y = 3y^2 - x\sec^2(xy).

    • Applying the formula: dydx=−3x2−ysec⁡2(xy)3y2−xsec⁡2(xy)=ysec⁡2(xy)−3x23y2−xsec⁡2(xy)\frac{dy}{dx} = -\frac{3x^2 - y\sec^2(xy)}{3y^2 - x\sec^2(xy)} = \frac{y\sec^2(xy) - 3x^2}{3y^2 - x\sec^2(xy)}.

    • Case 2 (Three Variables): If F(x,y,z)=0F(x, y, z) = 0 defines z=f(x,y)z = f(x, y) implicitly, differentiating with respect to xx (holding yy constant) and with respect to yy (holding xx constant) yields:

    • ∂z∂x=−FxFz\frac{\partial z}{\partial x} = -\frac{F_x}{F_z}, provided Fz≠0F_z \ne 0.

    • ∂z∂y=−FyFz\frac{\partial z}{\partial y} = -\frac{F_y}{F_z}, provided Fz≠0F_z \ne 0.

    • Example: Find ∂z∂x\frac{\partial z}{\partial x} and ∂z∂y\frac{\partial z}{\partial y} at (0,0,0)(0, 0, 0) if x3+z2+yexz+zcos⁡(y)=0x^3 + z^2 + y e^{xz} + z \cos(y) = 0.

    • Define F(x,y,z)=x3+z2+yexz+zcos⁡(y)F(x, y, z) = x^3 + z^2 + y e^{xz} + z \cos(y).

    • Fx=3x2+yzexz  ⟹  Fx(0,0,0)=0F_x = 3x^2 + y z e^{xz} \implies F_x(0, 0, 0) = 0.

    • Fy=exz−zsin⁡(y)  ⟹  Fy(0,0,0)=1F_y = e^{xz} - z \sin(y) \implies F_y(0, 0, 0) = 1.

    • Fz=2z+xyexz+cos⁡(y)  ⟹  Fz(0,0,0)=1F_z = 2z + x y e^{xz} + \cos(y) \implies F_z(0, 0, 0) = 1.

    • Results: ∂z∂x(0,0,0)=−01=0\frac{\partial z}{\partial x}(0, 0, 0) = -\frac{0}{1} = 0 and ∂z∂y(0,0,0)=−11=−1\frac{\partial z}{\partial y}(0, 0, 0) = -\frac{1}{1} = -1.

  • Additional Worked Exercises on the Chain Rule:

    • Function Composition: Let g(u,v)=f(eucos⁡(v),eusin⁡(v))g(u, v) = f(e^u \cos(v), e^u \sin(v)), with fx(1,0)=2f_x(1, 0) = 2 and fy(1,0)=5f_y(1, 0) = 5. Find gu(0,0)g_u(0, 0) and gv(0,0)g_v(0, 0).

    • At (u,v)=(0,0)(u, v) = (0, 0), x=e0cos⁡(0)=1x = e^0 \cos(0) = 1 and y=e0sin⁡(0)=0y = e^0 \sin(0) = 0.

    • ∂x∂u=eucos⁡(v)  ⟹  1\frac{\partial x}{\partial u} = e^u \cos(v) \implies 1, ∂y∂u=eusin⁡(v)  ⟹  0\frac{\partial y}{\partial u} = e^u \sin(v) \implies 0.

    • gu(0,0)=fx(1,0)(1)+fy(1,0)(0)=2(1)=2g_u(0, 0) = f_x(1, 0)(1) + f_y(1, 0)(0) = 2(1) = 2.

    • ∂x∂v=−eusin⁡(v)  ⟹  0\frac{\partial x}{\partial v} = -e^u \sin(v) \implies 0, ∂y∂v=eucos⁡(v)  ⟹  1\frac{\partial y}{\partial v} = e^u \cos(v) \implies 1.

    • gv(0,0)=fx(1,0)(0)+fy(1,0)(1)=5(1)=5g_v(0, 0) = f_x(1, 0)(0) + f_y(1, 0)(1) = 5(1) = 5.

    • Temperature Along Crawling Fly's Path: A fly crawls with position x(t)=1+tx(t) = \sqrt{1 + t} and y(t)=2+t3y(t) = 2 + \frac{t}{3}. The temperature field satisfies Tx(2,3)=4 ∘C/cmT_x(2, 3) = 4\,^\circ\text{C/cm} and Ty(2,3)=3 ∘C/cmT_y(2, 3) = 3\,^\circ\text{C/cm}. Find dTdt\frac{dT}{dt} at t=3 st = 3\,\text{s}.

    • Position at t=3t = 3: x(3)=4=2x(3) = \sqrt{4} = 2, y(3)=2+1=3y(3) = 2 + 1 = 3.

    • Velocities: x′(t)=121+t  ⟹  x′(3)=14x'(t) = \frac{1}{2\sqrt{1+t}} \implies x'(3) = \frac{1}{4}; y′(t)=13y'(t) = \frac{1}{3}.

    • Rate of temperature change: dTdt=Txx′(3)+Tyy′(3)=4(14)+3(13)=1+1=2 ∘C/s\frac{dT}{dt} = T_x x'(3) + T_y y'(3) = 4\left(\frac{1}{4}\right) + 3\left(\frac{1}{3}\right) = 1 + 1 = 2\,^\circ\text{C/s}.

    • Implicit Differentiation of x−z=ln⁡(yz)x - z = \ln(yz) near (1,1,1)(1, 1, 1):

    • Let F(x,y,z)=x−z−ln⁡(y)−ln⁡(z)=0F(x, y, z) = x - z - \ln(y) - \ln(z) = 0.

    • Fx=1F_x = 1, Fy=−1yF_y = -\frac{1}{y}, Fz=−1−1z=−1+zzF_z = -1 - \frac{1}{z} = -\frac{1+z}{z}.

    • ∂z∂x=−1−1+zz=z1+z\frac{\partial z}{\partial x} = -\frac{1}{-\frac{1+z}{z}} = \frac{z}{1+z}. At (1,1,1)(1, 1, 1), ∂z∂x=12\frac{\partial z}{\partial x} = \frac{1}{2}.

    • ∂z∂y=−−1/y−1+zz=−zy(1+z)\frac{\partial z}{\partial y} = -\frac{-1/y}{-\frac{1+z}{z}} = -\frac{z}{y(1+z)}. At (1,1,1)(1, 1, 1), ∂z∂y=−12\frac{\partial z}{\partial y} = -\frac{1}{2}.

    • Total Derivative with Respect to Parameter tt: With x(0)=1x(0) = 1, y(0)=1y(0) = 1, x′(0)=2x'(0) = 2, y′(0)=3y'(0) = 3:

    • dzdt=∂z∂xdxdt+∂z∂ydydt=(12)(2)+(−12)(3)=1−32=−12\frac{dz}{dt} = \frac{\partial z}{\partial x} \frac{dx}{dt} + \frac{\partial z}{\partial y} \frac{dy}{dt} = \left(\frac{1}{2}\right)(2) + \left(-\frac{1}{2}\right)(3) = 1 - \frac{3}{2} = -\frac{1}{2}.

Directional Derivatives and the Gradient Vector

  • Definition of Directional Derivative:

    • The partial derivatives fx(a,b)f_x(a, b) and fy(a,b)f_y(a, b) evaluate the rate of change of ff along the coordinate axis directions i=⟨1,0⟩\mathbf{i} = \langle 1, 0 \rangle and j=⟨0,1⟩\mathbf{j} = \langle 0, 1 \rangle.

    • Let u^=⟨u1,u2⟩\hat{\mathbf{u}} = \langle u_1, u_2 \rangle be an arbitrary unit vector (∣u^∣=1|\hat{\mathbf{u}}| = 1). The directional derivative of ff at (a,b)(a, b) in the direction of u^\hat{\mathbf{u}} is defined as:

    • Du^f(a,b)=lim⁡h→0f(a+hu1,b+hu2)−f(a,b)hD_{\hat{\mathbf{u}}} f(a, b) = \lim_{h \to 0} \frac{f(a + h u_1, b + h u_2) - f(a, b)}{h}

    • Special Cases: Dif=fxD_{\mathbf{i}} f = f_x and Djf=fyD_{\mathbf{j}} f = f_y.

Geometric slice of a surface by a vertical plane in direction u defining the directional derivative
  • Computing Directional Derivatives via Gradients:

    • Theorem: If f(x,y)f(x, y) is a differentiable function, then the directional derivative exists in the direction of any unit vector u^=⟨u1,u2⟩\hat{\mathbf{u}} = \langle u_1, u_2 \rangle and is given by:

    • Du^f(a,b)=fx(a,b)u1+fy(a,b)u2D_{\hat{\mathbf{u}}} f(a, b) = f_x(a, b) u_1 + f_y(a, b) u_2

    • Angle Representation: Any unit vector in the plane can be written as u^=⟨cos⁡(θ),sin⁡(θ)⟩\hat{\mathbf{u}} = \langle \cos(\theta), \sin(\theta) \rangle, leading to:

    • Du^f(x,y)=fx(x,y)cos⁡(θ)+fy(x,y)sin⁡(θ)D_{\hat{\mathbf{u}}} f(x, y) = f_x(x, y) \cos(\theta) + f_y(x, y) \sin(\theta)

    • Scaling Caution: If a direction is given by a non-unit vector v\mathbf{v}, it must first be normalized to a unit vector u^=v∣v∣\hat{\mathbf{u}} = \frac{\mathbf{v}}{|\mathbf{v}|}.

  • Definition and Properties of the Gradient Vector:

    • For a function of two variables f(x,y)f(x, y), the gradient vector ∇f\nabla f is defined as:

    • ∇f(x,y)=⟨fx(x,y),fy(x,y)⟩=∂f∂xi+∂f∂yj\nabla f(x, y) = \langle f_x(x, y), f_y(x, y) \rangle = \frac{\partial f}{\partial x}\mathbf{i} + \frac{\partial f}{\partial y}\mathbf{j}

    • For a function of three variables f(x,y,z)f(x, y, z), the gradient vector is:

    • ∇f(x,y,z)=⟨fx,fy,fz⟩=∂f∂xi+∂f∂yj+∂f∂zk\nabla f(x, y, z) = \langle f_x, f_y, f_z \rangle = \frac{\partial f}{\partial x}\mathbf{i} + \frac{\partial f}{\partial y}\mathbf{j} + \frac{\partial f}{\partial z}\mathbf{k}

    • Dot Product Formulation: The directional derivative is the dot product of the gradient vector and the unit direction vector:

    • Du^f=∇f⋅u^D_{\hat{\mathbf{u}}} f = \nabla f \cdot \hat{\mathbf{u}}

  • Geometric Interpretation of the Gradient:

    • By the geometric definition of the dot product: Du^f=∇f⋅u^=∣∇f∣∣u^∣cos⁡(θ)=∣∇f∣cos⁡(θ)D_{\hat{\mathbf{u}}} f = \nabla f \cdot \hat{\mathbf{u}} = |\nabla f| |\hat{\mathbf{u}}| \cos(\theta) = |\nabla f| \cos(\theta), where θ\theta is the angle between ∇f\nabla f and u^\hat{\mathbf{u}}.

    • Because −1≤cos⁡(θ)≤1-1 \le \cos(\theta) \le 1, the directional derivative satisfies:

    • −∣∇f∣≤Du^f≤∣∇f∣-|\nabla f| \le D_{\hat{\mathbf{u}}} f \le |\nabla f|

    • Maximum Rate of Increase: Occurs when cos⁡(θ)=1  ⟹  θ=0\cos(\theta) = 1 \implies \theta = 0. The direction of steepest ascent is in the direction of the gradient vector ∇f\nabla f, and the maximum rate of increase is ∣∇f∣|\nabla f|.

    • Maximum Rate of Decrease: Occurs when cos⁡(θ)=−1  ⟹  θ=π\cos(\theta) = -1 \implies \theta = \pi. The direction of steepest descent is in the direction of −∇f-\nabla f, and the minimum rate of change is −∣∇f∣-|\nabla f|.

    • Zero Rate of Change: Occurs when cos⁡(θ)=0  ⟹  θ=π2\cos(\theta) = 0 \implies \theta = \frac{\pi}{2}. In any direction orthogonal to ∇f\nabla f, the directional derivative is zero: Du^f=0D_{\hat{\mathbf{u}}} f = 0.

  • Worked Gradient and Directional Derivative Examples:

    • Example 1: Find the directional derivative of f(x,y)=x2+xyf(x, y) = x^2 + xy at (1,2)(1, 2) in the direction u^=⟨12,12⟩\hat{\mathbf{u}} = \left\langle \frac{1}{\sqrt{2}}, \frac{1}{\sqrt{2}} \right\rangle.

    • Gradient: fx=2x+y  ⟹  fx(1,2)=4f_x = 2x + y \implies f_x(1, 2) = 4; fy=x  ⟹  fy(1,2)=1f_y = x \implies f_y(1, 2) = 1.

    • ∇f(1,2)=⟨4,1⟩\nabla f(1, 2) = \langle 4, 1 \rangle.

    • Dot product: Du^f(1,2)=4(12)+1(12)=52D_{\hat{\mathbf{u}}} f(1, 2) = 4\left(\frac{1}{\sqrt{2}}\right) + 1\left(\frac{1}{\sqrt{2}}\right) = \frac{5}{\sqrt{2}}.

    • Example 2: Find the directional derivative of f(x,y)=y2ln⁡(x)f(x, y) = y^2 \ln(x) at (1,4)(1, 4) in the direction v=⟨1,−1⟩\mathbf{v} = \langle 1, -1 \rangle.

    • Normalization: ∣v∣=12+(−1)2=2  ⟹  u^=⟨12,−12⟩|\mathbf{v}| = \sqrt{1^2 + (-1)^2} = \sqrt{2} \implies \hat{\mathbf{u}} = \left\langle \frac{1}{\sqrt{2}}, -\frac{1}{\sqrt{2}} \right\rangle.

    • Partials: fx=y2x  ⟹  fx(1,4)=16f_x = \frac{y^2}{x} \implies f_x(1, 4) = 16; fy=2yln⁡(x)  ⟹  fy(1,4)=8ln⁡(1)=0f_y = 2y\ln(x) \implies f_y(1, 4) = 8\ln(1) = 0.

    • ∇f(1,4)=⟨16,0⟩\nabla f(1, 4) = \langle 16, 0 \rangle.

    • Directional derivative: Du^f(1,4)=16(12)+0(−12)=162=82D_{\hat{\mathbf{u}}} f(1, 4) = 16\left(\frac{1}{\sqrt{2}}\right) + 0\left(-\frac{1}{\sqrt{2}}\right) = \frac{16}{\sqrt{2}} = 8\sqrt{2}.

    • Example 3: Gradient of f(x,y)=ln⁡(x+sin⁡(y))f(x, y) = \ln(x + \sin(y)).

    • ∇f(x,y)=⟨1x+sin⁡(y),cos⁡(y)x+sin⁡(y)⟩\nabla f(x, y) = \left\langle \frac{1}{x + \sin(y)}, \frac{\cos(y)}{x + \sin(y)} \right\rangle.

    • Evaluated at (1,0)(1, 0): ∇f(1,0)=⟨11+0,11+0⟩=⟨1,1⟩\nabla f(1, 0) = \left\langle \frac{1}{1 + 0}, \frac{1}{1 + 0} \right\rangle = \langle 1, 1 \rangle.

    • Example 4: Three-Variable Gradient and Directional Derivative for f(x,y,z)=exyz+x+y+zf(x, y, z) = e^{xyz + x + y + z} at (2,1,0)(2, 1, 0) in direction v=⟨1,−1,2⟩\mathbf{v} = \langle 1, -1, \sqrt{2} \rangle.

    • Point value exponent: 2(1)(0)+2+1+0=32(1)(0) + 2 + 1 + 0 = 3.

    • Partials:

      • fx=(yz+1)exyz+x+y+z  ⟹  fx(2,1,0)=(0+1)e3=e3f_x = (yz + 1)e^{xyz+x+y+z} \implies f_x(2, 1, 0) = (0 + 1)e^3 = e^3.

      • fy=(xz+1)exyz+x+y+z  ⟹  fy(2,1,0)=(0+1)e3=e3f_y = (xz + 1)e^{xyz+x+y+z} \implies f_y(2, 1, 0) = (0 + 1)e^3 = e^3.

      • fz=(xy+1)exyz+x+y+z  ⟹  fz(2,1,0)=(2+1)e3=3e3f_z = (xy + 1)e^{xyz+x+y+z} \implies f_z(2, 1, 0) = (2 + 1)e^3 = 3e^3.

    • Gradient: ∇f(2,1,0)=⟨e3,e3,3e3⟩\nabla f(2, 1, 0) = \langle e^3, e^3, 3e^3 \rangle.

    • Unit vector: ∣v∣=12+(−1)2+(2)2=4=2  ⟹  u^=⟨12,−12,22⟩|\mathbf{v}| = \sqrt{1^2 + (-1)^2 + (\sqrt{2})^2} = \sqrt{4} = 2 \implies \hat{\mathbf{u}} = \left\langle \frac{1}{2}, -\frac{1}{2}, \frac{\sqrt{2}}{2} \right\rangle.

    • Derivative: Du^f(2,1,0)=e3(12)+e3(−12)+3e3(22)=322e3D_{\hat{\mathbf{u}}} f(2, 1, 0) = e^3\left(\frac{1}{2}\right) + e^3\left(-\frac{1}{2}\right) + 3e^3\left(\frac{\sqrt{2}}{2}\right) = \frac{3\sqrt{2}}{2} e^3.

    • Example 5: Steepest Ascent / Descent Unit Vectors for f(x,y)=ex2+yf(x, y) = e^{x^2 + y} at (1,−1)(1, -1).

    • Partials: fx=2xex2+y  ⟹  fx(1,−1)=2e0=2f_x = 2x e^{x^2+y} \implies f_x(1, -1) = 2e^0 = 2; fy=ex2+y  ⟹  fy(1,−1)=e0=1f_y = e^{x^2+y} \implies f_y(1, -1) = e^0 = 1.

    • Gradient: ∇f(1,−1)=⟨2,1⟩\nabla f(1, -1) = \langle 2, 1 \rangle, with magnitude ∣∇f∣=22+12=5|\nabla f| = \sqrt{2^2 + 1^2} = \sqrt{5}.

    • Steepest ascent unit vector: u^=⟨25,15⟩\hat{\mathbf{u}} = \left\langle \frac{2}{\sqrt{5}}, \frac{1}{\sqrt{5}} \right\rangle.

    • Steepest descent unit vector: −u^=⟨−25,−15⟩-\hat{\mathbf{u}} = \left\langle -\frac{2}{\sqrt{5}}, -\frac{1}{\sqrt{5}} \right\rangle.

    • Example 6: Electric Potential V(x,y,z)=4x2−3xy+xyzV(x, y, z) = 4x^2 - 3xy + xyz at P(1,1,0)P(1, 1, 0).

    • Partials:

      • Vx=8x−3y+yz  ⟹  Vx(1,1,0)=8−3+0=5V_x = 8x - 3y + yz \implies V_x(1, 1, 0) = 8 - 3 + 0 = 5.

      • Vy=−3x+xz  ⟹  Vy(1,1,0)=−3+0=−3V_y = -3x + xz \implies V_y(1, 1, 0) = -3 + 0 = -3.

      • Vz=xy  ⟹  Vz(1,1,0)=1(1)=1V_z = xy \implies V_z(1, 1, 0) = 1(1) = 1.

    • Gradient: ∇V(1,1,0)=⟨5,−3,1⟩\nabla V(1, 1, 0) = \langle 5, -3, 1 \rangle.

    • Rate in direction v=⟨1,1,−1⟩\mathbf{v} = \langle 1, 1, -1 \rangle (∣v∣=3|\mathbf{v}| = \sqrt{3}): Du^V=5(1)−3(1)+1(−1)3=13D_{\hat{\mathbf{u}}} V = \frac{5(1) - 3(1) + 1(-1)}{\sqrt{3}} = \frac{1}{\sqrt{3}}.

    • Direction of most rapid change: ∇V(1,1,0)=⟨5,−3,1⟩\nabla V(1, 1, 0) = \langle 5, -3, 1 \rangle.

    • Maximum rate of change: ∣∇V(1,1,0)∣=52+(−3)2+12=25+9+1=35|\nabla V(1, 1, 0)| = \sqrt{5^2 + (-3)^2 + 1^2} = \sqrt{25 + 9 + 1} = \sqrt{35}.

  • Additional Worked Exercises:

    • By Limit Definition: f(x,y)=x2+xyf(x, y) = x^2 + xy at (1,2)(1, 2) in direction u^=⟨12,12⟩\hat{\mathbf{u}} = \left\langle \frac{1}{\sqrt{2}}, \frac{1}{\sqrt{2}} \right\rangle.

    • f(1+h2,2+h2)=(1+h2)2+(1+h2)(2+h2)f\left(1 + \frac{h}{\sqrt{2}}, 2 + \frac{h}{\sqrt{2}}\right) = \left(1 + \frac{h}{\sqrt{2}}\right)^2 + \left(1 + \frac{h}{\sqrt{2}}\right)\left(2 + \frac{h}{\sqrt{2}}\right).

    • =1+2h+h22+2+3h2+h22=3+5h2+h2= 1 + \sqrt{2}h + \frac{h^2}{2} + 2 + \frac{3h}{\sqrt{2}} + \frac{h^2}{2} = 3 + \frac{5h}{\sqrt{2}} + h^2.

    • Difference quotient: f(1+h2,2+h2)−f(1,2)h=3+5h2+h2−3h=52+h\frac{f\left(1 + \frac{h}{\sqrt{2}}, 2 + \frac{h}{\sqrt{2}}\right) - f(1, 2)}{h} = \frac{3 + \frac{5h}{\sqrt{2}} + h^2 - 3}{h} = \frac{5}{\sqrt{2}} + h.

    • Limit as h→0h \to 0: 52\frac{5}{\sqrt{2}}.

    • Three-Variable Direction Toward Point: f(x,y,z)=xy2z3f(x, y, z) = x y^2 z^3 at P(2,1,1)P(2, 1, 1) in direction toward Q(0,−3,5)Q(0, -3, 5).

    • Vector: PQ⃗=⟨0−2,−3−1,5−1⟩=⟨−2,−4,4⟩\vec{PQ} = \langle 0 - 2, -3 - 1, 5 - 1 \rangle = \langle -2, -4, 4 \rangle.

    • Length: ∣PQ⃗∣=(−2)2+(−4)2+42=4+16+16=6|\vec{PQ}| = \sqrt{(-2)^2 + (-4)^2 + 4^2} = \sqrt{4 + 16 + 16} = 6.

    • Unit vector: u^=⟨−13,−23,23⟩\hat{\mathbf{u}} = \left\langle -\frac{1}{3}, -\frac{2}{3}, \frac{2}{3} \right\rangle.

    • Gradient: fx=y2z3=1f_x = y^2 z^3 = 1, fy=2xyz3=4f_y = 2xyz^3 = 4, fz=3xy2z2=6f_z = 3xy^2 z^2 = 6.

    • ∇f(2,1,1)=⟨1,4,6⟩\nabla f(2, 1, 1) = \langle 1, 4, 6 \rangle.

    • Derivative: Du^f=1(−13)+4(−23)+6(23)=−13−83+123=33=1D_{\hat{\mathbf{u}}} f = 1\left(-\frac{1}{3}\right) + 4\left(-\frac{2}{3}\right) + 6\left(\frac{2}{3}\right) = -\frac{1}{3} - \frac{8}{3} + \frac{12}{3} = \frac{3}{3} = 1.

    • Maximum Rate of Change: f(x,y,z)=xy+zf(x, y, z) = \frac{x}{y + z} at (8,1,3)(8, 1, 3).

    • Partials: fx=1y+z=14f_x = \frac{1}{y+z} = \frac{1}{4}; fy=−x(y+z)2=−816=−12f_y = -\frac{x}{(y+z)^2} = -\frac{8}{16} = -\frac{1}{2}; fz=−x(y+z)2=−12f_z = -\frac{x}{(y+z)^2} = -\frac{1}{2}.

    • Direction: ∇f(8,1,3)=⟨14,−12,−12⟩\nabla f(8, 1, 3) = \left\langle \frac{1}{4}, -\frac{1}{2}, -\frac{1}{2} \right\rangle.

    • Maximum rate: ∣∇f∣=(14)2+(−12)2+(−12)2=116+416+416=916=34|\nabla f| = \sqrt{\left(\frac{1}{4}\right)^2 + \left(-\frac{1}{2}\right)^2 + \left(-\frac{1}{2}\right)^2} = \sqrt{\frac{1}{16} + \frac{4}{16} + \frac{4}{16}} = \sqrt{\frac{9}{16}} = \frac{3}{4}.

    • Temperature Field on Metal Plate: T(x,y)=20−4x2−y2T(x, y) = 20 - 4x^2 - y^2 from point (−2,3)(-2, 3).

    • Gradient: Tx=−8x  ⟹  Tx(−2,3)=16T_x = -8x \implies T_x(-2, 3) = 16; Ty=−2y  ⟹  Ty(−2,3)=−6T_y = -2y \implies T_y(-2, 3) = -6.

    • Direction of most rapid increase: ∇T(−2,3)=⟨16,−6⟩\nabla T(-2, 3) = \langle 16, -6 \rangle.

    • Rate of increase: ∣∇T∣=162+(−6)2=256+36=292 ∘C/cm|\nabla T| = \sqrt{16^2 + (-6)^2} = \sqrt{256 + 36} = \sqrt{292}\,^\circ\text{C/cm}.

Geometric Applications of Gradients: Level Sets and Tangent Planes

  • Orthogonality of the Gradient to Level Curves:

    • Along any level curve f(x,y)=kf(x, y) = k, the function value remains constant.

    • The rate of change in any direction tangent to the level curve must be zero: Du^f=0D_{\hat{\mathbf{u}}} f = 0.

    • Because Du^f=∇f⋅u^=0D_{\hat{\mathbf{u}}} f = \nabla f \cdot \hat{\mathbf{u}} = 0, the gradient vector ∇f(a,b)\nabla f(a, b) is perpendicular (orthogonal) to the tangent vector of the level curve passing through (a,b)(a, b), provided ∇f(a,b)≠0\nabla f(a, b) \ne \mathbf{0}.

Gradient vector orthogonal to the level curve tangent and pointing along steepest ascent
  • Example: For f(x,y)=x2−xy+y2f(x, y) = x^2 - xy + y^2 at (1,−2)(1, -2).

    • ∇f(x,y)=⟨2x−y,−x+2y⟩  ⟹  ∇f(1,−2)=⟨4,−5⟩\nabla f(x, y) = \langle 2x - y, -x + 2y \rangle \implies \nabla f(1, -2) = \langle 4, -5 \rangle.

    • Maximum directional derivative: ∣∇f∣=42+(−5)2=41|\nabla f| = \sqrt{4^2 + (-5)^2} = \sqrt{41}.

    • Minimum directional derivative: −∣∇f∣=−41-|\nabla f| = -\sqrt{41}.

    • Directions of zero change: Vectors orthogonal to ⟨4,−5⟩\langle 4, -5 \rangle, which are proportional to ±⟨5,4⟩\pm \langle 5, 4 \rangle.

    • Tangent Vector to Level Curve: The point (1,−2)(1, -2) lies on the level curve x2−xy+y2=1−(1)(−2)+(−2)2=7x^2 - xy + y^2 = 1 - (1)(-2) + (-2)^2 = 7. A tangent vector to this level curve at (1,−2)(1, -2) is ⟨5,4⟩\langle 5, 4 \rangle.

Elliptic paraboloid surface z = x^2 - xy + y^2Contour map of ellipses x^2 - xy + y^2 = k showing point (1, -2) on level curve k = 7
  • Tangent Planes to Level Surfaces F(x,y,z)=kF(x, y, z) = k:

    • A surface in R3\mathbb{R}^3 may be defined explicitly as z=f(x,y)z = f(x, y) or implicitly as a level surface F(x,y,z)=kF(x, y, z) = k.

    • Generalizing the 2D property: The gradient vector ∇F(a,b,c)\nabla F(a, b, c) is normal (orthogonal) to the level surface F(x,y,z)=kF(x, y, z) = k at the point P(a,b,c)P(a, b, c).

    • Tangent Plane Equation for Implicit Surface:

    • Fx(a,b,c)(x−a)+Fy(a,b,c)(y−b)+Fz(a,b,c)(z−c)=0F_x(a, b, c)(x - a) + F_y(a, b, c)(y - b) + F_z(a, b, c)(z - c) = 0

    • Equivalence to Explicit Surfaces: If z=f(x,y)z = f(x, y), define F(x,y,z)=f(x,y)−z=0F(x, y, z) = f(x, y) - z = 0. Then ∇F=⟨fx,fy,−1⟩\nabla F = \langle f_x, f_y, -1 \rangle. The tangent plane equation becomes:

    • fx(a,b)(x−a)+fy(a,b)(y−b)−(z−c)=0  ⟹  z−c=fx(a,b)(x−a)+fy(a,b)(y−b)f_x(a, b)(x - a) + f_y(a, b)(y - b) - (z - c) = 0 \implies z - c = f_x(a, b)(x - a) + f_y(a, b)(y - b).

    • Normal Line to a Surface:

    • The normal line to the surface at P(a,b,c)P(a, b, c) is the line passing through PP parallel to the normal vector n=∇F(a,b,c)\mathbf{n} = \nabla F(a, b, c).

    • Symmetric Equations:

      • x−aFx(a,b,c)=y−bFy(a,b,c)=z−cFz(a,b,c)\frac{x - a}{F_x(a, b, c)} = \frac{y - b}{F_y(a, b, c)} = \frac{z - c}{F_z(a, b, c)}

    • Parametric Equations: x=a+Fxtx = a + F_x t, y=b+Fyty = b + F_y t, z=c+Fztz = c + F_z t.

Surface x^2 + y^2 + z - 9 = 0 with normal line and tangent plane at P(1, 2, 4)
  • Worked Tangent Plane and Normal Line Examples:

    • Example 1: Tangent Plane and Normal Line to x2+y2+z−9=0x^2 + y^2 + z - 9 = 0 at (1,2,4)(1, 2, 4).

    • Gradient: Fx=2xF_x = 2x, Fy=2yF_y = 2y, Fz=1F_z = 1.

    • At (1,2,4)(1, 2, 4): ∇F(1,2,4)=⟨2(1),2(2),1⟩=⟨2,4,1⟩\nabla F(1, 2, 4) = \langle 2(1), 2(2), 1 \rangle = \langle 2, 4, 1 \rangle.

    • Tangent Plane: 2(x−1)+4(y−2)+1(z−4)=0  ⟹  2x+4y+z=142(x - 1) + 4(y - 2) + 1(z - 4) = 0 \implies 2x + 4y + z = 14.

    • Normal Line: x−12=y−24=z−41\frac{x - 1}{2} = \frac{y - 2}{4} = \frac{z - 4}{1}, or in parametric form: x=1+2tx = 1 + 2t, y=2+4ty = 2 + 4t, z=4+tz = 4 + t.

    • Example 2: Tangent Plane and Normal Line to xy+yz+zx=5xy + yz + zx = 5 at (1,2,1)(1, 2, 1).

    • Define F(x,y,z)=xy+yz+zxF(x, y, z) = xy + yz + zx.

    • Partials:

      • Fx=y+z  ⟹  Fx(1,2,1)=2+1=3F_x = y + z \implies F_x(1, 2, 1) = 2 + 1 = 3.

      • Fy=x+z  ⟹  Fy(1,2,1)=1+1=2F_y = x + z \implies F_y(1, 2, 1) = 1 + 1 = 2.

      • Fz=y+x  ⟹  Fz(1,2,1)=2+1=3F_z = y + x \implies F_z(1, 2, 1) = 2 + 1 = 3.

    • Normal Vector: ∇F(1,2,1)=⟨3,2,3⟩\nabla F(1, 2, 1) = \langle 3, 2, 3 \rangle.

    • Tangent Plane: 3(x−1)+2(y−2)+3(z−1)=0  ⟹  3x+2y+3z=103(x - 1) + 2(y - 2) + 3(z - 1) = 0 \implies 3x + 2y + 3z = 10.

    • Normal Line: x−13=y−22=z−13\frac{x - 1}{3} = \frac{y - 2}{2} = \frac{z - 1}{3}.

    • Example 3: Tangent Line to Intersection Curve of Two Surfaces.

    • Cylinder f(x,y,z)=x2+y2−2=0f(x, y, z) = x^2 + y^2 - 2 = 0 and plane g(x,y,z)=x+z−4=0g(x, y, z) = x + z - 4 = 0 intersect in an ellipse EE. Find parametric equations for the tangent line to EE at (1,1,3)(1, 1, 3).

    • The tangent line must be tangent to both surfaces, hence orthogonal to both normal vectors ∇f\nabla f and ∇g\nabla g.

    • Gradients:

      • ∇f(1,1,3)=⟨2x,2y,0⟩=⟨2,2,0⟩\nabla f(1, 1, 3) = \langle 2x, 2y, 0 \rangle = \langle 2, 2, 0 \rangle.

      • ∇g(1,1,3)=⟨1,0,1⟩\nabla g(1, 1, 3) = \langle 1, 0, 1 \rangle.

    • Tangent Direction Vector via Cross Product:

      • v=∇f×∇g=∣ijk220101∣=i(2−0)−j(2−0)+k(0−2)=⟨2,−2,−2⟩\mathbf{v} = \nabla f \times \nabla g = \begin{vmatrix} \mathbf{i} & \mathbf{j} & \mathbf{k} \\ 2 & 2 & 0 \\ 1 & 0 & 1 \end{vmatrix} = \mathbf{i}(2 - 0) - \mathbf{j}(2 - 0) + \mathbf{k}(0 - 2) = \langle 2, -2, -2 \rangle.

    • Simplified direction vector: ⟨1,−1,−1⟩\langle 1, -1, -1 \rangle.

    • Parametric Equations: x=1+tx = 1 + t, y=1−ty = 1 - t, z=3−tz = 3 - t.

Intersection ellipse of cylinder and plane with tangent vector given by the cross product of gradients
  • Example 4: Angle Between Two Intersecting Surfaces.

    • Find the acute angle between F1(x,y,z)=x2+y2+z2=9F_1(x, y, z) = x^2 + y^2 + z^2 = 9 and F2(x,y,z)=x+y+z2=1F_2(x, y, z) = x + y + z^2 = 1 at (2,−2,1)(2, -2, 1).

    • The angle between two surfaces at a point is the angle bet ween their normal vectors.

    • Normal Vectors:

      • n1=∇F1(2,−2,1)=⟨2x,2y,2z⟩=⟨4,−4,2⟩\mathbf{n}_1 = \nabla F_1(2, -2, 1) = \langle 2x, 2y, 2z \rangle = \langle 4, -4, 2 \rangle, with length ∣n1∣=16+16+4=6|\mathbf{n}_1| = \sqrt{16 + 16 + 4} = 6.

      • n2=∇F2(2,−2,1)=⟨1,1,2z⟩=⟨1,1,2⟩\mathbf{n}_2 = \nabla F_2(2, -2, 1) = \langle 1, 1, 2z \rangle = \langle 1, 1, 2 \rangle, with length ∣n2∣=1+1+4=6|\mathbf{n}_2| = \sqrt{1 + 1 + 4} = \sqrt{6}.

    • Dot Product: n1⋅n2=4(1)−4(1)+2(2)=4\mathbf{n}_1 \cdot \mathbf{n}_2 = 4(1) - 4(1) + 2(2) = 4.

    • Angle Calculation: cos⁡(θ)=∣n1⋅n2∣∣n1∣∣n2∣=466=236=69\cos(\theta) = \frac{|\mathbf{n}_1 \cdot \mathbf{n}_2|}{|\mathbf{n}_1| |\mathbf{n}_2|} = \frac{4}{6\sqrt{6}} = \frac{2}{3\sqrt{6}} = \frac{\sqrt{6}}{9}.

    • θ=cos⁡−1(69)\theta = \cos^{-1}\left(\frac{\sqrt{6}}{9}\right).

    • Additional Worked Exercises on Gradients and Geometry:

  • Tangent Plane to Hyperboloid: z2−2x2−2y2=12z^2 - 2x^2 - 2y^2 = 12 at (1,−1,4)(1, -1, 4).

    • Let F(x,y,z)=z2−2x2−2y2F(x, y, z) = z^2 - 2x^2 - 2y^2.

    • ∇F=⟨−4x,−4y,2z⟩  ⟹  ∇F(1,−1,4)=⟨−4,4,8⟩\nabla F = \langle -4x, -4y, 2z \rangle \implies \nabla F(1, -1, 4) = \langle -4, 4, 8 \rangle.

    • Divide by −4-4 to obtain normal vector ⟨1,−1,−2⟩\langle 1, -1, -2 \rangle.

    • Tangent Plane: 1(x−1)−1(y+1)−2(z−4)=0  ⟹  x−y−2z+6=01(x - 1) - 1(y + 1) - 2(z - 4) = 0 \implies x - y - 2z + 6 = 0.

  • Tangent Line to Intersection of Paraboloid and Ellipsoid: Intersection of z=x2+y2z = x^2 + y^2 and 4x2+y2+z2=94x^2 + y^2 + z^2 = 9 at (−1,1,2)(-1, 1, 2).

    • Surface 1: F=x2+y2−z=0  ⟹  ∇F(−1,1,2)=⟨−2,2,−1⟩F = x^2 + y^2 - z = 0 \implies \nabla F(-1, 1, 2) = \langle -2, 2, -1 \rangle.

    • Surface 2: G=4x2+y2+z2=9  ⟹  ∇G(−1,1,2)=⟨8x,2y,2z⟩=⟨−8,2,4⟩G = 4x^2 + y^2 + z^2 = 9 \implies \nabla G(-1, 1, 2) = \langle 8x, 2y, 2z \rangle = \langle -8, 2, 4 \rangle.

    • Tangent Direction: v=∇F×∇G=∣ijk−22−1−824∣=i(8−(−2))−j(−8−8)+k(−4−(−16))=⟨10,16,12⟩\mathbf{v} = \nabla F \times \nabla G = \begin{vmatrix} \mathbf{i} & \mathbf{j} & \mathbf{k} \\ -2 & 2 & -1 \\ -8 & 2 & 4 \end{vmatrix} = \mathbf{i}(8 - (-2)) - \mathbf{j}(-8 - 8) + \mathbf{k}(-4 - (-16)) = \langle 10, 16, 12 \rangle.

    • Parametric equations (using direction ⟨−10,−16,−12⟩\langle -10, -16, -12 \rangle): x=−1−10tx = -1 - 10t, y=1−16ty = 1 - 16t, z=2−12tz = 2 - 12t.

  • Parallel Tangent Plane to Ellipsoid: Find points on x2+y2+2z2=1x^2 + y^2 + 2z^2 = 1 where the tangent plane is parallel to x+2y+z=1x + 2y + z = 1.

    • Let F(x,y,z)=x2+y2+2z2F(x, y, z) = x^2 + y^2 + 2z^2. Normal vector is ∇F=⟨2x,2y,4z⟩\nabla F = \langle 2x, 2y, 4z \rangle.

    • Tangent plane is parallel to the given plane if ∇F=c⟨1,2,1⟩\nabla F = c \langle 1, 2, 1 \rangle.

    • Thus: 2x=c  ⟹  x=c/22x = c \implies x = c/2, 2y=2c  ⟹  y=c2y = 2c \implies y = c, 4z=c  ⟹  z=c/44z = c \implies z = c/4.

    • Substitute into ellipsoid: (c2)2+c2+2(c4)2=1  ⟹  c24+c2+c28=1  ⟹  11c28=1  ⟹  c2=811  ⟹  c=±2211\left(\frac{c}{2}\right)^2 + c^2 + 2\left(\frac{c}{4}\right)^2 = 1 \implies \frac{c^2}{4} + c^2 + \frac{c^2}{8} = 1 \implies \frac{11c^2}{8} = 1 \implies c^2 = \frac{8}{11} \implies c = \pm 2\sqrt{\frac{2}{11}}.

    • Points: (211,2211,12211)\left(\sqrt{\frac{2}{11}}, 2\sqrt{\frac{2}{11}}, \frac{1}{2}\sqrt{\frac{2}{11}}\right) and (−211,−2211,−12211)\left(-\sqrt{\frac{2}{11}}, -2\sqrt{\frac{2}{11}}, -\frac{1}{2}\sqrt{\frac{2}{11}}\right).

  • Orthogonality of Level Curves: Show that the families of level curves for f(x,y)=x2−y2f(x, y) = x^2 - y^2 and g(x,y)=xyg(x, y) = xy are orthogonal.

    • Gradients: ∇f=⟨2x,−2y⟩\nabla f = \langle 2x, -2y \rangle and ∇g=⟨y,x⟩\nabla g = \langle y, x \rangle.

    • Dot product: ∇f⋅∇g=(2x)(y)+(−2y)(x)=2xy−2xy=0\nabla f \cdot \nabla g = (2x)(y) + (-2y)(x) = 2xy - 2xy = 0.

    • Since their gradient vectors are orthogonal, the tangent lines to their respective level curves are perpendicular at every point of intersection.

Extreme Values and Unconstrained Optimization

  • Definitions of Local Extrema and Critical Points:

    • A function f(x,y)f(x, y) has a local maximum at (a,b)(a, b) if f(x,y)≤f(a,b)f(x, y) \le f(a, b) for all (x,y)(x, y) in an open disk centered at (a,b)(a, b).

    • A function f(x,y)f(x, y) has a local minimum at (a,b)(a, b) if f(x,y)≥f(a,b)f(x, y) \ge f(a, b) for all (x,y)(x, y) in an open disk centered at (a,b)(a, b).

    • Critical Point Definition: An interior point (a,b)(a, b) in the domain of ff is a critical point if either:

    • ∇f(a,b)=0\nabla f(a, b) = \mathbf{0} (i.e., both fx(a,b)=0f_x(a, b) = 0 and fy(a,b)=0f_y(a, b) = 0), or

    • At least one of the partial derivatives fxf_x or fyf_y does not exist at (a,b)(a, b).

    • Fermat's Theorem for Multivariable Functions: If f(x,y)f(x, y) has a local extremum at (a,b)(a, b) and both first partial derivatives exist, then fx(a,b)=0f_x(a, b) = 0 and fy(a,b)=0f_y(a, b) = 0.

Surface exhibiting a local maximum with a horizontal tangent plane
  • Saddle Points:

    • A critical point (a,b)(a, b) where fx(a,b)=fy(a,b)=0f_x(a, b) = f_y(a, b) = 0 is called a saddle point if every open disk centered at (a,b)(a, b) contains points where f(x,y)>f(a,b)f(x, y) > f(a, b) and points where f(x,y)<f(a,b)f(x, y) < f(a, b).

    • Prototypical Saddle Example: f(x,y)=y2−x2f(x, y) = y^2 - x^2.

    • fx=−2x=0  ⟹  x=0f_x = -2x = 0 \implies x = 0; fy=2y=0  ⟹  y=0f_y = 2y = 0 \implies y = 0. Unique critical point is (0,0)(0, 0).

    • Along the yy-axis (x=0x = 0): f(0,y)=y2≥0f(0, y) = y^2 \ge 0 (looks like a minimum).

    • Along the xx-axis (y=0y = 0): f(x,0)=−x2≤0f(x, 0) = -x^2 \le 0 (looks like a maximum).

    • Therefore, (0,0)(0, 0) is a saddle point.

  • The Second Derivative Test:

    • Suppose f(x,y)f(x, y) has continuous second partial derivatives in an open disk centered at a critical point (a,b)(a, b) where fx(a,b)=0f_x(a, b) = 0 and fy(a,b)=0f_y(a, b) = 0.

    • Define the discriminant DD (Hessian determinant):

    • D=D(a,b)=fxx(a,b)fyy(a,b)−[fxy(a,b)]2D = D(a, b) = f_{xx}(a, b) f_{yy}(a, b) - [f_{xy}(a, b)]^2

    • Classification Rules:

    • If D>0D > 0 and fxx(a,b)<0f_{xx}(a, b) < 0, then f(a,b)f(a, b) is a local maximum.

    • If D>0D > 0 and fxx(a,b)>0f_{xx}(a, b) > 0, then f(a,b)f(a, b) is a local minimum.

    • If D<0D < 0, then ff has a saddle point at (a,b)(a, b).

    • If D=0D = 0, the test is inconclusive (the critical point must be classified via alternative means).

  • Worked Critical Point Classification Examples:

    • Example 1: f(x,y)=x4−2x2+y2−4y+6f(x, y) = x^4 - 2x^2 + y^2 - 4y + 6.

    • Partials:

      • fx=4x3−4x=4x(x2−1)=0  ⟹  x=0,1,−1f_x = 4x^3 - 4x = 4x(x^2 - 1) = 0 \implies x = 0, 1, -1.

      • fy=2y−4=0  ⟹  y=2f_y = 2y - 4 = 0 \implies y = 2.

    • Critical Points: (0,2)(0, 2), (1,2)(1, 2), (−1,2)(-1, 2).

    • Second Partials: fxx=12x2−4f_{xx} = 12x^2 - 4, fyy=2f_{yy} = 2, fxy=0f_{xy} = 0.

    • Discriminant: D=(12x2−4)(2)−02=24x2−8D = (12x^2 - 4)(2) - 0^2 = 24x^2 - 8.

    • Classification:

      • At (0,2)(0, 2): D=−8<0  ⟹  D = -8 < 0 \implies Saddle point.

      • At (1,2)(1, 2): D=24−8=16>0D = 24 - 8 = 16 > 0, fxx=8>0  ⟹  f_{xx} = 8 > 0 \implies Local minimum (f(1,2)=1−2+4−8+6=1f(1, 2) = 1 - 2 + 4 - 8 + 6 = 1).

      • At (−1,2)(-1, 2): D=16>0D = 16 > 0, fxx=8>0  ⟹  f_{xx} = 8 > 0 \implies Local minimum (f(−1,2)=1f(-1, 2) = 1).

    • Example 2: f(x,y)=xy2−6x2−3y2f(x, y) = x y^2 - 6x^2 - 3y^2.

    • First Partials:

      • fx=y2−12x=0  ⟹  x=y212f_x = y^2 - 12x = 0 \implies x = \frac{y^2}{12}.

      • fy=2xy−6y=2y(x−3)=0  ⟹  y=0f_y = 2xy - 6y = 2y(x - 3) = 0 \implies y = 0 or x=3x = 3.

    • Find Critical Points:

      • If y=0y = 0, then x=0  ⟹  (0,0)x = 0 \implies (0, 0).

      • If x=3x = 3, then 3=y212  ⟹  y2=36  ⟹  y=±6  ⟹  (3,6)3 = \frac{y^2}{12} \implies y^2 = 36 \implies y = \pm 6 \implies (3, 6) and (3,−6)(3, -6).

    • Second Partials: fxx=−12f_{xx} = -12, fyy=2x−6f_{yy} = 2x - 6, fxy=2yf_{xy} = 2y.

    • Discriminant formula: D=−12(2x−6)−(2y)2=−24x+72−4y2D = -12(2x - 6) - (2y)^2 = -24x + 72 - 4y^2.

    • Classification:

      • At (0,0)(0, 0): D=72>0D = 72 > 0, fxx=−12<0  ⟹  f_{xx} = -12 < 0 \implies Local maximum (f(0,0)=0f(0, 0) = 0).

      • At (3,6)(3, 6): D=−24(3)+72−4(36)=−144<0  ⟹  D = -24(3) + 72 - 4(36) = -144 < 0 \implies Saddle point.

      • At (3,−6)(3, -6): D=−144<0  ⟹  D = -144 < 0 \implies Saddle point.

    • Example 3: f(x,y)=2x4+y4f(x, y) = 2x^4 + y^4.

    • Partials: fx=8x3=0  ⟹  x=0f_x = 8x^3 = 0 \implies x = 0; fy=4y3=0  ⟹  y=0f_y = 4y^3 = 0 \implies y = 0. Unique critical point is (0,0)(0, 0).

    • Second Partials: fxx=24x2f_{xx} = 24x^2, fyy=12y2f_{yy} = 12y^2, fxy=0f_{xy} = 0.

    • At (0,0)(0, 0): D=(0)(0)−0=0D = (0)(0) - 0 = 0 (test is inconclusive).

    • Direct Analysis: Since f(0,0)=0f(0, 0) = 0 and 2x4+y4>02x^4 + y^4 > 0 for all (x,y)≠(0,0)(x, y) \ne (0, 0), (0,0)(0, 0) is an absolute (and local) minimum.

  • Absolute Extrema and the Extreme Value Theorem:

    • Extreme Value Theorem: A continuous function f(x,y)f(x, y) on a closed and bounded set D⊂R2D \subset \mathbb{R}^2 attains both an absolute maximum and an absolute minimum on DD.

    • Closed and Bounded Procedure:

    • Find the values of ff at all critical points in the interior of DD.

    • Find the extreme values of ff on the boundary of DD.

    • The largest of these values is the absolute maximum, and the smallest is the absolute minimum.

    • Example 1: Absolute extrema of f(x,y)=x2−y2−1f(x, y) = x^2 - y^2 - 1 on the disk x2+y2≤1x^2 + y^2 \le 1.

    • Interior Critical Points: fx=2x=0f_x = 2x = 0, fy=−2y=0  ⟹  (0,0)f_y = -2y = 0 \implies (0, 0). Value: f(0,0)=−1f(0, 0) = -1.

    • Boundary Analysis (x2+y2=1  ⟹  y2=1−x2x^2 + y^2 = 1 \implies y^2 = 1 - x^2 for −1≤x≤1-1 \le x \le 1):

      • Substitute into function: g(x)=x2−(1−x2)−1=2x2−2g(x) = x^2 - (1 - x^2) - 1 = 2x^2 - 2.

      • Differentiate: g′(x)=4x=0  ⟹  x=0g'(x) = 4x = 0 \implies x = 0.

      • If x=0x = 0, then y=±1y = \pm 1, giving values g(0)=−2g(0) = -2.

      • Boundary endpoints (x=±1x = \pm 1, y=0y = 0): g(±1)=2(1)−2=0g(\pm 1) = 2(1) - 2 = 0.

    • Comparison: Values are −1-1, −2-2, and 00.

    • Absolute Maximum: 00 at (±1,0)(\pm 1, 0).

    • Absolute Minimum: −2-2 at (0,±1)(0, \pm 1).

    • Example 2: Absolute extrema of f(x,y)=x+y−xyf(x, y) = x + y - xy on the triangular region with vertices (0,0)(0, 0), (0,2)(0, 2), and (4,0)(4, 0).

    • Interior: fx=1−y=0  ⟹  y=1f_x = 1 - y = 0 \implies y = 1; fy=1−x=0  ⟹  x=1f_y = 1 - x = 0 \implies x = 1.

      • Critical point is (1,1)(1, 1). Boundary hypotenuse has equation y=−12x+2y = -\frac{1}{2}x + 2, so at x=1x = 1, y=1.5>1y = 1.5 > 1, confirming (1,1)(1, 1) is inside the triangle.

      • Value: f(1,1)=1+1−1=1f(1, 1) = 1 + 1 - 1 = 1.

    • Boundary Segment 1 (x=0x = 0, 0≤y≤20 \le y \le 2): f(0,y)=yf(0, y) = y. Min is f(0,0)=0f(0, 0) = 0, max is f(0,2)=2f(0, 2) = 2.

    • Boundary Segment 2 (y=0y = 0, 0≤x≤40 \le x \le 4): f(x,0)=xf(x, 0) = x. Min is f(0,0)=0f(0, 0) = 0, max is f(4,0)=4f(4, 0) = 4.

    • Boundary Segment 3 (y=2−12xy = 2 - \frac{1}{2}x, 0≤x≤40 \le x \le 4):

      • h(x)=x+(2−12x)−x(2−12x)=12x2−32x+2h(x) = x + \left(2 - \frac{1}{2}x\right) - x\left(2 - \frac{1}{2}x\right) = \frac{1}{2}x^2 - \frac{3}{2}x + 2.

      • h′(x)=x−32=0  ⟹  x=32h'(x) = x - \frac{3}{2} = 0 \implies x = \frac{3}{2}, y=54y = \frac{5}{4}.

      • Value: h(3/2)=12(94)−32(32)+2=78h(3/2) = \frac{1}{2}\left(\frac{9}{4}\right) - \frac{3}{2}\left(\frac{3}{2}\right) + 2 = \frac{7}{8}.

      • Endpoints: h(0)=2h(0) = 2, h(4)=4h(4) = 4.

    • Comparison of all candidate values: 0,1,2,4,7/80, 1, 2, 4, 7/8.

    • Absolute Maximum: 44 at (4,0)(4, 0).

    • Absolute Minimum: 00 at (0,0)(0, 0).

  • Additional Worked Exercises on Optimization:

    • Non-Differentiable Critical Point: Let f(x,y)=x2+y2f(x, y) = \sqrt{x^2 + y^2}.

    • First partials: fx=xx2+y2f_x = \frac{x}{\sqrt{x^2+y^2}} and fy=yx2+y2f_y = \frac{y}{\sqrt{x^2+y^2}}, undefined at (0,0)(0, 0).

    • Thus, P(0,0)P(0, 0) is the unique critical point.

    • Since f(0,0)=0f(0, 0) = 0 and f(x,y)>0f(x, y) > 0 everywhere else, ff attains an absolute minimum at P(0,0)P(0, 0).

    • Classification of Critical Points: f(x,y)=(x−y)(1−xy)=x−x2y−y+xy2f(x, y) = (x - y)(1 - xy) = x - x^2 y - y + xy^2.

    • fx=1−2xy+y2=0f_x = 1 - 2xy + y^2 = 0.

    • fy=−x2−1+2xy=0f_y = -x^2 - 1 + 2xy = 0.

    • Adding equations: y2−x2=0  ⟹  y=±xy^2 - x^2 = 0 \implies y = \pm x.

    • If y=xy = x: 1−2x2+x2=0  ⟹  1−x2=0  ⟹  x=±11 - 2x^2 + x^2 = 0 \implies 1 - x^2 = 0 \implies x = \pm 1. Critical points: (1,1)(1, 1) and (−1,−1)(-1, -1).

    • If y=−xy = -x: 1+2x2+x2=0  ⟹  1+3x2=01 + 2x^2 + x^2 = 0 \implies 1 + 3x^2 = 0 (no real solutions).

    • Second Partials: fxx=−2yf_{xx} = -2y, fyy=2xf_{yy} = 2x, fxy=−2x+2yf_{xy} = -2x + 2y.

    • At (1,1)(1, 1): fxx=−2f_{xx} = -2, fyy=2f_{yy} = 2, fxy=0  ⟹  D=(−2)(2)−0=−4<0f_{xy} = 0 \implies D = (-2)(2) - 0 = -4 < 0 (Saddle point).

    • At (−1,−1)(-1, -1): fxx=2f_{xx} = 2, fyy=−2f_{yy} = -2, fxy=0  ⟹  D=−4<0f_{xy} = 0 \implies D = -4 < 0 (Saddle point).

    • Absolute Extrema on Rectangle: f(x,y)=x2+y2+x2y+4f(x, y) = x^2 + y^2 + x^2 y + 4 on D={(x,y)∣∣x∣≤1,∣y∣≤1}D = \{(x, y) \mid |x| \le 1, |y| \le 1\}.

    • Interior: fx=2x+2xy=2x(1+y)=0  ⟹  x=0f_x = 2x + 2xy = 2x(1 + y) = 0 \implies x = 0 or y=−1y = -1.

    • fy=2y+x2=0f_y = 2y + x^2 = 0. If x=0x = 0, y=0  ⟹  (0,0)y = 0 \implies (0, 0) with f(0,0)=4f(0, 0) = 4.

    • If y=−1y = -1, x2=2  ⟹  ∣x∣=2>1x^2 = 2 \implies |x| = \sqrt{2} > 1 (outside DD).

    • Boundary Analysis:

      • Along y=1y = 1 (−1≤x≤1-1 \le x \le 1): f(x,1)=x2+1+x2+4=2x2+5f(x, 1) = x^2 + 1 + x^2 + 4 = 2x^2 + 5. Min at x=0x = 0 (f=5f = 5), max at x=±1x = \pm 1 (f=7f = 7).

      • Along y=−1y = -1 (−1≤x≤1-1 \le x \le 1): f(x,−1)=x2+1−x2+4=5f(x, -1) = x^2 + 1 - x^2 + 4 = 5 (constant).

      • Along x=±1x = \pm 1 (−1≤y≤1-1 \le y \le 1): f(±1,y)=1+y2+y+4=y2+y+5f(\pm 1, y) = 1 + y^2 + y + 4 = y^2 + y + 5. Vertex at y=−1/2y = -1/2 has value 1/4−1/2+5=4.751/4 - 1/2 + 5 = 4.75. Max at y=1y = 1 has value 77.

    • Absolute Maximum: f(±1,1)=7f(\pm 1, 1) = 7.

    • Absolute Minimum: f(0,0)=4f(0, 0) = 4.

    • Distance Minimization to Surface: Find the points on the surface y2=9+xzy^2 = 9 + xz closest to the origin.

    • Minimize squared distance d2=x2+y2+z2=x2+9+xz+z2d^2 = x^2 + y^2 + z^2 = x^2 + 9 + xz + z^2.

    • Partials: fx=2x+z=0  ⟹  z=−2xf_x = 2x + z = 0 \implies z = -2x.

    • fz=x+2z=0  ⟹  x+2(−2x)=−3x=0  ⟹  x=0,z=0f_z = x + 2z = 0 \implies x + 2(-2x) = -3x = 0 \implies x = 0, z = 0.

    • When x=0,z=0x = 0, z = 0, y2=9  ⟹  y=±3y^2 = 9 \implies y = \pm 3.

    • Closest points are (0,3,0)(0, 3, 0) and (0,−3,0)(0, -3, 0).

    • Inscribed Box Optimization: A rectangular box rests in the first octant with one vertex at (0,0,0)(0, 0, 0) and opposite vertex on the plane 6x+4y+3z=246x + 4y + 3z = 24.

    • Solve for zz: z=24−6x−4y3=8−2x−43yz = \frac{24 - 6x - 4y}{3} = 8 - 2x - \frac{4}{3}y.

    • Box volume: V(x,y)=xyz=xy(8−2x−43y)=8xy−2x2y−43xy2V(x, y) = x y z = x y \left(8 - 2x - \frac{4}{3}y\right) = 8xy - 2x^2 y - \frac{4}{3}xy^2.

    • Partials:

      • Vx=8y−4xy−43y2=y(8−4x−43y)=0V_x = 8y - 4xy - \frac{4}{3}y^2 = y\left(8 - 4x - \frac{4}{3}y\right) = 0.

      • Vy=8x−2x2−83xy=x(8−2x−83y)=0V_y = 8x - 2x^2 - \frac{8}{3}xy = x\left(8 - 2x - \frac{8}{3}y\right) = 0.

    • For non-zero volume (x,y>0x, y > 0):

      • 4x+43y=8  ⟹  12x+4y=244x + \frac{4}{3}y = 8 \implies 12x + 4y = 24.

      • 2x+83y=8  ⟹  6x+8y=242x + \frac{8}{3}y = 8 \implies 6x + 8y = 24.

      • Multiply second equation by 2: 12x+16y=4812x + 16y = 48.

      • Subtracting gives 12y=24  ⟹  y=212y = 24 \implies y = 2.

      • Then 12x+4(2)=24  ⟹  12x=16  ⟹  x=4312x + 4(2) = 24 \implies 12x = 16 \implies x = \frac{4}{3}.

      • Height: z=8−2(4/3)−(4/3)(2)=8−8/3−8/3=8−16/3=83z = 8 - 2(4/3) - (4/3)(2) = 8 - 8/3 - 8/3 = 8 - 16/3 = \frac{8}{3}.

    • Maximum Volume: V=(43)(2)(83)=649V = \left(\frac{4}{3}\right)(2)\left(\frac{8}{3}\right) = \frac{64}{9}.

Rectangular box inscribed in the first octant beneath the plane 6x + 4y + 3z = 24

Constrained Optimization: The Method of Lagrange Multipliers

  • Geometric Foundation of Constrained Extrema:

    • To optimize an objective function f(x,y)f(x, y) subject to a constraint curve g(x,y)=cg(x, y) = c, consider the level curves f(x,y)=kf(x, y) = k.

    • An extreme value of ff along g(x,y)=cg(x, y) = c occurs at the highest or lowest kk for which the level curve intersects the constraint curve.

    • At such optimal points, the level curve f(x,y)=kf(x, y) = k and the constraint curve g(x,y)=cg(x, y) = c are tangent, meaning they share a common normal line.

    • Since ∇f\nabla f is perpendicular to the level curves of ff, and ∇g\nabla g is perpendicular to the constraint curve, their gradient vectors must be parallel.

  • Lagrange's Theorem and the Multiplier Method:

    • Theorem: Let ff and gg have continuous first partial derivatives such that ff has an extremum on the smooth constraint curve g(x,y)=cg(x, y) = c. If ∇g(a,b)≠0\nabla g(a, b) \ne \mathbf{0}, then there exists a real scalar λ\lambda (called the Lagrange multiplier) such that:

    • ∇f(a,b)=λ∇g(a,b)\nabla f(a, b) = \lambda \nabla g(a, b)

    • Algorithm for One Constraint:

    • Solve the simultaneous system of equations:

      • ∇f(x,y)=λ∇g(x,y)\nabla f(x, y) = \lambda \nabla g(x, y)

      • g(x,y)=cg(x, y) = c

    • In coordinate form for two variables:

      • fx=λgxf_x = \lambda g_x

      • fy=λgyf_y = \lambda g_y

      • g(x,y)=cg(x, y) = c

    • Evaluate ff at all solution points (x,y)(x, y). The largest value is the maximum and the smallest value is the minimum.

    • Limitation Caveat: The method of Lagrange multipliers is suited for smooth constraints; it does not directly optimize over piecewise boundaries like triangles or rectangles where no single smooth equation g(x,y)=cg(x, y) = c describes the boundary.

  • Worked Lagrange Multiplier Examples:

    • Example 1: Maximize and minimize f(x,y)=x2−y2−1f(x, y) = x^2 - y^2 - 1 subject to x2+y2=1x^2 + y^2 = 1.

    • Gradients: ∇f=⟨2x,−2y⟩\nabla f = \langle 2x, -2y \rangle; ∇g=⟨2x,2y⟩\nabla g = \langle 2x, 2y \rangle.

    • System:

      • 2x=λ(2x)  ⟹  2x(1−λ)=02x = \lambda (2x) \implies 2x(1 - \lambda) = 0

      • −2y=λ(2y)  ⟹  2y(1+λ)=0-2y = \lambda (2y) \implies 2y(1 + \lambda) = 0

      • x2+y2=1x^2 + y^2 = 1

    • Cases:

      • From the first equation, either x=0x = 0 or λ=1\lambda = 1.

      • If x=0x = 0, then 02+y2=1  ⟹  y=±10^2 + y^2 = 1 \implies y = \pm 1. Candidate points: (0,1)(0, 1) and (0,−1)(0, -1).

      • If λ=1\lambda = 1, the second equation requires 2y(2)=0  ⟹  y=02y(2) = 0 \implies y = 0. Then x2+02=1  ⟹  x=±1x^2 + 0^2 = 1 \implies x = \pm 1. Candidate points: (1,0)(1, 0) and (−1,0)(-1, 0).

    • Evaluate ff:

      • f(0,±1)=02−(±1)2−1=−2f(0, \pm 1) = 0^2 - (\pm 1)^2 - 1 = -2.

      • f(±1,0)=(±1)2−02−1=0f(\pm 1, 0) = (\pm 1)^2 - 0^2 - 1 = 0.

    • Results: Maximum value is 00 at (±1,0)(\pm 1, 0); Minimum value is −2-2 at (0,±1)(0, \pm 1).

    • Example 2: Extrema of f(x,y)=xyf(x, y) = xy subject to x2+y2−xy=9x^2 + y^2 - xy = 9.

    • Gradients: ∇f=⟨y,x⟩\nabla f = \langle y, x \rangle; ∇g=⟨2x−y,2y−x⟩\nabla g = \langle 2x - y, 2y - x \rangle.

    • System:

      • y=λ(2x−y)y = \lambda(2x - y)

      • x=λ(2y−x)x = \lambda(2y - x)

      • x2+y2−xy=9x^2 + y^2 - xy = 9

    • Subtract equations: y−x=λ(2x−y−2y+x)=3λ(x−y)=−3λ(y−x)y - x = \lambda(2x - y - 2y + x) = 3\lambda(x - y) = -3\lambda(y - x).

    • Rearrange: (y−x)(1+3λ)=0(y - x)(1 + 3\lambda) = 0.

    • Case A: y=xy = x.

      • Constraint: x2+x2−x2=9  ⟹  x2=9  ⟹  x=±3x^2 + x^2 - x^2 = 9 \implies x^2 = 9 \implies x = \pm 3.

      • Points: (3,3)(3, 3) and (−3,−3)(-3, -3).

      • Function values: f(3,3)=9f(3, 3) = 9, f(−3,−3)=9f(-3, -3) = 9.

    • Case B: λ=−1/3\lambda = -1/3.

      • Substitute into first equation: y=−13(2x−y)  ⟹  3y=−2x+y  ⟹  2y=−2x  ⟹  y=−xy = -\frac{1}{3}(2x - y) \implies 3y = -2x + y \implies 2y = -2x \implies y = -x.

      • Constraint: x2+(−x)2−x(−x)=9  ⟹  3x2=9  ⟹  x2=3  ⟹  x=±3x^2 + (-x)^2 - x(-x) = 9 \implies 3x^2 = 9 \implies x^2 = 3 \implies x = \pm \sqrt{3}.

      • Points: (3,−3)(\sqrt{3}, -\sqrt{3}) and (−3,3)(-\sqrt{3}, \sqrt{3}).

      • Function values: f=(3)(−3)=−3f = (\sqrt{3})(-\sqrt{3}) = -3.

    • Results: Maximum value is 99 at (3,3)(3, 3) and (−3,−3)(-3, -3); Minimum value is −3-3 at (3,−3)(\sqrt{3}, -\sqrt{3}) and (−3,3)(-\sqrt{3}, \sqrt{3}).

    • Example 3: Three-Variable Optimization: Extrema of f(x,y,z)=x+3y−zf(x, y, z) = x + 3y - z subject to x2+y2+z2=4x^2 + y^2 + z^2 = 4.

    • Gradients: ∇f=⟨1,3,−1⟩\nabla f = \langle 1, 3, -1 \rangle; ∇g=⟨2x,2y,2z⟩\nabla g = \langle 2x, 2y, 2z \rangle.

    • System:

      • 1=2λx  ⟹  x=12λ1 = 2\lambda x \implies x = \frac{1}{2\lambda}

      • 3=2λy  ⟹  y=32λ3 = 2\lambda y \implies y = \frac{3}{2\lambda}

      • −1=2λz  ⟹  z=−12λ-1 = 2\lambda z \implies z = -\frac{1}{2\lambda}

    • Substitute into constraint x2+y2+z2=4x^2 + y^2 + z^2 = 4:

      • (12λ)2+(32λ)2+(−12λ)2=4\left(\frac{1}{2\lambda}\right)^2 + \left(\frac{3}{2\lambda}\right)^2 + \left(-\frac{1}{2\lambda}\right)^2 = 4

      • 1+9+14λ2=4  ⟹  114λ2=4  ⟹  λ2=1116  ⟹  λ=±114\frac{1 + 9 + 1}{4\lambda^2} = 4 \implies \frac{11}{4\lambda^2} = 4 \implies \lambda^2 = \frac{11}{16} \implies \lambda = \pm \frac{\sqrt{11}}{4}

    • Coordinates:

      • For λ=114\lambda = \frac{\sqrt{11}}{4}: x=211x = \frac{2}{\sqrt{11}}, y=611y = \frac{6}{\sqrt{11}}, z=−211z = -\frac{2}{\sqrt{11}}.

      • f=211+3(611)−(−211)=2+18+211=2211=211f = \frac{2}{\sqrt{11}} + 3\left(\frac{6}{\sqrt{11}}\right) - \left(-\frac{2}{\sqrt{11}}\right) = \frac{2 + 18 + 2}{\sqrt{11}} = \frac{22}{\sqrt{11}} = 2\sqrt{11}.

      • For λ=−114\lambda = -\frac{\sqrt{11}}{4}: x=−211x = -\frac{2}{\sqrt{11}}, y=−611y = -\frac{6}{\sqrt{11}}, z=211z = \frac{2}{\sqrt{11}}.

      • f=−211f = -2\sqrt{11}.

    • Results: Maximum value is 2112\sqrt{11}, minimum value is −211-2\sqrt{11}.

  • Lagrange Multipliers with Two Constraints:

    • To optimize f(x,y,z)f(x, y, z) subject to two simultaneous constraints g(x,y,z)=c1g(x, y, z) = c_1 and h(x,y,z)=c2h(x, y, z) = c_2, introduce two multipliers λ\lambda and μ\mu:

    • ∇f(x,y,z)=λ∇g(x,y,z)+μ∇h(x,y,z)\nabla f(x, y, z) = \lambda \nabla g(x, y, z) + \mu \nabla h(x, y, z)

    • g(x,y,z)=c1g(x, y, z) = c_1

    • h(x,y,z)=c2h(x, y, z) = c_2

    • Example: Find the minimum distance from the origin to the line of intersection of planes x+y+z=8x + y + z = 8 and 2x−y+3z=282x - y + 3z = 28.

    • Minimize squared distance f(x,y,z)=x2+y2+z2f(x, y, z) = x^2 + y^2 + z^2.

    • Constraints: g(x,y,z)=x+y+z=8g(x, y, z) = x + y + z = 8 and h(x,y,z)=2x−y+3z=28h(x, y, z) = 2x - y + 3z = 28.

    • Gradients: ∇f=⟨2x,2y,2z⟩\nabla f = \langle 2x, 2y, 2z \rangle, ∇g=⟨1,1,1⟩\nabla g = \langle 1, 1, 1 \rangle, ∇h=⟨2,−1,3⟩\nabla h = \langle 2, -1, 3 \rangle.

    • System:

      • 2x=λ+2μ2x = \lambda + 2\mu

      • 2y=λ−μ2y = \lambda - \mu

      • 2z=λ+3μ2z = \lambda + 3\mu

    • Eliminate multipliers:

      • Subtracting second equation from first: 2x−2y=3μ  ⟹  μ=23(x−y)2x - 2y = 3\mu \implies \mu = \frac{2}{3}(x - y).

      • Then λ=2y+μ=2y+23(x−y)=23x+43y\lambda = 2y + \mu = 2y + \frac{2}{3}(x - y) = \frac{2}{3}x + \frac{4}{3}y.

      • Substitute into third: 2z=(23x+43y)+3(23(x−y))=83x−23y2z = \left(\frac{2}{3}x + \frac{4}{3}y\right) + 3\left(\frac{2}{3}(x - y)\right) = \frac{8}{3}x - \frac{2}{3}y.

      • Multiplying by 3: 6z=8x−2y  ⟹  4x−y−3z=06z = 8x - 2y \implies 4x - y - 3z = 0.

    • Solve the 3-by-3 linear system:

      • (1) x+y+z=8x + y + z = 8

      • (2) 2x−y+3z=282x - y + 3z = 28

      • (3) 4x−y−3z=04x - y - 3z = 0

      • Adding (2) and (3): 6x−2y=28  ⟹  y=3x−146x - 2y = 28 \implies y = 3x - 14.

      • Adding (1) and (2): 3x+4z=36  ⟹  z=9−34x3x + 4z = 36 \implies z = 9 - \frac{3}{4}x.

      • Substitute into (1): x+(3x−14)+(9−34x)=8  ⟹  134x−5=8  ⟹  134x=13  ⟹  x=4x + (3x - 14) + \left(9 - \frac{3}{4}x\right) = 8 \implies \frac{13}{4}x - 5 = 8 \implies \frac{13}{4}x = 13 \implies x = 4.

      • Then y=3(4)−14=−2y = 3(4) - 14 = -2, and z=9−34(4)=6z = 9 - \frac{3}{4}(4) = 6.

    • The closest point is (4,−2,6)(4, -2, 6).

    • Minimum distance: d=42+(−2)2+62=16+4+36=56=214d = \sqrt{4^2 + (-2)^2 + 6^2} = \sqrt{16 + 4 + 36} = \sqrt{56} = 2\sqrt{14}.

  • Additional Worked Exercises on Constrained Optimization:

    • Minimum Distance from Point to Plane: Find the minimum distance from (1,2,3)(1, 2, 3) to the plane x−y+z=4x - y + z = 4.

    • Method (a) - Vector Projection: Normal vector n=⟨1,−1,1⟩\mathbf{n} = \langle 1, -1, 1 \rangle. Pick a point on plane, e.g., P0(4,0,0)P_0(4, 0, 0). Vector from P0P_0 to P(1,2,3)P(1, 2, 3) is b=⟨−3,2,3⟩\mathbf{b} = \langle -3, 2, 3 \rangle. Distance is D=∣b⋅n∣∣n∣=∣−3(1)+2(−1)+3(1)∣12+(−1)2+12=∣−2∣3=23=233D = \frac{|\mathbf{b} \cdot \mathbf{n}|}{|\mathbf{n}|} = \frac{|-3(1) + 2(-1) + 3(1)|}{\sqrt{1^2 + (-1)^2 + 1^2}} = \frac{|-2|}{\sqrt{3}} = \frac{2}{\sqrt{3}} = \frac{2\sqrt{3}}{3}.

    • Method (b) - Unconstrained Minimization: Distance squared with z=4−x+yz = 4 - x + y:

      • f(x,y)=(x−1)2+(y−2)2+(4−x+y−3)2=(x−1)2+(y−2)2+(1−x+y)2f(x, y) = (x - 1)^2 + (y - 2)^2 + (4 - x + y - 3)^2 = (x - 1)^2 + (y - 2)^2 + (1 - x + y)^2.

      • Setting fx=0f_x = 0 and fy=0f_y = 0 yields x=53x = \frac{5}{3}, y=43y = \frac{4}{3}, resulting in minimum distance 233\frac{2\sqrt{3}}{3}.

    • Method (c) - Lagrange Multipliers: Objective f(x,y,z)=(x−1)2+(y−2)2+(z−3)2f(x, y, z) = (x - 1)^2 + (y - 2)^2 + (z - 3)^2 subject to g(x,y,z)=x−y+z=4g(x, y, z) = x - y + z = 4.

      • 2(x−1)=λ2(x - 1) = \lambda, 2(y−2)=−λ2(y - 2) = -\lambda, 2(z−3)=λ2(z - 3) = \lambda.

      • Substitute into constraint to obtain identical minimum distance 233\frac{2\sqrt{3}}{3}.

    • Postal Package Maximum Volume: A postal service package allows maximum combined length and girth of 108 in108\,\text{in}. Optimize volume V=lwhV = l w h with square cross section w=hw = h, so girth is 4w4w, subject to l+4w=108l + 4w = 108.

    • Maximize V(l,w)=lw2V(l, w) = l w^2 subject to l+4w=108l + 4w = 108.

    • Gradients: ∇V=⟨w2,2lw⟩\nabla V = \langle w^2, 2lw \rangle; ∇g=⟨1,4⟩\nabla g = \langle 1, 4 \rangle.

    • System: w2=λw^2 = \lambda, 2lw=4λ=4w2  ⟹  2lw−4w2=0  ⟹  2w(l−2w)=02lw = 4\lambda = 4w^2 \implies 2lw - 4w^2 = 0 \implies 2w(l - 2w) = 0.

    • Since w>0w > 0, l=2wl = 2w.

    • Constraint: 2w+4w=108  ⟹  6w=108  ⟹  w=18 in2w + 4w = 108 \implies 6w = 108 \implies w = 18\,\text{in}.

    • Dimensions: Width w=18 inw = 18\,\text{in}, height h=18 inh = 18\,\text{in}, length l=2(18)=36 inl = 2(18) = 36\,\text{in}.

    • Ellipse Intersection on Cylinder: Plane x+y+z=1x + y + z = 1 intersects cylinder x2+y2=1x^2 + y^2 = 1 in an ellipse. Find points closest to and farthest from the origin.

    • Minimize and maximize f(x,y,z)=x2+y2+z2=1+z2f(x, y, z) = x^2 + y^2 + z^2 = 1 + z^2 (using x2+y2=1x^2 + y^2 = 1).

    • Objective reduces to finding extrema of z2z^2, which depends on z=1−(x+y)z = 1 - (x + y).

    • Extrema of x+yx + y on x2+y2=1x^2 + y^2 = 1:

      • Gradients: ⟨1,1⟩=λ⟨2x,2y⟩  ⟹  x=y=±22\langle 1, 1 \rangle = \lambda \langle 2x, 2y \rangle \implies x = y = \pm \frac{\sqrt{2}}{2}.

    • Points:

      • For x=y=22x = y = \frac{\sqrt{2}}{2}: z=1−2z = 1 - \sqrt{2}, giving distance squared 1+(1−2)2=4−22≈1.171 + (1 - \sqrt{2})^2 = 4 - 2\sqrt{2} \approx 1.17.

      • For x=y=−22x = y = -\frac{\sqrt{2}}{2}: z=1+2z = 1 + \sqrt{2}, giving distance squared 1+(1+2)2=4+22≈6.831 + (1 + \sqrt{2})^2 = 4 + 2\sqrt{2} \approx 6.83.

      • At points where z=0z = 0: x+y=1x + y = 1 and x2+y2=1x^2 + y^2 = 1, which gives (1,0,0)(1, 0, 0) and (0,1,0)(0, 1, 0). Here, distance squared is 12+02+02=11^2 + 0^2 + 0^2 = 1.

    • Closest points to origin: (1,0,0)(1, 0, 0) and (0,1,0)(0, 1, 0) (distance = 1).

    • Farthest point from origin: (−22,−22,1+2)\left(-\frac{\sqrt{2}}{2}, -\frac{\sqrt{2}}{2}, 1 + \sqrt{2}\right).


Functions of Several Variables and Level Sets
  • Function Definition:

    • A function of two variables assigns to each pair (x,y)∈D⊆R2(x, y) \in D \subseteq \mathbb{R}^2 a unique value z=f(x,y)z = f(x, y).

    • Domain DD represents allowable input coordinates; range represents the set of all resulting real outputs.

  • Level Sets:

    • Level Curves: Sets of points in the xyxy-plane satisfying f(x,y)=kf(x, y) = k for a constant kk.

    • Level Surfaces: Solution sets in R3\mathbb{R}^3 satisfying f(x,y,z)=kf(x, y, z) = k for a constant kk.

Limits and Continuity
  • Limit Definition:

    • lim⁡(x,y)→(a,b)f(x,y)=L\lim_{(x, y) \to (a, b)} f(x, y) = L requires f(x,y)f(x, y) to approach LL along every possible continuous path approaching (a,b)(a, b).

  • Two-Path Test for Non-Existence:

    • If f(x,y)f(x, y) approaches different values along two distinct paths as (x,y)→(a,b)(x, y) \to (a, b), then the limit does not exist (DNE).

  • Polar Coordinates Conversion at the Origin:

    • Substitute x=rcos⁡(θ)x = r\cos(\theta) and y=rsin⁡(θ)y = r\sin(\theta), converting (x,y)→(0,0)(x, y) \to (0, 0) into the single variable limit r→0+r \to 0^+.

  • Continuity Criterion:

    • A function f(x,y)f(x, y) is continuous at (a,b)(a, b) if and only if:     lim⁡(x,y)→(a,b)f(x,y)=f(a,b)\lim_{(x, y) \to (a, b)} f(x, y) = f(a, b)

Partial Derivatives and Clairaut's Theorem
  • Limit Definitions of First Partial Derivatives:

    • Partial derivative with respect to xx:     fx(x,y)=lim⁡h→0f(x+h,y)−f(x,y)hf_x(x, y) = \lim_{h \to 0} \frac{f(x + h, y) - f(x, y)}{h}

    • Partial derivative with respect to yy:     fy(x,y)=lim⁡h→0f(x,y+h)−f(x,y)hf_y(x, y) = \lim_{h \to 0} \frac{f(x, y + h) - f(x, y)}{h}

  • Second-Order Partials:

    • Pure second partials: fxx=∂2f∂x2f_{xx} = \frac{\partial^2 f}{\partial x^2}, fyy=∂2f∂y2f_{yy} = \frac{\partial^2 f}{\partial y^2}.

    • Mixed second partials: fxy=∂2f∂y∂xf_{xy} = \frac{\partial^2 f}{\partial y \partial x}, fyx=∂2f∂x∂yf_{yx} = \frac{\partial^2 f}{\partial x \partial y}.

  • Clairaut's Theorem:

    • If mixed partial derivatives fxyf_{xy} and fyxf_{yx} are continuous on an open domain DD, then:     fxy(x,y)=fyx(x,y)f_{xy}(x, y) = f_{yx}(x, y)

Tangent Planes, Linear Approximations, and Differentials
  • Tangent Plane to Explicit Surface:

    • For z=f(x,y)z = f(x, y) at point (a,b,f(a,b))(a, b, f(a, b)):     z−f(a,b)=fx(a,b)(x−a)+fy(a,b)(y−b)z - f(a, b) = f_x(a, b)(x - a) + f_y(a, b)(y - b)

  • Linear Approximation (Linearization):

    • Tangent plane approximation near (a,b)(a, b):     L(x,y)=f(a,b)+fx(a,b)(x−a)+fy(a,b)(y−b)L(x, y) = f(a, b) + f_x(a, b)(x - a) + f_y(a, b)(y - b)f(a+Δx,b+Δy)≈f(a,b)+fx(a,b)Δx+fy(a,b)Δyf(a + \Delta x, b + \Delta y) \approx f(a, b) + f_x(a, b)\Delta x + f_y(a, b)\Delta y

  • Differentiability Definition:

    • f(x,y)f(x, y) is differentiable at (a,b)(a, b) if:     Δz=fx(a,b)Δx+fy(a,b)Δy+ε1Δx+ε2Δy\Delta z = f_x(a, b)\Delta x + f_y(a, b)\Delta y + \varepsilon_1 \Delta x + \varepsilon_2 \Delta y     where ε1,ε2→0\varepsilon_1, \varepsilon_2 \to 0 as (Δx,Δy)→(0,0)(\Delta x, \Delta y) \to (0, 0).

    • Sufficient Condition: If first partials fxf_x and fyf_y exist and are continuous on an open neighborhood around (a,b)(a, b), then ff is differentiable at (a,b)(a, b).

  • Total Differentials:

    • For independent changes dx=Δxdx = \Delta x and dy=Δydy = \Delta y:     dz=fx(x,y)dx+fy(x,y)dydz = f_x(x, y)dx + f_y(x, y)dy

The Multivariable Chain Rule and Implicit Differentiation
  • Single Independent Parameter:

    • If z=f(x,y)z = f(x, y) with x=g(t)x = g(t) and y=h(t)y = h(t):     dzdt=∂z∂xdxdt+∂z∂ydydt\frac{dz}{dt} = \frac{\partial z}{\partial x}\frac{dx}{dt} + \frac{\partial z}{\partial y}\frac{dy}{dt}

  • Two Independent Parameters:

    • If z=f(x,y)z = f(x, y) with x=g(s,t)x = g(s, t) and y=h(s,t)y = h(s, t):     ∂z∂s=∂z∂x∂x∂s+∂z∂y∂y∂s\frac{\partial z}{\partial s} = \frac{\partial z}{\partial x}\frac{\partial x}{\partial s} + \frac{\partial z}{\partial y}\frac{\partial y}{\partial s}∂z∂t=∂z∂x∂x∂t+∂z∂y∂y∂t\frac{\partial z}{\partial t} = \frac{\partial z}{\partial x}\frac{\partial x}{\partial t} + \frac{\partial z}{\partial y}\frac{\partial y}{\partial t}

  • Implicit Differentiation Formulas:

    • For F(x,y)=0F(x, y) = 0 defining y(x)y(x):     dydx=−FxFy\frac{dy}{dx} = -\frac{F_x}{F_y}

    • For F(x,y,z)=0F(x, y, z) = 0 defining z(x,y)z(x, y):     ∂z∂x=−FxFz\frac{\partial z}{\partial x} = -\frac{F_x}{F_z}∂z∂y=−FyFz\frac{\partial z}{\partial y} = -\frac{F_y}{F_z}

Directional Derivatives and the Gradient Vector
  • Gradient Vector:

    • Two variables:     ∇f(x,y)=⟨fx,fy⟩=fxi+fyj\nabla f(x, y) = \langle f_x, f_y \rangle = f_x \mathbf{i} + f_y \mathbf{j}

    • Three variables:     ∇f(x,y,z)=⟨fx,fy,fz⟩=fxi+fyj+fzk\nabla f(x, y, z) = \langle f_x, f_y, f_z \rangle = f_x \mathbf{i} + f_y \mathbf{j} + f_z \mathbf{k}

  • Directional Derivative:

    • Along a unit direction vector u^=⟨u1,u2⟩\hat{\mathbf{u}} = \langle u_1, u_2 \rangle:     Du^f=∇f⋅u^=fxu1+fyu2D_{\hat{\mathbf{u}}} f = \nabla f \cdot \hat{\mathbf{u}} = f_x u_1 + f_y u_2

    • In terms of angle θ\theta between ∇f\nabla f and u^\hat{\mathbf{u}}:     Du^f=∥∇f∥cos⁡(θ)D_{\hat{\mathbf{u}}} f = \|\nabla f\|\cos(\theta)

  • Properties and Extremes of the Gradient:

    • Direction of steepest ascent: u^=∇f∥∇f∥\hat{\mathbf{u}} = \frac{\nabla f}{\|\nabla f\|}, with maximum rate of increase \+\|\nabla f\|.

    • Direction of steepest descent: −u^=−∇f∥∇f∥-\hat{\mathbf{u}} = -\frac{\nabla f}{\|\nabla f\|}, with maximum rate of decrease −∥∇f∥-\|\nabla f\|.

    • Directions of zero change: any vector orthogonal to ∇f\nabla f (Du^f=0D_{\hat{\mathbf{u}}} f = 0).

Geometric Applications to Level Surfaces
  • Orthogonality of Gradient:

    • The gradient vector ∇f(a,b)\nabla f(a, b) is perpendicular to the tangent vector of the level curve f(x,y)=kf(x, y) = k through (a,b)(a, b).

    • The gradient vector ∇F(a,b,c)\nabla F(a, b, c) is normal to the level surface F(x,y,z)=kF(x, y, z) = k at (a,b,c)(a, b, c).

  • Tangent Plane to Level Surface:

    • Tangent plane to F(x,y,z)=kF(x, y, z) = k at (a,b,c)(a, b, c):     Fx(a,b,c)(x−a)+Fy(a,b,c)(y−b)+Fz(a,b,c)(z−c)=0F_x(a, b, c)(x - a) + F_y(a, b, c)(y - b) + F_z(a, b, c)(z - c) = 0

  • Normal Line to Surface:

    • Symmetric equations:     x−aFx(a,b,c)=y−bFy(a,b,c)=z−cFz(a,b,c)\frac{x - a}{F_x(a, b, c)} = \frac{y - b}{F_y(a, b, c)} = \frac{z - c}{F_z(a, b, c)}

    • Parametric equations:     x=a+Fx(a,b,c)tx = a + F_x(a, b, c)ty=b+Fy(a,b,c)ty = b + F_y(a, b, c)tz=c+Fz(a,b,c)tz = c + F_z(a, b, c)t

Optimization and the Second Derivative Test
  • Critical Points:

    • Interior points (a,b)(a, b) where ∇f(a,b)=0\nabla f(a, b) = \mathbf{0} (fx=0f_x = 0 and fy=0f_y = 0 simultaneously) or where either first partial fails to exist.

  • Second Derivative Test (Discriminant / Hessian Determinant):

    • Let (a,b)(a, b) be a critical point with fx(a,b)=fy(a,b)=0f_x(a, b) = f_y(a, b) = 0:     D=fxx(a,b)fyy(a,b)−[fxy(a,b)]2D = f_{xx}(a, b)f_{yy}(a, b) - [f_{xy}(a, b)]^2

    • Classification Rules:

    • If D>0D > 0 and fxx(a,b)<0f_{xx}(a, b) < 0: Local maximum.

    • If D>0D > 0 and fxx(a,b)>0f_{xx}(a, b) > 0: Local minimum.

    • If D<0D < 0: Saddle point.

    • If D=0D = 0: Test is inconclusive.

  • Extreme Value Theorem (Closed and Bounded Sets):

    • Step 1: Evaluate ff at all critical points in the interior.

    • Step 2: Find all extreme values along the boundary.

    • Step 3: Absolute maximum is the greatest evaluated value; absolute minimum is the smallest evaluated value.

Constrained Optimization: Method of Lagrange Multipliers
  • Single Constraint:

    • To optimize f(x,y,z)f(x, y, z) subject to a smooth constraint g(x,y,z)=cg(x, y, z) = c:     ∇f(x,y,z)=λ∇g(x,y,z)\nabla f(x, y, z) = \lambda \nabla g(x, y, z)g(x,y,z)=cg(x, y, z) = c

  • Two Constraints:

    • To optimize f(x,y,z)f(x, y, z) subject to simultaneous constraints g(x,y,z)=c1g(x, y, z) = c_1 and h(x,y,z)=c2h(x, y, z) = c_2:     ∇f(x,y,z)=λ∇g(x,y,z)+μ∇h(x,y,z)\nabla f(x, y, z) = \lambda \nabla g(x, y, z) + \mu \nabla h(x, y, z)g(x,y,z)=c1g(x, y, z) = c_1     $$h(x, y, z) = c